OSDN Git Service

Don't double-count external cached app data.
[android-x86/frameworks-native.git] / cmds / installd / InstalldNativeService.cpp
index 3041467..60c89a9 100644 (file)
@@ -1698,7 +1698,7 @@ binder::Status InstalldNativeService::getExternalSize(const std::unique_ptr<std:
                 collectQuotaStats(device, userId, appId, nullptr, &extStats);
             }
         }
-        appSize = extStats.dataSize + extStats.cacheSize;
+        appSize = extStats.dataSize;
         ATRACE_END();
     } else {
         ATRACE_BEGIN("manual");