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

Commit 28227a3e authored by Katsuyuki Hirayama's avatar Katsuyuki Hirayama Committed by Beverly Tai
Browse files

Add handling of permanent disabled sims

sim state is "UNKNOWN" when stateExtra is LOCKED and
lockedReason=PERM_DISABLED. Correct this.

Test: Manual
Bug: 265564214
Bug: 254300616
(cherry picked from https://android-review.googlesource.com/q/commit:4968b408b52478aeb7daf7319d299be492d6365a)
Merged-In: I01c46cd868abd3e91fa37d80f5b75aec4b9f0014
Change-Id: I01c46cd868abd3e91fa37d80f5b75aec4b9f0014
parent 67c8f87d
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -2090,6 +2090,8 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
                    state = TelephonyManager.SIM_STATE_PIN_REQUIRED;
                    state = TelephonyManager.SIM_STATE_PIN_REQUIRED;
                } else if (Intent.SIM_LOCKED_ON_PUK.equals(lockedReason)) {
                } else if (Intent.SIM_LOCKED_ON_PUK.equals(lockedReason)) {
                    state = TelephonyManager.SIM_STATE_PUK_REQUIRED;
                    state = TelephonyManager.SIM_STATE_PUK_REQUIRED;
                } else if (Intent.SIM_ABSENT_ON_PERM_DISABLED.equals(lockedReason)) {
                    state = TelephonyManager.SIM_STATE_PERM_DISABLED;
                } else {
                } else {
                    state = TelephonyManager.SIM_STATE_UNKNOWN;
                    state = TelephonyManager.SIM_STATE_UNKNOWN;
                }
                }