Android 电池电量数值的配置

sancaiodm Bug异常与ODM定制 2021-09-27 1324 0

项目为展讯平台

在aosp/frameworks/base/core/res/res/xml/power_profile.xml文件内有定义电量的大小,但此处的值并非最终的值,

<item name="battery.capacity">1000</item> 

此值为被device目录下的属性值覆盖

aosp/device/sprd/sharkl3/s9863a3h10/moverlay/device/base/frameworks/base/core/res/res/xml/power_profile.xml

  <!-- This is the battery capacity in mAh (measured at nominal voltage) -->

  <item name="battery.capacity">3500</item>            //修改此值


评论