RikkaApps / TakoStats

Issue tracker & localization for TakoStats.
Apache License 2.0
15 stars 2 forks source link

Can't show power consumption on Android 14 devices #12

Open feco-dev opened 8 months ago

feco-dev commented 8 months ago

When I start recording on Google Pixel 8 Pro (Tensor G3 / Android 14) or Xiaomi 14 Pro (Snapdragon 8 Gen 3 / Android 14), TakoStats can record FPS but can't record proper power consumptions. The value became like '-1044532 mW'.

RikkaW commented 5 months ago

All data is obtained through the process started by app_process. Acquiring power data is through broadcast ACTION_BATTERY_CHANGED, seems no other (easy) way. Process started by app_process cannot register broadcast receiver, but lucky ACTION_BATTERY_CHANGED is a sticky broadcast, so even if register broadcast receiver does not work, but calling registerReceiver can return the latest intent, so acquiring power data in the process started by app_process is possible. But this doesn’t work in the latest system either, so it is broken.

PootisManTF2 commented 5 months ago

Idk about your devices, but the battery temperature stat doesn't work on my brand new rooted OnePlus 12, it doesn't add anything at all to the overlay when I enable it in the settings.

wibucter commented 2 months ago

Idk about your devices, but the battery temperature stat doesn't work on my brand new rooted OnePlus 12, it doesn't add anything at all to the overlay when I enable it in the settings.

Same for me