Loading src/java/com/android/internal/telephony/Phone.java +5 −0 Original line number Diff line number Diff line Loading @@ -1411,6 +1411,11 @@ public interface Phone { */ String getImei(); /** * Retrieves Nai for phones. Returns null if Nai is not set. */ String getNai(); /** * Retrieves the PhoneSubInfo of the Phone */ Loading src/java/com/android/internal/telephony/PhoneBase.java +4 −0 Original line number Diff line number Diff line Loading @@ -205,6 +205,10 @@ public abstract class PhoneBase extends Handler implements Phone { return mName; } public String getNai(){ return null; } /** * Return the ActionDetached string. When this action is received by components * they are to simulate detaching from the network. Loading src/java/com/android/internal/telephony/PhoneProxy.java +5 −0 Original line number Diff line number Diff line Loading @@ -1038,6 +1038,11 @@ public class PhoneProxy extends Handler implements Phone { return mActivePhone.getImei(); } @Override public String getNai() { return mActivePhone.getNai(); } @Override public PhoneSubInfo getPhoneSubInfo(){ return mActivePhone.getPhoneSubInfo(); Loading src/java/com/android/internal/telephony/PhoneSubInfo.java +8 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,14 @@ public class PhoneSubInfo { return mPhone.getImei(); } /** * Retrieves the NAI. */ public String getNai() { mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); return mPhone.getNai(); } /** * Retrieves the software version number for the device, e.g., IMEI/SV * for GSM phones. Loading src/java/com/android/internal/telephony/PhoneSubInfoController.java +11 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,17 @@ public class PhoneSubInfoController extends IPhoneSubInfo.Stub { } } public String getNaiForSubscriber(long subId) { PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(subId); if (phoneSubInfoProxy != null) { return phoneSubInfoProxy.getNai(); } else { Rlog.e(TAG,"getNai phoneSubInfoProxy is null" + " for Subscription:" + subId); return null; } } public String getImeiForSubscriber(long subId) { PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(subId); if (phoneSubInfoProxy != null) { Loading Loading
src/java/com/android/internal/telephony/Phone.java +5 −0 Original line number Diff line number Diff line Loading @@ -1411,6 +1411,11 @@ public interface Phone { */ String getImei(); /** * Retrieves Nai for phones. Returns null if Nai is not set. */ String getNai(); /** * Retrieves the PhoneSubInfo of the Phone */ Loading
src/java/com/android/internal/telephony/PhoneBase.java +4 −0 Original line number Diff line number Diff line Loading @@ -205,6 +205,10 @@ public abstract class PhoneBase extends Handler implements Phone { return mName; } public String getNai(){ return null; } /** * Return the ActionDetached string. When this action is received by components * they are to simulate detaching from the network. Loading
src/java/com/android/internal/telephony/PhoneProxy.java +5 −0 Original line number Diff line number Diff line Loading @@ -1038,6 +1038,11 @@ public class PhoneProxy extends Handler implements Phone { return mActivePhone.getImei(); } @Override public String getNai() { return mActivePhone.getNai(); } @Override public PhoneSubInfo getPhoneSubInfo(){ return mActivePhone.getPhoneSubInfo(); Loading
src/java/com/android/internal/telephony/PhoneSubInfo.java +8 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,14 @@ public class PhoneSubInfo { return mPhone.getImei(); } /** * Retrieves the NAI. */ public String getNai() { mContext.enforceCallingOrSelfPermission(READ_PHONE_STATE, "Requires READ_PHONE_STATE"); return mPhone.getNai(); } /** * Retrieves the software version number for the device, e.g., IMEI/SV * for GSM phones. Loading
src/java/com/android/internal/telephony/PhoneSubInfoController.java +11 −0 Original line number Diff line number Diff line Loading @@ -58,6 +58,17 @@ public class PhoneSubInfoController extends IPhoneSubInfo.Stub { } } public String getNaiForSubscriber(long subId) { PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(subId); if (phoneSubInfoProxy != null) { return phoneSubInfoProxy.getNai(); } else { Rlog.e(TAG,"getNai phoneSubInfoProxy is null" + " for Subscription:" + subId); return null; } } public String getImeiForSubscriber(long subId) { PhoneSubInfoProxy phoneSubInfoProxy = getPhoneSubInfoProxy(subId); if (phoneSubInfoProxy != null) { Loading