Vikas Pandey
Vikas Pandey

Reputation: 1225

can not Deactivate this device Administrator

Have an application granted device administration, while trying to uninstall went to device Administrator screen, but the option to Deactivate this device administrator text's visibility is dim and i can not deactivate.

Upvotes: 0

Views: 8608

Answers (2)

Rizwan Ahmed
Rizwan Ahmed

Reputation: 1292

Run the following command in terminal.

adb shell dpm remove-active-admin com.your.App.Package/.DevAdminReceiver 0

Upvotes: 1

Vikas Pandey
Vikas Pandey

Reputation: 1225

an app which is provisioned to be be device owner can not be removed as device owner by the user.

i think it make sense. once the Device Owner application is set, it cannot be unset with the adb dpm command. it can be programmatically done by this code called by owner app itself.

DevicePolicyManager.clearDeviceOwnerApp() 

or it has to be factory reset your device.

Upvotes: 1

Related Questions