• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help How to disable uninstalling

RJ Talha

Lurker
Hi Pro Members
Now day's i am struggling to find a solution but all vain.
Reason is that i just want to stop or disable the uninstalling the specific app because my girl friend uninstall most of applications which are used for social media like Whatsapp or IMO or Hangout because she's doubt i might be cheating on her and she thought i deleted all conversation or history and media which is being shared and i don't like to argue with her because i love her.
Moreover i tried many method's like protecting my application's from an app which is downloaded from Play Store like ( App Lock)
but i allowed to be uninstalled after confirming the Pattern or PIN code.
I want my application not be uninstalled by system.
And also that mine phone is Rooted
 
Welcome to AF, @RJ Talha...

It sounds like you've tried the obvious path of using a locking app, but I don't think there's a way to keep a user app from being uninstalled.

The best you can do would be to hide the presence of a particular app which you could do in two ways:

1. Use a custom launcher which supports this--i.e., hiding apps from showing up in it's app drawer--Nova Launcher does this and does not require root. The downside here is that it would be fairly easy to disable the custom launcher and return to the stock launcher which would reveal everything

2. Since you are rooted, you could, from a root shell (i.e., do an "su" invocation first), use the pm hide <app package name> command to make the app's icon disappear from the home screen and your app drawer. The app can, however, still be found in the Settings -> Apps list, so it still could be found and remove that way. Use the pm unhide <app package name> to make the app icon reappear.

The other option might be to try to make the app(s) into system apps with something like Titanium Backup. I've read that folks have had mixed success doing this since not all apps can be converted and even those that can do not necessarily run correctly.

Other than keeping your device locked and not giving out your PIN or unlock pattern (or physically keeping the device away from someone you don't want to access things), not sure what else to tell you.

Cheers!
 
Back
Top Bottom