Workaround for apps loading foreign native libs
Bug: http://b/26954419 Change-Id: I4272d015213b386abc1b04c0349cf1b081288058
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user