OSDN Git Service

Remove temporarily pre-grant permission
authoryuanjiahsu <yuanjiahsu@google.com>
Thu, 2 May 2019 11:13:43 +0000 (19:13 +0800)
committerAndrew Sapperstein <asapperstein@google.com>
Thu, 2 May 2019 21:36:44 +0000 (21:36 +0000)
Remove temporarily pre-grant permission with STOPSHIP during droidfood.

Bug: 128289173
Test: Manually
Merged-In: I236aaff3f742981b2212030bd9f8cede84bcf748
Change-Id: I236aaff3f742981b2212030bd9f8cede84bcf748

services/core/java/com/android/server/pm/permission/DefaultPermissionGrantPolicy.java

index 108eaf6..e025646 100644 (file)
@@ -744,12 +744,6 @@ public final class DefaultPermissionGrantPolicy {
                         TelephonyManager.ACTION_EMERGENCY_ASSISTANCE, userId),
                 userId, CONTACTS_PERMISSIONS, PHONE_PERMISSIONS);
 
-        // STOPSHIP(b/128289173): remove once EmergencyInfo app was replaced.
-        grantSystemFixedPermissionsToSystemPackage(
-                getDefaultSystemHandlerActivityPackage(
-                        "com.android.emergency.action.EMERGENCY_ASSISTANCE", userId),
-                userId, CONTACTS_PERMISSIONS, PHONE_PERMISSIONS);
-
         // NFC Tag viewer
         Intent nfcTagIntent = new Intent(Intent.ACTION_VIEW)
                 .setType("vnd.android.cursor.item/ndef_msg");