Add virtual framebuffer

This commit is contained in:
Halim Qarroum
2023-03-13 13:52:25 +00:00
parent 4588052e49
commit 1b0d276bfa
2 changed files with 7 additions and 1 deletions
+4 -1
View File
@@ -25,6 +25,8 @@ echo "Creating the Android Virtual Emulator ..."
echo "Using package '$PACKAGE_PATH', ABI '$ABI' and device '$DEVICE_ID' for creating the emulator"
echo no | avdmanager create avd -n android --abi "$ABI" -k "$PACKAGE_PATH" --device "$DEVICE_ID"
Xvfb "$DISPLAY" -screen 0 1920x1080x16 -nolisten tcp &
# Asynchronously write updates on the standard output
# about the state of the boot sequence.
#cat ~/.android/avd/android.avd/config.ini
@@ -33,8 +35,9 @@ wait_for_boot &
# Start the emulator with no audio, no GUI, and no snapshots.
echo "Starting the emulator ..."
emulator \
-verbose \
-avd android \
-gpu swiftshader_indirect \
-gpu host \
-noaudio \
-no-boot-anim \
-no-window \