title: Permission from manifest doesn't work in Android 6
body: <p>It completely ignores:</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/&gt;
  </code></pre>
  
  <p>So I got exception:</p>
  
  <blockquote>
    <p>Caused by: android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@86fb55b -- permission denied for this window type</p>
  </blockquote>
  
  <p>It's not even listed:</p>
  
  <p><a href="https://i.stack.imgur.com/HnL2T.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/HnL2T.jpg" alt="enter image description here"></a></p>
  
  <p>How should I fix it? Thanks.</p>
  
  <p><b>EDIT:</b></p>
  
  <p>It's listed in Configure apps/ Advanced / Draw over other app. So i turn it on and now it works fine, but why there isn't any dialog to ask about permission when i run my app? All perrmissions was turned off by deafult and i need to go to settings and mannualy turn it on?</p>