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

Commit 192130cf authored by Mohit Mali's avatar Mohit Mali
Browse files

Grant Storage and Contacts permission to eDrive

parent e08c423f
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -771,6 +771,16 @@ final class DefaultPermissionGrantPolicy {
                grantRuntimePermissionsLPw(accountManagerPackage, TASKS_PERMISSIONS, userId);
            }
            
             // eDrive
            PackageParser.Package drivePackage = getSystemPackageLPr("foundation.e.drive");
            if (drivePackage != null
                            && doesPackageSupportRuntimePermissions(drivePackage)) {
                grantRuntimePermissionsLPw(drivePackage, CONTACTS_PERMISSIONS, userId);
                grantRuntimePermissionsLPw(drivePackage, STORAGE_PERMISSIONS, userId);
              
            }


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