Merge "Fix DevicePolicyManager crash when settings password quality (and possibly others)." into jb-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3c1a201187
@@ -721,7 +721,13 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
|
|||||||
private void sendChangedNotification() {
|
private void sendChangedNotification() {
|
||||||
Intent intent = new Intent(DevicePolicyManager.ACTION_DEVICE_POLICY_MANAGER_STATE_CHANGED);
|
Intent intent = new Intent(DevicePolicyManager.ACTION_DEVICE_POLICY_MANAGER_STATE_CHANGED);
|
||||||
intent.setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
|
intent.setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY);
|
||||||
mContext.sendBroadcastAsUser(intent, UserHandle.ALL);
|
long ident = Binder.clearCallingIdentity();
|
||||||
|
try {
|
||||||
|
// TODO: This shouldn't be sent to all users, if DPM is per user.
|
||||||
|
mContext.sendBroadcastAsUser(intent, UserHandle.ALL);
|
||||||
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(ident);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void loadSettingsLocked() {
|
private void loadSettingsLocked() {
|
||||||
|
|||||||
Reference in New Issue
Block a user