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
Click to show internal directories.
Click to hide internal directories.