1. What is binder?
- Intuitively, Binder is a class in Android that inherits the IBinder interface
- From the perspective of IPC (inter-process communication, interprocess communication), Binder is a cross-process communication in Android, and Binder can be understood as a virtual physical device whose device drivers are/dev/binder, This mode of communication is not in Linux
- From the Android framework perspective, Binder is a bridge for ServiceManager to connect various manager (Activitymanager, windowmanager,etc) and corresponding ManagerService
- From the Android application layer, Binder is the medium of communication between the client and the server, and when you bindservice, the server returns a Binder object containing the service-side business call, through which the binder object Clients can access services or data provided by the server, including General Service and AIDL based services
2.
444
An analysis of Android binder mechanism