We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 753e128 + b7a6859 commit 3c1a201Copy full SHA for 3c1a201
services/java/com/android/server/DevicePolicyManagerService.java
@@ -721,7 +721,13 @@ private void saveSettingsLocked() {
721
private void sendChangedNotification() {
722
Intent intent = new Intent(DevicePolicyManager.ACTION_DEVICE_POLICY_MANAGER_STATE_CHANGED);
723
intent.setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
724
- mContext.sendBroadcastAsUser(intent, UserHandle.ALL);
+ long ident = Binder.clearCallingIdentity();
725
+ try {
726
+ // TODO: This shouldn't be sent to all users, if DPM is per user.
727
+ mContext.sendBroadcastAsUser(intent, UserHandle.ALL);
728
+ } finally {
729
+ Binder.restoreCallingIdentity(ident);
730
+ }
731
}
732
733
private void loadSettingsLocked() {
0 commit comments