android - 我怎样才能把这个配置放到我的华为手机上?

标签 android google-cloud-messaging

我的问题是在我的手机上 huawei 我的服务被杀死了所以我需要更改手机上的设置。

我的问题和this一样

NOTE: Huawei and Xiaomi devices have evil task killer services that interfere with the Telegram notification service. For our notifications to work, you need to add Telegram to allowed apps in those devices' security settings. Huawei: Phone Manager App > Protected Apps > Add Telegram to the list. Xiaomi: Services > Security > Permissions > Autostart, find Telegram and enable autostart.

所以我需要以编程方式更改我的华为手机的配置我需要这样做:

手机管家应用> protected 应用>添加我的应用

非常感谢您的帮助! :-)

编辑

为什么投反对票,很多人有同样的问题?我的问题是如何以编程方式更改手机的设置?

最佳答案

不,你不能那样做。除非你获得 root。

关于android - 我怎样才能把这个配置放到我的华为手机上?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34996138/

相关文章:

java - 将少量信息保存为 android 中的设置(例如第一次运行该应用程序)

android - 如何使用 android opengl 适本地创建更新/绘制循环?

java - Android JAVA - 服务在一段时间后返回 OutOfMemoryError 异常

android - 如何处理错误获取 GCM SenderId 失败?

c# - xamarin.forms GCM 未接收消息

c# - 推送通知错误 - 缺少注册

android - 应用程序包 'AndroidManifest.xml' 必须至少有 2 个段

android - 当我重新启动应用程序时,我的 Sharedpreference 没有保存

android - Activity 没有得到正确的包

java - 已解决 : AEADBadTagException. 我尝试了多种方法,现在将盐和初始化 vector 存储在加密文件中