Run intent DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN from a service
- by Zorb
I have a service and I want the service promote to enable it as Device Admin,
until now I launched this kind of UI interactions from the service like
Intent intent2 = new Intent();
intent2.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent2.setAction(android.content.Intent.ACTION_VIEW);
intent2.setDataAndType(uri,…