Adb Key Monkey
Fastest Adb Keyboard
Tool for control android device via PC keyboard
Requirement:
- Java 7 runtime (JRE7) or higher
- Sdk/platform-tools has to be in PATH env variable in order to find adb
How to run
- Download
- Run:
java -jar adbKeyMonkey.jar
How to use
When program starts, it connects to first device in adb. So before run, connect your device via ADB. Execute adb devices
to verify.
Keys
Up
,Left
,Right
,Down
=DPAD_UP
,DPAD_LEFT
,DPAD_RIGHT
,DPAD_DOWN
Esc
= AndroidBACK
Enter
=DPAD_CENTER
Backspace
=Backspace
- Letter keys = input letter in android
Config
At first run app put config.json
at working dir. You can configure:
reconnectPeriod
App checks connection every 5 sec (by default) and reconnect if no connection This setting defines time in seconds between checking connectivity
keyMap
Map pc key to android KeyEvents. Left: pc; Right: Android
For pc keycodes look here (Java FX doc)
For android KeyEvent look at Android doc
Build
- Got jdk 7 or higher
- Run
./gradlew build
- Compiled files will be at
./build/distributions
How it works
Speed of operation is achieved through the use of MonkeyRunner API