Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 5 additions & 4 deletions scripts/start-emulator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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