Description
With USB Gadget Tool, your Android phone can mimic USB devices such as a mouse, keyboard, or camera. It connects to hosts like computers and can block standard USB features for added security. Note: Root access and Kernel with ConfigFS support are required. You'll also need extra apps to use endpoints like /dev/hidg0.
Screenshots

Click to view full size

Click to view full size

Click to view full size