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

Commit 384e3549 authored by Mohit Mali's avatar Mohit Mali
Browse files

Update services/core/java/com/android/server/pm/permission/DefaultPermissionGrantPolicy.java

parent 75229550
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -889,12 +889,12 @@ public final class DefaultPermissionGrantPolicy {
        }
        
        // Calendar
        PackageParser.Package calendarPackage = getSystemPackage("foundation.e.calendar");
        if (calendarPackage != null
                        && doesPackageSupportRuntimePermissions(calendarPackage)) {
            grantRuntimePermissions(calendarPackage, STORAGE_PERMISSIONS, userId);
            grantRuntimePermissions(calendarPackage, CONTACTS_PERMISSIONS, userId);
            grantRuntimePermissions(calendarPackage, CALENDAR_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);
        }