title: Android OREO, TYPE_SYSTEM_ERROR on system app
body: <p>I am trying to make an app that its behavior was like cover app, where I can show clocks, answer or reject a call, control music and more.</p>
  
  <p><em>But I have problems with <strong>Android Oreo</strong>.</em></p>
  
  <p>In previous versions I could do it with the indicator <code>TYPE_SYSTEM_ERROR</code>, and with this indicator I could put my view above all the other views, including, on the view of the call. </p>
  
  <p>But with Android Oreo I try to do the same with <code>TYPE_APPLICATION_OVERLAY</code>. </p>
  
  <p>It partially work, but It doesn´t work with phone screen, with this flag when a call is incoming the native call screen is on top of my app, and I dont want that.</p>
  
  <p>I can put my app on priv_app folder. And I can have system permissions.</p>
  
  <p>What can I do?</p>
  
  <p>The error is,
  <a href="https://i.stack.imgur.com/phhgm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/phhgm.png" alt="error"></a></p>
  
  <p>the code is,</p>
  
  <p><a href="https://i.stack.imgur.com/phhgm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qZDEu.png" alt="code"></a></p>