title: How to get a list of installed apps in Android 11
body: <p><strong>This line is described on the developer site but I did not understand it perfectly</strong></p>
  <pre><code>Call getInstalledApplications() or getInstalledPackages(). Both methods should return a filtered list.
  </code></pre>
  <p>Actually, I need to test <code>Testing package visibility behavior</code></p>
  <p><a href="https://developer.android.com/training/package-visibility/testing" rel="noreferrer">https://developer.android.com/training/package-visibility/testing</a></p>