diff --git a/core/java/com/android/internal/os/ZygoteInit.java b/core/java/com/android/internal/os/ZygoteInit.java index 52b72a4e99919..1c307c9410f30 100644 --- a/core/java/com/android/internal/os/ZygoteInit.java +++ b/core/java/com/android/internal/os/ZygoteInit.java @@ -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 */);