Merge "Fix two storage measurement bugs."
diff --git a/services/core/java/com/android/server/pm/Installer.java b/services/core/java/com/android/server/pm/Installer.java
index 5abdb60..7eef7ad 100644
--- a/services/core/java/com/android/server/pm/Installer.java
+++ b/services/core/java/com/android/server/pm/Installer.java
@@ -121,6 +121,10 @@
 
         if (binder != null) {
             mInstalld = IInstalld.Stub.asInterface(binder);
+            try {
+                invalidateMounts();
+            } catch (InstallerException ignored) {
+            }
         } else {
             Slog.w(TAG, "installd not found; trying again");
             BackgroundThread.getHandler().postDelayed(() -> {
diff --git a/services/usage/java/com/android/server/usage/StorageStatsService.java b/services/usage/java/com/android/server/usage/StorageStatsService.java
index 89e68a6..eb71590 100644
--- a/services/usage/java/com/android/server/usage/StorageStatsService.java
+++ b/services/usage/java/com/android/server/usage/StorageStatsService.java
@@ -222,7 +222,7 @@
         }
 
         final int userId = UserHandle.getUserId(uid);
-        final int appId = UserHandle.getUserId(uid);
+        final int appId = UserHandle.getAppId(uid);
 
         final String[] packageNames = mPackage.getPackagesForUid(uid);
         final long[] ceDataInodes = new long[packageNames.length];