An analysis of Android binder mechanism

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.