summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-prod (mdb) <android-build-team-robot@google.com>2020-10-20 20:08:28 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-10-20 20:08:28 +0000
commit7be9fbd05cbe811f42b4b2ecbda4b2bbd61ce485 (patch)
tree288404aa28ecb1b4ae6ff631f5994a1e41d54d33
parentdf8a0739f7ab42ce59e2370867d26ed2793b6228 (diff)
parentb240f32a8ce3b054f8a3c4fee9825f7bb194eec2 (diff)
downloadnative-android11-tests-release.tar.gz
-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 b9c1addf89..c1f67b246b 100644
--- a/cmds/installd/InstalldNativeService.cpp
+++ b/cmds/installd/InstalldNativeService.cpp
@@ -2194,6 +2194,9 @@ binder::Status InstalldNativeService::getExternalSize(const std::unique_ptr<std:
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();
}