futo-org / grayjay-android

Read-only mirror of Grayjay repo for issue tracking
https://gitlab.futo.org/videostreaming/grayjay
Other
735 stars 45 forks source link

[Issue] Unusual Spike in Battery usage #96

Open johnnycarlson opened 11 months ago

johnnycarlson commented 11 months ago

Description

Unusual pattern of battery usage in foreground and background even if the app is left in idle. I am certain that the total playback time has been less than 10 mins however it would have been left idle. I suspect something to do with background play. Not sure tho.

Screenshots

Screenshot_20231027-062707

App Details

Version information (version_name = 181, version_code = 181, flavor = stable, build_type = release}) Device information (brand= google, manufacturer = Google, device = panther, version-sdk = 34, version-os = )

To Reproduce

Open the app. Play a video and minimize it in picture in picture mode. Kill the video player but the leave the app in background. See the battery usage.

Let me know if anything else is need. Great app already bought the license. Cheers.

koen-futo commented 11 months ago

We will investigate. Note that Android will sometimes attribute battery usage to an app simply because it has a ForegroundService running even if it does not actually add any battery consumption. FairEmail is one of the other programs on my phone that suffers from this.

Regardless, we will investigate.

ProgrammerWhoPrograms commented 7 months ago

This is affecting me too. Much more starkly. Used: 50%; Screen time: 1hr 15mins; Background: 6hrs 22mins

Please let me know if saying that was not useful and bad issue tracker etiquette.

ProgrammerWhoPrograms commented 7 months ago

Oh. I forgot. I'm using GrapheneOS UQ1A.240205.002.2024020500 on bluejay (Pixel 6a). Grayjay version is 235.

ProgrammerWhoPrograms commented 7 months ago

Not sure if it came about the same way as it did for johnnycarlson though. I rarely use picture-in-picture mode. So maybe it's a different issue.