comprehensive-rust icon indicating copy to clipboard operation
comprehensive-rust copied to clipboard

The AIDL service section can be improved

Open 0nlyjazz opened this issue 2 years ago • 0 comments

Hello, I am interested into performing binder IPC using Rust (of course with AIDL as backend). The relevant section of the course introduces to only basic service and client creation. While it serves the purpose but one of the crucial aspect has been missed out i.e. the "extension" portion.

As we know, it is strongly discouraged to modify the frozen APIs rather introduce new ones as an "extension" to a AIDL service. For example, if I want to add extra functionality to an existing "provider" service, I should register my extension.

In C++ it can be easily done using "setExtension" function call. I have currently no idea how to do it in Rust. It would be really helpful if it was shown to us how we can achieve the same functionality in Rust binder service.

Thank you.

0nlyjazz avatar Jun 19 '23 01:06 0nlyjazz