Skip to content

Commit 637ea76

Browse files
author
Bastien DAVID
committed
Running arm64 emulator + VNC
Emulators are now running in arm64, and expose a VNC port.
1 parent 130e81e commit 637ea76

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

android-16/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,14 @@ RUN echo y | android update sdk --no-ui --all -t `android list sdk --all|grep "S
88

99
# Expose android port
1010
EXPOSE 5555
11+
# VNC port
12+
EXPOSE 5900
1113

1214
RUN echo n | android create avd --force -n "ANDROID" -t android-16
1315

16+
# Needed to be able to run VNC - bug of Android SDK
17+
RUN mkdir ${ANDROID_HOME}/tools/keymaps && touch ${ANDROID_HOME}/tools/keymaps/en-us
18+
1419
# Add script
1520
ADD start.sh /start.sh
1621
RUN chmod +x /start.sh

android-16/start.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
# Detect ip and forward ADB ports outside to outside interface
44
ip=$(ip addr list eth0|grep "inet "|cut -d' ' -f6|cut -d/ -f1)
5-
#socat tcp-listen:5555,bind=$ip,fork tcp:127.0.0.1:5555 &
65
redir --laddr=$ip --lport=5555 --caddr=127.0.0.1 --cport=5555 &
76

87
# Set up and run emulator
9-
emulator -avd ANDROID -noaudio -no-window -gpu off -verbose -force-32bit
8+
emulator64-arm -avd ANDROID -noaudio -no-window -gpu off -verbose -qemu -vnc :0

0 commit comments

Comments
 (0)