1


I'm developing an android app (let this app be X), and I want to force the user to use a password (he can change this password) when he trying to uninstall this program (X) BUT without using another lock application. I think I should use service interface that work in the background to check if the user want to uninstall this app (X).

any help please and thanks in advance.

M_B216
  • 103
  • 9
  • I doubt Android will allow such a thing. – shkschneider Apr 24 '15 at 13:58
  • any explanation why? – M_B216 Apr 24 '15 at 14:00
  • 2
    IMHO and AFAIK the Android platform, it will not allow to restrict an un-installation unless it's a system app. Why? Because that is not a behavior ever wanted by Google AFAIK. The user should be able to remove any user application. – shkschneider Apr 24 '15 at 14:02
  • so why the lock apps(like AppLock and other lock-apps) can do such methods? – M_B216 Apr 24 '15 at 14:05
  • If the device is rooted then user also uninstall application by going in to save mode . – Hanan Apr 24 '15 at 14:07
  • No. no the app (e.g. AppLock) doesn't take If the device is rooted in account. it works on the two device-modes (rooted & not-rooted). – M_B216 Apr 24 '15 at 14:10
  • Maybe it has something to do with "Drawing above other apps" `android.permission.SYSTEM_ALERT_WINDOW`? But again, I'll doubt it will be possible to prompt with your app before an un-installation (because the un-installation process does not need to run the app). – shkschneider Apr 24 '15 at 14:16
  • yes, that's right, but this permission not enough, it must has a service (listener to check when the user is trying to uninstall an app). so how could this service be done if you know? – M_B216 Apr 24 '15 at 14:20

0 Answers0