Merge "UserManager.setUserName: clearCallingId pre-Broadcast"

This commit is contained in:
Adam Bookatz
2019-03-18 16:38:47 +00:00
committed by Android (Google) Code Review

View File

@@ -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);
}
}
}