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

Commit edda9cc4 authored by Mohit Mali's avatar Mohit Mali
Browse files

Grant default permission to eDrive

parent acfb5c86
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -743,6 +743,16 @@ final class DefaultPermissionGrantPolicy {
                grantRuntimePermissionsLPw(calendarAppPackage, CALENDAR_PERMISSIONS, userId);
            }

            // eDrive App
           PackageParser.Package driveAppPackage = getSystemPackageLPr("foundation.e.drive");
            if (driveAppPackage != null
                            && doesPackageSupportRuntimePermissions(driveAppPackage)) {
                grantRuntimePermissionsLPw(driveAppPackage, STORAGE_PERMISSIONS, userId);
                grantRuntimePermissionsLPw(driveAppPackage, CONTACTS_PERMISSIONS, userId);
                
            }


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