dont-kill-my-app icon indicating copy to clipboard operation
dont-kill-my-app copied to clipboard

Xiaomi MIUI devices solution for developers

Open XomaDev opened this issue 3 years ago • 4 comments

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 avatar Nov 15 '21 13:11 XomaDev

@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?

petrnalevka avatar Nov 15 '21 15:11 petrnalevka

You can add that. 🙂

XomaDev avatar Nov 15 '21 16:11 XomaDev

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.

XomaDev avatar Nov 17 '21 12:11 XomaDev

I have created a PR again this time linking to GitHub library that can check the autostart state on devices including MIUI 12.

XomaDev avatar Dec 05 '21 07:12 XomaDev