pelya / android-keyboard-gadget

Convert your Android device into USB keyboard/mouse, control your PC from your Android device remotely, including BIOS/bootloader.
Apache License 2.0
1.25k stars 314 forks source link

Add patch for Android kernel 3.18 #66

Closed jcadduono closed 7 years ago

jcadduono commented 7 years ago

i based it on msm-3.18 LA.HB.1.3.1 but it should apply over AOSP 3.18 with ease.

had to make a few adjustments to the usb function enable parser because of chardev duplicates on double enables

it should now attempt to enable on every available conf iter but only if it's not already enabled since the last unbinding

example application on LG H918 here: https://github.com/jcadduono/android_kernel_lge_msm8996/commit/35540b007dfac18715c6f3b5a8ba228d6693b85f