title: How to know if user has disabled Picture in Picture feature permission?
body: <p><a href="https://i.stack.imgur.com/oo2qC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oo2qC.png" alt="enter image description here"></a></p>
  
  <p>and here is another example:</p>
  
  <p><a href="https://i.stack.imgur.com/Xsvnu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xsvnu.png" alt="enter image description here"></a></p>
  
  <p>from the screenshot above we see user is able to disable picture in picture mode.  you can find it in the "special app access" screen on the emulator api 27 .  How can i detect if user has disabled this feature ?</p>
  
  <p>i tried checking the following but it does not work:</p>
  
  <pre><code>packageManager.hasSystemFeature(PackageManager.FEATURE_PICTURE_IN_PICTURE)
  </code></pre>
  
  <p>compiler states that AppOpsManager  cannot be found. any ideas ?</p>