Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2343f8df authored by Dimitry Ivanov's avatar Dimitry Ivanov Committed by Android (Google) Code Review
Browse files

Merge "Workaround for apps loading foreign native libs"

parents 4c3a774e add74a46
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -382,6 +382,13 @@ public final class LoadedApk {
                    libraryPermittedPath += File.pathSeparator +
                                            System.getProperty("java.library.path");
                }
                // DO NOT SHIP: this is a workaround for apps loading native libraries
                // provided by 3rd party apps using absolute path instead of corresponding
                // classloader; see http://b/26954419 for example.
                if (mApplicationInfo.targetSdkVersion <= 23) {
                    libraryPermittedPath += File.pathSeparator + "/data/app";
                }
                // -----------------------------------------------------------------------------

                final String librarySearchPath = TextUtils.join(File.pathSeparator, libPaths);