如何获取“在后台运行时显示弹出窗口”和“在锁定屏幕上显示”小米设备默认有权限吗?

发布于 2025-01-13 11:40:06 字数 370 浏览 1 评论 0原文

我花了很多天寻找解决方案但没有得到它。 如何在不打开其他权限页面的情况下默认获得“后台运行时显示弹窗”和“锁屏显示”权限?我也尝试过“SYSTEM_ALERT_WINDOW”,但它不起作用。起初,我认为以编程方式不可能,但我在 Play 商店中看到一些应用程序已授予此权限,如果我用该应用程序包名称替换我的应用程序包名称,那么我的应用程序默认会获得权限。

输入图片此处描述

如果此权限获得 Play 商店批准或可能以编程方式批准,请指导我。 提前致谢。

I spent lots of days finding a solution but didn't get it.
How can i get the "Display pop-up windows while running in the background" and "Show on Lock screen" permission by default without opening other-permission page? I have also tried "SYSTEM_ALERT_WINDOW" but it doesn't work. At first, I thought it was not possible programmatically, but I saw some apps over the play store that have this permission granted and if I replace my app package name with that app package name then my app got permission by default.

enter image description here

please guide me if this permission approves from the play store or possible programmatically.
Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文