在 EMUI 中检查自启动
EMUI 是否有类似于此 https://dontkillmyapp.com/xiaomi 的解决方案?
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
}
需要检查华为EMUI的自启动,谢谢
Is there a solution for EMUI similar to this this https://dontkillmyapp.com/xiaomi ?
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
以下是华为设备开机自动启动的方法,您可以尝试一下是否有用:
The following is how to start up auto-start on Huawei devices, you could try to see if it's useful :