Android app that allows you to easily use your phone as a keyboard and mouse
Report Bug
·
Request Feature
<img src="images/app-screenshot1.png" alt="Main screen" height="350"> <img src="images/app-screenshot2.png" alt="Main screen with menu open" height="350"> <img src="images/app-screenshot3.png" alt="App settings screen" height="350"> <img src="images/app-screenshot4.png" alt="Help screen with frequently asked questions" height="350">
This Android app allows you your phone to present itself to a connected device as a keyboard and mouse. Since this happens at a very low level, the connected device sees it exactly as a normal keyboard and mouse, meaning you don't need to install any software on the connected computer! For this reason, it will even work if the connected device is in its BIOS/UEFI. Even multimedia keys are supported, meaning you can send volume up/down keys to the connected computer to control media.
Disclaimers:
Bonus description for nerds: This app adds (and provides a simple UI for you to communicate with) two character devices (/dev/hidg0
and /dev/hidg1
respectively) by
adding HID functions to the default Android USB gadget. If you wanted to, you could just use this app to create the character devices, then
communicate solely through some C program, shell script, or whatever else you wanted as long as it had the right permissions to access the
character devices and knew how to send proper reports to them. Beware of SELinux policies if you do that though. If anyone is actually doing that, let
me know, I'd be glad to help if necessary.
Tested primarily on: Linux (Host computer) and Pixel 5 running Android 14.
magiskpolicy
ksud sepolicy patch
Key behavior settings > Ctrl key code = None (Ignored when not modifying other keys)
Key behavior settings > Alt key code = None (Ignored when not modifying other keys)
Key behavior settings > Meta key code = None (Ignored when not modifying other keys)
The recommended way to install the app is through the IzzyOnDroid repo via an app that's compatible with F-Droid style repositories, since that'll make updates much easier. However, you can also download the APK file from the Github releases page, then install it on your Android device.
Clone the repository.
git clone https://github.com/Arian04/android-hid-client.git
import into Android Studio, build the APK, then install it on your Android device.
To relay keys in real-time as soon as you press them, click on the keyboard icon in the menu bar. It should pull up your keyboard. Now you can just start typing!
Typing in the "Manual Input" text box will send all the characters that you've typed into the box to the connected device once you hit the "send" button.
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Distributed under the GNU GPLv3 License. See LICENSE.txt
for more information.