Sincerely ask binder

Applications using the service communication between Aidl and framework, are Java.
Java service call JNI to create a c++ client, the client and one in C + + to write the service through the bind communication.
Whether the c++ client need to open the bind drive, and then set up a reception with monitoring thread?

Started by Isidore at December 13, 2016 - 2:36 PM

The application and service Java is bind communication

Posted by Isidore at December 23, 2016 - 3:04 PM

The Java layer of the service have a manager called ServiceManager, all Java services are registered to it to management, the application calls the Java service, is the first and main communication, request to get the required service, an instance of binder object returns a required service, and then use this object can invoke the Java service (using binder) for example, AMS, PMS etc.. From the beginning to the end, only the c++ layer of a IPCThreadState to wait for the binder communication requests and feedback.
The landlord said c++ client did not open binder, and did not monitor the thread, it is a direct request and obtain feedback
BnServiceXXXX (local) -- <> binder <> -- BpServiceXXXX (service);

Posted by Adonis at December 27, 2016 - 3:51 PM

Thank you. I want to know whether the c++ client need to re open the bind drive, and then through the bind communication thread monitor and server. Bind Java will not affect

Posted by Isidore at January 01, 2017 - 4:42 PM

Should not need.

Posted by maker at January 05, 2017 - 5:15 PM

I think c++ is client do not need to open the bind drive and execution monitoring thread

Posted by Isidore at January 07, 2017 - 5:21 PM