0

I have a service process using binder and runs under product partition. To connect to this service from Apps, I have written a shared library which uses AIBinder (eventually link with libbinder_ndk.so). However, I can't use /dev/binder as its only meant for framework services. I used

::android::ProcessState::initWithDriver("/dev/vndbinder"); in the service process which is mentioned here. However, there is no equivalent i could find for AIBinder to initialize. As soon as I load client library, it waits for the service at /dev/binder. To try it with other ways, I wrote another native client process which uses the above code (to init with vndbinder) and I link my shared library with this native client process. When I run this client, I get the following error.

E Parcel : Expecting header 0x564e4452 but found 0x53595354. Mixing copies of libbinder?

Could you please help me about how can i connect to my service?

0 Answers0