[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)
Loading
Please register or sign in to comment