diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-09-29 19:23:31 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-09-29 19:23:31 +0000 |
commit | 76ec9a3cfbc263421efb10305d1bb010fbd64bc0 (patch) | |
tree | 0664c3ab92a634a1536129b6652186504b47dc40 | |
parent | 3c88e5615962190045d9f52269a9a7178d96691c (diff) | |
parent | c92a8335cab2204ad112aa5961b8eaa357bb9949 (diff) | |
download | qemu-snap-temp-L93900000956627620.tar.gz |
Merge "disksize: force 6G for api 24 and later" into snap-temp-L93900000956627620snap-temp-L93900000956627620
-rwxr-xr-x | android-qemu2-glue/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/android-qemu2-glue/main.cpp b/android-qemu2-glue/main.cpp index e737d004e1..da9e2ac539 100755 --- a/android-qemu2-glue/main.cpp +++ b/android-qemu2-glue/main.cpp @@ -1818,7 +1818,8 @@ extern "C" int main(int argc, char** argv) { // studio avd manager does not allow user to change partition size, set a // lower limit to 6GB. constexpr auto kMinPlaystoreImageSize = 6LL * 1024 * 1024 * 1024; - if (fc::isEnabled(fc::PlayStoreImage)) { + const int myApiLevel = avd ? avdInfo_getApiLevel(avd) : 1000; + if (myApiLevel >= 24 || fc::isEnabled(fc::PlayStoreImage)) { if (firstTimeSetup && android_hw->disk_dataPartition_size < kMinPlaystoreImageSize) { android_hw->disk_dataPartition_size = kMinPlaystoreImageSize; |