Fix system library search path.
Bug: 8162719
Change-Id: I87421fdbafcc9f05692dc9e09ae5474fbb8bb02d
diff --git a/renderscript/v8/rs_support/cpu_ref/rsCpuScript.cpp b/renderscript/v8/rs_support/cpu_ref/rsCpuScript.cpp
index 29ed1c2..78d4a73 100644
--- a/renderscript/v8/rs_support/cpu_ref/rsCpuScript.cpp
+++ b/renderscript/v8/rs_support/cpu_ref/rsCpuScript.cpp
@@ -181,7 +181,7 @@
// We do this to allow bundled applications to use the compatibility
// library fallback path. Those applications don't have a private
// library path, so they need to install to the system directly.
- String8 scriptSONameSystem("/system/lib/lib");
+ String8 scriptSONameSystem("/system/lib/librs.");
scriptSONameSystem.append(resName);
scriptSONameSystem.append(".so");
mScriptSO = dlopen(scriptSONameSystem.string(), RTLD_NOW | RTLD_LOCAL);