![]() Bumps [acorn](https://github.com/acornjs/acorn) from 7.1.0 to 7.1.1. - [Release notes](https://github.com/acornjs/acorn/releases) - [Commits](https://github.com/acornjs/acorn/compare/7.1.0...7.1.1) Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
lib | ||
src | ||
.gitignore | ||
LICENSE | ||
package-lock.json | ||
package.json | ||
README.md | ||
rollup.config.js | ||
test.html | ||
tsconfig.json |
Yet Another WebADB
Connect to your Android phones from everything that can run (supported) web browser, including PC, mac, and even another Android phone.
Inspired by webadb.js, but completely rewritten.
How does it work
Currently only the interactive shell (adb shell
) is implemented, but I think it's the most difficult but interesting part.
WebUSB API gives JavaScript running in supported web browsers access to USB devices, including Android phones.
ADB uses a fairly simple protocol to commnunicate, so it's pretty easy to reimplement with JavaScript.
adb shell
, the interactive shell, uses plain PTY protocol, and xterm.js can handle it very well.
Build
npm run build
Run
npm start
And navigate to http://localhost:8080/test.html
.
WebUSB API requires a secure context (basicly means HTTPS).
Chrome will treat localhost
as one, but if you want to access test server running on another machine, you can configure you Chrome as following:
- Open
chrome://flags/#unsafely-treat-insecure-origin-as-secure
- Add the protocol and domain part of your url (e.g.
http://192.168.0.100:8080
) to the input box - Choose
Enable
from the dropdown menu - Restart your browser