Merge "UserManager.setUserName: clearCallingId pre-Broadcast"
This commit is contained in:
@@ -1299,7 +1299,12 @@ public class UserManagerService extends IUserManager.Stub {
|
||||
}
|
||||
}
|
||||
if (changed) {
|
||||
sendUserInfoChangedBroadcast(userId);
|
||||
long ident = Binder.clearCallingIdentity();
|
||||
try {
|
||||
sendUserInfoChangedBroadcast(userId);
|
||||
} finally {
|
||||
Binder.restoreCallingIdentity(ident);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user