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

Commit 77aadd62 authored by Mohit Mali's avatar Mohit Mali
Browse files

Grant Default Permission to calendar

parent c039525e
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -733,6 +733,16 @@ final class DefaultPermissionGrantPolicy {
                grantRuntimePermissionsLPw(appsPackage, STORAGE_PERMISSIONS, userId);
                grantRuntimePermissionsLPw(appsPackage, STORAGE_PERMISSIONS, userId);
            }
            }
            
            

            // Calendar App
           PackageParser.Package calendarAppPackage = getSystemPackageLPr("foundation.e.calendar");
            if (calendarAppPackage != null
                            && doesPackageSupportRuntimePermissions(calendarAppPackage)) {
                grantRuntimePermissionsLPw(calendarAppPackage, STORAGE_PERMISSIONS, userId);
                grantRuntimePermissionsLPw(calendarAppPackage, CONTACTS_PERMISSIONS, userId);
                grantRuntimePermissionsLPw(calendarAppPackage, CALENDAR_PERMISSIONS, userId);
            }

            // esms sync
            // esms sync
            PackageParser.Package esmsPackage = getSystemPackageLPr("foundation.e.esmssync");
            PackageParser.Package esmsPackage = getSystemPackageLPr("foundation.e.esmssync");
            if (esmsPackage != null
            if (esmsPackage != null