简体   繁体   English

Android:SYSTEM_ALERT_WINDOW权限保护级别

[英]Android: SYSTEM_ALERT_WINDOW permission Protection level

public static final String SYSTEM_ALERT_WINDOW

Allows an app to create windows using the type WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY , shown on top of all other apps. 允许应用使用WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY类型创建窗口,该窗口显示在所有其他应用的顶部。 Very few apps should use this permission; 很少有应用程序应使用此权限; these windows are intended for system-level interaction with the user. 这些窗口用于与用户进行系统级交互。

Note: If the app targets API level 23 or higher, the app user must explicitly grant this permission to the app through a permission management screen. 注意:如果应用程序的目标是API级别23或更高级别,则应用程序用户必须通过权限管理屏幕将此权限明确授予应用程序。 The app requests the user's approval by sending an intent with action Settings.ACTION_MANAGE_OVERLAY_PERMISSION . 该应用通过发送带有动作Settings.ACTION_MANAGE_OVERLAY_PERMISSION的意图来请求用户的批准。 The app can check whether it has this authorization by calling Settings.canDrawOverlays(). 该应用可以通过调用Settings.canDrawOverlays()来检查其是否具有此授权。

Protection level: signature|preinstalled|appop|pre23|development 防护等级:签名|预装| appapp | pre23 |开发

Constant Value: "android.permission.SYSTEM_ALERT_WINDOW" 常数值:“ android.permission.SYSTEM_ALERT_WINDOW”

https://developer.android.com/reference/android/Manifest.permission.html#SYSTEM_ALERT_WINDOW https://developer.android.com/reference/android/Manifest.permission.html#SYSTEM_ALERT_WINDOW

Protection level: signature|preinstalled|appop|pre23|development 防护等级:签名|预装| appapp | pre23 |开发

1) Protection level of SYSTEM_ALERT_WINDOW is signature but the permission is granted to normal app signed with different certificates.Is it becasue user explictly grants it , the signature become invalid here? 1)SYSTEM_ALERT_WINDOW的保护级别是签名,但是授予使用不同证书签名的普通应用程序的权限。是否是因为用户明确授予它,所以签名在这里无效?

2)what are |preinstalled|appop|pre23|development Protection levels in android? 2)Android中的| preinstalled | appop | pre23 | development保护级别是什么?

Thanks 谢谢

Preinstalled means system application, starting from API level 23 protection level system is deprecated and preinstalled and privileged take the front row. 预安装是指系统应用程序,从API级别23防护级别开始,系统已被弃用和预安装并享有特权。 If your app is pre-installed it will be able to exercise this permission. 如果您的应用已预先安装,则可以行使此权限。 If your app has platform signature it can, or if your app has certificates that system can recognize 如果您的应用程序具有平台签名,或者应用程序具有系统可以识别的证书,

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

相关问题 Android SYSTEM_ALERT_WINDOW权限 - Android SYSTEM_ALERT_WINDOW permission 如何检查权限在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 SYSTEM_ALERT_WINDOW 的运行时权限 - Runtime permission for SYSTEM_ALERT_WINDOW 通过Appop Denial错误授予SYSTEM_ALERT_WINDOW权限后,Android marshmallow - Android marshmallow after granting permission through Appop Denial error for SYSTEM_ALERT_WINDOW permission 如何在我的 android 应用程序中根据请求自动授予 SYSTEM_ALERT_WINDOW 权限? - How do I grant SYSTEM_ALERT_WINDOW permission automatically on request, in my android App? Whatsapp 如何在 Android 11 上获得 SYSTEM_ALERT_WINDOW 权限? - How does Whatsapp get SYSTEM_ALERT_WINDOW permission on Android 11? SYSTEM_ALERT_WINDOW - 如何在 Android 6.0 和 targetSdkVersion 23 上自动获得此权限 - SYSTEM_ALERT_WINDOW - How to get this permission automatically on Android 6.0 and targetSdkVersion 23 请求 SYSTEM_ALERT_WINDOW 权限后返回应用程序 - Return to app after requesting SYSTEM_ALERT_WINDOW permission 如何访问SYSTEM_ALERT_WINDOW权限运行时间? - How to access SYSTEM_ALERT_WINDOW permission run time?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM