简体   繁体   English

Whatsapp 如何在 Android 11 上获得 SYSTEM_ALERT_WINDOW 权限?

[英]How does Whatsapp get SYSTEM_ALERT_WINDOW permission on Android 11?

When a Whatsapp call is recieved, the phone wakes up in lock screen and starts ringing.当收到 Whatsapp 电话时,手机会在锁定屏幕中唤醒并开始响铃。 As per this article, I understand that now the user has to explicitly go and give the "Display Over Other Apps" permission from the settings, so that Whatsapp can perform this.根据这篇文章,我知道现在用户必须明确地从设置中授予“在其他应用程序上显示”的权限,以便 Whatsapp 可以执行此操作。 Given that the user doesn't have to do it in any of the stages of WhatsApp's first installation, how do they achieve this?鉴于用户不必在 WhatsApp 首次安装的任何阶段都这样做,他们如何实现这一点? Do they have access to some internal permissions, or is there more at play here?他们是否有权访问某些内部权限,或者这里还有更多权限?

For incoming calls & alarms, apps typically post a high priority notification and specify a fullscreen intent - which may be launched by the system (eg. when the screen is off):对于来电和警报,应用程序通常会发布高优先级通知并指定全屏意图- 可由系统启动(例如,当屏幕关闭时):

https://developer.android.com/training/notify-user/time-sensitive https://developer.android.com/training/notify-user/time-sensitive

Such apps (including WhatsApp) do not use the SYSTEM_ALERT_WINDOW permission for this purpose.此类应用程序(包括 WhatsApp)不会为此目的使用SYSTEM_ALERT_WINDOW权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何检查权限在Android Lollipop上授予SYSTEM_ALERT_WINDOW? - How to check permission SYSTEM_ALERT_WINDOW is granted on Android Lollipop? 如何在本机反应中删除 SYSTEM_ALERT_WINDOW android 权限 - How remove SYSTEM_ALERT_WINDOW android permission in react native Android SYSTEM_ALERT_WINDOW权限 - Android SYSTEM_ALERT_WINDOW permission SYSTEM_ALERT_WINDOW - 如何在 Android 6.0 和 targetSdkVersion 23 上自动获得此权限 - SYSTEM_ALERT_WINDOW - How to get this permission automatically on Android 6.0 and targetSdkVersion 23 Android:SYSTEM_ALERT_WINDOW权限保护级别 - Android: SYSTEM_ALERT_WINDOW permission Protection level 如何访问SYSTEM_ALERT_WINDOW权限运行时间? - How to access SYSTEM_ALERT_WINDOW permission run time? SYSTEM_ALERT_WINDOW 的运行时权限 - Runtime permission for SYSTEM_ALERT_WINDOW 如何在我的 android 应用程序中根据请求自动授予 SYSTEM_ALERT_WINDOW 权限? - How do I grant SYSTEM_ALERT_WINDOW permission automatically on request, in my android App? 如何获取启用了 SYSTEM_ALERT_WINDOW 权限的已安装应用程序? - How to get installed apps which have SYSTEM_ALERT_WINDOW permission enabled? 通过Appop Denial错误授予SYSTEM_ALERT_WINDOW权限后,Android marshmallow - Android marshmallow after granting permission through Appop Denial error for SYSTEM_ALERT_WINDOW permission
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM