Programmatically deactivate a Device Admininstrator in Android?
问题 Is it possible to programmatically deactivate a (third-party) Device Administrator app? I was able to retrieve all the apps with Device Administrator activated using the DevicePolicyManager and getActiveAdmins(): final DevicePolicyManager dpm = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE); final List<ComponentName> adminList = dpm.getActiveAdmins(); for ( ComponentName app : adminList ) { Log.d(TAG, "App: ", app.getPackageName()); } However, in order to deactivate