Use KNOWN_PACKAGES when shared lib consumers am: 08315953bc am: e580843476

Change-Id: I64af9ee49999f2de11f1a6779e116357649f63b2
This commit is contained in:
Automerger Merge Worker
2020-01-09 01:03:58 +00:00

View File

@@ -19589,7 +19589,7 @@ public class PackageManagerService extends IPackageManager.Stub
continue;
}
List<VersionedPackage> libClientPackages = getPackagesUsingSharedLibraryLPr(
libEntry.info, 0, currUserId);
libEntry.info, MATCH_KNOWN_PACKAGES, currUserId);
if (!ArrayUtils.isEmpty(libClientPackages)) {
Slog.w(TAG, "Not removing package " + pkg.manifestPackageName
+ " hosting lib " + libEntry.info.getName() + " version "
@@ -24880,8 +24880,9 @@ Slog.v(TAG, ":: stepped forward, applying functor at tag " + parser.getName());
continue;
}
final String packageName = ps.pkg.packageName;
// Skip over if system app
if ((ps.pkgFlags & ApplicationInfo.FLAG_SYSTEM) != 0) {
// Skip over if system app or static shared library
if ((ps.pkgFlags & ApplicationInfo.FLAG_SYSTEM) != 0
|| !TextUtils.isEmpty(ps.pkg.staticSharedLibName)) {
continue;
}
if (DEBUG_CLEAN_APKS) {