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

Commit 44ad279b authored by fuzz's avatar fuzz Committed by Andy Mast
Browse files

PackageManagerService: Prevent sending a SIGKILL while the device shutting down

This avoid potential NPE when cleanup theme related data

Change-Id: Ifc7b5f7a21af32464feb32012336cfbe4b7de2ff
parent d3207b38
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -10452,11 +10452,13 @@ public class PackageManagerService extends IPackageManager.Stub {
        }
        //Cleanup theme related data
        if (ps.pkg != null) {
            if (ps.pkg.mOverlayTargets.size() > 0) {
                uninstallThemeForAllApps(ps.pkg);
            } else if (mOverlays.containsKey(ps.pkg.packageName)) {
                uninstallThemeForApp(ps.pkg);
            }
        }
        return ret;
    }