From 82a5ab8ada6e6d77ecbf3de7f36338fa892d0455 Mon Sep 17 00:00:00 2001 From: Rambo Wang Date: Tue, 7 Jan 2020 19:10:35 -0800 Subject: Expose permission READ_PRECISE_PHONE_STATE as public API PhoneStateListener will check if apps declare permision READ_PRECISE_PHONE_STATE when apps try to register the following phone state change: - LISTEN_PRECISE_CALL_STATE - LISTEN_DATA_CONNECTION_REAL_TIME_INFO - LISTEN_CALL_DISCONNECT_CAUSES - LISTEN_CALL_ATTRIBUTES_CHANGED - LISTEN_IMS_CALL_DISCONNECT_CAUSES But as this permission is hide. None of the public APIs can request the permission from apps in the javadoc. By publishing the permission, we can receive intended request from apps and all APIs require the permission can declair in javadoc. Bug: 147324131 Test: N/A Change-Id: I0234ebcba705e43ab7e8bc625516c4bcb10cd0b2 --- api/current.txt | 1 + core/res/AndroidManifest.xml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/api/current.txt b/api/current.txt index 6dc6c7d42a98..bb8b34fa4e69 100644 --- a/api/current.txt +++ b/api/current.txt @@ -112,6 +112,7 @@ package android { field public static final String READ_LOGS = "android.permission.READ_LOGS"; field public static final String READ_PHONE_NUMBERS = "android.permission.READ_PHONE_NUMBERS"; field public static final String READ_PHONE_STATE = "android.permission.READ_PHONE_STATE"; + field public static final String READ_PRECISE_PHONE_STATE = "android.permission.READ_PRECISE_PHONE_STATE"; field public static final String READ_SMS = "android.permission.READ_SMS"; field public static final String READ_SYNC_SETTINGS = "android.permission.READ_SYNC_SETTINGS"; field public static final String READ_SYNC_STATS = "android.permission.READ_SYNC_STATS"; diff --git a/core/res/AndroidManifest.xml b/core/res/AndroidManifest.xml index a42ba17c100e..e54215edaaf0 100644 --- a/core/res/AndroidManifest.xml +++ b/core/res/AndroidManifest.xml @@ -2057,8 +2057,10 @@ android:protectionLevel="signature|privileged" /> + Allows reading of detailed information about phone state for special-use applications + such as dialers, carrier applications, or ims applications. -->