android-emulator: api36-v8 — auto-fit emulator window to the display

noVNC scaled correctly but the emulator's Qt window opened small (~411x914)
and floated inside the 1080x2280 Xvfb, so the user saw a tiny phone in a sea
of black. v8 bakes a background fitter (wmctrl+xdotool) that, after boot,
auto-OKs the one-shot nested-virtualization warning dialog, fills the phone
window to the display, and parks the control strip off the right edge —
re-running to catch window/dialog timing then maintaining every 30s. Applied
live to the running pod already; this makes it survive the next wake.
This commit is contained in:
Viktor Barzin 2026-06-12 20:44:29 +00:00
parent 97dcf49b8e
commit e5291f97c8
3 changed files with 32 additions and 4 deletions

View file

@ -4,8 +4,8 @@
# cmdline-tools and the native libraries the emulator needs at runtime.
#
# Rebuild + push (rare — only when tool/library versions bump):
# docker build -t forgejo.viktorbarzin.me/viktor/android-emulator:api36-v7 .
# docker push forgejo.viktorbarzin.me/viktor/android-emulator:api36-v7
# docker build -t forgejo.viktorbarzin.me/viktor/android-emulator:api36-v8 .
# docker push forgejo.viktorbarzin.me/viktor/android-emulator:api36-v8
FROM eclipse-temurin:17-jdk-jammy
ENV DEBIAN_FRONTEND=noninteractive
@ -17,7 +17,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libegl1 libgles2 \
libxkbfile1 libsm6 libice6 libdbus-1-3 \
# virtual display + browser viewing
xvfb x11vnc novnc websockify openbox \
xvfb x11vnc novnc websockify openbox wmctrl xdotool \
# adb TCP forwarding + fetch tooling
socat wget unzip ca-certificates \
&& rm -rf /var/lib/apt/lists/*