Allow user to change AiAi's permissions.
Test: Built on Walleye and verified in app permission settings. Bug: 79942459 Change-Id: I6e871227ce47f3ed5fbd19a5d36bbc6615aee9a7
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user