Merge "Remove UPDATED_SYSTEM_APP from updated system apps no longer exist" into udc-dev

This commit is contained in:
Song Chun Fan
2023-04-07 17:40:35 +00:00
committed by Android (Google) Code Review

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) {