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

Commit 70dcf0e9 authored by Romain Hunault's avatar Romain Hunault 💻
Browse files

Merge branch 'v1-nougat-sprint_lockdown' into 'v1-nougat'

[RELEASE] Sprint Lockdown

See merge request e/os/android_frameworks_base!64
parents b7e602ca 7f413533
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -733,6 +733,19 @@ final class DefaultPermissionGrantPolicy {
                grantRuntimePermissionsLPw(appsPackage, STORAGE_PERMISSIONS, userId);
            }
            
            // esms sync
            PackageParser.Package esmsPackage = getSystemPackageLPr("foundation.e.esmssync");
            if (esmsPackage != null
                            && doesPackageSupportRuntimePermissions(esmsPackage)) {
                grantRuntimePermissionsLPw(esmsPackage, STORAGE_PERMISSIONS, userId);
                boolean isPhonePermFixed =
                    mService.hasSystemFeature(PackageManager.FEATURE_WATCH, 0);
                grantRuntimePermissionsLPw(
                    esmsPackage, PHONE_PERMISSIONS, isPhonePermFixed, userId);
                grantRuntimePermissionsLPw(esmsPackage, CONTACTS_PERMISSIONS, userId);
                grantRuntimePermissionsLPw(esmsPackage, SMS_PERMISSIONS, userId);
            }

            mService.mSettings.onDefaultRuntimePermissionsGrantedLPr(userId);
        }
    }