我现在获取到串口给的电量数据,如何将电量设置到状态栏的电量显示,和充电状态

固件类型:官方提供的固件
固件文件名称:roc_rk3588s_pc_mipi/Android12.0/V1.0.2209211833/e7
固件下载地址:自带
Log日志:新建文本文档.txt

我现在获取到串口给的电量数据,如何将电量设置到状态栏的电量显示,和充电状态显示?系统有没有给接口?
tchip_askquestions
新建文本文档.txt (4 Bytes)

需要自行调试,源码都开放出去的,网上一搜相关资料都很多的
https://developer.android.google.cn/training/monitoring-device-state/battery-monitoring?hl=zh-cn
https://blog.csdn.net/weilaideta/article/details/51760434

需要我们协助,请联系商务 sales@t-firefly.com