summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Sharkey <jsharkey@android.com>2017-06-07 15:59:03 -0600
committerJeff Sharkey <jsharkey@google.com>2017-06-07 22:21:53 +0000
commit4ca8ff98e40023c32e0f05473e1fe906b6537417 (patch)
tree4b8972f63e19d936e2de5f7cf63fb89715f1da26
parentae6955fda8c669efdfd9cc9c3ff6b072db6e7c94 (diff)
downloadnative-4ca8ff98e40023c32e0f05473e1fe906b6537417.tar.gz
Don't double-count external cached app data.
Cached app data is already counted in extStats.dataSize, so we don't need to count it twice. Test: builds, boots, verified Settings UI before/after Bug: 62343684 Change-Id: Ic02cbe3f5938949730f9bc8d911ed398436f84d7
-rw-r--r--cmds/installd/InstalldNativeService.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/installd/InstalldNativeService.cpp b/cmds/installd/InstalldNativeService.cpp
index 3041467f70..60c89a97b7 100644
--- a/cmds/installd/InstalldNativeService.cpp
+++ b/cmds/installd/InstalldNativeService.cpp
@@ -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");