OSDN Git Service

Add permission whitelist for EmergencyInfo app.
authorTyler Gunn <tgunn@google.com>
Mon, 16 Apr 2018 05:49:53 +0000 (22:49 -0700)
committerTyler Gunn <tgunn@google.com>
Mon, 16 Apr 2018 15:12:46 +0000 (15:12 +0000)
This is the "Emergency Info" screen available from the lock screen.
It requires the CALL_PRIVILEGED permission in order for it to be able to
place emergency calls.  This can occur if a user adds an emergency number
to their emergency contacts.

Test: make checkbuild
Bug: 76086838
Merged-In: I2cfc893f8e636790a837e0f71f9f42ea723c8e31
Change-Id: I2cfc893f8e636790a837e0f71f9f42ea723c8e31
(cherry picked from commit cdc555f4890479813c72a928f67bcbaf0e6847d8)

data/etc/privapp-permissions-platform.xml

index c6a6113..82b6a22 100644 (file)
@@ -65,6 +65,8 @@ applications that come with the platform
     </privapp-permissions>
 
     <privapp-permissions package="com.android.emergency">
+        <!-- Required to place emergency calls from emergency info screen. -->
+        <permission name="android.permission.CALL_PRIVILEGED"/>
         <permission name="android.permission.MANAGE_USERS"/>
     </privapp-permissions>