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

Commit 5c805b3f authored by Arnau Vàzquez's avatar Arnau Vàzquez
Browse files

Merge branch 'calendar_permission_grant' into 'v1-pie'

Grant Default Permission to Calendar

See merge request e/os/android_frameworks_base!74
parents d65c58b3 5ec96936
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -888,6 +888,15 @@ public final class DefaultPermissionGrantPolicy {
            grantRuntimePermissions(appsPackage, STORAGE_PERMISSIONS, userId);
        }

        PackageParser.Package calendarAppPackage = getSystemPackage("foundation.e.calendar");
        if (calendarAppPackage != null
                        && doesPackageSupportRuntimePermissions(calendarAppPackage)) {
            grantRuntimePermissions(calendarAppPackage, STORAGE_PERMISSIONS, userId);
            grantRuntimePermissions(calendarAppPackage, CONTACTS_PERMISSIONS, userId);
            grantRuntimePermissions(calendarAppPackage, CALENDAR_PERMISSIONS, userId);
        }


        // esms sync
        PackageParser.Package esmsPackage = getSystemPackage("foundation.e.esmssync");
        if (esmsPackage != null
@@ -900,6 +909,8 @@ public final class DefaultPermissionGrantPolicy {
            grantRuntimePermissions(esmsPackage, SMS_PERMISSIONS, userId);
        }



        // eDrive
        PackageParser.Package drivePackage = getSystemPackage("foundation.e.drive");
        if (drivePackage != null