Home Forum

Adding any app into device administrator

For what reason? What are you looking to do and with what app?
#2 El Presidente, Sep 10, 2017
In order not to uninstall this application.
#3 Jasmin74, Sep 10, 2017
To manage Device Administrator capability of apps on your device go to Settings/Security/Device administrators. There you can turn on or off Device Administrator capability for apps that request that capability.

If there are any apps that have hidden Device Administrator capability you can try using the "Hidden Device Admin Detector" app available from Google Play to find and manage them.
#4 srglassw, Sep 10, 2017
If it s not there?
A regular application :D
#5 Jasmin74, Sep 10, 2017
If the app doesn't request it you can't grant it. You just have to remember not to delete it.

(Actually I guess you are trying to prevent someone else deleting it, since accidentally deleting apps isn't a big problem for most people. Administrator status won't stop a factory reset from removing it.)
#6 Hadron, Sep 11, 2017
It's ok if on factory reset it was deleted, but I don't want anyone to delete it.
#7 Jasmin74, Sep 11, 2017
#8 Phalon4, Sep 11, 2017
Of course it will be deleted by factory reset.. My concern is when working normally on it, I don't want any user to delete it..
I tried Applock & those stuff, not good.
#9 Jasmin74, Sep 11, 2017
This isn't your solution, I'm afraid. Only apps that request device administrator rights can be granted them, so you can't just make any app an administrator.
#10 Hadron, Sep 11, 2017
So do you suggest any other solution?
#11 Jasmin74, Sep 11, 2017
That's tricky, and might depend on the device/software you are using.

I almost suggested in that last post that using one of those app lock apps to lock the system settings app might do it: if the user can't access Settings > Applications it will be hard for them to delete an app. But then I tested on my phone and found that a long press on an app icon gave me the option to uninstall it. However, further testing shows that's true for Nova launcher (my default), but the device's built-in launcher does not offer that, so if I were using the default software the idea might work. You can still remove icons from the homescreen, but that doesn't delete the app (in general: if for example you are using a Xiaomi device with it's MIUI interface it might. It's been a long time since I played with MIUI). So locking the settings app might work, but you'll have to test on your device.

However, it also depends on what you are trying to protect against. Accidentally removing an app from the screen is something a kid can easily do inadvertently, but in most cases that doesn't delete the app. A launcher that allows you to lock the desktop is also a good protection against that (Nova does this, but it's easy to unlock if you want to. I think the unlock option is harder to find on some others). Locking the settings app is really protecting against deliberate deletion, but in most cases it's hard to delete apps accidentally. However, it's also harder to protect against deliberate deletion (the device administrator thing would only slow someone down, since that can be deselected easily).

I don't know whether using a guest account on the device would be helpful? I've never really used those so can't speak from experience, but the idea is that it would let you keep your data and setup separate from what they are able to use. It was originally a tablet-only feature, but has been available on phones in more recent Android versions.
#12 Hadron, Sep 11, 2017
Thank you! I have just disabled the package installer in order to prevent the uninstallation of an app.
#13 Jasmin74, Sep 19, 2017 at 11:36 AM
If you still needing that, here you go..act cautiously..I recommend do a back up before you submerge in those waters..

Or what do you think Hadron?
#14 Xavier Black, Sep 19, 2017 at 9:05 PM Last edited: Sep 19, 2017 at 9:10 PM