Merge "[pm] drop non-APK paths from LoadedApk makePath" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-06-23 20:19:32 +00:00
committed by Android (Google) Code Review

View File

@@ -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++;