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