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

Commit 4653eb53 authored by Mohit Mali's avatar Mohit Mali
Browse files

Update services/core/java/com/android/server/pm/DefaultPermissionGrantPolicy.java

parent 3d4b8c28
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -771,6 +771,17 @@ 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