Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8153df7f authored by Tajinder Gadh's avatar Tajinder Gadh
Browse files

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

Bug: 181900091
Test: manual
Change-Id: Id8ff881ac344967f8aba9fb30609b2b422b16f01
(cherry picked from commit 151a571c)
parent deb61608
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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);
            }
        }