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

Commit ddaf351e authored by Winson Chung's avatar Winson Chung
Browse files

Allow apps with shared system uid to change overlays

- Revert ag/4027450 to allow the settings provider to set the current
  overlays needed for the migration

Bug: 78809702
Test: Manual
Change-Id: I4405843641434261c8b92d4f150a222fe87ef53b
parent 600c1864
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -758,7 +758,7 @@ public final class OverlayManagerService extends SystemService {
         * @throws SecurityException if the permission check fails
         */
        private void enforceChangeOverlayPackagesPermission(@NonNull final String message) {
            getContext().enforceCallingPermission(
            getContext().enforceCallingOrSelfPermission(
                    android.Manifest.permission.CHANGE_OVERLAY_PACKAGES, message);
        }

@@ -769,7 +769,7 @@ public final class OverlayManagerService extends SystemService {
         * @throws SecurityException if the permission check fails
         */
        private void enforceDumpPermission(@NonNull final String message) {
            getContext().enforceCallingPermission(android.Manifest.permission.DUMP, message);
            getContext().enforceCallingOrSelfPermission(android.Manifest.permission.DUMP, message);
        }
    };