Android's power management framework

Source: Internet
Author: User

Android's power management framework

Android uses locks and timers to switch the state of the system to minimize power consumption, and the entire system's power management framework is divided into five parts: the application layer, the framework layer, the JNI layer, the HAL layer, and the kernel layer. The Power management architecture diagram is as follows:

The PowerManager class provides interfaces to the application, such as Wakelock acquire, release, etc., where the upper-level application implements power management through these interfaces.

Powermanagerservice implements the PowerManager interface, PowerManager accesses Powermanagerservice through IBinder.

The powermanagerservice accesses the underlying interface via JNI to enable monitoring of the power state.

The JNI access Hal (POWER.C) invokes the kernel.

The HAL layer accesses the power management functions provided by the kernel through SYSFS. /sys/power/wake_lock,/sys/power/wake_unlock and so on.

Android's power management framework

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.