Merge "[pm] drop non-APK paths from LoadedApk makePath" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
56b4df6954
@@ -546,6 +546,10 @@ public final class LoadedApk {
|
|||||||
if (aInfo.sharedLibraryFiles != null) {
|
if (aInfo.sharedLibraryFiles != null) {
|
||||||
int index = 0;
|
int index = 0;
|
||||||
for (String lib : aInfo.sharedLibraryFiles) {
|
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)) {
|
if (!outSeenPaths.contains(lib) && !outZipPaths.contains(lib)) {
|
||||||
outZipPaths.add(index, lib);
|
outZipPaths.add(index, lib);
|
||||||
index++;
|
index++;
|
||||||
|
|||||||
Reference in New Issue
Block a user