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

Commit 39b264e8 authored by Amit Kumar's avatar Amit Kumar
Browse files

Grant permissions to MozillaNLPBackend and Launcher package

Change-Id: Ib8c917cdd2cf986941432e1e2dfec90d706c1377
parent a47a4f3d
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -391,6 +391,21 @@ final class DefaultPermissionGrantPolicy {
                }
            }

            // Launcher
            PackageParser.Package launcherPackage = getSystemPackageLPr("org.indin.blisslaunchero");
            if(launcherPackage != null
            		&& doesPackageSupportRuntimePermissions(launcherPackage)){
            	grantRuntimePermissionsLPw(launcherPackage, LOCATION_PERMISSIONS, userId);
            }

            // NlpMozillaBackend
            PackageParser.Package mozillaNlpBackendPackage = getSystemPackageLPr("org.microg.nlp.backend.ichnaea");
            if(mozillaNlpBackendPackage != null
            		&& doesPackageSupportRuntimePermissions(launcherPackage)){
            	grantRuntimePermissionsLPw(mozillaNlpBackendPackage, PHONE_PERMISSIONS, userId);
              grantRuntimePermissionsLPw(mozillaNlpBackendPackage, LOCATION_PERMISSIONS, userId);
            }

            // Sim call manager
            if (simCallManagerPackageNames != null) {
                for (String simCallManagerPackageName : simCallManagerPackageNames) {