完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
Platform: Rockchip
OS: Android 6.0 Kernel: 3.10.92 之前文章[RK3288][Android6.0] 调试笔记 — 伪电池驱动添加 阐述了如何添加一个假的电池驱动, 测试发现Setting里的电池电量一直是100% 跟踪发现Android6.0相比之前的Android4.4会判断Charger是否存在,不存在就认为设备不具备充电能力并且设定当前电量是100% 解决方法: kris@:~/rk3288/system/core/healthd$ g df 6446f0e6bfabeee8cbe8b233bf7bf87ad7b55665 727c2d4ab5c4b50555b8c64d1b2a61a342e4360c diff --git a/healthd/BatteryMonitor.cpp b/healthd/BatteryMonitor.cpp index 07e7a18..396dfef 100644 --- a/healthd/BatteryMonitor.cpp +++ b/healthd/BatteryMonitor.cpp @@ -555,18 +555,12 @@ void BatteryMonitor::init(struct healthd_config *hc) { // This indicates that there is no charger driver registered. // Typically the case for devices which do not have a battery and // and are always plugged into AC mains. - -/*Kris, 20170728, we don't have any charger. { */ -#if 0 if (!mChargerNames.size()) { KLOG_ERROR(LOG_TAG, "No charger supplies foundn"); mBatteryFixedCapacity = ALWAYS_PLUGGED_CAPACITY; mBatteryFixedTemperature = FAKE_BATTERY_TEMPERATURE; mAlwaysPluggedDevice = true; } -#endif -/*Kris, 20170728, we don't have any charger. } */ - if (!mBatteryDevicePresent) { KLOG_WARNING(LOG_TAG, "No battery devices foundn"); hc->periodic_chores_interval_fast = -1; |
|
|
|
Platform: Rockchip
OS: Android 6.0 Kernel: 3.10.92 之前文章[RK3288][Android6.0] 调试笔记 — 伪电池驱动添加 阐述了如何添加一个假的电池驱动, 测试发现Setting里的电池电量一直是100% 跟踪发现Android6.0相比之前的Android4.4会判断Charger是否存在,不存在就认为设备不具备充电能力并且设定当前电量是100% 解决方法: kris@:~/rk3288/system/core/healthd$ g df 6446f0e6bfabeee8cbe8b233bf7bf87ad7b55665 727c2d4ab5c4b50555b8c64d1b2a61a342e4360c diff --git a/healthd/BatteryMonitor.cpp b/healthd/BatteryMonitor.cpp index 07e7a18..396dfef 100644 --- a/healthd/BatteryMonitor.cpp +++ b/healthd/BatteryMonitor.cpp @@ -555,18 +555,12 @@ void BatteryMonitor::init(struct healthd_config *hc) { // This indicates that there is no charger driver registered. // Typically the case for devices which do not have a battery and // and are always plugged into AC mains. - -/*Kris, 20170728, we don't have any charger. { */ -#if 0 if (!mChargerNames.size()) { KLOG_ERROR(LOG_TAG, "No charger supplies foundn"); mBatteryFixedCapacity = ALWAYS_PLUGGED_CAPACITY; mBatteryFixedTemperature = FAKE_BATTERY_TEMPERATURE; mAlwaysPluggedDevice = true; } -#endif -/*Kris, 20170728, we don't have any charger. } */ - if (!mBatteryDevicePresent) { KLOG_WARNING(LOG_TAG, "No battery devices foundn"); hc->periodic_chores_interval_fast = -1; |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
RK3568 Android11让系统ntp校准时间生效,需要设置些什么
1495 浏览 1 评论
2695 浏览 1 评论
3631 浏览 2 评论
RK3568平台,进入烧录模式,部分电脑提示无法识别,无法烧录
6499 浏览 1 评论
【RK3568 Android11.0】如何在设置-显示-HDMI-分辨率设置中添加3840*2160的选项?
9039 浏览 1 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-6-26 16:26 , Processed in 0.720500 second(s), Total 74, Slave 56 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191