device-admin
How to make my app a device owner?
There’s actually a way other than NFC and rooting to set an application as a device owner app. You could use the dpm command line tool from an adb shell. Usage : usage: dpm [subcommand] [options] usage: dpm set-device-owner <COMPONENT> usage: dpm set-profile-owner <COMPONENT> <USER_ID> dpm set-device-owner: Sets the given component as active admin, and … Read more
How to remove an app with active device admin enabled on Android?
Go to SETTINGS->Location and Security-> Device Administrator and deselect the admin which you want to uninstall. Now uninstall the application. If it still says you need to deactivate the application before uninstalling, you may need to Force Stop the application before uninstalling.