Hi All,
How to add new light sensor(ambient light sensor) into Android(6.0) HAL layer.?
without adding to HAL how to test it??
Regards
Aravinth
Solved! Go to Solution.
I have a similar question.
How to add iio:device to imx6 HAL ?
Hi Mak,
Added new sensor is big procedure. Can you please explore more about it. What kind of sensor you want to add, chip name, etc.?
Regards,
Aravinth
I have imx6 Nitrogen6x_Max board.
Added ALS opt3001 on i2c2.
The driver in the kernel shows up as a iio device under 2-0044.
I can read the values from shell.
But the sensor HAL uses input devices instead.
Question was how to update Sensor HAL to accommodate an iio device ?
Did you resolve the issue?
I have similar case:
I am trying to add opt3001(i2c0) HAL support to android oreo.
I am working on i.MX6 variscite som
I have added device driver for opt3001.
Thanks for your guys. i have fixed this issue.
Regards,
Aravinth
Hi Aravinth
one can refer to common android documentation
input - Android sensors hardware abstraction layer - Stack Overflow
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks for response igor,
My light sensor device comes under iio:device, But right now in imx6 Android Hal layer they searching sensor device only inside /dev/input/
How can i make it for iio:device ??
Regards
Aravinth