mirror of
https://github.com/HQarroum/docker-android.git
synced 2026-07-30 11:22:18 +00:00
Merge pull request #15 from DmitruMoth/feature/extra-flags
Feature/extra flags
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user