dont-kill-my-app
dont-kill-my-app copied to clipboard
Xiaomi MIUI devices solution for developers
I have found a way for developers to check if autostart is enabled on MIUI devices below MIUI version > 12
More info: https://stackoverflow.com/a/69969345/14254453
Tested on MIUI 10 and 11.
@XomaDev woow this is great!! Big thanks for sharing this.. Would you like to create a pull request and add it to the developer section or you prefer us to add it?
You can add that. 🙂
https://github.com/urbandroid-team/dont-kill-my-app/pulls
I have created a PR fixing some things.
When an exception is raised or something, it's good to return like Unknown state rather than "Disabled" which may create confusion.
I have created a PR again this time linking to GitHub library that can check the autostart state on devices including MIUI 12.