[Q] Where is the HAL code (or binary) for proximity and other sensors?

garyd9

Inactive Recognized Developer
Sep 13, 2006
2,644
2,729
0
49
Pittsburgh, PA
Digging through the AOSP code, I'm unable to locate the HAL library (in either binary or source form) for sensors. (In hammerhead, it's device/lge/hammerhead/libsensors.)

What I'd like to do is use that HAL to find the kernel interface being used for the proximity sensor. Anyone have an idea?

Thanks
Gary
 

garyd9

Inactive Recognized Developer
Sep 13, 2006
2,644
2,729
0
49
Pittsburgh, PA
I don't think there's anything in the kernel. It's probably firmware.
I kind of feared that, but then there should still be a HAL binary (even if it's precompiled) similar to how they put out lights.shamu.so (or shamu.lights.so) for the LED HAL. Given any binary, I should be able to RE enough information to get what I need.
 

garyd9

Inactive Recognized Developer
Sep 13, 2006
2,644
2,729
0
49
Pittsburgh, PA
Fyi, it seems to be accessible via a socket... Based on strings in the Qualcomm binaries. Now comes the hard part of figuring out how to make use of this from kernel code...

BTW, my motive here is to find a way to block the kernel functionality of double touch to turn on screen based on the proximity sensor... to prevent accidental turn ons. I realize that the device would still come out of sleep, but if I prevent the screen from waking up, at least there won't be accidental dialing, etc...

Oh, and @upndwn4par, please feel free to PM me to discuss this thread's subforum location if you'd like.
 
Last edited:

upndwn4par

Inactive Recognized Developer
Jan 22, 2012
3,640
10,375
0
New Jersey
Fyi, it seems to be accessible via a socket... Based on strings in the Qualcomm binaries. Now comes the hard part of figuring out how to make use of this from kernel code...

BTW, my motive here is to find a way to block the kernel functionality of double touch to turn on screen based on the proximity sensor... to prevent accidental turn ons. I realize that the device would still come out of sleep, but if I prevent the screen from waking up, at least there won't be accidental dialing, etc...

Oh, and @upndwn4par, please feel free to PM me to discuss this thread's subforum location if you'd like.
[Q] Where is the HAL code (or binary) for proximity and other sensors?
You are asking a question.

Questions go in Q&A.

Nothing to discuss.

Happy New Year. :)