Hi Felipe,
Thanks for your reply.
As I mentioned in my previous post i am following the same steps.
and i checked the Android.bp file with yous and it is same only.
But i think the issue is that test-nusensor is not able to find out the file for -> SENSORS_HARDWARE_MODULE_ID
when it calls function => hw_get_module(SENSORS_HARDWARE_MODULE_ID, (hw_module_t const**)&module);
As per the hardware/libhardware/hardware.c file it checks for .so files based on SENSORS_HARDWARE_MODULE_ID.
so it checks for .so file with below extension -
SENSORS_HARDWARE_MODULE_ID.default.so
or
"ro.hardware",
"ro.product.board",
"ro.board.platform",
"ro.arch"
If nothing matches then it gives hw_get_module() failed (No such file or directory) error.
But my understanding is when i build AOSP then by default all the hal modules for sensors file should also get builds.
but i am not sure if i need to build any sensor hal modules separately.
In /out/target/product/evk8mm i can see many sensors.dynamic_sensors_hal.so files but i am not sure if
test-nusensor is looking for these .so files. Please confirm.
Thanks,
Maneesh