Loading src/java/com/android/internal/telephony/PhoneSubInfoController.java +75 −35 Original line number Diff line number Diff line Loading @@ -331,8 +331,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(); Loading @@ -341,10 +345,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(); Loading @@ -353,10 +365,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(); Loading @@ -365,10 +385,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(); Loading @@ -377,10 +405,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(); Loading @@ -389,6 +425,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 { Loading Loading
src/java/com/android/internal/telephony/PhoneSubInfoController.java +75 −35 Original line number Diff line number Diff line Loading @@ -331,8 +331,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(); Loading @@ -341,10 +345,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(); Loading @@ -353,10 +365,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(); Loading @@ -365,10 +385,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(); Loading @@ -377,10 +405,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(); Loading @@ -389,6 +425,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 { Loading