Creating an uninstallable system application

What are the prerequisites for obtaining the following behavior:

  • application cannot be uninstalled. NOR disabled.
  • application works as a system application

What I know so far:

  • rooted phone => in fact, not necessarily if the application is a system application

What I tried:

  • install the application under /system/app=>, this makes it uninstallable, but it is still deactivated
  • install the application under /system/app-priv=> does not change anything compared to installing in/system/app
  • install the application under /system/app-priv/<app_name>=> this violates the application

Ideas

  • To make an application a system application correctly, it must be signed as a system application? Could it be? Then can I move it to /system/app-priv/<app_name>? Just guessing, but I think I already read something like this when I read about something else ... If this is the case, how can I sign my application as a system application?
  • Am I mistaken or is something missing?

I am open to alternative solutions, all I want is that my application cannot be uninstalled and disabled

+4
source share

Source: https://habr.com/ru/post/1682719/


All Articles