Merge pull request #15 from DmitruMoth/feature/extra-flags

Feature/extra flags
This commit is contained in:
Halim Qarroum
2026-04-26 17:16:21 +01:00
committed by GitHub
2 changed files with 8 additions and 4 deletions
+3
View File
@@ -166,6 +166,9 @@ MEMORY=8192
#### Cores for emulator
CORES=4
#### Extra flags to emulator
EXTRA_FLAGS="-no-metrics -no-audio -partition-size=8192"
### Mount an external drive in the container
It might be sometimes useful to have the entire Android SDK folder outside of the container (stored on a shared distributed filesystem such as NFS for example), to significantly reduce the size and the build time of the image.
+5 -4
View File
@@ -69,14 +69,15 @@ echo "CORES - $OPT_CORES"
emulator \
-avd android \
-gpu "$GPU_MODE" \
-memory $OPT_MEMORY \
-memory "$OPT_MEMORY" \
-no-boot-anim \
-cores $OPT_CORES \
-cores "$OPT_CORES" \
-ranchu \
$AUTH_FLAG \
-no-window \
-no-snapshot || update_state "ANDROID_STOPPED"
-no-snapshot \
$EXTRA_FLAGS || update_state "ANDROID_STOPPED"
# -qemu \
# -smp 8,sockets=1,cores=4,threads=2,maxcpus=8
# -smp 8,sockets=1,cores=4,threads=2,maxcpus=8