{"id":13762847,"url":"https://github.com/GoogleChromeLabs/wadb","last_synced_at":"2025-05-10T15:32:01.922Z","repository":{"id":42873940,"uuid":"257541422","full_name":"GoogleChromeLabs/wadb","owner":"GoogleChromeLabs","description":"A TypeScript implementation of the Android Debug Bridge(ADB) protocol over WebUSB","archived":false,"fork":false,"pushed_at":"2024-10-30T17:17:59.000Z","size":1134,"stargazers_count":162,"open_issues_count":5,"forks_count":16,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-11-26T21:02:26.549Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GoogleChromeLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-21T09:13:28.000Z","updated_at":"2024-11-23T12:39:21.000Z","dependencies_parsed_at":"2024-01-13T03:01:34.254Z","dependency_job_id":"331a2716-ad0e-4c9b-9e27-b941030c895a","html_url":"https://github.com/GoogleChromeLabs/wadb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleChromeLabs%2Fwadb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleChromeLabs%2Fwadb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleChromeLabs%2Fwadb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GoogleChromeLabs%2Fwadb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GoogleChromeLabs","download_url":"https://codeload.github.com/GoogleChromeLabs/wadb/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253436657,"owners_count":21908380,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T14:00:59.000Z","updated_at":"2025-05-10T15:32:01.621Z","avatar_url":"https://github.com/GoogleChromeLabs.png","language":"TypeScript","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"# An ADB Implementation using WebUSB\n\nThis project is a TypeScript implementation of the Android Debug Bridge(ADB) protocol over WebUSB.\nThe implementation inspired on the [webadb.js][1], with the main difference being that\nimplementation supports multiple concurrent streams.\n\nThis is not an exhaustive implementation of the protocol and hasn't been tested on a wide range of\ndevices.\n\nA non-exhaustive list of things that are not implemented:\n\n- `STAT`: reads stats from the Android filesystem (file size, mode and time).\n\n## Usage\n\n### Connecting to a device\n```typescript\n  const options: Options = {\n    debug: true,\n    useChecksum: false,\n    dump: false,\n    keySize: 2048,\n  };\n\n  const transport = await WebUsbTransport.open(options);\n  const adbClient = new AdbClient(transport, options, keyStore);\n  await adbClient.connect();\n```\n\n### Downloading a file from the device (adb pull)\n```typescript\n  const result: Blob = await adbClient.pull('/sdcard/my-video.mp4');\n```\n\n### Sending shell commands\n```typescript\n  const result: string = await adbClient.shell('uname -a');\n```\n\n### Interactive shell\n```typescript\n  const callback = (output: string) =\u003e {\n    console.log('server: ' + output);\n  };\n  const shell: Shell = await adbClient.interactiveShell(callback);\n  await shell.write('ls /sdcard\\n');\n  await shell.close();\n```\n\n## Related Documents\n- https://github.com/webadb/webadb.js\n- https://github.com/cstyan/adbDocumentation\n- https://android.googlesource.com/platform/system/core/+/master/adb/\n\n## Contributing\n\nSee [CONTRIBUTING](./CONTRIBUTING.md) for more.\n\n## License\n\nSee [LICENSE](./LICENSE) for more.\n\n## Disclaimer\n\nThis is not a Google product.\n\n[1]: https://github.com/webadb/webadb.js\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGoogleChromeLabs%2Fwadb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGoogleChromeLabs%2Fwadb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGoogleChromeLabs%2Fwadb/lists"}