Recovery & Repair
Data Transfer
Converter
Recorder
News & Events

All Battery Stats in Android Marshmallow Must be Transparent

By FonePaw | Oct 28 , 2015

For Android users, who have their eyes on the battery endurance of phone, the new rule or Android 6.0 will be a good one below. Google will not allow OEMs to hide information from battery stats in Marshmallow. Some device markets usually remove the certain stats totally, and don't support users to check the tracks of battery usage. Google states that it won't be allowed in Android 6.0, according to the Marshmallow Compatibility Definition Document (PDF).

Android Battery Usage

 

"A more accurate accounting and reporting of the power consumption provides the app developer both the incentives and the tools to optimize the power usage pattern of the application", the CDD text states.

 

  • Therefore, device implementations MUST be able to track hardware component power usage and attribute that power usage to specific applications. Specifically, implementations:
  1. MUST provide a per-component power profile that defines the current consumption value for each hardware component and the approximate battery drain caused by the components over time as documented in the Android Open Source Project site.
  2. MUST report all power consumption values in milliampere hours (mAh).
  3. SHOULD be attributed to the hardware component itself if unable to attribute hardware component power usage to an application.
  4. MUST report CPU power consumption per each process's UID. The Android Open Source Project meets the requirement through the uid_cputime kernel module implementation.

 

  • MUST make this power usage available via the adb shell dumpsys batterystats shell command to the app developer.

 

  • MUST honor the android.intent.action.POWER_USAGE_SUMMARY intent and display a settings menu that shows this power usage.

guest
0 Comments
Inline Feedbacks
View all comments

Submit Guest Post to FonePaw

Share Your Masterpiece on FonePaw

0
Would love your thoughts, please comment.x
()
x