I'm developing a (native) service process whose executable resides on the system partition on Android 8.1/9.0. Let's call the process S. S is supposed to provide RPC service to a process V whose executable resides on the vendor partition. I read from Android Treble architecture that system components are separated from vendor ones by HIDL interfaces. Shall I use the callback interface in HIDL to accommodate my need, or shall I use some other mechanisms such as AIDL?
Yes, you need to use the Hardware Binder context together with HIDL
.
Background: There are now three Binder contexts:
/dev/binder
)AIDL
./dev/vndbinder
)AIDL
as well./dev/hwbinder
)AIDL
wasn't safe enough anymore. Thus HIDL
was introduced and is used by this context.