From 5f9096ae1c3734c15de08b11da5ee18710fd175b Mon Sep 17 00:00:00 2001 From: Jerome Laban Date: Mon, 7 Oct 2024 11:32:03 -0400 Subject: [PATCH] chore: Tentative mainkeys workaround --- build/scripts/android-uitest-run.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/scripts/android-uitest-run.sh b/build/scripts/android-uitest-run.sh index 45bcc27a1..22aa1dc8e 100644 --- a/build/scripts/android-uitest-run.sh +++ b/build/scripts/android-uitest-run.sh @@ -64,6 +64,12 @@ then # Bump the heap size as the tests are stressing the application echo "vm.heapSize=256M" >> $AVD_CONFIG_FILE + # Force the orentation to landscape as most tests expect it to be this way + echo "hw.initialOrientation=landscape" >> $AVD_CONFIG_FILE + + # Adjust for main keys: https://stackoverflow.com/a/16402304 + echo "hw.mainKeys=yes" >> $AVD_CONFIG_FILE + $ANDROID_HOME/emulator/emulator -list-avds echo "Starting emulator"