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

"Do not show again" implementation required for battery optimization warning at startup #131

Closed
arvind2109 opened this issue Jul 1, 2024 · 7 comments

Comments

@arvind2109
Copy link

1719865216723

@LisoUseInAIKyrios
Copy link

LisoUseInAIKyrios commented Jul 1, 2024

Whitelisting GmsCore is needed otherwise YT can randomly shutdown.

If your device works ok without whitelisting, that means battery optimizations is effectively already turned off and "disabling battery optimizations" makes zero changes to battery life (but allowing the change will prevent your device OS from later changing its mind and start shutting down MicroG and crashing YT along with it).

More discussion here: ReVanced/revanced-patches#3092 (comment)

@LisoUseInAIKyrios LisoUseInAIKyrios closed this as not planned Won't fix, can't repro, duplicate, stale Jul 1, 2024
@AIlch
Copy link

AIlch commented Nov 7, 2024

@LisoUseInAIKyrios I have inbult multimedia system in my car, there is no battery (lol), but each time it asks for battery optimization to be enabled, how to remove this?
Image
Image

@oSumAtrIX
Copy link
Member

Is there a way to check if a system supports that operation?

@LisoUseInAIKyrios
Copy link

LisoUseInAIKyrios commented Nov 7, 2024

Go to Settings -> Misc -> GmsCore -> Self check

What is on the last line? Does it show 'Battery optimizations ignored' with a checkbox?

It probably won't work, but if you have USB adb access you can try using adb to "turn off" battery optimizations. See here.

@AIlch
Copy link

AIlch commented Nov 11, 2024

Does it show 'Battery optimizations ignored' with a checkbox?

@LisoUseInAIKyrios its shows, but not allowing to enable, with "Multimedia system does not support this operation" message

@oSumAtrIX
Copy link
Member

Not sure if you can programmatically check if the system supports it, but in any case reopen the issue in the patches repo

@AIlch
Copy link

AIlch commented Nov 11, 2024

Not sure if you can programmatically check if the system supports it, but in any case reopen the issue in the patches repo

Should i reopen some specific topic or create new one?

upd: created new - ReVanced/revanced-patches#3894

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