关于android查看电池历史记录中的电池已使用时间解释

谷歌安卓系统工程师Dianne Hackborn澄清了关于电池指示器的误解,解释该指示器仅用于记录不同应用的电量使用情况,与电池电量和寿命无关。当设备充满电后拔掉充电器,系统会自动删除/重置此文件,以便重新记录各应用的电量使用情况。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

由于这个文件并没有公布源码,以及民间也并未反编译成功,有些人就自以为是的认为它记录的是电池数据并由此展开丰富联想认为它有神圣的目的。

对此google负责开发安卓系统的工程师Dianne Hackborn在其google+上曾专门说过下面一段话:

Today's myth debunking:"The battery indicator in the status/notification bar is a reflection of the batterystats.bin file in the data/system/ directory."No, it does not.This file is used to maintain, across reboots, low-level data about the kinds of operations the device and your apps are doing between battery changes. That is, it is solely used to compute the blame for battery usage shown in the "Battery Use" UI in settings.That is, it has deeply significant things like "app X held a wake lock for 2 minutes" and "the screen was on at 60% brightness for 10 minutes."It has no impact on the current battery level shown to you.It has no impact on your battery life.Deleting it is not going to do anything to make your more device more fantastic and wonderful... well, unless you have some deep hatred for seeing anything shown in the battery usage UI. And anyway, it is reset every time you unplug from power with a relatively full charge (thus why the battery usage UI data resets at that point), so this would be a much easier way to make it go away.

他明确表示:这个betterystats.bin文件仅仅是一个记录不同app使用电量的一个文件。也就是说,它的作用仅仅是让你点击 设置-电池 看到的那个画面!当你充满电以后拔掉充电器,系统会自动删除/重置这个文件以便重新记录各个app的电量使用情况。与电池电量和寿命没有任何关系!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值