MIUI-autostart
MIUI-autostart copied to clipboard
Autostart permission always returns true in Poco phones
Thanks for the great library. Autostart permission always returns true in Poco phones. I can donate for your work in case you can fix it for us. Sorry, we badly need a fix here.
Hi buddy, please test the library in a real phone to get realistic results, testing in an emulator may differ.
You can donate me via Paypal: paypal.me/XomaDev
Thanks for the quick reply. I testing using real device in https://www.lambdatest.com/intl/en-in Autostart permission always returns true
Hi, as I said before, testing with a real device may yield a better result.
it's happen also in miui version 13.0.7 . There is any solution?
Are you testing on emulator? Or do you have MIUI Optimizations turned off?
I'm testing with a real device. I tried turn on/off MIUI Optimizations and it's the same result
Can you please call getAutoStartState(Context)
and see what happens? It will return a State
object. On some phones, whenever there isnt any state available, it may return true.
OK I'm trying again with MIUI Optimizations on and I get the right value. thanks!!! there is a way to know if the MIUI Optimizations turn on or off from code? and I'm also want to understand- from which MIUI version this Autostart library return the right value? for all versions I'll get Autostart permission true if the MIUI Optimizations turn off?
Hello, it is nice to hear that now it's working fine 😊 unfortunately it is not possible to know if MIUI Optimizations is turned on or off, I believe Autostart mainly has an affect if MIUI Optimizations is turned on.
Since MIUI does not officially document APIs, we really do not have more information of how it behaves on different Android versions.