First time user and I wanted to ask if there is a way to use my computers keyboard to type on my phone while it is plugged in to the PC to charge. I was wondering if anyone on here has a setup like this.

The end result needs to be: I can connect my phone through a dock or some other USB cable and either switch between windows on my PC to type on the android device, or find an OTG device capable of charging AND connecting a keyboard at the same time. This wouldn't be ideal due to limited desktop space.

I could connect a separate keyboard with an OTG cable, but this would stop me from charging it while using it.

I could also use AutoHotkey or something similar to send keystrokes to the android device over USB but I'm not sure how this would affect charging it or transferring files over USB as well. It could probably be done but I don't know where to start.

Ideally this would be the option I'd use.

I have very limited knowledge of Java and Kotlin but if I HAVE to I could try to make a keyboard app and a simple program for Windows to switch between typing on PC and on my phone. But I don't know if i can send that kind of data over USB and still move files onto it.

Sorry if I didn't explain properly.


  • 1
    The scrcpy program can both display the screen as well as send mouse and keyboard strokes to the USB connected Android device. I don't know about its Windows version, but Linux version works well – Firelord Aug 14 '19 at 9:45
  • You can use a remote desktop application like TeamViewer for this. Download the TeamViewer apps on your PC and phone, and connect the phone to the PC. You can put your phone on a wall charger as well, because this method only requires you to have a working Internet connection on your phone and PC. – Wrichik Basu Aug 14 '19 at 17:02
  • 1
    Note that TeamViewer has problems with a lot of non-ASCII characters, therefore for entering text it may be not the best choice. Anyway you can simply use the adb shell for doing so: in an open adb shell just execute the following command: input text 'your text'. With a bit of scripting knowledge you could build a terminal that sends all typed text to the device. – Robert Aug 14 '19 at 17:40
  • +1 [scrcpy] works well on windows/linux with adb over network (i use it for FireTV). bluetooth keyboard is another wireless solution. i have seen samsung tablets charging and usb-otg at the same time (but most devices don't support this) amazon.com/dp/B07JZND95Z – alecxs Aug 15 '19 at 13:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.