Skip to content

flipx v0.1

Choose a tag to compare

@jlgrimes jlgrimes released this 26 May 23:19

First release. Working end-to-end on the Anbernic RG Rotate (Android 12, Unisoc T618).

What this is

Two home screens for the RG Rotate. Flip the hinge open → land on your gaming launcher. Flip it closed → land on your everyday launcher. Automatic.

Install

  1. Install Shizuku and start it (Wireless Debugging or ADB).
  2. Download flipx-v0.1.apk from this release, sideload it.
  3. Open flipx, grant the Shizuku permission, tap Start watcher.
  4. Pick your launchers — one for hinge OPEN, one for hinge CLOSE. The picker lists every installed app that declares category.HOME.
  5. Tap "Make flipx the home" — flipx silently becomes the default home and routes home button presses based on hinge state.

⚠️ If you use ES-DE as your gaming launcher: turn OFF its "launcher mode" Quick Settings tile. flipx needs to be the only app holding the HOME role.

See the README for the full walkthrough and troubleshooting.

What's in this build

  • Hinge state detection via the gpio-keys Hall sensor (KEY_F12 press/release on /dev/input/event2).
  • Shizuku UserService streaming getevent as shell uid — no root required.
  • Explicit broadcast from the UserService to a flipx manifest receiver, bypassing the Android 12 background-service-start restriction.
  • HomeRouterActivity that reads hinge state on every home press and routes the HOME intent at the configured target launcher.
  • Auto-switch on flip when you're already sitting on one of the configured launchers — no need to press home manually.

Compatibility

Hard-coded to the RG Rotate's /dev/input/event2 and KEY_F12/F9 scancodes. Other handhelds will not work without a manifest change — see hinge-findings.md for the reverse-engineering trail you'd need to adapt.