device-admin

How to make my app a device owner?

核能气质少年 提交于 2019-11-26 10:22:39
The device policy manager API docs and the android 5.0 overview both mention something about a device owner app . How can I setup my app as a device owner ? Edit: Is there any other ways than rooting and NFC if available please share. Florent Dupont 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

Lock the Android device programmatically

佐手、 提交于 2019-11-26 03:18:59
问题 I have been trying to lock the device through program. But I can\'t find the solution still. I want to lock Android froyo2.2 through program. I have tried keyguardmanager and DeviceAdminManager. My app is to remote lock the device. When message is received with some code words to lock then it locks the phone. I have found many Api_demo program as solution but I can\'t extract lock code alone from that and find solution. 回答1: The activity class should be inner class and the outter class should

How to make my app a device owner?

泪湿孤枕 提交于 2019-11-26 01:58:04
问题 The device policy manager API docs and the android 5.0 overview both mention something about a device owner app . How can I setup my app as a device owner ? Edit: Is there any other ways than rooting and NFC if available please share. 回答1: 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