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