Johndow665
Lurker
Is there a solution for EMUI similar to this this https://dontkillmyapp.com/xiaomi ?
Need check autostart for Huawei EMUI, thanks
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