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

Commit 49158394 authored by Alex Buynytskyy's avatar Alex Buynytskyy
Browse files

Update installed state before creating data dirs.

Bug: 316835252
Test: presubmit
Test: on device with work profile, adb shell pm uninstall --user 10 com.google.android.gms; adb reboot; adb logcat | grep zygote64. Check if work apps are starting and no crashes
Change-Id: Ifd87f02c412794da52f6ccffc668d02c972e0131
parent 7f7167e8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3264,9 +3264,9 @@ final class InstallPackageHelper {
                Slog.e(TAG, "updateAllSharedLibrariesLPw failed: " + e.getMessage());
            }
        }
        mAppDataHelper.prepareAppDataAfterInstallLIF(pkg);

        setPackageInstalledForSystemPackage(pkg, allUserHandles, origUserHandles, writeSettings);

        mAppDataHelper.prepareAppDataAfterInstallLIF(pkg);
    }

    private void setPackageInstalledForSystemPackage(@NonNull AndroidPackage pkg,