完善资料让更多小伙伴认识你,还能领取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; |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
1906 浏览 1 评论
synopsys 的design ware:DW_fpv_div,浮点数除法器,默认32位下,想提升覆盖率(TMAX),如果用功能case去提升覆盖率呢?
2382 浏览 1 评论
RK3588 GStreamer调试四路鱼眼摄像头四宫格显示报错
5175 浏览 1 评论
【飞凌嵌入式OK3576-C开发板体验】RKNN神经网络-YOLO图像识别
254 浏览 0 评论
【飞凌嵌入式OK3576-C开发板体验】SSH远程登录网络配置及CAN通讯
1336 浏览 0 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 02:30 , Processed in 0.585046 second(s), Total 76, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号