ReVanced / revanced-patches

🧩 Patches for ReVanced
https://revanced.app
GNU General Public License v3.0
2.47k stars 286 forks source link

feat: Toggle to disable battery optimization prompt at startup #3213

Closed hdd45 closed 5 months ago

hdd45 commented 5 months ago

Feature description

Please add a toggle to hide new MicroG GMS core battery optimization prompt at startup.

It works seamlessly without doing so.

Motivation

ReVanced works absolutely fine without disabling battery optimization for new MicroG, but it always prompts at startup. Please add a toggle to disable this prompt. Thank You

Acknowledgements

LisoUseInAIKyrios commented 5 months ago

Issue has been discussed many times before

https://github.com/ReVanced/revanced-patches/issues/3092#issuecomment-2078309890

If YT works without turning off optimizations, then your device is already not optimizing the battery and "turning off" optimizations does nothing.

If you want to avoid this, then root your device and install YT without GmsCore support.

oSumAtrIX commented 5 months ago

If you can show any differences with and without optimization (send screenshots for example) we can consider adding an option to disable the prompt

hdd45 commented 5 months ago

that's what I'm saying, there aren't any differences with and without optimization. so, the prompt is just useless for me. I wish I could disable it. adding a toggle to hide it isn't a big deal I guess.

oSumAtrIX commented 5 months ago

Disabling battery optimization removes the prompt.

hdd45 commented 5 months ago

Screenshot_2024-05-22-11-02-21-361_com miui home Screenshot_2024-05-22-11-02-38-434_app revanced android youtube Even If I restrict the background usage of microg, YouTube works perfectly fine then what's the need to disable the battery optimisations.

There are lots of toggles to hide even minute things in YouTube, what is the harm in adding a toggle for this.

If you don't wanna add such option, I'm no one to force you. BTW thanks for all these patches. Thank You