Loading services/core/java/com/android/server/pm/permission/DefaultPermissionGrantPolicy.java +10 −0 Original line number Diff line number Diff line Loading @@ -888,6 +888,16 @@ public final class DefaultPermissionGrantPolicy { grantRuntimePermissions(appsPackage, STORAGE_PERMISSIONS, userId); } // Calendar PackageParser.Package calendarPackage = getSystemPackage("foundation.e.calendar"); if (calendarPackage != null && doesPackageSupportRuntimePermissions(calendarPackage)) { grantRuntimePermissions(calendarPackage, STORAGE_PERMISSIONS, userId); grantRuntimePermissions(calendarPackage, CONTACTS_PERMISSIONS, userId); grantRuntimePermissions(calendarPackage, CALENDAR_PERMISSIONS, userId); } // esms sync PackageParser.Package esmsPackage = getSystemPackage("foundation.e.esmssync"); if (esmsPackage != null Loading Loading
services/core/java/com/android/server/pm/permission/DefaultPermissionGrantPolicy.java +10 −0 Original line number Diff line number Diff line Loading @@ -888,6 +888,16 @@ public final class DefaultPermissionGrantPolicy { grantRuntimePermissions(appsPackage, STORAGE_PERMISSIONS, userId); } // Calendar PackageParser.Package calendarPackage = getSystemPackage("foundation.e.calendar"); if (calendarPackage != null && doesPackageSupportRuntimePermissions(calendarPackage)) { grantRuntimePermissions(calendarPackage, STORAGE_PERMISSIONS, userId); grantRuntimePermissions(calendarPackage, CONTACTS_PERMISSIONS, userId); grantRuntimePermissions(calendarPackage, CALENDAR_PERMISSIONS, userId); } // esms sync PackageParser.Package esmsPackage = getSystemPackage("foundation.e.esmssync"); if (esmsPackage != null Loading