最終更新:2015-12-02 (水) 17:55:43 (3067d)  

android.permission.SYSTEM_ALERT_WINDOW
Top / android.permission.SYSTEM_ALERT_WINDOW

Allows an application to open windows using the type WindowManager.LayoutParams.TYPE_SYSTEM_ALERT, shown on top of all other applications. Very few applications should use this permission; these windows are intended for system-level interaction with the user.

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

必要

チェック

  • WindowManagerService.addWindow? -> PhoneWindowManager.checkAddPermission?

パーミッション「SYSTEM_ALERT_WINDOW」を使うアプリが起動していると、APKインストール画面の「インストール」ボタンが押せない

参考

Android/APIレベル23 (Android 6.0)

  • 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. The app requests the user's approval by sending an intent with action ACTION_MANAGE_OVERLAY_PERMISSION. The app can check whether it has this authorization by calling Settings.canDrawOverlays?().

関連