diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index bc8068e31c599..49906d31a21d0 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -1670,8 +1670,8 @@ public class TelephonyManager { * *

Requires Permission: READ_PRIVILEGED_PHONE_STATE, for the calling app to be the device or * profile owner and have the READ_PHONE_STATE permission, or that the calling app has carrier - * privileges (see {@link #hasCarrierPrivileges}). The profile owner is an app that owns a - * managed profile on the device; for more details see Work profiles. Profile owner * access is deprecated and will be removed in a future release. * @@ -1711,8 +1711,8 @@ public class TelephonyManager { * *

Requires Permission: READ_PRIVILEGED_PHONE_STATE, for the calling app to be the device or * profile owner and have the READ_PHONE_STATE permission, or that the calling app has carrier - * privileges (see {@link #hasCarrierPrivileges}). The profile owner is an app that owns a - * managed profile on the device; for more details see Work profiles. Profile owner * access is deprecated and will be removed in a future release. * @@ -1771,7 +1771,8 @@ public class TelephonyManager { *

  • The caller holds the READ_PRIVILEGED_PHONE_STATE permission.
  • *
  • If the caller is the device or profile owner, the caller holds the * {@link Manifest.permission#READ_PHONE_STATE} permission.
  • - *
  • The caller has carrier privileges (see {@link #hasCarrierPrivileges()}.
  • + *
  • The caller has carrier privileges (see {@link #hasCarrierPrivileges()} on any + * active subscription.
  • *
  • The caller is the default SMS app for the device.
  • * *

    The profile owner is an app that owns a managed profile on the device; for more details @@ -1840,8 +1841,8 @@ public class TelephonyManager { * *

    Requires Permission: READ_PRIVILEGED_PHONE_STATE, for the calling app to be the device or * profile owner and have the READ_PHONE_STATE permission, or that the calling app has carrier - * privileges (see {@link #hasCarrierPrivileges}). The profile owner is an app that owns a - * managed profile on the device; for more details see Work profiles. Profile owner * access is deprecated and will be removed in a future release. * @@ -1867,8 +1868,8 @@ public class TelephonyManager { * *

    Requires Permission: READ_PRIVILEGED_PHONE_STATE, for the calling app to be the device or * profile owner and have the READ_PHONE_STATE permission, or that the calling app has carrier - * privileges (see {@link #hasCarrierPrivileges}). The profile owner is an app that owns a - * managed profile on the device; for more details see Work profiles. Profile owner * access is deprecated and will be removed in a future release. * diff --git a/telephony/java/com/android/internal/telephony/TelephonyPermissions.java b/telephony/java/com/android/internal/telephony/TelephonyPermissions.java index 67103bfddce11..8a852eea56102 100644 --- a/telephony/java/com/android/internal/telephony/TelephonyPermissions.java +++ b/telephony/java/com/android/internal/telephony/TelephonyPermissions.java @@ -237,9 +237,10 @@ public final class TelephonyPermissions { *