I have successfully made an APP to change my Android to a USB Keyoard by writing data into /dev/hidg1 after using GSB Gadget Tool ----add function --- Keyboard !! That's really cool. The only question is why my Android 100% reboots automaticly when i unplug the USB from my computer and then write a keyboard data to /dev/hidg1.
And i want adding new USB function "GamePad" into USB Gadget Tool !! Thanks a lot !!