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

bug: Yt Music must disable battery optimization, which is different from before #3049

Closed
3 tasks done
ty114514 opened this issue Apr 19, 2024 · 3 comments
Closed
3 tasks done
Labels
Bug report Something isn't working

Comments

@ty114514
Copy link

Bug description

I used Google Translate. If you have any questions, please let me know

Before that, I used the pre-builds from j-hc using microG from https://github.com/inotia00/VancedMicroG, I don't need to disable any battery optimization, just allow microG to be woken up by other things, and it will automatically start microG when launching Youtube/YT Music

After a recent version update, I need to use the new revanced microG. At this time, my YouTube can continue to work normally, but I have to disable battery optimization to start YT Music

Likewise, I can't see YT Music trying to wake up revanced microG in the auto-startup

This may be caused by some changes. Please do not close this issue directly, thank you!

Error logs

No response

Solution

No response

Additional context

No response

Acknowledgements

  • This issue is not a duplicate of an existing bug report.
  • I have chosen an appropriate title.
  • All requested information has been provided properly.
@ty114514 ty114514 added the Bug report Something isn't working label Apr 19, 2024
@LisoUseInAIKyrios
Copy link
Contributor

Battery optimization must be turned off, otherwise the app can crash if MicroG shuts down in the background.

You do not need give full permission to run MicroG in the background, you only need to turn off battery optimization for MicroG. You do not need to turn off any battery optimizations for YT Music.

See here
#3013 (comment)

If you want to avoid all of this, then root your phone, patch without GmsCore support, and uninstall MicroG.

@LisoUseInAIKyrios LisoUseInAIKyrios closed this as not planned Won't fix, can't repro, duplicate, stale Apr 19, 2024
@ty114514
Copy link
Author

Sorry, I saw #2958.
Actually my rom is very stable for microG app running in the background.
Do you mind adding an ignore button to this dialog box and let the user decide whether to set battery optimization?

@LisoUseInAIKyrios
Copy link
Contributor

MicroG uses almost no power (less than 1%).

If your device already allows it to run in the background, then excluding it from power optimization is only a formality and it's power usage will not change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug report Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants