am b0c30322: hardware: look in /vendor for default.so

* commit 'b0c303229fcbc89a0afa8f170de64f2a7fee9d6c':
  hardware: look in /vendor for default.so
This commit is contained in:
Colin Cross 2013-10-01 22:21:16 -07:00 committed by Android Git Automerger
commit c9940a2bfe

View file

@ -153,6 +153,10 @@ int hw_get_module_by_class(const char *class_id, const char *inst,
HAL_LIBRARY_PATH1, name, prop);
if (access(path, R_OK) == 0) break;
} else {
snprintf(path, sizeof(path), "%s/%s.default.so",
HAL_LIBRARY_PATH2, name);
if (access(path, R_OK) == 0) break;
snprintf(path, sizeof(path), "%s/%s.default.so",
HAL_LIBRARY_PATH1, name);
if (access(path, R_OK) == 0) break;