File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -224,6 +224,8 @@ It does the following:
224224- The gRPC service is used to communicate with the running emulator inside the
225225 container.
226226
227+ * Note: You can use a public adbkey by injecting the ADBKEY_PUB variable, i.e.: -e ADBKEY_PUB="$(cat ~ /.android/adbkey.pub)"*
228+
227229You also have the option to mount a /data partition which the emulator will use
228230if available. This enables you to use a tmpfs which can give increased
229231performance, especially in the nested virtualization scenario.
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2222 libpulse0 libtinfo5 libx11-6 libxcb1 libxdamage1 \
2323 libnss3 libxcomposite1 libxcursor1 libxi6 \
2424 libxext6 libxfixes3 zlib1g libgl1 pulseaudio socat \
25+ iputils-ping \
2526# Enable turncfg through usage of curl
2627 curl ca-certificates && \
2728 apt-get clean && \
Original file line number Diff line number Diff line change @@ -112,6 +112,9 @@ install_adb_keys() {
112112 echo " -----BEGIN PRIVATE KEY-----" > /root/.android/adbkey
113113 echo $ADBKEY | tr " " " \\ n" | sed -n " 4,29p" >> /root/.android/adbkey
114114 echo " -----END PRIVATE KEY-----" >> /root/.android/adbkey
115+ elif [ ! -z " ${ADBKEY_PUB} " ]; then
116+ echo " emulator: Using provided adb public key"
117+ echo $ADBKEY_PUB >> /root/.android/adbkey.pub
115118 else
116119 echo " emulator: No adb key provided, creating internal one, you might not be able connect from adb."
117120 run /android/sdk/platform-tools/adb keygen /root/.android/adbkey
@@ -219,6 +222,7 @@ var_append LAUNCH_CMD -avd Pixel2
219222var_append LAUNCH_CMD -ports 5556,5557 -grpc 8554 -no-window
220223var_append LAUNCH_CMD -skip-adb-auth -no-snapshot-save -wipe-data -no-boot-anim
221224var_append LAUNCH_CMD -shell-serial file:/tmp/android-unknown/kernel.log
225+ var_append LAUNCH_CMD -logcat " *:V"
222226var_append LAUNCH_CMD -logcat-output /tmp/android-unknown/logcat.log
223227var_append LAUNCH_CMD -logcat " *:V"
224228var_append LAUNCH_CMD -feature AllowSnapshotMigration
You can’t perform that action at this time.
0 commit comments