Loading src/java/com/android/internal/telephony/PhoneSubInfoController.java +75 −35 Original line number Diff line number Diff line Loading @@ -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(); Loading @@ -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(); Loading @@ -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(); Loading @@ -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(); Loading @@ -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(); Loading @@ -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 { Loading Loading
src/java/com/android/internal/telephony/PhoneSubInfoController.java +75 −35 Original line number Diff line number Diff line Loading @@ -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(); Loading @@ -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(); Loading @@ -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(); Loading @@ -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(); Loading @@ -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(); Loading @@ -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 { Loading