Merge "Use KNOWN_PACKAGES when shared lib consumers" into qt-qpr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a5c4b9e350
@@ -18626,7 +18626,7 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
continue;
|
||||
}
|
||||
List<VersionedPackage> libClientPackages = getPackagesUsingSharedLibraryLPr(
|
||||
libraryInfo, 0, currUserId);
|
||||
libraryInfo, MATCH_KNOWN_PACKAGES, currUserId);
|
||||
if (!ArrayUtils.isEmpty(libClientPackages)) {
|
||||
Slog.w(TAG, "Not removing package " + pkg.manifestPackageName
|
||||
+ " hosting lib " + libraryInfo.getName() + " version "
|
||||
@@ -23656,8 +23656,9 @@ public class PackageManagerService extends IPackageManager.Stub
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user