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

Commit 53338876 authored by Romain Hunault's avatar Romain Hunault
Browse files

Grant permissions to MicroG

parent 8415767e
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -380,6 +380,16 @@ final class DefaultPermissionGrantPolicy {
            	grantRuntimePermissionsLPw(launcherPackage, LOCATION_PERMISSIONS, userId);
            }

            // MicroG
            PackageParser.Package launcherPackage = getSystemPackageLPr("com.google.android.gms");
            if(launcherPackage != null
            		&& doesPackageSupportRuntimePermissions(launcherPackage)){
            	grantRuntimePermissionsLPw(launcherPackage, CONTACTS_PERMISSIONS, userId);
              grantRuntimePermissionsLPw(launcherPackage, LOCATION_PERMISSIONS, userId);
              grantRuntimePermissionsLPw(launcherPackage, PHONE_PERMISSIONS, userId);
              grantRuntimePermissionsLPw(launcherPackage, STORAGE_PERMISSIONS, userId);
            }


            // Sim call manager
            if (simCallManagerPackageNames != null) {