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

Commit 523ed0f6 authored by Willy Hu's avatar Willy Hu
Browse files

[DSRM] Fix the unexpected recovery in the LAB

Problem:
- DSRM could incorrectly advance its recovery sequence if the user
  toggled radio power or mobile data, even if the network was
  consistently invalid and recovery hadn't been triggered by a
  validation failure.
- DSRM could attempt recovery after swapping from a working SIM to LAB SIM.

Solution:
- In setRecoveryAction(), add a check to prevent advancing the recovery
  step if the network is invalid (!mIsValidNetwork) and recovery
  has not yet been triggered (!isRecoveryAlreadyStarted()).
- Ensure `onSimStateChanged` handles `SIM_STATE_ABSENT` by calling
  reset(), it will reset all parameters.

Change-Id: Idd700c3bf770bf89dfec3b25f667c57ee63c691e
Flag: EXEMPT bugfix
Bug: 403149482
Test: atest DataStallRecoveryManager passed.
Test: LAB test passed without any command (b/403149482#comment25)
parent 6913d8b9
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