Merge "Clear calling identity before calling mountService" into nyc-dev
This commit is contained in:
@@ -1048,7 +1048,13 @@ public class LockSettingsService extends ILockSettings.Stub {
|
|||||||
private void changeUserKey(int userId, byte[] token, byte[] secret)
|
private void changeUserKey(int userId, byte[] token, byte[] secret)
|
||||||
throws RemoteException {
|
throws RemoteException {
|
||||||
final UserInfo userInfo = UserManager.get(mContext).getUserInfo(userId);
|
final UserInfo userInfo = UserManager.get(mContext).getUserInfo(userId);
|
||||||
getMountService().changeUserKey(userId, userInfo.serialNumber, token, null, secret);
|
final IMountService mountService = getMountService();
|
||||||
|
final long callingId = Binder.clearCallingIdentity();
|
||||||
|
try {
|
||||||
|
mountService.changeUserKey(userId, userInfo.serialNumber, token, null, secret);
|
||||||
|
} finally {
|
||||||
|
Binder.restoreCallingIdentity(callingId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user