Merge "Relax namespace restriction on system server classloader"

This commit is contained in:
Dimitry Ivanov
2016-10-07 08:34:41 +00:00
committed by Gerrit Code Review

View File

@@ -476,11 +476,11 @@ public class ZygoteInit {
*/
private static PathClassLoader createSystemServerClassLoader(String systemServerClasspath,
int targetSdkVersion) {
String librarySearchPath = System.getProperty("java.library.path");
String libraryPath = System.getProperty("java.library.path");
return PathClassLoaderFactory.createClassLoader(systemServerClasspath,
librarySearchPath,
null /* libraryPermittedPath */,
libraryPath,
libraryPath,
ClassLoader.getSystemClassLoader(),
targetSdkVersion,
true /* isNamespaceShared */);