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

Commit ba470222 authored by Amit Mahajan's avatar Amit Mahajan Committed by android-build-merger
Browse files

Merge "Get isim card data use subId." am: e36b65e4

am: cf95dc6d

Change-Id: I7f7169f4494951750d759aabea2147b08c6e6642
parents 22fdeabb cf95dc6d
Loading
Loading
Loading
Loading
+75 −35
Original line number Diff line number Diff line
@@ -332,8 +332,12 @@ public class PhoneSubInfoController extends IPhoneSubInfo.Stub {
    }


    public String getIsimImpi() {
        Phone phone = getPhone(getDefaultSubscription());
    /**
    * get the Isim Impi based on subId
    */
    public String getIsimImpi(int subId) {
        Phone phone = getPhone(subId);
        if (phone != null) {
            mContext.enforceCallingOrSelfPermission(READ_PRIVILEGED_PHONE_STATE,
                    "Requires READ_PRIVILEGED_PHONE_STATE");
            IsimRecords isim = phone.getIsimRecords();
@@ -342,10 +346,18 @@ public class PhoneSubInfoController extends IPhoneSubInfo.Stub {
            } else {
                return null;
            }
        } else {
            loge("getIsimImpi phone is null for Subscription:" + subId);
            return null;
        }
    }

    public String getIsimDomain() {
        Phone phone = getPhone(getDefaultSubscription());
    /**
    * get the Isim Domain based on subId
    */
    public String getIsimDomain(int subId) {
        Phone phone = getPhone(subId);
        if (phone != null) {
            mContext.enforceCallingOrSelfPermission(READ_PRIVILEGED_PHONE_STATE,
                    "Requires READ_PRIVILEGED_PHONE_STATE");
            IsimRecords isim = phone.getIsimRecords();
@@ -354,10 +366,18 @@ public class PhoneSubInfoController extends IPhoneSubInfo.Stub {
            } else {
                return null;
            }
        } else {
            loge("getIsimDomain phone is null for Subscription:" + subId);
            return null;
        }
    }

    public String[] getIsimImpu() {
        Phone phone = getPhone(getDefaultSubscription());
    /**
    * get the Isim Impu based on subId
    */
    public String[] getIsimImpu(int subId) {
        Phone phone = getPhone(subId);
        if (phone != null) {
            mContext.enforceCallingOrSelfPermission(READ_PRIVILEGED_PHONE_STATE,
                    "Requires READ_PRIVILEGED_PHONE_STATE");
            IsimRecords isim = phone.getIsimRecords();
@@ -366,10 +386,18 @@ public class PhoneSubInfoController extends IPhoneSubInfo.Stub {
            } else {
                return null;
            }
        } else {
            loge("getIsimImpu phone is null for Subscription:" + subId);
            return null;
        }
    }

    public String getIsimIst() throws RemoteException {
        Phone phone = getPhone(getDefaultSubscription());
    /**
    * get the Isim Ist based on subId
    */
    public String getIsimIst(int subId) throws RemoteException {
        Phone phone = getPhone(subId);
        if (phone != null) {
            mContext.enforceCallingOrSelfPermission(READ_PRIVILEGED_PHONE_STATE,
                    "Requires READ_PRIVILEGED_PHONE_STATE");
            IsimRecords isim = phone.getIsimRecords();
@@ -378,10 +406,18 @@ public class PhoneSubInfoController extends IPhoneSubInfo.Stub {
            } else {
                return null;
            }
        } else {
            loge("getIsimIst phone is null for Subscription:" + subId);
            return null;
        }
    }

    public String[] getIsimPcscf() throws RemoteException {
        Phone phone = getPhone(getDefaultSubscription());
    /**
    * get the Isim Pcscf based on subId
    */
    public String[] getIsimPcscf(int subId) throws RemoteException {
        Phone phone = getPhone(subId);
        if (phone != null) {
            mContext.enforceCallingOrSelfPermission(READ_PRIVILEGED_PHONE_STATE,
                    "Requires READ_PRIVILEGED_PHONE_STATE");
            IsimRecords isim = phone.getIsimRecords();
@@ -390,6 +426,10 @@ public class PhoneSubInfoController extends IPhoneSubInfo.Stub {
            } else {
                return null;
            }
        } else {
            loge("getIsimPcscf phone is null for Subscription:" + subId);
            return null;
        }
    }

    public String getIsimChallengeResponse(String nonce) throws RemoteException {