0

Is there any permission or method to prevent an app from being uninstalled even after factory reset like system app that does not get uninstalled?

3
  • I don't think you can do this.
    – Huey
    Commented Jun 13, 2015 at 4:24
  • 3
    only way is to make it a system app for which you need root Commented Jun 13, 2015 at 4:39
  • how to make it a system app? Commented Jun 13, 2015 at 5:58

2 Answers 2

2

You will have to root your device and move the app using any application to the system folder. This will enable your app to be on device even after you have formatted your device.

Here is the link of application which provides this administrative feature:

/system/app mover ★ ROOT ★

This app moves apps from and to the /system/app folder, making them a system app or a user app. System apps can get more priviledges, so some apps get more functionality when installed as a system app. On the other hand, system apps can not be uninstalled. So this app can also be used to convert system apps to normal user apps by moving them from the /system/app directory to /data/app directory.

WARNING: Uninstalling important system apps might result in a unusable device! Use this function at your own risk and only if you know what you're doing! Make a NANDroid backup first! I won't give any kind of support if something goes wrong - don't install this app if you're not okay with that.

2
0

Another method is to make a file from the app immutable via elevated (SU) shell command

chattr -i

This prevents the file from being moved or deleted, thus, preventing the uninstallation of the APK.

This method is more useful to prevent the app from being updated.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .