Skip to content

About

Experimental Shizuku-powered XInput USB receiver bridge for Android. Tested with Mojhon Storm on LG G7 / Android 10.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

StormBridge

Use an otherwise unsupported XInput USB receiver as an Android gamepad, with Shizuku.

Android build

StormBridge was built to solve a specific problem: an LG G7 running Android 10 could see a Mojhon Storm receiver over USB OTG, but games could not use its XInput controls correctly. Reading packets alone was not enough: some games also needed a registered Android gamepad with proper stick, trigger, and button capabilities.

The working solution reads the receiver directly and uses a Shizuku user service to create a virtual HID gamepad. A foreground service keeps the bridge running while another app is on screen.

Experimental and hardware-specific. Only the configuration below has been tested. This is not a universal Android controller driver.

Tested configuration

Component Tested setup
Phone LG G7 ThinQ
Android Android 10, without root
Controller Mojhon Storm, 2026 model, XInput mode
Receiver USB VID 0xE2B7, PID 0x122C
USB interface Vendor class 0xFF, subclass 0x5D, standard XInput state reports
Privileged access Shizuku started through ADB

The app currently filters for this exact receiver ID. Other receivers and phones need separate verification and may require code changes. The app's minimum SDK is Android 8.0, but that is a build requirement, not a tested compatibility promise.

Download

Get the experimental APK from Releases. The initial APK is a debug-signed test build. Source code and build instructions are included below.

Local and CI debug builds can use different signing keys. Android may require uninstalling a previous build before installing one signed with another key; grant Shizuku/USB permissions again afterward.

You also need the official Shizuku app and Android SDK Platform Tools for setup.

Why this works

Controller -> 2.4 GHz receiver -> USB OTG -> XInputReader
           -> Shizuku user service -> Android virtual HID gamepad -> Game

The implementation:

  1. Claims the receiver's XInput interface and uses UsbRequest for its interrupt endpoints.
  2. Sends the capability query that enabled input on the tested receiver: request type 0xC1, request 0x01, value 0x0100, 20-byte response. This quirk is restricted to E2B7:122C.
  3. Decodes buttons, both sticks, and both triggers.
  4. Runs Android's /system/bin/hid under Shizuku's shell identity to register a virtual gamepad through /dev/uhid.
  5. Uses the built-in Xbox 360 Android key layout to expose normal gamepad buttons, stick axes, triggers, and a directional hat.
  6. Keeps USB reading and HID forwarding in a foreground service, independent of the monitor activity.

The controller input stays on the phone. The PC and local network are used for startup, not for forwarding gameplay input.

Setup on LG G7 / Android 10

1. Prepare the phone

  1. Install Shizuku and the StormBridge APK.
  2. Enable Developer options and USB debugging.
  3. Connect the phone to the PC with a data-capable USB cable and authorize the PC on the phone.
  4. Select Photo transfer / PTP if adb devices -l is empty. This was necessary on the tested LG G7; file-transfer mode did not expose a usable ADB interface in our setup.
  5. Connect the phone and PC to the same trusted local network. The router does not need an internet connection after the required files are downloaded.

2. Use the Windows launcher

Download this repository and double-click Start-StormBridge.cmd. It finds ADB on PATH or in the standard Android SDK location.

With one authorized USB phone connected, the launcher detects its Wi-Fi address, enables ADB TCP port 5555, then asks you to:

  1. Unplug the PC's USB cable.
  2. Connect the controller receiver to the phone through OTG.
  3. Press Enter in the launcher.

It then starts Shizuku over the local network and opens StormBridge. This order matters: on our LG G7, unplugging the PC cable restarted ADB and stopped Shizuku when it had been started beforehand. Starting Shizuku after attaching the receiver resolved that sequence.

For an already prepared network connection, specify the phone's current address:

.\Start-StormBridge.cmd -DeviceAddress YOUR_PHONE_IP:5555

Advanced options are available in scripts/Start-StormBridge.ps1:

# Select a specific USB phone when several devices are connected.
.\scripts\Start-StormBridge.ps1 -DeviceSerial YOUR_USB_SERIAL

# Use a separately downloaded Platform Tools directory.
.\scripts\Start-StormBridge.ps1 -AdbPath 'C:\platform-tools\adb.exe'

# Inspect an existing authorized connection without changing settings or starting services.
.\scripts\Start-StormBridge.ps1 -CheckOnly

ADB TCP 5555 is reachable on the local network. Use a trusted network and keep ADB authorization enabled. Rebooting clears the temporary TCP mode; returning to USB mode with adb -s YOUR_PHONE_IP:5555 usb also restarts ADB and may stop Shizuku.

3. Grant permissions and play

  1. In StormBridge, grant Shizuku permission and USB receiver permission when prompted.
  2. Confirm "Shizuku connected; virtual gamepad ready." and an active USB receiver.
  3. Move the sticks and press buttons. The monitor should show changing values and packet counts.
  4. Switch to your game. The StormBridge controller bridge is running notification should remain visible.
  5. Use Stop in the app or Stop bridge in the notification to end the connection.

Manual startup on other desktop systems

The same ADB sequence can be used without the Windows helper:

adb devices -l
adb -s YOUR_USB_SERIAL tcpip 5555
# Unplug the PC USB cable and attach the receiver to the phone now.
adb connect YOUR_PHONE_IP:5555

Run the exact startup command shown inside your Shizuku app, adding -s YOUR_PHONE_IP:5555 immediately after adb. Do not reuse another phone's /data/app/... path. The included launcher handles the native libshizuku.so startup method and discovers its installed path and ABI automatically.

Reported game results

These are hands-on reports from the tested phone and installed Android game builds. Ports and versions can behave differently; no games or game files are distributed here.

Game Observed result
Silksong Left-stick movement worked after switching from anonymous injected events to the virtual gamepad.
Blasphemous Detected the gamepad and became playable; the foreground service was needed to keep the bridge alive during gameplay.
NFS Carbon Steering, throttle/brake, and buttons remained functional after the virtual-gamepad update.
Cuphead Menu input worked, but gameplay required manually assigning axes and buttons in the game's control settings. Movement worked after binding.

Limits and performance

  • Only receiver E2B7:122C and the LG G7 / Android 10 setup are verified.
  • The phone must provide /system/bin/hid and permit Shizuku's shell process to access /dev/uhid. OEM restrictions can differ.
  • The virtual device provides input only. Rumble and controller audio are not implemented.
  • This is native gamepad input, not a touchscreen-mapping tool. Games may still require their own controller assignment or bindings.
  • 2000 Hz and end-to-end input latency have not been measured or guaranteed. The rate display counts received XInput state packets; it is not a button-to-screen latency measurement.
  • Bluetooth is not used in the receiver path, but the receiver, software bridge, Android input processing, game, and display still contribute latency.
  • Shizuku must be started again after a phone reboot. USB mode changes or OEM background restrictions can stop it. Continuous multi-day operation and every Wi-Fi transition have not been validated.
  • Internet is not required during gameplay. The current app cannot bootstrap a stopped Shizuku server by itself; it needs a working Shizuku/ADB setup.

Build and test

Tested build environment: JDK 27, Gradle 9.9.1, Android Gradle Plugin 9.5.0, Android SDK platform 34, and Build Tools 36.0.0. Use the committed Gradle wrapper. Configure your SDK through ANDROID_HOME or a local, untracked local.properties file.

./gradlew :app:assembleDebug :app:testDebugUnitTest :app:lintDebug

On Windows, use gradlew.bat. The APK is generated at app/build/outputs/apk/debug/app-debug.apk.

Six unit tests cover HID report layout, button mapping, all D-pad directions, stick/trigger ranges, trigger thresholds, and clamping. Device-level checks verified Android gamepad registration and native stick events. GitHub Actions runs the build, tests, and lint and uploads a debug APK artifact.

On Windows, powershell -NoProfile -ExecutionPolicy Bypass -File scripts\Test-Launcher.ps1 runs mocked launcher checks for device selection, authorization failures, ambiguity, and read-only behavior without contacting a phone.

See Troubleshooting and Contributing for diagnostics and hardware reports.

References and project status

This is an independent community workaround, not an official Mojhon, LG, Shizuku, or game-publisher product.

No project license has been selected yet. Third-party components retain their own licenses; see Third-party notices.

About

Experimental Shizuku-powered XInput USB receiver bridge for Android. Tested with Mojhon Storm on LG G7 / Android 10.

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages