I am trying to disable the force stop button in the manage application page in Android settings. Certain applications are able to this even when their service is in running state the force stop button comes in disabled state. Please can anyone help me with this?
Asked
Active
Viewed 5,519 times
3
-
can you give me an example of an app that does this? To me this would seem extremely bad, why would you limit the users ability to force an applicaion to close? – Jon Taylor Jul 19 '12 at 11:49
-
Which applications? AFAIK only a system app could do that. – Jords Jul 19 '12 at 11:49
-
1You should search for the reason why the forces stop dialog appears in your application instead disabling it! – fklappan Jul 19 '12 at 11:53
-
An Parental lock application is able to do this....its name is **kaspersky parental control**...pls check it...its service is running and then also the force stop button is disabled – Niraj Gupta Jul 19 '12 at 12:12
-
@eftokay83:It is not that my application is crashing. I am talking about the force stop button which you see in the setting->Manage applicaition->Your application – Niraj Gupta Jul 19 '12 at 12:30
-
Yes i agree , Applications like Kaspersky Parental Control do not allow Force Stop of itself – rolling.stones Sep 26 '12 at 14:57
2 Answers
5
I am finding since last 1 week and finally I found that how to disable the Force Stop button.
You should apply Device Administrator Policy to your application. Below url will help you.
http://prashantandroid.blogspot.in/2013/07/disable-force-stop-in-manage.html

PrashantAdesara
- 1,897
- 3
- 22
- 41
-
This approach should be only used for apps which want to be Device Admin, also looks like that this is vendor specific implementation & the button is not disabled on few Lenovo tabs – Akshat Oct 28 '16 at 16:00
-
Is it still working approach. Also will Google allow us to publish such apps on play store? – Nirmal Prajapat May 03 '21 at 13:34
4
I am trying to disable the force stop button in the manage application page in Android settings.
Fortunately, this is not possible for ordinary SDK applications, for obvious security reasons.
Certain applications are able to this even when their service is in running state the force stop button comes in disabled state
Some system apps can do this, I believe. You are welcome to make your own custom ROM and attempt to prevent your app from being force-stopped.

CommonsWare
- 986,068
- 189
- 2,389
- 2,491
-
Pls check **Kaspersky parental Control** it is not a system application then also it is somehow able to do it – Niraj Gupta Jul 19 '12 at 12:16
-
3@untraceable: I will work to prevent Kaspersky from being able to do this in the future. Thank you for pointing out a potential security flaw in Android. – CommonsWare Jul 19 '12 at 12:20
-
-
3@untraceable: I am certainly not going to help you possibly exploit a security flaw in Android. – CommonsWare Jul 19 '12 at 12:28
-
1Fortunately, Kaspersky Parental Control behaves like any other app, and can be force-stopped, at least as of Android 4.0 (as I did not bother trying it on any older version). – CommonsWare Aug 03 '12 at 15:50
-
The same Kaspersky application does not allow Force STOP on Android 2.2 Please Help , how are they able to access FORCE STOP functionality – rolling.stones Sep 26 '12 at 14:56
-
I tried an anti-theft program called "Prey" that I couldn't uninstall. I think that was in Android 2.x though. – gonzobrains Jun 11 '13 at 01:13
-
"Some system apps can do this, I believe." - would you know how they do it? (I have system permissions, root access and I'm compiling the app with hidden/internal APIs) – Edw590 May 09 '21 at 03:11
-
1