Search code examples
androidautomated-testskeyboard

Inject Keystrokes


Is there a way to inject keystrokes into the JVM on the Android platform?

I'm looking for something like java.awt.Robot but I don't think that's available on Android.


Solution

  • Well I'm actually working on a Synergy port to the android (synergy-foss.org) and I think the best (and only method) for faking out keystrokes on the device itself is to write to /dev/input/uinput. However it seems this is only available with Cyanogen mod