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

Grant permissions to MozillaNLPBackend and Launcher package

Change-Id: Ib8c917cdd2cf986941432e1e2dfec90d706c1377
parent a47a4f3d
......@@ -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) {
......
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