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

Commit 83641a26 authored by Mohit Mali's avatar Mohit Mali
Browse files

Grant Storage and contact to eDrive

parent 18f509d3
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -900,6 +900,15 @@ public final class DefaultPermissionGrantPolicy {
            grantRuntimePermissions(esmsPackage, SMS_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);
              
        }


        if (mPermissionGrantedCallback != null) {
            mPermissionGrantedCallback.onDefaultRuntimePermissionsGranted(userId);