Study the morning Android underlying mechanism event monitor, such as the following summary:
The kernel driver monitors the state and behavior of the hardware and sends events to the user space by the uevent mechanism;
Monitor uevent from the kernel via user space ueventobserver, processing.
The netlink mechanism is used for communication between
The 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
Copyright notice: This article blog original article. Blogs, without consent, may not be reproduced.
Android summary of basic mechanisms to monitor events