summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2022-05-16 23:02:18 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2022-05-16 23:02:18 +0000
commite7e9fb98111b52dd8436eed341e3faa3cc7b31d1 (patch)
treee5354185f000ec821f32740f9e80abb773f466e0
parentc02c732956eae5c43f995d8800a7cb3ac391cb6a (diff)
parentc93aa3c1ef9158ec6666614ac9d384761cc559a7 (diff)
Merge "Merge "Merge "Merge "Merge "Fix testVerifyStatsExternalConsistent case" into android10-tests-dev am: f9e600c112" into android11-tests-dev am: 6f05e37e28" into android12-tests-dev am: ea0da8adbc" into android12L-tests-dev am: 3e8d5f75b0"
-rw-r--r--cmds/installd/InstalldNativeService.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmds/installd/InstalldNativeService.cpp b/cmds/installd/InstalldNativeService.cpp
index 95335e90ae..3335dc7b72 100644
--- a/cmds/installd/InstalldNativeService.cpp
+++ b/cmds/installd/InstalldNativeService.cpp
@@ -2830,6 +2830,9 @@ binder::Status InstalldNativeService::getExternalSize(const std::optional<std::s
auto obbPath = StringPrintf("%s/Android/obb",
create_data_media_path(uuid_, userId).c_str());
calculate_tree_size(obbPath, &obbSize);
+ if (!(flags & FLAG_USE_QUOTA)) {
+ totalSize -= obbSize;
+ }
ATRACE_END();
}