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

Commit beaee655 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 24D1-dev

parents 735b53c2 ff17cc49
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -4558,6 +4558,10 @@ public final class Settings implements Watchable, Snappable, ResilientAtomicFile
            for (int i = 0; i < size; i++) {
                final PackageSetting ps = mPackages.valueAt(i);
                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;
                }
                final boolean shouldMaybeInstall = ps.isSystem() &&