AIDL Auto generated from .aidl file caller <<interface>> Proxy Stub callee 12
Use case: Who calls ”onPause” in Activity? 2:Send message Activity by Handler 3:”onPause” queue is called Looper in main thread Activity Manager Mai Mai n n Bin Bin de der r T T h h rea rea d d T T hre hre ad #1 ad #1 Kernel 1:Call ”schedulePauseActivity” across process 13
Not for general purpose. Tuned for specific transaction.
Have internal data per thead
(CF. Socket have internal data per fd.)
Not use ”write” and ”read”. Write and read at once by ”ioctl”. 14
Transaction of Binder Process A and B have different memory space. They can not see each other. Kernel Process B Process A Binder Copy memory by copy_from _user Then, wake up process B Kernel Process B Binder Process A Copy memory by copy_to_user 15