Prevent app to uninstall like system app android

1.4k Views Asked by At

We are developing one app that will be pre-installed on device manufacture time. seems like a bloatware app.

we want to prevent our app to uninstall by user like Contacts and other pre-installed app.

i searched a lot on google. but getting the same technique like using device rooting.

i also tried by using this app. but when i am clicking on any app to move to "System/apps", it gives me message

"/system/app mover has been granted superuser permission"

and then i am getting Error i.e

"Error: cp: applet not found"

with Ok Option.

So i tried by using "Es File Explorer" to move app from "data/app/" to "System/app/" its also moving app to "System/app" but when i am going through App Manager, it allow me to "Uninstall". but i want to disable "Uninstall button" like other pre-installed app act.

i tried the same method.

  1. Rooted my device.
  2. Moved my app from data/app/ to system/app/
  3. set permission rw- r-- r-- and reboot.

Still i am able to uninstall my app. Can anyone please help me to fix this issue.

0

There are 0 best solutions below