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

Commit f950ec9b authored by Jim Miller's avatar Jim Miller Committed by android-build-merger
Browse files

Merge "Fix missing permission check when saving pattern/password" into mnc-dev...

Merge "Fix missing permission check when saving pattern/password" into mnc-dev am: 45c77d95 am: 9bf8474c
am: 89e3f2ba

* commit '89e3f2ba':
  Fix missing permission check when saving pattern/password

Change-Id: Ice157c9ee86cf29380766d3ec266cb57594a5868
parents 72981867 89e3f2ba
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -428,6 +428,7 @@ public class LockSettingsService extends ILockSettings.Stub {
    @Override
    public void setLockPattern(String pattern, String savedCredential, int userId)
            throws RemoteException {
        checkWritePermission(userId);
        byte[] currentHandle = getCurrentHandle(userId);

        if (pattern == null) {
@@ -456,6 +457,7 @@ public class LockSettingsService extends ILockSettings.Stub {
    @Override
    public void setLockPassword(String password, String savedCredential, int userId)
            throws RemoteException {
        checkWritePermission(userId);
        byte[] currentHandle = getCurrentHandle(userId);

        if (password == null) {