aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Groover <mpgroover@google.com>2020-02-19 19:27:20 -0800
committerAnis Assi <anisassi@google.com>2021-02-05 10:37:08 -0800
commit481350b3f359fa77e3e2eba3e4e6e8fc074f95b2 (patch)
tree73dbedec251746bdaacf3dc9c7468fa4464d7a5b
parenta9868659d0bd7fd70a9a89741b1c31ebde19c475 (diff)
downloadContactsProvider-android-security-10.0.0_r67.tar.gz
In Android 10 access to device identifiers was moved from a runtime permission to the privileged READ_PRIVILEGED_PHONE_STATE permission. One of the non-resettable identifiers missed was SubscriptionInfo# getIccId. The contacts provider currently uses this ID to upgrade to version 1003 of the database; to ensure there are no issues with this upgrade this permission is being granted to the contacts provider. Bug: 131909991 Bug: 173421434 Test: atest ContactsProviderTests Change-Id: Iafd9d036993a2d8d765d9ca001c91076d8df18b0 Merged-In: Iafd9d036993a2d8d765d9ca001c91076d8df18b0 (cherry picked from commit 129cc56868dfc198de41909ff9d6c542a84a4c21)
-rw-r--r--AndroidManifest.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 2da56fc0..cd0b23b8 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -11,6 +11,7 @@
<uses-permission android:name="android.permission.PROCESS_PHONE_ACCOUNT_REGISTRATION" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
+ <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_SYNC_SETTINGS" />
<uses-permission android:name="android.permission.SEND_CALL_LOG_CHANGE" />
<uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" />