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

Commit 0e029f44 authored by Hwangoo Park's avatar Hwangoo Park
Browse files

Avoid setEmergencyMode for SMS when radio is/will be turned off

This change is to prevent an exception from being thrown for
setEmergencyMode when making an emergency call in airplane mode and
sending an emergency SMS while the radio is off or being turned off, and
to prevent errors during the emergency call procedure.
This is because if setEmergencyMode is called while the radio is turning
on or turning off, the modem may not handle it properly and may throw an
exception. If this happens, the state managed by APDS may not match the
modem, which may cause problems in the subsequent emergency call
procedure.

Bug: 409539285
Flag: EXEMPT bugfix
Test: atest EmergencyStateTrackerTest
Test: manual (verified that the emergency call proceeds normally when an
emergency SMS is sent by ELS while making an emergency call in APM)

Change-Id: I772dbb999f13803b68e6f64cd765097ddde9e916
parent 7a474a99
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