OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae6955f
)
Don't double-count external cached app data.
author
Jeff Sharkey
<jsharkey@android.com>
Wed, 7 Jun 2017 21:59:03 +0000
(15:59 -0600)
committer
Jeff Sharkey
<jsharkey@google.com>
Wed, 7 Jun 2017 22:21:53 +0000
(22:21 +0000)
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
cmds/installd/InstalldNativeService.cpp
patch
|
blob
|
history
diff --git
a/cmds/installd/InstalldNativeService.cpp
b/cmds/installd/InstalldNativeService.cpp
index
3041467
..
60c89a9
100644
(file)
--- 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");