AdbKeyMonkey

Additional

Language
Java
Version
v1.0.4 (May 5, 2015)
Created
Nov 19, 2014
Updated
Apr 6, 2017 (Retired)
Owner
ckesc
Contributor
ckesc
1
Activity
Badge
Generate
Download
Source code

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

  1. Download
  2. 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 = Android BACK
  • 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

  1. Got jdk 7 or higher
  2. Run ./gradlew build
  3. Compiled files will be at ./build/distributions

How it works

Speed of operation is achieved through the use of MonkeyRunner API