How admin enterprises application prevent the app from uninstalling from the android device?

kiruba

Member
Mar 21, 2024
6
1
3
Recentely i have seen one go the application in playstore where the uninstall button in app info where is controlled via API Value from web , i was wondering because 90 percentage android developers says it is not possible , i installed that appliccation in my phone they are prompted that they are getting device admin app permission from user and prevent the user not to uninstall basically they are parental control application , i am curious on it and i am developing a parental app and decided to have this feature but i got device admin permisison but still can't access that feature . any ideas and suggestion from you guys . Thanks in advance
 
I moved this to the Software Development forum for more specific traffic.
 
Device Admin permission allows you to control your Android app's uninstallation. To disable it, you need to implement a DeviceAdminReceiver, implement the DeviceAdminReceiver, and handle the device admin activation.
thanks for your suggestion @iamthecosmicdust , but here probelm is not in activating or deactivation , as i said one of application from play having control over API the uninstall , like from web if they turn off the option of prevent uninstall , then only i can able to go to device admin deactivation page , else it is not moving to deactivation page , so please suggest some ideas over in this scenario how to do it programatically without rooting the device