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

Commit aab24347 authored by Takashi Matsuoka's avatar Takashi Matsuoka
Browse files

HTCQualcommRIL: Set mUSIM and mSetPreferredNetworkType

This is required to enable "GSM/WCDMA/LTE auto" mode on evita, and to make the device load that setting after reboot.

Change-Id: Iec563669f50724e7726b0c0e23f62910442cac76
parent c421acaf
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -107,7 +107,17 @@ public class HTCQualcommRIL extends QualcommSharedRIL implements CommandsInterfa
            Log.d(LOG_TAG, "This is a GSM PHONE " + appIndex);
        }

        mAid = status.getApplication(appIndex).aid;
        if (numApplications > 0) {
            IccCardApplication application = status.getApplication(appIndex);
            mAid = application.aid;
            mUSIM = application.app_type
                      == IccCardApplication.AppType.APPTYPE_USIM;
            mSetPreferredNetworkType = mPreferredNetworkType;

            if (TextUtils.isEmpty(mAid))
               mAid = "";
            Log.d(LOG_TAG, "mAid " + mAid);
        }

        return status;
    }