Merge "Remove UPDATED_SYSTEM_APP from updated system apps no longer exist" into udc-dev am: 4c2ea9c7f7

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22519978

Change-Id: I4ccf077f4c3a606629fed30332f786c7f35b7435
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Song Chun Fan
2023-04-07 17:57:18 +00:00
committed by Automerger Merge Worker

View File

@@ -3588,6 +3588,11 @@ final class InstallPackageHelper {
// remove the package from the system and re-scan it without any
// special privileges
mRemovePackageHelper.removePackage(pkg, true);
PackageSetting ps = mPm.mSettings.getPackageLPr(packageName);
if (ps != null) {
ps.getPkgState().setUpdatedSystemApp(false);
}
try {
final File codePath = new File(pkg.getPath());
synchronized (mPm.mInstallLock) {