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

Skip to content
Commit 130cc554 authored by Hunsuk Choi's avatar Hunsuk Choi Committed by Android Build Coastguard Worker
Browse files

Switch phones if PUK locked in DSDS configuration

There can be cases that the Phone selected for emergency call
is not served in the modem since the modem stack corresponding
to the selected Phone has been stopped due to the SIM PIN/PUK
locked state while there is another stack with an active SIM.

In that case, setting emergency mode in the selected modem can
cause abnormal behavior in the modem side.

Determine whether the modem is active or not before setting
emergency mode, and switch Phones if it's not active.

Bug: 343862428
Test: atest EmergencyStateTrackerTest
Manual test:
Step 1. Power ON the device with two SIMs in 5G HOME only and
        3rd-party LTE coverage with 5G capapable SIM1 and not 5G capable SIM2.
Step 2. Set the SIM1 preferred for calls and data.
Step 3. Go to SIM lock settings and enter incorrect SIM PIN for SIM1, 3 times.
Step 4. Confirm that PUK lock screen is displayed.
Step 5. Initiate an emergency call and observe the behavior.
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:026ad2e32039c7c4ae59bd3516914cdb79e5d7b9)
Merged-In: I8a7e62900c30c35061f1fc63c952b5f7032f1788
Change-Id: I8a7e62900c30c35061f1fc63c952b5f7032f1788
parent a8c1f495
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment