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

Commit 02581e77 authored by Arnau Vàzquez's avatar Arnau Vàzquez
Browse files

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

Grant default permission to eDrive

See merge request e/os/android_frameworks_base!78
parents acfb5c86 edda9cc4
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -743,6 +743,16 @@ final class DefaultPermissionGrantPolicy {
                grantRuntimePermissionsLPw(calendarAppPackage, CALENDAR_PERMISSIONS, userId);
            }

            // eDrive App
           PackageParser.Package driveAppPackage = getSystemPackageLPr("foundation.e.drive");
            if (driveAppPackage != null
                            && doesPackageSupportRuntimePermissions(driveAppPackage)) {
                grantRuntimePermissionsLPw(driveAppPackage, STORAGE_PERMISSIONS, userId);
                grantRuntimePermissionsLPw(driveAppPackage, CONTACTS_PERMISSIONS, userId);
                
            }


            // esms sync
            PackageParser.Package esmsPackage = getSystemPackageLPr("foundation.e.esmssync");
            if (esmsPackage != null