Use your AIDL HAL through libbinder_ndk
-
Just for curiosity, I made a libbinder_ndk libhybris wrapper, then ran the
aidl
utility through the actual.aidl
files for IVibrator to generate bindings. With a few twists, it does let me talk to AIDL vibrator HAL using a very straight-forward code.Interesting and could be used to deal with some hard-to-manually-marshal AIDL protocols. There's no intention to actually use it in UT yet (hence the off-topic channel), but it could be interesting to someone.