Merge "Allow user to change AiAi's permissions." into pi-dev

am: 80f0481628

Change-Id: I31410b69de5de58549e3c218888117abefc3924c
This commit is contained in:
Ye Wen
2018-05-21 07:33:07 -07:00
committed by android-build-merger

View File

@@ -833,11 +833,11 @@ public final class DefaultPermissionGrantPolicy {
getSystemPackage(textClassifierPackageName);
if (textClassifierPackage != null
&& doesPackageSupportRuntimePermissions(textClassifierPackage)) {
grantRuntimePermissions(textClassifierPackage, PHONE_PERMISSIONS, true, userId);
grantRuntimePermissions(textClassifierPackage, SMS_PERMISSIONS, true, userId);
grantRuntimePermissions(textClassifierPackage, CALENDAR_PERMISSIONS, true, userId);
grantRuntimePermissions(textClassifierPackage, LOCATION_PERMISSIONS, true, userId);
grantRuntimePermissions(textClassifierPackage, CONTACTS_PERMISSIONS, true, userId);
grantRuntimePermissions(textClassifierPackage, PHONE_PERMISSIONS, false, userId);
grantRuntimePermissions(textClassifierPackage, SMS_PERMISSIONS, false, userId);
grantRuntimePermissions(textClassifierPackage, CALENDAR_PERMISSIONS, false, userId);
grantRuntimePermissions(textClassifierPackage, LOCATION_PERMISSIONS, false, userId);
grantRuntimePermissions(textClassifierPackage, CONTACTS_PERMISSIONS, false, userId);
}
}