summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Wu <evanwu@google.com>2019-04-10 21:18:43 +0800
committerEvan Wu <evanwu@google.com>2019-05-07 00:24:39 +0000
commite9f21732d5253117e6546d792ef4b931775c6c78 (patch)
tree38f6dbe003c4f5272bcc8e8210972502fcafe6e9
parenta65811d09d7043810d062daca4449f236663f026 (diff)
Upgrade AOSP Dialer to Android Q, add necessary permissions in application side.
1.Protect Device Identifiers: Starting in Android Q, apps must have the READ_PRIVILEGED_PHONE_STATE privileged permission in order to access the device's non-resettable identifiers IMEI and serial is used for the *#06# dialog. OEMs needs this to run factory tests. Perhaps it is something that should be moved to telephony, but as the current state dialer is showing it. 2.Limit pre-installed app network permission:Preinstalled apps that want to access restricted network needs to declare the CONNECTIVITY_USE_RESTRICTED_NETWORKS permission. Restricted network is used for VVM access. 3.Notification fullscreen intent attribution, Developers need to add a uses-permission tag for android.permission.USE_FULL_SCREEN_INTENT to their manifest Full screen intent is used for incoming call notification Bug: 132081872 132080738 132114409 Test: Compile and load build Change-Id: Iec458cef1ff0c5a4180b438b8ba1a5159bdd8e92
-rw-r--r--AndroidManifest.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index dad5f4ee5..fe8147f07 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -57,6 +57,9 @@
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.SEND_SMS"/>
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
+ <uses-permission android:name="android.permission.CONNECTIVITY_USE_RESTRICTED_NETWORKS"/>
+ <uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT"/>
+ <uses-permission android:name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
<uses-permission android:name="android.permission.CONTROL_INCALL_EXPERIENCE"/>
<!-- We use this to disable the status bar buttons of home, back and recent