You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Device panel shows black bars around an Android emulator with a wm size override #42959
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
Device panel (Android emulators), web, desktop and mobile clients
Steps to reproduce
Open a Pixel 7 API 34 emulator (1080x2400) in the Device panel.
Run adb shell wm size 904x2316 to emulate a narrower screen, for example a Galaxy Z Fold 5 cover screen, a 21:9 Xperia, or a passport-style foldable.
Look at the 2D or 3D device view.
Expected behavior
The device frame follows the emulated screen, with no black bars, and taps land where you click.
Actual behavior
Android scales the overridden display to fit and centres it inside the physical framebuffer, which serve-emu streams as is. The panel sizes the screen from that framebuffer, so about 72 px of black shows on each side, and the 3D frame keeps the physical proportions. Taps are also off: with serve-emu's default scrcpy input on expo-device-hub 0.26.1, a tap at frame x lands at display pixel x × 1080 in a 904-wide display, so the right part of the screen can't be reached.
Impact
Major degradation or frequent failure: testing layouts for narrow or tall screens with wm size is not usable from the Device panel.
Activity