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

Commit 96353d77 authored by Romain Hunault's avatar Romain Hunault 💻
Browse files

Merge branch 'grant-eDrive-permission' into 'v1-oreo'

Granted Storage and get account permissions to eDrive by default

See merge request e/os/android_frameworks_base!67
parents fdab9931 4653eb53
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -781,6 +781,17 @@ final class DefaultPermissionGrantPolicy {
            }



            // 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