Fake sim status changed appropriately
On a VZW GN if we always do ENTER_SIM_PIN the GET_SIM_STATUS comes so quickly that it causes the SIMRecords to return an operator.numeric of 666666 instead of 311480. To fix this we only fake sim status changed when an error occurs on the CHANGE/ENTER SIM_PIN/PIN2. Also, faking on RIL_REQUEST_SET_FACILITY_LOCK on errors so on a VZW GN we automatically go to the main lock screen when the PUK is needed, Finally, on VZN GN RIL_REQUEST_ENTER_SIM_PUK we need to always fake RIL_RESPONSE_UNSOL_SIM_STATUS_CHANGED, otherwise we won't automatically leave the main lock screen when we enter the correct PUK. I also do this for RIL_REQUEST_ENTER_SIM_PUK2 for consistency. Bug: 7255789 Change-Id: I712cc5020970317922f0c3d686c621a6abcd552c
Loading
Please register or sign in to comment