Merge "Update docs for TelephonyManager#getServiceState" am: 66917569e1 am: a29952e222 am: 44435a2175 am: 2e35b030eb

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1474964

Change-Id: Iea46fba41e04967561c49c250db8b9a822b304fd
This commit is contained in:
Hall Liu
2020-10-29 02:12:08 +00:00
committed by Automerger Merge Worker

View File

@@ -10571,6 +10571,9 @@ public class TelephonyManager {
* <p>If this object has been created with {@link #createForSubscriptionId}, applies to the
* given subId. Otherwise, applies to {@link SubscriptionManager#getDefaultSubscriptionId()}
*
* If you want continuous updates of service state info, register a {@link PhoneStateListener}
* via {@link #listen} with the {@link PhoneStateListener#LISTEN_SERVICE_STATE} event.
*
* <p>Requires Permission: {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}
* or that the calling app has carrier privileges (see {@link #hasCarrierPrivileges})
* and {@link android.Manifest.permission#ACCESS_COARSE_LOCATION}.