Android 电量统计

BatteryStatsService

Posted by LXG on September 29, 2024

测量电量值-Google

Android App 电量统计原理与优化

耗电硬件模块

battery_stats

电量测量配置

frameworks/base/core/res/res/xml/power_profile.xml

Android 系统使用此文件来描述设备各个硬件模块的额定功率,包括上面提到的多档位功率和 CPU 电量算需要到的各种参数值


<?xml version="1.0" encoding="utf-8"?>

<device name="Android">
    <!-- All values are in mAh except as noted -->
    <item name="none">2.18</item>
    <item name="screen.on">181.08</item>
    <item name="screen.full">609.72</item>
    <item name="bluetooth.active">26.47</item>
    <item name="bluetooth.on">4.05</item>
    <item name="wifi.on">3.81</item>
    <item name="wifi.active">111.43</item>
    <item name="wifi.scan">149.04</item>
    <item name="dsp.audio">19.15</item>
    <item name="dsp.video">113.57</item>
    <item name="camera.avg">791.67</item>

    <!-- Different CPU speeds as reported in
         /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state -->
    <array name="cpu.speeds.cluster0">
        <value>204000</value>
        <value>306000</value>
        <value>408000</value>
        <value>510000</value>
        <value>612000</value>
        <value>714000</value>
        <value>816000</value>
        <value>918000</value>
        <value>1020000</value>
        <value>1122000</value>
        <value>1224000</value>
        <value>1326000</value>
        <value>1428000</value>
        <value>1530000</value>
        <value>1632000</value>
        <value>1734000</value>
        <value>1836000</value>
        <value>1912500</value>
    </array>
    <!-- Additional power consumption by CPU excluding cluster and core when
         running -->
    <array name="cpu.active">
        <value>0.1</value>
    </array>
    <!-- Power consumption when CPU is idle -->
    <item name="cpu.idle">8.57</item>  <!-- suspend power 36 mW -->
    <item name="cpu.awake">97.14</item> <!-- idle screen off 444 mW -->
    <array name="cpu.active.cluster0">
    <!-- Power consumption at different speeds -->
        <value>36.95</value> <!-- 204000 -->
        <value>60.08</value> <!-- 306000 -->
        <value>80.32</value> <!-- 408000 -->
        <value>103.28</value> <!-- 510000 -->
        <value>121.55</value> <!-- 612000 -->
        <value>147.79</value> <!-- 714000 -->
        <value>174.06</value> <!-- 816000 -->
        <value>173.26</value> <!-- 918000 -->
        <value>181.49</value> <!-- 1020000 -->
        <value>180.85</value> <!-- 1122000 -->
        <value>179.45</value> <!-- 1224000 -->
        <value>334.99</value> <!-- 1326000 -->
        <value>373.08</value> <!-- 1428000 -->
        <value>404.53</value> <!-- 1530000 -->
        <value>454.39</value> <!-- 1632000 -->
        <value>483.34</value> <!-- 1734000 -->
        <value>533.69</value> <!-- 1836000 -->
        <value>531.57</value> <!-- 1912500 -->
    </array>
    <array name="cpu.clusters.cores">
        <value>4</value> <!-- Cluster 0 has 4 cores (cpu0, cpu1, cpu2, cpu3) -->
    </array>
    <!-- This is the battery capacity in mAh -->
    <item name="battery.capacity">9000</item>

    <array name="wifi.batchedscan">
        <value>.0003</value> <!-- 1-8/hr -->
        <value>.003</value>  <!-- 9-64/hr -->
        <value>.03</value>   <!-- 65-512/hr -->
        <value>.3</value>    <!-- 513-4,096/hr -->
        <value>3</value>     <!-- 4097-/hr -->
    </array>
</device>

BatteryStatsService

./frameworks/base/services/core/java/com/android/server/am/BatteryStatsService.java

BatteryStatsService 的工作流程大致可以分为两个部分:时长统计 & 功耗计算

battery_stats_service

dumpsys batterystats


Battery History (0% used, 5564 used of 4096KB, 23 strings using 1492):
                    0 (20) RESET:TIME: 2024-08-29-13-02-01
                    0 (3) 050 status=discharging health=good plug=ac temp=26 volt=0 charge=0 modemRailChargemAh=0 wifiRailChargemAh=0 +running +plugged +charging
                 +4ms (2) 050 stats=0:"wakelock-change"
                +16ms (2) 050 stats=0:"wakelock-change"
             +1s160ms (14) TIME: 2024-09-29-13-35-25
            +19s916ms (4) 050 +wake_lock=-1:"screen" +screen brightness=bright stats=0:"screen-state"
            +21s087ms (2) 050 stats=0:"network-stats-enabled"
            +21s336ms (2) 050 stats=0:"remove-uid"
            +21s726ms (2) 050 +user=0:"0"
            +21s727ms (2) 050 +userfg=0:"0"
            +22s354ms (2) 050 +job=1000:"com.android.providers.settings/.WriteFallbackSettingsFilesJobService"
            +22s424ms (2) 050 +top=1000:"com.android.settings:CryptKeeper"
            +22s690ms (2) 050 -top=1000:"com.android.settings:CryptKeeper"
            +22s690ms (2) 050 +top=1000:"com.android.settings"
            +23s268ms (2) 050 -job=1000:"com.android.providers.settings/.WriteFallbackSettingsFilesJobService"
            +25s305ms (1) 050 +usb_data
            +26s953ms (2) 050 phone_signal_strength=moderate
            +29s156ms (2) 050 -top=1000:"com.android.settings"
            +29s741ms (2) 050 +top=1000:"com.wif.welcome"
            +32s776ms (2) 050 +job=u0a50:"com.android.providers.media.module/com.android.providers.media.MediaService"
            +34s534ms (2) 050 +job=u0a51:"com.android.permissioncontroller/.permission.service.AutoRevokeService"
            +34s542ms (3) 050 phone_signal_strength=good -job=u0a51:"com.android.permissioncontroller/.permission.service.AutoRevokeService"
            +39s587ms (2) 050 +tmpwhitelist=u0a9:"broadcast:u0a9:com.android.providers.calendar.intent.CalendarProvider2"
            +48s031ms (2) 050 -job=u0a50:"com.android.providers.media.module/com.android.providers.media.MediaService"
            +49s631ms (2) 050 -tmpwhitelist=u0a9:"broadcast:u0a9:com.android.providers.calendar.intent.CalendarProvider2"
          +1m15s356ms (2) 050 phone_signal_strength=moderate
          +1m19s769ms (2) 050 +job=1000:"android/com.android.server.pm.BackgroundDexOptService"
          +1m21s969ms (2) 050 -job=1000:"android/com.android.server.pm.BackgroundDexOptService"
          +1m26s879ms (2) 050 +longwake=1001:"*telephony-radio*"
          +1m30s051ms (2) 050 -top=1000:"com.wif.welcome"
          +1m30s051ms (2) 050 +top=u0a43:"com.android.launcher3"
          +1m33s645ms (2) 050 -longwake=1001:"*telephony-radio*"
          +1m53s898ms (1) 050 -usb_data
          +1m55s417ms (2) 050 phone_signal_strength=good
          +1m58s510ms (1) 050 +usb_data
          +2m08s568ms (1) 050 +video
          +2m11s894ms (3) 050 +audio -top=u0a43:"com.android.launcher3"
          +2m11s943ms (3) 050 -audio +top=1000:"com.android.settings"
          +2m12s340ms (2) 050 stats=0:"get-stats"
          +2m12s413ms (2) 050 stats=0:"get-stats"
          +2m12s539ms (2) 050 stats=0:"get-stats"
          +2m13s772ms (2) 050 +audio
          +2m14s006ms (2) 050 -audio
          +2m16s642ms (2) 050 +audio
          +2m16s862ms (2) 050 -audio
          +2m20s189ms (3) 050 +audio stats=0:"get-stats"
          +2m20s467ms (3) 050 -audio stats=0:"get-stats"
          +2m21s429ms (2) 050 +audio
          +2m21s659ms (2) 050 -audio
          +2m23s241ms (3) 050 +audio stats=0:"get-stats"
          +2m23s487ms (3) 050 -audio stats=0:"get-stats"
          +2m23s623ms (2) 050 stats=0:"get-stats"
          +2m24s842ms (2) 050 +audio
          +2m25s075ms (2) 050 -audio
          +2m27s605ms (2) 050 +audio
          +2m27s838ms (2) 050 -audio
          +2m29s651ms (2) 050 +audio
          +2m29s880ms (2) 050 -audio
          +2m30s696ms (2) 050 +audio
          +2m30s923ms (2) 050 -audio
          +2m32s089ms (2) 050 +audio
          +2m32s332ms (2) 050 -audio
          +2m33s523ms (2) 050 +audio
          +2m33s756ms (2) 050 -audio
          +2m41s204ms (2) 050 +audio
          +2m41s473ms (2) 050 -audio
          +2m41s675ms (2) 050 +audio
          +2m41s917ms (2) 050 -audio
          +2m43s047ms (2) 050 +audio
          +2m43s276ms (2) 050 -audio
          +2m44s600ms (2) 050 +audio
          +2m44s838ms (2) 050 -audio
          +2m46s509ms (2) 050 +audio
          +2m46s745ms (2) 050 -audio
          +2m55s103ms (1) 050 -video
          +3m15s549ms (2) 050 phone_signal_strength=moderate
          +3m36s234ms (1) 050 +video
          +3m42s791ms (1) 050 -video
          +4m00s963ms (2) 050 +audio +video
          +4m01s264ms (2) 050 -audio
          +4m03s818ms (2) 050 +audio
          +4m04s052ms (2) 050 -audio
          +4m05s355ms (2) 050 +audio
          +4m05s586ms (2) 050 -audio
          +4m06s443ms (2) 050 +audio
          +4m06s674ms (2) 050 -audio
          +4m07s894ms (3) 050 +audio stats=0:"get-stats"
          +4m08s071ms (3) 050 -audio stats=0:"get-stats"
          +4m08s153ms (3) 050 +audio stats=0:"get-stats"
          +4m09s112ms (2) 050 -audio
          +4m10s078ms (2) 050 +audio
          +4m10s296ms (2) 050 -audio
          +4m11s423ms (2) 050 +audio
          +4m11s644ms (3) 050 +wifi_scan -audio +wifi stats=0:"wifi-off"
          +4m12s468ms (2) 050 stats=0:"wifi-state"
          +4m13s778ms (1) 050 -wifi_scan
          +4m18s342ms (1) 050 -video
          +4m22s806ms (1) 050 +wifi_scan
          +4m24s264ms (1) 050 -wifi_scan
          +4m32s584ms (1) 050 +wifi_scan
          +4m34s101ms (1) 050 -wifi_scan
          +4m43s018ms (1) 050 +wifi_scan
          +4m44s544ms (1) 050 -wifi_scan
          +4m53s110ms (1) 050 +wifi_scan
          +4m54s681ms (1) 050 -wifi_scan
          +5m03s138ms (1) 050 +wifi_scan
          +5m04s642ms (1) 050 -wifi_scan
          +5m12s757ms (1) 050 +wifi_scan
          +5m14s199ms (1) 050 -wifi_scan
          +5m23s417ms (1) 050 +wifi_scan
          +5m24s937ms (1) 050 -wifi_scan
          +5m33s268ms (1) 050 +wifi_scan
          +5m34s805ms (1) 050 -wifi_scan
          +5m35s813ms (2) 050 phone_signal_strength=good
          +5m43s312ms (1) 050 +wifi_scan
          +5m44s857ms (1) 050 -wifi_scan
          +5m53s153ms (1) 050 +wifi_scan
          +5m54s567ms (1) 050 -wifi_scan
          +5m55s853ms (2) 050 phone_signal_strength=moderate
          +6m03s320ms (1) 050 +wifi_scan
          +6m04s814ms (1) 050 -wifi_scan
          +6m13s296ms (1) 050 +wifi_scan
          +6m14s761ms (1) 050 -wifi_scan
          +6m15s892ms (2) 050 phone_signal_strength=good
          +6m23s448ms (1) 050 +wifi_scan
          +6m24s969ms (1) 050 -wifi_scan
          +6m32s612ms (1) 050 +wifi_scan
          +6m34s095ms (1) 050 -wifi_scan
          +6m35s924ms (2) 050 phone_signal_strength=moderate
          +6m43s352ms (1) 050 +wifi_scan
          +6m44s889ms (1) 050 -wifi_scan
          +6m53s537ms (1) 050 +wifi_scan
          +6m55s006ms (1) 050 -wifi_scan
          +7m03s784ms (1) 050 +wifi_scan
          +7m05s352ms (1) 050 -wifi_scan
          +7m13s664ms (1) 050 +wifi_scan
          +7m15s227ms (1) 050 -wifi_scan
          +7m23s523ms (1) 050 +wifi_scan
          +7m25s077ms (1) 050 -wifi_scan
          +7m33s732ms (1) 050 +wifi_scan
          +7m35s251ms (1) 050 -wifi_scan
          +7m43s838ms (1) 050 +wifi_scan
          +7m45s252ms (1) 050 -wifi_scan
          +7m53s793ms (1) 050 +wifi_scan
          +7m55s315ms (1) 050 -wifi_scan
          +8m03s739ms (1) 050 +wifi_scan
          +8m05s238ms (1) 050 -wifi_scan
          +8m13s872ms (1) 050 +wifi_scan
          +8m15s366ms (1) 050 -wifi_scan
          +8m23s770ms (1) 050 +wifi_scan
          +8m25s262ms (1) 050 -wifi_scan
          +8m33s820ms (1) 050 +wifi_scan
          +8m35s342ms (1) 050 -wifi_scan
          +8m44s017ms (1) 050 +wifi_scan
          +8m45s519ms (1) 050 -wifi_scan
          +8m54s146ms (1) 050 +wifi_scan
          +8m55s634ms (1) 050 -wifi_scan
          +9m00s438ms (1) 050 +video
          +9m02s039ms (3) 050 +audio -top=1000:"com.android.settings"
          +9m02s174ms (3) 050 -audio +top=u0a43:"com.android.launcher3"
          +9m07s377ms (1) 050 -video
          +9m10s126ms (3) 050 +audio +video -top=u0a43:"com.android.launcher3"
          +9m10s262ms (3) 050 -audio +top=u0a24:"com.baidu.baidulocationdemo"
          +9m12s652ms (3) 050 +wifi_scan +audio -top=u0a24:"com.baidu.baidulocationdemo"
          +9m13s314ms (3) 050 -wifi_scan -audio +top=u0a43:"com.android.launcher3"
          +9m18s247ms (1) 050 -video
          +9m22s687ms (3) 050 +audio +video -top=u0a43:"com.android.launcher3"
          +9m22s825ms (3) 050 -audio +top=1000:"com.wif.devcheck"
          +9m25s643ms (3) 050 +audio -top=1000:"com.wif.devcheck"
          +9m25s789ms (3) 050 -audio +top=u0a43:"com.android.launcher3"
          +9m27s615ms (3) 050 +audio -top=u0a43:"com.android.launcher3"
          +9m27s674ms (2) 050 +top=1000:"com.android.settings"
          +9m27s732ms (3) 050 -audio stats=0:"get-stats"
          +9m27s852ms (2) 050 stats=0:"get-stats"
          +9m27s924ms (2) 050 stats=0:"get-stats"
          +9m29s380ms (2) 050 +audio
          +9m29s622ms (2) 050 -audio
          +9m35s327ms (3) 050 +audio stats=0:"get-stats"
          +9m35s631ms (3) 050 -audio stats=0:"get-stats"
          +9m37s155ms (3) 050 +audio -top=1000:"com.android.settings"
          +9m37s359ms (3) 050 -audio +top=u0a43:"com.android.launcher3"
          +9m42s021ms (1) 050 -video
         +10m07s821ms (1) 050 +video
         +10m10s158ms (3) 050 +audio -top=u0a43:"com.android.launcher3"
         +10m10s238ms (3) 050 -audio +top=1000:"com.android.settings"
         +10m10s461ms (2) 050 stats=0:"get-stats"
         +10m10s688ms (2) 050 stats=0:"get-stats"
         +10m12s379ms (2) 050 +audio
         +10m12s606ms (2) 050 -audio
         +10m59s419ms (3) 050 +audio stats=0:"get-stats"
         +10m59s729ms (3) 050 -audio stats=0:"get-stats"
         +11m00s193ms (3) 050 +audio -top=1000:"com.android.settings"
         +11m00s388ms (3) 050 -audio +top=u0a43:"com.android.launcher3"
         +11m00s748ms (2) 050 +audio
         +11m00s982ms (2) 050 -audio
         +11m01s050ms (2) 050 +audio
         +11m01s282ms (2) 050 -audio
         +11m08s430ms (1) 050 -video
         +11m09s959ms (3) 050 +audio +video -top=u0a43:"com.android.launcher3"
         +11m10s054ms (2) 050 +top=1000:"com.android.settings"
         +11m10s218ms (3) 050 -audio stats=0:"get-stats"
         +11m10s484ms (3) 050 +audio stats=0:"get-stats"
         +11m11s362ms (2) 050 -audio
         +11m12s059ms (2) 050 +audio
         +11m12s298ms (2) 050 -audio
         +11m52s716ms (1) 050 +wifi_scan
         +11m54s171ms (1) 050 -wifi_scan
         +13m36s710ms (2) 050 phone_signal_strength=good
         +14m32s687ms (1) 050 +wifi_scan
         +14m34s173ms (1) 050 -wifi_scan
         +14m36s830ms (2) 050 phone_signal_strength=moderate
         +14m56s872ms (2) 050 phone_signal_strength=good
         +16m37s059ms (2) 050 phone_signal_strength=moderate
         +17m12s668ms (1) 050 +wifi_scan
         +17m14s182ms (1) 050 -wifi_scan
         +17m17s137ms (2) 050 phone_signal_strength=good
         +17m57s223ms (2) 050 phone_signal_strength=moderate
         +19m12s611ms (1) 050 -video
         +19m52s593ms (1) 050 +wifi_scan
         +19m54s112ms (1) 050 -wifi_scan
         +22m16s096ms (2) 050 stats=0:"dump"
         +24m12s589ms (1) 050 +wifi_scan
         +24m14s078ms (1) 050 -wifi_scan
         +26m52s673ms (1) 050 +wifi_scan
         +26m54s128ms (1) 050 -wifi_scan
         +29m41s892ms (2) 050 stats=0:"write"
         +30m21s472ms (1) 050 +wifi_scan
         +30m22s981ms (1) 050 -wifi_scan
         +31m58s895ms (2) 050 phone_signal_strength=good
         +32m38s962ms (2) 050 phone_signal_strength=moderate
         +33m01s580ms (1) 050 +wifi_scan
         +33m03s084ms (1) 050 -wifi_scan
         +33m40s811ms (2) 050 stats=0:"dump"

Per-PID Stats:
  PID 0 wake time: +10s340ms
  PID 464 wake time: +18s659ms
  PID 1081 wake time: +717ms
  PID 464 wake time: +7ms
  PID 1081 wake time: +1m7s815ms
  PID 464 wake time: +2ms
  PID 464 wake time: +2ms
  PID 0 wake time: +1m15s265ms
  PID 464 wake time: +2ms
  PID 464 wake time: +8ms
  PID 464 wake time: +2ms
  PID 464 wake time: +2ms
  PID 464 wake time: +1ms
  PID 464 wake time: +1ms
  PID 464 wake time: +2ms
  PID 464 wake time: +2ms
  PID 464 wake time: +6ms
  PID 464 wake time: +2ms
  PID 464 wake time: +14ms
  PID 464 wake time: +2ms
  PID 464 wake time: +42ms
  PID 1671 wake time: +32ms
  PID 464 wake time: +2ms
  PID 464 wake time: +4ms
  PID 464 wake time: +2ms
  PID 464 wake time: +8ms
  PID 464 wake time: +3ms
  PID 464 wake time: +2ms
  PID 464 wake time: +2ms
  PID 464 wake time: +3ms
  PID 464 wake time: +4ms
  PID 464 wake time: +4ms
  PID 464 wake time: +2ms
  PID 464 wake time: +3ms
  PID 464 wake time: +3ms
  PID 464 wake time: +3ms
  PID 464 wake time: +837ms
  PID 464 wake time: +3ms
  PID 464 wake time: +2ms
  PID 464 wake time: +3ms
  PID 464 wake time: +2ms
  PID 464 wake time: +2ms
  PID 464 wake time: +4ms
  PID 2012 wake time: +34ms
  PID 464 wake time: +4ms
  PID 464 wake time: +3ms
  PID 464 wake time: +3ms
  PID 464 wake time: +1ms
  PID 464 wake time: +3ms
  PID 464 wake time: +3ms
  PID 464 wake time: +4ms
  PID 464 wake time: +4ms
  PID 464 wake time: +3ms
  PID 464 wake time: +4ms
  PID 464 wake time: +4ms
  PID 464 wake time: +1s559ms
  PID 464 wake time: +4ms
  PID 464 wake time: +4ms
  PID 464 wake time: +1ms
  PID 464 wake time: +2ms
  PID 464 wake time: +2ms
  PID 464 wake time: +15s253ms
  PID 464 wake time: +6ms

Daily stats:
  Current start time: 2024-09-29-13-35-43
  Next min deadline: 2024-09-30-01-00-00
  Next max deadline: 2024-09-30-03-00-00

Statistics since last charge:
  System starts: 1, currently on battery: false
  Estimated battery capacity: 9000 mAh
  Min learned battery capacity: 0 mAh
  Max learned battery capacity: 0 mAh
  Time on battery: 0ms (0.0%) realtime, 0ms (--%) uptime
  Time on battery screen off: 0ms (--%) realtime, 0ms (--%) uptime
  Time on battery screen doze: 0ms (--%)
  Total run time: 33m 43s 830ms realtime, 33m 43s 830ms uptime
  Charge time remaining: 1h 0m 0s 0ms 
  Discharge: 0 mAh
  Screen off discharge: 0 mAh
  Screen doze discharge: 0 mAh
  Screen on discharge: 0 mAh
  Device light doze discharge: 0 mAh
  Device deep doze discharge: 0 mAh
  Start clock time: 2024-08-29-13-01-58
  Screen on: 0ms (--%) 0x, Interactive: 0ms (--%)
  Screen brightnesses: (no activity)

  CONNECTIVITY POWER SUMMARY START
  Logging duration for connectivity statistics: 0ms 
  Cellular Statistics:
     Cellular kernel active time: 0ms (--%)
     Cellular Sleep time:  0ms (--%)
     Cellular Idle time:   0ms (--%)
     Cellular Rx time:     0ms (--%)
     Cellular Tx time:     
       less than 0dBm:  0ms (--%)
       0dBm to 8dBm:  0ms (--%)
       8dBm to 15dBm:  0ms (--%)
       15dBm to 20dBm:  0ms (--%)
       above 20dBm:  0ms (--%)
     Cellular data received: 0B
     Cellular data sent: 0B
     Cellular packets received: 0
     Cellular packets sent: 0
     Cellular Radio Access Technology: (no activity)
     Cellular Rx signal strength (RSRP): (no activity)
  Wifi Statistics:
     Wifi kernel active time: 0ms (--%)
     WiFi Scan time:  0ms (--%)
     WiFi Sleep time:  0ms (--%)
     WiFi Idle time:   0ms (--%)
     WiFi Rx time:     0ms (--%)
     WiFi Tx time:     0ms (--%)
     Wifi data received: 0B
     Wifi data sent: 0B
     Wifi packets received: 0
     Wifi packets sent: 0
     Wifi states: (no activity)
     Wifi supplicant states: (no activity)
     Wifi Rx signal strength (RSSI): (no activity)
  GPS Statistics:
     GPS signal quality (Top 4 Average CN0):
      poor (less than 20 dBHz): 0ms (--%) 
      good (greater than 20 dBHz): 0ms (--%) 
  CONNECTIVITY POWER SUMMARY END

  Bluetooth total received: 0B, sent: 0B
  Bluetooth scan time: 0ms 
     Bluetooth Idle time:   0ms (--%)
     Bluetooth Rx time:     0ms (--%)
     Bluetooth Tx time:     0ms (--%)

  Device battery use since last full charge
    Amount discharged (lower bound): 0
    Amount discharged (upper bound): 0
    Amount discharged while screen on: 0
    Amount discharged while screen off: 0
    Amount discharged while screen doze: 0

  CPU freqs: 408000 600000 816000 1104000 1416000 1608000 1800000 1992000

  1000:
    Wake lock *dexopt* realtime
    Wake lock WiredAccessoryManager realtime
    Wake lock *alarm* realtime
    Wake lock AudioMix realtime
    Wake lock *launch* realtime
    Wake lock NetworkStats realtime
    Wake lock *telephony-radio* realtime
    Wake lock *job*/com.android.providers.settings/.WriteFallbackSettingsFilesJobService realtime
    Wake lock GnssLocationProvider realtime
    Wake lock GnssVisibilityControl realtime
    Wake lock *job*/android/com.android.server.pm.BackgroundDexOptService realtime
    Wake lock SyncLoopWakeLock realtime
    Job android/com.android.server.pm.BackgroundDexOptService: (not used)
    Job com.android.providers.settings/.WriteFallbackSettingsFilesJobService: (not used)
    Apk com.android.location.fused:
      Service com.android.location.fused.FusedLocationService:
        Created for: 0ms uptime
        Starts: 0, launches: 1
    Apk com.android.localtransport:
      (nothing executed)
    Apk com.wif.baseservice:
      Service com.wif.baseservice.service.BaseService:
        Created for: 0ms uptime
        Starts: 0, launches: 1
      Service com.wif.baseservice.service.MonitorService:
        Created for: 0ms uptime
        Starts: 1, launches: 1
    Apk com.android.keychain:
      (nothing executed)
    Apk com.android.server.telecom:
      Service com.android.server.telecom.components.TelecomService:
        Created for: 0ms uptime
        Starts: 0, launches: 1
      Service com.android.server.telecom.components.BluetoothPhoneService:
        Created for: 0ms uptime
        Starts: 1, launches: 1
    Apk com.android.providers.settings:
      (nothing executed)
    Apk android:
      (nothing executed)
    Apk com.wif.ota:
      Service com.wif.ota.service.UpdateService:
        Created for: 0ms uptime
        Starts: 1, launches: 1
  1001:
    Wake lock *dexopt* realtime
    Wake lock CallerInfoCache realtime
    Wake lock CdmaInboundSmsHandler realtime
    Wake lock *telephony-radio* realtime
    Wake lock GsmInboundSmsHandler realtime
    Apk com.android.phone:
      Service com.android.internal.telephony.CellularNetworkService:
        Created for: 0ms uptime
        Starts: 0, launches: 1
      Service com.android.phone.TelephonyDebugService:
        Created for: 0ms uptime
        Starts: 1, launches: 1
      Service com.android.services.telephony.sip.components.TelephonySipService:
        Created for: 0ms uptime
        Starts: 1, launches: 1
      Service com.android.internal.telephony.dataconnection.CellularDataService:
        Created for: 0ms uptime
        Starts: 0, launches: 1
  1002:
    Wake lock *dexopt* realtime
    Wake lock bluetooth_timer realtime
    Apk com.android.bluetooth:
      Service com.android.bluetooth.gatt.GattService:
        Created for: 0ms uptime
        Starts: 1, launches: 0
  1010:
    (nothing executed)
  1027:
    Wake lock *dexopt* realtime
  1037:
    (nothing executed)
  1041:
    Wake lock AudioMix realtime
  1068:
    Wake lock *dexopt* realtime
    Apk com.android.se:
      Service com.android.se.SecureElementService:
        Created for: 0ms uptime
        Starts: 1, launches: 1
  1073:
    Wake lock *dexopt* realtime
    Apk com.android.networkstack.tethering:
      Service com.android.networkstack.tethering.TetheringService:
        Created for: 0ms uptime
        Starts: 0, launches: 1
    Apk com.android.networkstack:
      Service com.android.server.NetworkStackService:
        Created for: 0ms uptime
        Starts: 0, launches: 1
  2000:
    Wake lock *dexopt* realtime
  u0a0:
    Wake lock *dexopt* realtime
  u0a1:
    Wake lock *dexopt* realtime
  u0a2:
    Wake lock *dexopt* realtime
  u0a3:
    Wake lock *dexopt* realtime
  u0a4:
    Wake lock *dexopt* realtime
  u0a5:
    Wake lock *dexopt* realtime
  u0a6:
    Wake lock *dexopt* realtime
  u0a7:
    Wake lock *dexopt* realtime
  u0a8:
    Wake lock *dexopt* realtime
  u0a9:
    Wake lock *dexopt* realtime
    Wake lock *alarm* realtime
    Wake lock CalendarReceiver_Provider realtime
  u0a10:
    Wake lock *dexopt* realtime
  u0a11:
    Wake lock *dexopt* realtime
  u0a12:
    Wake lock *dexopt* realtime
  u0a13:
    Wake lock *dexopt* realtime
  u0a14:
    Wake lock *dexopt* realtime
  u0a15:
    Wake lock *dexopt* realtime
  u0a16:
    Wake lock *dexopt* realtime
  u0a17:
    Wake lock *dexopt* realtime
    Apk com.google.android.inputmethod.pinyin:
      Service com.google.android.inputmethod.pinyin.PinyinIME:
        Created for: 0ms uptime
        Starts: 0, launches: 1
  u0a18:
    Wake lock *dexopt* realtime
  u0a19:
    Wake lock *dexopt* realtime
  u0a20:
    Wake lock *dexopt* realtime
    Apk com.android.printspooler:
      (nothing executed)
  u0a21:
    Wake lock *dexopt* realtime
  u0a22:
    Wake lock *dexopt* realtime
  u0a23:
    Wake lock *dexopt* realtime
  u0a24:
    Wake lock *dexopt* realtime
    Wake lock *launch* realtime
  u0a25:
    Wake lock *dexopt* realtime
  u0a26:
    Wake lock *dexopt* realtime
  u0a27:
    Wake lock *dexopt* realtime
  u0a28:
    Wake lock *dexopt* realtime
  u0a29:
    Wake lock *dexopt* realtime
  u0a30:
    Wake lock *dexopt* realtime
    Wake lock Android/SpeechService_HTTP realtime
    Apk com.iflytek.speechcloud:
      Service com.iflytek.business.BusinessService:
        Created for: 0ms uptime
        Starts: 1, launches: 1
  u0a31:
    Wake lock *dexopt* realtime
  u0a32:
    Wake lock *dexopt* realtime
  u0a33:
    Wake lock *dexopt* realtime
  u0a34:
    Wake lock *dexopt* realtime
  u0a35:
    Wake lock *dexopt* realtime
    Apk com.android.settings.intelligence:
      (nothing executed)
  u0a37:
    Wake lock *dexopt* realtime
  u0a38:
    Wake lock *dexopt* realtime
  u0a39:
    Wake lock *dexopt* realtime
  u0a40:
    Wake lock *dexopt* realtime
    Apk com.android.gallery3d:
      (nothing executed)
  u0a41:
    Wake lock *dexopt* realtime
  u0a42:
    Wake lock *dexopt* realtime
    Apk com.android.carrierconfig:
      (nothing executed)
  u0a43:
    Wake lock *dexopt* realtime
    Wake lock *launch* realtime
    Apk com.android.launcher3:
      Service com.android.quickstep.TouchInteractionService:
        Created for: 0ms uptime
        Starts: 0, launches: 1
  u0a44:
    Wake lock *dexopt* realtime
  u0a45:
    Wake lock *dexopt* realtime
    Apk com.android.systemui:
      Service com.android.systemui.ImageWallpaper:
        Created for: 0ms uptime
        Starts: 0, launches: 1
      Service com.android.systemui.keyguard.KeyguardService:
        Created for: 0ms uptime
        Starts: 0, launches: 1
      Service com.android.systemui.dump.SystemUIAuxiliaryDumpService:
        Created for: 0ms uptime
        Starts: 1, launches: 1
      Service com.android.systemui.SystemUIService:
        Created for: 0ms uptime
        Starts: 1, launches: 1
  u0a46:
    Wake lock *dexopt* realtime
    Apk com.android.smspush:
      Service com.android.smspush.WapPushManager:
        Created for: 0ms uptime
        Starts: 0, launches: 1
  u0a48:
    Wake lock *dexopt* realtime
  u0a49:
    Wake lock *dexopt* realtime
    Apk android.ext.services:
      Service android.ext.services.autofill.InlineSuggestionRenderServiceImpl:
        Created for: 0ms uptime
        Starts: 0, launches: 1
      Service android.ext.services.notification.Assistant:
        Created for: 0ms uptime
        Starts: 0, launches: 1
  u0a50:
    Wake lock *dexopt* realtime
    Wake lock *job*/com.android.providers.media.module/com.android.providers.media.MediaService realtime
    Job com.android.providers.media.module/com.android.providers.media.MediaService: (not used)
    Apk com.android.providers.media.module:
      Service com.android.providers.media.fuse.ExternalStorageServiceImpl:
        Created for: 0ms uptime
        Starts: 0, launches: 1
  u0a51:
    Wake lock *dexopt* realtime
    Wake lock *job*/com.android.permissioncontroller/.permission.service.AutoRevokeService realtime
    Job com.android.permissioncontroller/.permission.service.AutoRevokeService: (not used)
    Apk com.android.permissioncontroller:
      (nothing executed)

Total cpu time reads: 0
Batched cpu time reads: 0
Batching Duration (min): 33
All UID cpu time reads since the later of device start or stats reset: 120
UIDs removed since the later of device start or stats reset: 1