input_injector

command
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2026 License: CC0-1.0 Imports: 11 Imported by: 0

Documentation

Overview

Inject input events via InputManager's binder interface.

Demonstrates:

  • Enumerating input devices
  • Reading / changing mouse pointer speed
  • Injecting a key event (KEYCODE_BACK) by building the raw KeyEvent parcel, bypassing the empty InputEvent stub

Build:

GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build -o build/input_injector ./examples/input_injector/
adb push build/input_injector /data/local/tmp/ && adb shell /data/local/tmp/input_injector

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL