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

Commit 09ecabc3 authored by Susheel nyamala's avatar Susheel nyamala Committed by Linux Build Service Account
Browse files

Add support for icc operator numeric

With Uicc card, when device is camped for eHRPD network,
mcc-mnc values populated on APN editor are wrong.
This is because the icc property used to read mcc-mnc is
updated with mcc-mnc value from RuimRecords.

Fix is to get family type from PS RAT and read mcc-mnc value
from icc records obtained from RAT family type

Change-Id: I55dd21a473827b8a7dc5e6ccba21ceb626403b0b
CRs-Fixed: 727780
parent 86feb911
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -1519,6 +1519,21 @@ public class TelephonyManager {
        }
    }

    /**
     * Returns the icc operator numeric for a given subId
     *
     */
    /** {@hide} */
    public String getIccOperatorNumericForData(int subId) {
       try{
            return getITelephony().getIccOperatorNumericForData(subId);
       } catch (RemoteException ex) {
           return null;
       } catch (NullPointerException ex) {
           return null;
       }
    }

    /** Unknown network class. {@hide} */
    public static final int NETWORK_CLASS_UNKNOWN = 0;
    /** Class of broadly defined "2G" networks. {@hide} */
+7 −0
Original line number Diff line number Diff line
@@ -487,6 +487,13 @@ interface ITelephony {
      */
    int getVoiceNetworkTypeForSubscriber(int subId, String callingPackage);

    /**
      * Return icc operator numeric for given subId
      * @param subId user preferred subId.
      * Returns icc operator numeric
      */
    String getIccOperatorNumericForData(int subId);

    /**
     * Return true if an ICC card is present
     */