Commit b8a11b02 authored by Nihar Thakkar's avatar Nihar Thakkar

Revert "Revert "Revert "Automatically grant permissions for Account Manager."""

This reverts commit e3652c61
parent e3652c61
......@@ -686,16 +686,6 @@ final class DefaultPermissionGrantPolicy {
&& doesPackageSupportRuntimePermissions(storageManagerPckg)) {
grantRuntimePermissionsLPw(storageManagerPckg, STORAGE_PERMISSIONS, true, userId);
}
// Account Manager
PackageParser.Package accountManagerPackage = getDefaultProviderAuthorityPackageLPr(
"at.bitfire.davdroid", userId);
if (accountManagerPackage != null) {
grantRuntimePermissionsLPw(accountManagerPackage, CONTACTS_PERMISSIONS, userId);
grantRuntimePermissionsLPw(accountManagerPackage, CALENDAR_PERMISSIONS, userId);
grantRuntimePermissionsLPw(accountManagerPackage, LOCATION_PERMISSIONS, userId);
}
mService.mSettings.onDefaultRuntimePermissionsGrantedLPr(userId);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment