Prevent unauthorized person from uninstalling my android app

12,374

If you're on an un-rooted device without a custom version of Android the only way that could be possible is making your app a device-admin app:

To uninstall an existing device admin application, users need to first unregister the application as an administrator.

Share:
12,374
Ram
Author by

Ram

Updated on June 23, 2022

Comments

  • Ram
    Ram almost 2 years

    I am working on anti theft Application.I want only authorized users to uninstall my app.Like, when they try to uninstall my app they must enter a valid password and proceed.I dont wanna block uninstallation of other apps that user have installed..is there a specific way to do that..?

  • Ram
    Ram about 10 years
    Sorry for delay..Menwhile i was working on another project..thats k even if i make my app as device admin app anyone who steal that device can goto settings and disable device admin permission for my app..right..?