android-discuss icon indicating copy to clipboard operation
android-discuss copied to clipboard

flyme os 4.2 ServiceManager.getService("batteryinfo") 为空

Open wudelun opened this issue 11 years ago • 2 comments

如题:我正在做app电量检测的工作,我想知道这个“batteryinfo”服务获取为空,在多少版本以前能获取,我打印出的服务只有“batterystats”,“battery”。

wudelun avatar Mar 24 '15 01:03 wudelun

这个 是他们ROM工程师 自己写的, 他想改成 "dianchiinfo"也没办法. 你既然写SM 应该拿到源码了吧? 在BatteryService中看看定义呗? 我猜他们换成了 batterystats

sfshine avatar Mar 29 '15 13:03 sfshine

解决了么?

thedreamwork avatar Apr 06 '15 11:04 thedreamwork