title: NameNotFoundException when calling getPackageInfo on Android 11
body: <p>After setting <code>targetSdkVersion</code> to <code>30</code> (Android 11) I'm getting <code>android.content.pm.PackageManager$NameNotFoundException</code> when doing <code>packageManager.getPackageInfo(packageName, PackageManager.GET_PERMISSIONS)</code> on packages that I know exists.</p>
  
  <p>The stacktrace is as follows:</p>
  
  <pre><code>android.content.pm.PackageManager$NameNotFoundException: com.google.android.apps.maps
          at android.app.ApplicationPackageManager.getPackageInfoAsUser(ApplicationPackageManager.java:202)
          at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:174)
  </code></pre>