Skip to content

fix(battery_plus): Improve battery save mode check on Xiaomi devices #3555

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vbuberen
Copy link
Collaborator

@vbuberen vbuberen commented Apr 29, 2025

Description

Replacement for #3537 as there were no reply and no access to allow editing by maintainers. Additionally, I have bumped the min Android version, because with having min Flutter version allowed as 3.22.0 in the pubspec we have [Android 5 (API 21) and newer only supported anyway as mentioned in this article https://medium.com/flutter/whats-new-in-flutter-3-22-fbde6c164fe3

Note, I don't have recent Xiaomi devices to validate the fix, so can't guarantee the result. However, the change seems similar to other manufacturers battery save mode check.

Related Issues

Closes #3540

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate that with a ! in the title as explained in Conventional Commits).
  • No, this is not a breaking change.

@vbuberen vbuberen added the battery_plus Battery Plus Plugin label Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
battery_plus Battery Plus Plugin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Xiaomi battery safe mode is not working on newer android versions
1 participant