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

Commit a54daf84 authored by Romain Hunault's avatar Romain Hunault 💻
Browse files

Merge branch 'eDrive-update' into 'v1-oreo-sprint_jj'

Grant Storage and Contacts permission to eDrive

See merge request e/os/android_frameworks_base!57
parents eecb798f 192130cf
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