title: Size of other apps in Android O
body: <p>I used to get the package size of all installed app with </p>
  
  <pre><code>Method getPackageSizeInfo = null;
          try {
              getPackageSizeInfo = pm.getClass().getMethod(
                      "getPackageSizeInfo", String.class,
                      IPackageStatsObserver.class);
          } catch (NoSuchMethodException e) {
              LogIt.e(this, e.toString());
          }
  </code></pre>
  
  <p>Nevertheless this is not possible in Android O anymore and Android feels offended: </p>
  
  <pre><code>D/ApplicationPackageManager: Shame on you for calling the hidden API getPackageSizeInfoAsUser(). Shame!
  </code></pre>
  
  <p>Is there a workaround to get the size of the other apps? </p>