Why the easy ways failed
The screen is a small Android 13 computer driven by ASUS's software. Both obvious routes were dead ends.
- Rotate Android itself
Changing the system rotation once made the device reboot.
- Use the rotate command
The companion app's
rotatecommand saves the angle, but the picture never changes.
Two layers, flipped separately
The fix works inside the stock home app, so ASUS's software keeps sending temperatures and load as usual.
Text and stats
DecorView.setRotation(180)Turning the app's root view flips everything drawn in it: text, images and the hardware overlay.
Video
SurfaceControl.TransactionVideo is drawn on its own layer, so it needs its own transform: a matrix and a position, committed together.
scaleX = W / w W × H = screen (2240 × 1080) scaleY = H / h w × h = video buffer x' = W − scaleX · x y' = H − scaleY · y
A plain “multiply by −1” would shift a 1920×960 video and leave black bars. Keeping the scale and moving the origin is what makes it sit right.
Starts on boot, backs out cleanly
One small init file starts it. Nothing in ASUS's app, the boot image or the media is changed.
The installer refuses to run unless the device's system image matches the exact one I tested. One command turns the flip off; another removes the boot entry.
Flashing the original image back has not been rehearsed. Back up first, and only try this if you can reach the device's recovery mode.
Thanks to FoxPodZ/ryuo-iv-screen, whose reverse engineering of the device made this possible.