title: What does QUERY_ALL_PACKAGES permission do?
body: <p>Android R Preview 1 introduced a new permission called <a href="https://developer.android.com/reference/android/Manifest.permission.html#QUERY_ALL_PACKAGES" rel="noreferrer"><code>QUERY_ALL_PACKAGES</code></a>. The documentation for the permission says the following:</p>
  
  <blockquote>
    <p>Allows query of any normal app on the device, regardless of manifest declarations.</p>
  </blockquote>
  
  <p>Has anyone worked out what this actually does?</p>
  
  <p>I've tried running the following on the emulator image, and the permission had no effect on either of them:</p>
  
  <ul>
  <li><code>packageManager.queryIntentActivities(intent, 0)</code></li>
  <li><code>packageManager.getInstalledPackages(0)</code></li>
  </ul>