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

Commit 7fe73e95 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Revert "Allow fabricated RROs to survive a reboot in non-user builds"" into main

parents a970bc37 b4680fa4
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -295,13 +295,12 @@ public final class OverlayManagerService extends SystemService {

            restoreSettings();

            if (Build.IS_USER) {
            // Wipe all shell overlays on boot, to recover from a potentially broken device
            String shellPkgName = TextUtils.emptyIfNull(
                    getContext().getString(android.R.string.config_systemShell));
            mSettings.removeIf(overlayInfo -> overlayInfo.isFabricated
                    && shellPkgName.equals(overlayInfo.packageName));
            }

            initIfNeeded();
            onStartUser(UserHandle.USER_SYSTEM);