Skip to content

Commit

Permalink
Back out "add base apk paths from classloader into directAPK soSource"
Browse files Browse the repository at this point in the history
Summary:
Original commit changeset: 7f4cabf4809d

Original Phabricator Diff: D50625811

Reviewed By: simpleton, adicatana

Differential Revision: D51447842

fbshipit-source-id: 9396375b86a4892ab088c6eacc9991b7b7a946c0
  • Loading branch information
michalgr authored and facebook-github-bot committed Nov 20, 2023
1 parent 4cf5665 commit 0ec7298
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions java/com/facebook/soloader/DirectApkSoSource.java
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,6 @@ public String getLibraryPath(String soName) throws IOException {
/*package*/ static Set<String> getDirectApkLdPaths(Context context) {
Set<String> directApkPathSet = new HashSet<>();

final String classLoaderLdLibraryPath = SysUtil.getClassLoaderLdLoadLibrary();
if (classLoaderLdLibraryPath != null) {
LogUtil.w(SoLoader.TAG, "ClassLoader LdLibrary Path: " + classLoaderLdLibraryPath);
final String[] paths = classLoaderLdLibraryPath.split(":");
for (final String path : paths) {
if (path.contains(".apk!/")) {
directApkPathSet.add(path);
}
}
}

final String apkPath = context.getApplicationInfo().sourceDir;
final @Nullable String fallbackApkLdPath = getFallbackApkLdPath(apkPath);
if (fallbackApkLdPath != null) {
Expand Down

0 comments on commit 0ec7298

Please sign in to comment.