From 0f0a5bd651d6184ed6c45e1cd8069bb8f09559d1 Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Thu, 3 Aug 2023 11:20:37 -0700 Subject: [PATCH] Do not finish lockscreen for multiple sims. Currently, in the logic, if the lockscreen is disabled, we finish lockscreen instead of proceeding ot the second sim. I have removed this logic. We are expecting the security mode to be SimPin/SimPuk if we are expecting an additional sim. We also do not want to finish if the security mode is supposed to be secure. Fixes: 282107332 Test: added a unit test. Test: test 2 esim cards and restart with none security. Test: test 2 esim cards and restart with swipe security. Test: test 2 esim cards and restart with pin security. Test: test 2 esim cards and restart with pin security from sim-puk to sim- pin. Change-Id: I519fcb995a5915100bd97faaa9618d573c64bcc2 --- .../KeyguardSecurityContainerController.java | 3 ++- ...KeyguardSecurityContainerControllerTest.kt | 24 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java index 3b09910fbe88a..8469335b371df 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java @@ -826,7 +826,8 @@ public class KeyguardSecurityContainerController extends ViewController