title: How to get programmatically the list of apps which can display over other apps?
body: <p>I need to get the list of apps that can display over other apps. Like on the screenshot, but programmatically:<br />
  <a href="https://i.stack.imgur.com/eHevU.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eHevUl.jpg" alt="List of apps with Display over other apps permission" /></a></p>
  <p>I try to get all installed packages</p>
  <p><code>val pkgs = packageManager.getInstalledApplications(PackageManager.GET_META_DATA)</code></p>
  <p>Packages in <code>pkgs</code>  have requestedPermissions - the list of permissions requested in the manifest.</p>
  <p>Using this list, I am filtering packages with <code>&quot;android.permission.SYSTEM_ALERT_WINDOW&quot;</code> permission.
  But the apps with SYSTEM_ALERT_WINDOW permission and the list on the screenshot are not equal.</p>
  <p>Is there any way to get this list programmatically?</p>