[英]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.