Merge "Temporarily pre-grant permission with STOPSHIP"

This commit is contained in:
Yuanjia Hsu
2019-03-15 23:16:02 +00:00
committed by Android (Google) Code Review

View File

@@ -704,6 +704,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");