How to create Apps in android which can't be uninstalled? Can we make System apps?

我的未来我决定 提交于 2019-11-30 06:44:34

I made custom Launcher, which can't be uninstalled.

  1. Important: root the phone
  2. install application as system application (install into /system/app) from recovery mode.
  3. Optional: subscribe for package removal, check if user tries to delete your app - and don't allow him to do this action (close package removal activity)

I made archive, which can be installed from recovery mode. Also my Launcher requires custom Superuser application (I don't want see notifications from Superuser app, when my Launcher runs root commands - silently give root access to my Launcher).

What I have in result: Launcher application, installed as system app (can't be removed). Also I blocked other launchers installation, added white list of allowed applications (don't install applications, which can manage file system and modify something important).

This solution full of tricks, but it's easier to implement than custom ROM.

If you customize the ROM, and install it to device somehow (contact device manufacturer from China for ex., request target device drivers and build the ROM on device), you can sign your application with system key, place it with other system apps, and then it can't be removed. In this case root not needed, but it requires much more time and power to implement.

If you will root device programmatically, than you should have exploit, which makes rooting. And different devices are rooted differently.

It's simple there is something like Device Administrator but please note that user will be prompted to enable admin mode on installed app.

HERE you can find quite good example description and tutorial - please try.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!