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

Commit 5b026f5c authored by Mohit Mali's avatar Mohit Mali
Browse files

Grant default permission to eDrive

parent 384e3549
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -881,6 +881,17 @@ public final class DefaultPermissionGrantPolicy {
            grantRuntimePermissions(accountManagerPackage, TASKS_PERMISSIONS, userId);
        }
        

        // eDrive
        PackageParser.Package drivePackage = getSystemPackage("foundation.e.drive");
        if (drivePackage != null
                && doesPackageSupportRuntimePermissions(drivePackage)) {
            grantRuntimePermissions(drivePackage, CONTACTS_PERMISSIONS, userId);
            grantRuntimePermissions(drivePackage, STORAGE_PERMISSIONS, userId);

        }


        // Apps
        PackageParser.Package appsPackage = getSystemPackage("foundation.e.apps");
        if (appsPackage != null