Merge "[pm] drop non-APK paths from LoadedApk makePath" into sc-dev am: 56b4df6954
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15067342 Change-Id: Ibe2fb7da6a318ba2f8ad0cba52ecbf5c4be41d70
This commit is contained in:
@@ -546,6 +546,10 @@ public final class LoadedApk {
|
||||
if (aInfo.sharedLibraryFiles != null) {
|
||||
int index = 0;
|
||||
for (String lib : aInfo.sharedLibraryFiles) {
|
||||
// sharedLibraryFiles might contain native shared libraries that are not APK paths.
|
||||
if (!lib.endsWith(".apk")) {
|
||||
continue;
|
||||
}
|
||||
if (!outSeenPaths.contains(lib) && !outZipPaths.contains(lib)) {
|
||||
outZipPaths.add(index, lib);
|
||||
index++;
|
||||
|
||||
Reference in New Issue
Block a user