uninstallable app for Android

后端 未结 2 903
温柔的废话
温柔的废话 2020-12-17 02:54

I want to make an app in android which should not be uninstalled by the user once its get installed in the device, which should be like an default app like market.

2条回答
  •  一个人的身影
    2020-12-17 03:33

    You can set app as device administrator. After user confirmation as device app users can't uninstall it while it has device admin status.

    Problem is keeping it to be device admin as user can withdraw this status from it. App will get intent notification and may provide text to persuade user not to withdraw device admin status but if he/she insist app can respond by setting password and locking the whole device or to wipe data from device. This way the app still can be uninstall (by guessing the password) but you may take some actions to protect data and/or to send warning (if there is a connection) to some online service of yours.

提交回复
热议问题