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

Commit b3251945 authored by Susheel nyamala's avatar Susheel nyamala Committed by Steve Kondik
Browse files

Add support for icc operator numeric

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

    /**
     * Returns the icc operator numeric for a given subId
     *
     */
    /** {@hide} */
    public String getIccOperatorNumeric(long subId) {
       try{
            return getITelephony().getIccOperatorNumeric(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
@@ -446,6 +446,13 @@ interface ITelephony {
      */
    int getVoiceNetworkTypeForSubscriber(long subId);

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

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