am 1f628c02: am aacb2f77: am 4575f2a9: Merge "Use foreground broadcast to get device admin msg." into lmp-dev

* commit '1f628c02fddfa25ba8af5b6478b4d34a20ca65ea':
  Use foreground broadcast to get device admin msg.
This commit is contained in:
Dianne Hackborn
2014-07-23 01:40:23 +00:00
committed by Android Git Automerger

View File

@@ -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() {