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

Commit 8f00bb4d authored by Austen Dicken's avatar Austen Dicken
Browse files

telephony: d2vzw data fix

this is a hackish fix to the SamsungCDMAQualcommRIL that checks if
we're a CDMA phone and then notifies the RIL that the RUIM isn't ready.
this apparently triggers the RIL to read the CSIM card and provision
data properly.

Change-Id: Icddbe78d610765d456fe41a072e04dfe8567e026
parent ace86d5a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -629,7 +629,7 @@ public class QualcommSharedRIL extends RIL implements CommandsInterface {
        }
    }

    private void setRadioStateFromRILInt (int stateCode) {
    protected void setRadioStateFromRILInt (int stateCode) {
        CommandsInterface.RadioState radioState;
        HandlerThread handlerThread;
        Looper looper;
+9 −3
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ import java.util.Collections;
 * Samsung CDMA RIL doesn't send CDMA NV in RIUM infomation format which causes the CDMA RIL stack to crash and end up not being provisioned.
 * Samsung put CDMA NV in GSM format. I forced the RIL stack to process CDMA NV request as a GSM SIM in CDMA mode.
 * Custom Qualcomm No SimReady RIL using the latest Uicc stack
 * Check for CDMA phone on RADIO_ON* event and if so set status to RUIM_NOT_READY to trigger CSIM/RUIM processing
 *
 * {@hide}
 */
@@ -101,7 +102,6 @@ public class SamsungCDMAQualcommRIL extends QualcommSharedRIL implements Command
        appIndex = status.getGsmUmtsSubscriptionAppIndex();
        Log.d(LOG_TAG, "This is a CDMA PHONE " + appIndex);


        if (numApplications > 0) {
            IccCardApplication application = status.getApplication(appIndex);
            mAid = application.aid;
@@ -117,7 +117,8 @@ public class SamsungCDMAQualcommRIL extends QualcommSharedRIL implements Command
        return status;
    }

    private void setRadioStateFromRILInt (int stateCode) {
    @Override
    protected void setRadioStateFromRILInt (int stateCode) {
        CommandsInterface.RadioState radioState;
        HandlerThread handlerThread;
        Looper looper;
@@ -147,8 +148,12 @@ public class SamsungCDMAQualcommRIL extends QualcommSharedRIL implements Command
                    mIccHandler = new IccHandler(this,looper);
                    mIccHandler.run();
                }
                radioState = CommandsInterface.RadioState.SIM_NOT_READY;

                if (mPhoneType == RILConstants.CDMA_PHONE) {
                    radioState = CommandsInterface.RadioState.RUIM_NOT_READY;
                } else {
                    radioState = CommandsInterface.RadioState.SIM_NOT_READY;
                }
                setRadioState(radioState);
                break;
            default:
@@ -157,6 +162,7 @@ public class SamsungCDMAQualcommRIL extends QualcommSharedRIL implements Command

        setRadioState (radioState);
    }

    @Override
    protected Object
    responseSignalStrength(Parcel p) {