expose getIsimDomain to systemAPI
This is required for carrier apps to get Imsi domain name as part of request URI. Bug: 115884625 Test: telephony unit test Change-Id: Iad405dc2b2f182039a828e4a4709d273579a8273
This commit is contained in:
@@ -4138,11 +4138,16 @@ public class TelephonyManager {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the IMS home network domain name that was loaded from the ISIM.
|
||||
* @return the IMS domain name, or null if not present or not loaded
|
||||
* Returns the IMS home network domain name that was loaded from the ISIM {@see #APPTYPE_ISIM}.
|
||||
* @return the IMS domain name. Returns {@code null} if ISIM hasn't been loaded or IMS domain
|
||||
* hasn't been loaded or isn't present on the ISIM.
|
||||
*
|
||||
* <p>Requires Permission:
|
||||
* {@link android.Manifest.permission#READ_PRIVILEGED_PHONE_STATE READ_PRIVILEGED_PHONE_STATE}
|
||||
* @hide
|
||||
*/
|
||||
@UnsupportedAppUsage
|
||||
@SystemApi
|
||||
@RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
|
||||
public String getIsimDomain() {
|
||||
try {
|
||||
IPhoneSubInfo info = getSubscriberInfo();
|
||||
|
||||
Reference in New Issue
Block a user