Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
feco-dev opened this issue Nov 6, 2023 · 3 comments
Open

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

feco-dev opened this issue Nov 6, 2023 · 3 comments

Comments

@feco-dev
Copy link

feco-dev commented Nov 6, 2023

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
Copy link
Member

RikkaW commented Jan 28, 2024

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
Copy link

PootisManTF2 commented Feb 9, 2024

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants