No description
Find a file
Simon Chan 0a3d92e3af v0.0.7
2021-03-10 10:34:03 +08:00
.github/workflows ci: try lcov code coverage format 2021-01-18 10:18:51 +08:00
.vscode feat: separate credential store 2021-03-10 10:00:08 +08:00
packages v0.0.7 2021-03-10 10:34:03 +08:00
.gitignore test(struct): add more unit tests 2021-01-10 01:06:18 +08:00
codecov.yml ci: fix typo 2021-01-17 20:33:57 +08:00
lerna.json v0.0.7 2021-03-10 10:34:03 +08:00
LICENSE chore: initialize repository 2020-09-14 13:13:35 +08:00
package.json feat: separate credential store 2021-03-10 10:00:08 +08:00
README.md feat(ws): add a demo WebSocket backend 2021-01-20 12:28:08 +08:00
renovate.json chore(deps): add renovate.json 2020-09-14 13:14:21 +08:00
tsconfig.base.json test(struct): 100% code coverage 2021-01-17 19:57:34 +08:00

Android Debug Bridge (ADB) for Web Browsers

GitHub license

Manipulate Android devices from any (supported) web browsers, even from another Android device.

Online demo: https://yume-chan.github.io/ya-webadb

How does it work

I'm working on a series of blog posts explaining the ADB protocol and my implementation in details.

@yume-chan/adb contains a platform-independent TypeScript implementation of the Android Debug Bridge (ADB) protocol.

@yume-chan/adb-backend-webusb contains a backend for @yume-chan/adb that uses WebUSB API.

See README in each package for more implementation details.

Packages

This repository is a monorepo containing following packages:

Folder Name Description
adb (README) TypeScript implementation of Android Debug Bridge (ADB) protocol.
adb-backend-webusb (README) Backend for @yume-chan/adb using WebUSB API.
event Event/EventEmitter pattern.
struct (README) C-style structure serializer and deserializer.
webpack-config Webpack configuration file in TypeScript, will output into demo folder
demo (README) Demo of @yume-chan/adb and @yume-chan/adb-backend-webusb.

Development

Install dependencies

If you already have lerna installed globally, run

npm run postinstall

Otherwise, run

npm install

will install lerna locally and bootstrap all packages.

Scripts

  • npm run build: build all npm packages.
  • npm run build:watch: build and watch changes for all npm packages.
  • npm run start:demo: start webpack-dev-server for the demo package.
  • npm run build:demo: build the demo package.