Change path to gralloc.default
Libraries under /hardware/libhardware/modules should go to /vendor/.
This CL changes hardcoded path to gralloc.default.so
Bug: 35907904
Test: Compiled and checked install path. Also code searched to see
if there are hardcoded paths.
Change-Id: I6c304b048047053d782a0ed91abfbc3140bdd261
diff --git a/system/gralloc/gralloc.cpp b/system/gralloc/gralloc.cpp
index 5104e2f..236f633 100644
--- a/system/gralloc/gralloc.cpp
+++ b/system/gralloc/gralloc.cpp
@@ -1260,9 +1260,9 @@
}
ALOGD("Emulator without host-side GPU emulation detected.");
#if __LP64__
- module = dlopen("/system/lib64/hw/gralloc.default.so", RTLD_LAZY|RTLD_LOCAL);
+ module = dlopen("/vendor/lib64/hw/gralloc.default.so", RTLD_LAZY|RTLD_LOCAL);
#else
- module = dlopen("/system/lib/hw/gralloc.default.so", RTLD_LAZY|RTLD_LOCAL);
+ module = dlopen("/vendor/lib/hw/gralloc.default.so", RTLD_LAZY|RTLD_LOCAL);
#endif
if (module != NULL) {
sFallback = reinterpret_cast<gralloc_module_t*>(dlsym(module, HAL_MODULE_INFO_SYM_AS_STR));