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

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

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

parents bfe4eb46 a794cdf6
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -295,12 +295,13 @@ 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);