Documentation
¶
Overview ¶
Command wmresize changes a running device's display geometry.
Why this exists: the host `adb` binary cannot drive `wm` on BlueStacks — the wedged WindowManager returns "error: closed" for shell commands while SurfaceFlinger keeps serving frames, which is the failure internal/adb.shellWedgeFallback works around (see cmd/wedge_probe). Anything that switches resolution at runtime therefore has to go through this repo's own ADB transport, and this is that tool.
It is a development instrument: it changes the emulator's display without touching BlueStacks' saved preferences, so a cold boot reverts to whatever the multi-instance manager has configured. Pair it with docs/RESOLUTION.md — a new geometry also needs a measured display scale for the classifier to hold up.
Usage:
go run ./cmd/wmresize -w 1280 -h 720 # override the geometry go run ./cmd/wmresize -dpi 320 # density only go run ./cmd/wmresize -reset # back to the physical size go run ./cmd/wmresize # report the current geometry