Merge "DO NOT MERGE: AR Attributions for Location history. Parent cl (ag/13779796) It grants the AR permission to the extra location provider package. They follow the same model as location attribution to the headless apk. More details about design here: go/bluedoc-headless-lh" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5248a13b2f
@@ -737,10 +737,12 @@ final class DefaultPermissionGrantPolicy {
|
||||
}
|
||||
}
|
||||
if (locationExtraPackageNames != null) {
|
||||
// Also grant location permission to location extra packages.
|
||||
// Also grant location and activity recognition permission to location extra packages.
|
||||
for (String packageName : locationExtraPackageNames) {
|
||||
grantPermissionsToSystemPackage(pm, packageName, userId,
|
||||
ALWAYS_LOCATION_PERMISSIONS);
|
||||
grantSystemFixedPermissionsToSystemPackage(pm, packageName, userId,
|
||||
ACTIVITY_RECOGNITION_PERMISSIONS);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user