Overview of the mechanism of Android monitoring underlying events

Source: Internet
Author: User

Studied the mechanism of a morning Android monitor underlying event, summarized as follows:

The kernel driver listens to the state and behavior of hardware devices and sends events to user space through the uevent mechanism;

User space is ueventobserver to listen to uevent from the kernel for processing.

The netlink mechanism is used for communication between kernel space and user space.


Reference articles are:


Android uses ueventobserver:

http://blog.csdn.net/lushengchu_luis/article/details/9466405

http://blog.csdn.net/dfysy/article/details/7330919


Android uses the uevent mechanism:

http://blog.csdn.net/yangwen123/article/details/9053527

Http://www.cnblogs.com/qclzdh/archive/2011/06/13/2080166.html


Linux NetLink Mechanism:

Http://stackoverflow.com/questions/22667332/how-to-use-netlink-sockets-for-kernel-userspace-communication-android

http://blog.csdn.net/azloong/article/details/6799476


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.