[DESCRIPTION]
[SOLUTION]
查看 frameworks/base/core/res/res/xml/power_profile.xml。
<item name="none">0</item>
<item name="screen.on">0.1</item> <!-- ~200mA -->
<item name="screen.full">0.1</item> <!-- ~300mA -->
<item name="bluetooth.active">0.1</item> <!-- Bluetooth data transfer, ~10mA -->
<item name="bluetooth.on">0.1</item> <!-- Bluetooth on & connectable, but not connected, ~0.1mA -->
<item name="wifi.on">0.1</item> <!-- ~3mA -->
It can be seen that these data are invalid, Android O will not set these data by default. OEM manufacturers need to configure the relevant values according to the project.
It is best to use the overlay method to modify the power_profile.xml under your company's project, similar to the following path (the path is for reference only):
/device/mediateksample/k71v1_64_bsp/overlay/frameworks/base/core/res/res/xml/power_profile.xml
How to configure these parameters, please search "Power Profile for Android" in DCC. If you are unclear, please contact CPM. Please refer to your document for configuration.