安卓电源管理驱动

2019-07-14 00:38发布

Android 电源驱动会在/sys目录下创建子目录
android_power并生成相应的属性文件,通过attribute的
show/store来访问和设置power state/request.



android HAL层对电源控制的操作


hardwarelibhardwarepowerpower.c
const char * const OLD_PATHS[] =
{
"/sys/android_power/acquire_partial_wake_lock",
"/sys/android_power/release_wake_lock",
"/sys/android_power/request_state"
};


http://www.57itsq.com/read.php?tid-873.html