Sunday, July 16, 2017

Activate Device Administrator via ADB


Is it possible to activate Device Administrator via ADB command instead of tapping


"Setting -> Security -> Device Administrators --> Select App --> Activate"



on handheld?


If it's possible, how?



Answer



It's not possible. The settings code is specifically written to prevent this. The closest you can come is to bring up the Device administration settings page in the Settings app. You can do this with:


adb shell am start -S "'com.android.settings/.Settings\$DeviceAdminSettingsActivity'"

No comments:

Post a Comment

samsung galaxy s 2 - Cannot restore Kies backup after firmware upgrade

I backed up my Samsung Galaxy S2 on Kies before updating to Ice Cream Sandwich. After the upgrade I tried to restore, but the restore fails ...