'Proximity sensor access from android application using keyevent/ switch event
On my custom device I am using custom AOSP android 11. I connect proximity sensor and able to make it work till kernel and able to see values are changing on console.
I am able to mange the add custom keyevent for the same and working fine at application as well. But same as key there is switch also available in kernel side and I want to map kernel sw (binary same as laptop led detect pin) in kernel there is "SW_FRONT_PROXY" macro and added on gpio-keys.kl file but not able to read the same from the android application?
Can any once does it before or anyone has idea how can I achieve this?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
