Skip to content

flipx v0.3

Choose a tag to compare

@jlgrimes jlgrimes released this 26 May 23:42

What's new

Lock orientation to hinge state. Replaces the v0.2 global rotation hammer with a device-appropriate behavior: when the toggle is on, flipx binds the display rotation directly to the hinge — open → portrait, closed → landscape. Sensor-based auto-rotate is effectively disabled while locked.

Find it under the Rotation section of flipx's main screen. Default off in v0.3.

When the toggle is turned off, flipx calls wm user-rotation free to restore the system default (sensor-based rotation).

Install / upgrade

Same signing key — just adb install -r flipx-v0.3.apk over your existing install. Settings preserved.

Under the hood

  • Implemented via /system/bin/wm user-rotation lock <N> running as shell uid through the Shizuku UserService.
  • Hard-coded rotation values: 0 = portrait, 1 = landscape. If they come out backwards on your unit, the two constants in HingeUserService.kt (ROTATION_PORTRAIT / ROTATION_LANDSCAPE) just need to be swapped.
  • Reapplied on every Shizuku bind because wm flags reset across reboot.

v0.2 reverted

The "force auto-rotate everywhere" toggle from v0.2 has been removed — it was a global override that affected games too. The hinge-bound rotation lock here is the more targeted replacement.