android-keyboard-gadget icon indicating copy to clipboard operation
android-keyboard-gadget copied to clipboard

Freezes when running command

Open CppBunny opened this issue 9 years ago • 2 comments

Hey!

Just patched and built a kernel for my zenwatch 2 with this patch and now the files /dev/hidg0 and /dev/hidg1 exist (i have chmodded them) but when I'm trying to run a preview command from your script like "echo a | ./hid-gadget-test /dev/hidg0 keyboard" it just freezes and does nothing at all :/

Any idea on how to fix this?

Thanks!

CppBunny avatar Feb 29 '16 22:02 CppBunny

Maybe try to disable SELinux? Does your watch have USB port to plug into PC?

On Tue, Mar 1, 2016 at 12:44 AM, nnvt [email protected] wrote:

Hey!

Just patched and built a kernel for my zenwatch 2 with this patch and now the files /dev/hidg0 and /dev/hidg1 exist (i have chmodded them) but when I'm trying to run a preview command from your script like "echo a | ./hid-gadget-test /dev/hidg0 keyboard" it just freezes and does nothing at all :/

Any idea on how to fix this?

Thanks!

— Reply to this email directly or view it on GitHub https://github.com/pelya/android-keyboard-gadget/issues/47.

pelya avatar Mar 02 '16 20:03 pelya

You could also try connecting your Phone as Midi-Device before running your command. Or try: setprop sys.usb.config "charging" before. Somehow ADB seems to interfere with the HID functionality (at least on my device)

simondankelmann avatar Jan 25 '18 10:01 simondankelmann