Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to implement feature like applock advance protection in my app

Tags:

android

I want to make the app which is similar to AppLock in android.app lock has a advance protection feature which stops uninstalling the application.It works with out rooting the phone. I tried hours together and tried so many solutions of similar kind of question from stackoverflow but could not make through it.

while doing this I came across "device admin rights".

  1. can I do thing which I want to do using admin rights.

  2. if not how AppLock advance protection works i mean how it restricting the user to uninstall the application.

like image 956
Tirupati Rao Avatar asked Feb 02 '16 22:02

Tirupati Rao


1 Answers

You need to make your app as device owner-it has higher privileges than the device admin app.

For more info refer-http://florent-dupont.blogspot.com/2015/02/10-things-to-know-about-device-owner.html and here https://source.android.com/devices/tech/admin/provision.html

You can set a policy using the admins/owner app which will prevent uninstallation.

You can also have a look at MDM solution provided by the OEMs. Samsung has very powerful APIs to manage every aspect of the device-https://www.samsungknox.com/en/partners/mobile-device-managers

like image 104
rupesh jain Avatar answered Sep 28 '22 08:09

rupesh jain