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

Commit add74a46 authored by Dimitry Ivanov's avatar Dimitry Ivanov
Browse files

Workaround for apps loading foreign native libs

Bug: http://b/26954419
Change-Id: I4272d015213b386abc1b04c0349cf1b081288058
parent ae7c208a
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);