Loading core/java/android/service/gatekeeper/IGateKeeperService.aidl +7 −0 Original line number Diff line number Diff line Loading @@ -69,4 +69,11 @@ interface IGateKeeperService { * @param uid the Android user id */ long getSecureUserId(int uid); /** * Clears secure user id associated with the provided Android ID. * Must be called when password is set to NONE. * @param uid the Android user id. */ void clearSecureUserId(int uid); } services/core/java/com/android/server/LockSettingsService.java +4 −0 Original line number Diff line number Diff line Loading @@ -388,7 +388,9 @@ public class LockSettingsService extends ILockSettings.Stub { byte[] currentHandle = getCurrentHandle(userId); if (pattern == null) { getGateKeeperService().clearSecureUserId(userId); mStorage.writePatternHash(null, userId); maybeUpdateKeystore(null, userId); return; } Loading @@ -414,7 +416,9 @@ public class LockSettingsService extends ILockSettings.Stub { byte[] currentHandle = getCurrentHandle(userId); if (password == null) { getGateKeeperService().clearSecureUserId(userId); mStorage.writePasswordHash(null, userId); maybeUpdateKeystore(null, userId); return; } Loading Loading
core/java/android/service/gatekeeper/IGateKeeperService.aidl +7 −0 Original line number Diff line number Diff line Loading @@ -69,4 +69,11 @@ interface IGateKeeperService { * @param uid the Android user id */ long getSecureUserId(int uid); /** * Clears secure user id associated with the provided Android ID. * Must be called when password is set to NONE. * @param uid the Android user id. */ void clearSecureUserId(int uid); }
services/core/java/com/android/server/LockSettingsService.java +4 −0 Original line number Diff line number Diff line Loading @@ -388,7 +388,9 @@ public class LockSettingsService extends ILockSettings.Stub { byte[] currentHandle = getCurrentHandle(userId); if (pattern == null) { getGateKeeperService().clearSecureUserId(userId); mStorage.writePatternHash(null, userId); maybeUpdateKeystore(null, userId); return; } Loading @@ -414,7 +416,9 @@ public class LockSettingsService extends ILockSettings.Stub { byte[] currentHandle = getCurrentHandle(userId); if (password == null) { getGateKeeperService().clearSecureUserId(userId); mStorage.writePasswordHash(null, userId); maybeUpdateKeystore(null, userId); return; } Loading