diff options
| author | Yorke Lee <yorkelee@google.com> | 2014-10-28 14:12:02 -0700 |
|---|---|---|
| committer | Yorke Lee <yorkelee@google.com> | 2014-10-28 14:12:02 -0700 |
| commit | 7c72c2d3c2c4943a914abb2e1598610961db8f57 (patch) | |
| tree | d1f88504076a3f5cce62a0705381fd072d738532 /telecomm | |
| parent | e8d9810cdef5b3e288f54f42adc3205532343406 (diff) | |
| download | frameworks_base-7c72c2d3c2c4943a914abb2e1598610961db8f57.zip frameworks_base-7c72c2d3c2c4943a914abb2e1598610961db8f57.tar.gz frameworks_base-7c72c2d3c2c4943a914abb2e1598610961db8f57.tar.bz2 | |
Add comment to TelecomManager.getCallState
Explain why READ_PHONE_STATE permission is not required so that
people don't try to add it in the future. Requiring the permission
causes stability crashes with legacy apps and system components
that don't have the permission.
Change-Id: Idf8766aa409d4a2c4ed3d6f81a398f4a0eb24615
Diffstat (limited to 'telecomm')
| -rw-r--r-- | telecomm/java/android/telecom/TelecomManager.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/TelecomManager.java b/telecomm/java/android/telecom/TelecomManager.java index 2652b45..13c9ea2 100644 --- a/telecomm/java/android/telecom/TelecomManager.java +++ b/telecomm/java/android/telecom/TelecomManager.java @@ -684,6 +684,11 @@ public class TelecomManager { * {@link TelephonyManager#CALL_STATE_RINGING} * {@link TelephonyManager#CALL_STATE_OFFHOOK} * {@link TelephonyManager#CALL_STATE_IDLE} + * + * Note that this API does not require the + * {@link android.Manifest.permission#READ_PHONE_STATE} permission. This is intentional, to + * preserve the behavior of {@link TelephonyManager#getCallState()}, which also did not require + * the permission. * @hide */ @SystemApi |
