Loading api/current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -48167,7 +48167,7 @@ package android.telephony { method @RequiresPermission("android.permission.READ_PRIVILEGED_PHONE_STATE") public String getImei(); method @RequiresPermission("android.permission.READ_PRIVILEGED_PHONE_STATE") public String getImei(int); method @RequiresPermission(anyOf={android.Manifest.permission.READ_PHONE_STATE, android.Manifest.permission.READ_SMS, android.Manifest.permission.READ_PHONE_NUMBERS}) public String getLine1Number(); method @NonNull @RequiresPermission(android.Manifest.permission.READ_PRECISE_PHONE_STATE) public String getManualNetworkSelectionPlmn(); method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRECISE_PHONE_STATE) public String getManualNetworkSelectionPlmn(); method @Nullable public String getManufacturerCode(); method @Nullable public String getManufacturerCode(int); method @RequiresPermission("android.permission.READ_PRIVILEGED_PHONE_STATE") public String getMeid(); telephony/java/android/telephony/TelephonyManager.java +4 −4 Original line number Diff line number Diff line Loading @@ -7992,17 +7992,17 @@ public class TelephonyManager { /** * Get the PLMN chosen for Manual Network Selection if active. * Return empty string if in automatic selection. * Return null string if in automatic selection. * * <p>Requires Permission: {@link android.Manifest.permission#READ_PRECISE_PHONE_STATE * READ_PRECISE_PHONE_STATE} or that the calling app has carrier privileges * (see {@link #hasCarrierPrivileges}) * * @return manually selected network info on success or empty string on failure * @return manually selected network info on success or null string on failure */ @SuppressAutoDoc // No support carrier privileges (b/72967236). @RequiresPermission(android.Manifest.permission.READ_PRECISE_PHONE_STATE) public @NonNull String getManualNetworkSelectionPlmn() { public @Nullable String getManualNetworkSelectionPlmn() { try { ITelephony telephony = getITelephony(); if (telephony != null && isManualNetworkSelectionAllowed()) { Loading @@ -8011,7 +8011,7 @@ public class TelephonyManager { } catch (RemoteException ex) { Rlog.e(TAG, "getManualNetworkSelectionPlmn RemoteException", ex); } return ""; return null; } /** Loading telephony/java/com/android/internal/telephony/ITelephony.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -2261,7 +2261,7 @@ interface ITelephony { /** * Get the user manual network selection. * Return empty string if in automatic selection. * Return null if inactive or phone process is down. * * @param subId the id of the subscription * @return operatorinfo on success Loading Loading
api/current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -48167,7 +48167,7 @@ package android.telephony { method @RequiresPermission("android.permission.READ_PRIVILEGED_PHONE_STATE") public String getImei(); method @RequiresPermission("android.permission.READ_PRIVILEGED_PHONE_STATE") public String getImei(int); method @RequiresPermission(anyOf={android.Manifest.permission.READ_PHONE_STATE, android.Manifest.permission.READ_SMS, android.Manifest.permission.READ_PHONE_NUMBERS}) public String getLine1Number(); method @NonNull @RequiresPermission(android.Manifest.permission.READ_PRECISE_PHONE_STATE) public String getManualNetworkSelectionPlmn(); method @Nullable @RequiresPermission(android.Manifest.permission.READ_PRECISE_PHONE_STATE) public String getManualNetworkSelectionPlmn(); method @Nullable public String getManufacturerCode(); method @Nullable public String getManufacturerCode(int); method @RequiresPermission("android.permission.READ_PRIVILEGED_PHONE_STATE") public String getMeid();
telephony/java/android/telephony/TelephonyManager.java +4 −4 Original line number Diff line number Diff line Loading @@ -7992,17 +7992,17 @@ public class TelephonyManager { /** * Get the PLMN chosen for Manual Network Selection if active. * Return empty string if in automatic selection. * Return null string if in automatic selection. * * <p>Requires Permission: {@link android.Manifest.permission#READ_PRECISE_PHONE_STATE * READ_PRECISE_PHONE_STATE} or that the calling app has carrier privileges * (see {@link #hasCarrierPrivileges}) * * @return manually selected network info on success or empty string on failure * @return manually selected network info on success or null string on failure */ @SuppressAutoDoc // No support carrier privileges (b/72967236). @RequiresPermission(android.Manifest.permission.READ_PRECISE_PHONE_STATE) public @NonNull String getManualNetworkSelectionPlmn() { public @Nullable String getManualNetworkSelectionPlmn() { try { ITelephony telephony = getITelephony(); if (telephony != null && isManualNetworkSelectionAllowed()) { Loading @@ -8011,7 +8011,7 @@ public class TelephonyManager { } catch (RemoteException ex) { Rlog.e(TAG, "getManualNetworkSelectionPlmn RemoteException", ex); } return ""; return null; } /** Loading
telephony/java/com/android/internal/telephony/ITelephony.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -2261,7 +2261,7 @@ interface ITelephony { /** * Get the user manual network selection. * Return empty string if in automatic selection. * Return null if inactive or phone process is down. * * @param subId the id of the subscription * @return operatorinfo on success Loading