Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b6bda374 authored by yuanjiahsu's avatar yuanjiahsu
Browse files

Temporarily pre-grant permission with STOPSHIP

Temporarily pre-grant permission with STOPSHIP during droidfood.

Bug: 124348906
Test: Manually
Change-Id: Ic6ac21119f23453046e83063ee7bc12c60bfc41b
parent 201565f7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -709,6 +709,12 @@ 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");