Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a482c6e5 authored by Paul Crowley's avatar Paul Crowley Committed by Android (Google) Code Review
Browse files

Merge "Clear calling identity before calling mountService" into nyc-dev

parents 0a7ec886 815036f0
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1048,7 +1048,13 @@ public class LockSettingsService extends ILockSettings.Stub {
    private void changeUserKey(int userId, byte[] token, byte[] secret)
            throws RemoteException {
        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