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

Commit 1fb41e59 authored by Justin DeMartino's avatar Justin DeMartino Committed by Bruno Martins
Browse files

Fix Build Credentials refactored to use byte[]



 Conflicts:
	services/core/java/com/android/server/locksettings/LockSettingsService.java

[wight554: updated code from LA.QSSI.11.0.r1-05600-qssi.0]

Bug: 127810705
Change-Id: I766b553aef0479c286c0eee7302bb5e3b04b85bf
Signed-off-by: default avatarVolodymyr Zhdanov <wight554@gmail.com>
parent 0cdb87b9
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2013,7 +2013,9 @@ public class LockSettingsService extends ILockSettings.Stub {
                                            0, userId, progressCallback);
            if ((response.getResponseCode() == VerifyCredentialResponse.RESPONSE_OK) &&
                                            (userId == UserHandle.USER_OWNER)) {
                    retainPassword(credential);
                    //TODO(b/127810705): Update to credentials to use byte[]
                    String credentialString = credential.isNone() ? null : new String(credential.getCredential());
                    retainPassword(credentialString);
            }
            return response;
        } finally {