File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,14 @@ RUN echo y | android update sdk --no-ui --all -t `android list sdk --all|grep "S
8
8
9
9
# Expose android port
10
10
EXPOSE 5555
11
+ # VNC port
12
+ EXPOSE 5900
11
13
12
14
RUN echo n | android create avd --force -n "ANDROID" -t android-16
13
15
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
+
14
19
# Add script
15
20
ADD start.sh /start.sh
16
21
RUN chmod +x /start.sh
Original file line number Diff line number Diff line change 2
2
3
3
# Detect ip and forward ADB ports outside to outside interface
4
4
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 &
6
5
redir --laddr=$ip --lport=5555 --caddr=127.0.0.1 --cport=5555 &
7
6
8
7
# 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
You can’t perform that action at this time.
0 commit comments