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

Commit 86de563b authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Create per-user state(s) on user creation, for archived packages." into main

parents f1a841ce 22a04044
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -4558,6 +4558,10 @@ public final class Settings implements Watchable, Snappable, ResilientAtomicFile
            for (int i = 0; i < size; i++) {
            for (int i = 0; i < size; i++) {
                final PackageSetting ps = mPackages.valueAt(i);
                final PackageSetting ps = mPackages.valueAt(i);
                if (ps.getPkg() == null) {
                if (ps.getPkg() == null) {
                    // This would force-create correct per-user state.
                    ps.setInstalled(false, userHandle);
                    // Make sure the app is excluded from storage mapping for this user.
                    writeKernelMappingLPr(ps);
                    continue;
                    continue;
                }
                }
                final boolean shouldMaybeInstall = ps.isSystem() &&
                final boolean shouldMaybeInstall = ps.isSystem() &&