This is a demo for my ya-webadb project, which can use ADB protocol to control Android phones, directly from Web browsers (or Node.js).
It started because I want to try the WebUSB API, and because I have an Android phone. It's not production-ready, and I don't recommend normal users to try it. If you have any questions or suggestions, please file an issue at here.
It was called "ya-webadb" (Yet Another WebADB), because there have already been several similar projects, for example:
However, they are all pretty simple and not maintained, so I decided to make my own.
Accessing USB devices (especially your phone) directly from a web page can be very dangerous. Firefox developers even refused to implement the WebUSB standard because they considered it to be harmful.
However, I'm pretty confident about this demo, and here is a few reasons:
Currently, only Chromium-based browsers (Chrome, Microsoft Edge, Opera) support the WebUSB API. As mentioned before, it's unlikely for Firefox to implement it.
One USB device can only be accessed by one application at a time. Please make sure:
Extra software is required to bridge the connection. See this discussion.