Merge "Use foreground broadcast to get device admin msg." into lmp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
db0f364c05
@@ -2575,6 +2575,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
|
||||
return;
|
||||
}
|
||||
Intent intent = new Intent(DeviceAdminReceiver.ACTION_DEVICE_ADMIN_DISABLE_REQUESTED);
|
||||
intent.setFlags(Intent.FLAG_RECEIVER_FOREGROUND);
|
||||
intent.setComponent(admin.info.getComponent());
|
||||
mContext.sendOrderedBroadcastAsUser(intent, new UserHandle(userHandle),
|
||||
null, new BroadcastReceiver() {
|
||||
|
||||
Reference in New Issue
Block a user