Johndow665

Lurker
Feb 6, 2022
2
0
5
Is there a solution for EMUI similar to this this https://dontkillmyapp.com/xiaomi ?

Code:
Autostart autostart = new Autostart(applicationContext);

State state = autostart.getAutoStartState();

if (state == State.DISABLED) {
   // now we are sure that autostart is disabled
   // ask user to enable it manually in the settings app   
} else if (state == State.ENABLED) {
   // now we are also sure that autostart is enabled
}



Need check autostart for Huawei EMUI, thanks