Skip to content
Merged
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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@ It does the following:
- The gRPC service is used to communicate with the running emulator inside the
container.

*Note: You can use a public adbkey by injecting the ADBKEY_PUB variable, i.e.: -e ADBKEY_PUB="$(cat ~/.android/adbkey.pub)"*

You also have the option to mount a /data partition which the emulator will use
if available. This enables you to use a tmpfs which can give increased
performance, especially in the nested virtualization scenario.
Expand Down
1 change: 1 addition & 0 deletions emu/templates/Dockerfile.emulator
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libpulse0 libtinfo5 libx11-6 libxcb1 libxdamage1 \
libnss3 libxcomposite1 libxcursor1 libxi6 \
libxext6 libxfixes3 zlib1g libgl1 pulseaudio socat \
iputils-ping \
# Enable turncfg through usage of curl
curl ca-certificates && \
apt-get clean && \
Expand Down
4 changes: 4 additions & 0 deletions emu/templates/launch-emulator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ install_adb_keys() {
echo "-----BEGIN PRIVATE KEY-----" >/root/.android/adbkey
echo $ADBKEY | tr " " "\\n" | sed -n "4,29p" >>/root/.android/adbkey
echo "-----END PRIVATE KEY-----" >>/root/.android/adbkey
elif [ ! -z "${ADBKEY_PUB}" ]; then
echo "emulator: Using provided adb public key"
echo $ADBKEY_PUB >>/root/.android/adbkey.pub
else
echo "emulator: No adb key provided, creating internal one, you might not be able connect from adb."
run /android/sdk/platform-tools/adb keygen /root/.android/adbkey
Expand Down Expand Up @@ -219,6 +222,7 @@ var_append LAUNCH_CMD -avd Pixel2
var_append LAUNCH_CMD -ports 5556,5557 -grpc 8554 -no-window
var_append LAUNCH_CMD -skip-adb-auth -no-snapshot-save -wipe-data -no-boot-anim
var_append LAUNCH_CMD -shell-serial file:/tmp/android-unknown/kernel.log
var_append LAUNCH_CMD -logcat "*:V"
var_append LAUNCH_CMD -logcat-output /tmp/android-unknown/logcat.log
var_append LAUNCH_CMD -logcat "*:V"
var_append LAUNCH_CMD -feature AllowSnapshotMigration
Expand Down