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

Commit 9cfdf504 authored by Pawit Pornkitprasan's avatar Pawit Pornkitprasan
Browse files

SamsungRIL: Fix data connection after pin unlock

If the user has PIN-locked his phone, data connectivity will not
work because the RIL sends APPSTATE_UNKNOWN and does not update
it to APPSTATE_READY. We inject the state update if there's a
signal change.

Change-Id: Id64e95ebcadd1d7ff181f8d9c2ee4f18e6ae48f1
parent 51e9292e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -575,6 +575,14 @@ public class SamsungRIL extends RIL implements CommandsInterface {
    @Override
    protected Object
    responseSignalStrength(Parcel p) {
        // When SIM is PIN-unlocked, the RIL responds with APPSTATE_UNKNOWN and
        // does not follow up with RIL_UNSOL_RESPONSE_SIM_STATUS_CHANGED. We
        // notify the system here.
        String state = SystemProperties.get(TelephonyProperties.PROPERTY_SIM_STATE);
        if ("NOT_READY".equals(state) && mIccStatusChangedRegistrants != null) {
            mIccStatusChangedRegistrants.notifyRegistrants();
        }

        int numInts = 12;
        int response[];