AIDL HAL by Example: Using Hardware from Android Application
summary
Built an AIDL HAL for an Infineon 60 GHz radar plus a system service and app that stream processed frames and demonstrate presence and gesture detection, with code published under MIT on GitHub. Troubleshooting shows the kernel driver must expose /dev/ttyACM0, ueventd rules or vendor uevent RC to set device ownership, SELinux policy additions to allow open/socket, and an app manifest permission for INTERNET when using sockets. The end-to-end demo works on a Samsung tablet.
AI-written summary · about
chapters (15)
- 0:00Introduction
- 1:06Motivation for HAL examples
- 2:08Connecting hardware to device
- 5:05Communicating via USB and NDK
- 8:21Debugging permissions
- 14:03Refactoring HAL
- 14:47Why HAL exists
- 17:15Demo repositories
- 19:46Exploring AIDL HAL
- 20:50Service design
- 22:17Service implementation
- 24:24Exposing service APIs
- 25:50Android application integration
- 26:32Live radar demo
- 27:59Summary
related talks
35mIntegrating Sensors into Android Hardware
01h 03mIPC: AIDL Is Not a Bad Word
41mExploring Android internals with ADB
25mProbably Not Scary: Android and Hardware
43mUsing Android as OS for a single purpose system
26mDeep Dive: Android Things Peripheral IO Manager
41mUnifying Android and Mainline Kernel Graphics Stack
01h 08mAndroid Plateform Anatomy
