如何获取“在后台运行时显示弹出窗口”和“在锁定屏幕上显示”小米设备默认有权限吗?
我花了很多天寻找解决方案但没有得到它。 如何在不打开其他权限页面的情况下默认获得“后台运行时显示弹窗”和“锁屏显示”权限?我也尝试过“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.
please guide me if this permission approves from the play store or possible programmatically.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论