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

Commit 26fd4ce6 authored by Calin Juravle's avatar Calin Juravle
Browse files

Prepare app profiles only for upgrades and first boot

Test: manual, flash and check profiles for system apps
Bug: 72713758
Change-Id: I81327093e16b4fca3fbdbb2e0846c82eee4c7a68
parent e8cf6110
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -22252,8 +22252,16 @@ Slog.v(TAG, ":: stepped forward, applying functor at tag " + parser.getName());
                Slog.e(TAG, "Failed to create app data for " + packageName + ": " + e);
            }
        }
        // Prepare the application profiles.
        // Prepare the application profiles only for upgrades and first boot (so that we don't
        // repeat the same operation at each boot).
        // We only have to cover the upgrade and first boot here because for app installs we
        // prepare the profiles before invoking dexopt (in installPackageLI).
        //
        // We also have to cover non system users because we do not call the usual install package
        // methods for them.
        if (mIsUpgrade || mFirstBoot || (userId != UserHandle.USER_SYSTEM)) {
            mArtManagerService.prepareAppProfiles(pkg, userId);
        }
        if ((flags & StorageManager.FLAG_STORAGE_CE) != 0 && ceDataInode != -1) {
            // TODO: mark this structure as dirty so we persist it!