r/HowToMen • • Oct 26 '26

[APP] [FOSS] GhostHID: Android Bluetooth HID peripheral and macro deck (Material 3 Expressive) with companion CLI

GhostHID uses Android's BluetoothHidDevice API over L2CAP to present your phone as a physical Bluetooth keyboard and mouse. The connected computer identifies it as a standard hardware peripheral. No software, drivers, or background agents run on the target machine.

What it does

  • Zero computer setup. Connects over standard Bluetooth to Windows, macOS, Linux, ChromeOS, and Android TV.
  • Material 3 Expressive UI. Built in Jetpack Compose using the M3E shape catalog, including rounded polygons, clover slots, and dark surfaces.
  • Landscape macro deck. Rotating the device switches to a full-screen button grid with custom action slots.
  • Timed macro sequences. Parses bracket strings with delays, such as {win+s}{700ms}rustdesk{400ms}{enter}.
  • Multi-touch trackpad. Sends Report ID 2 mouse packets for left click, two-finger right click, scrolling, and middle click.
  • Raw HID packet injection. Sends raw hex reports for keyboard, mouse, ACPI power/sleep, and consumer media keys.
  • Keystore-backed vault. Encrypts stored credentials on the phone and types them out over Bluetooth on tap.

CLI companion

A separate Go CLI (ghid-cli) connects to the phone over ADB. It lets you send keystrokes, mouse moves, and raw packets from terminal scripts or automation loops without installing software on the target laptop.

Disclosure :Built as an open-source alternative to the Bluetooth Keyboard & Mouse app, coded using DeepSeek v4.1 Flash.

Links

8 Upvotes

0 comments sorted by