{"id":23507415,"url":"https://github.com/ssttevee/libadb","last_synced_at":"2025-06-30T09:36:09.653Z","repository":{"id":244437964,"uuid":"813854003","full_name":"ssttevee/libadb","owner":"ssttevee","description":"An embeddable reimplementation of the ADB CLI","archived":false,"fork":false,"pushed_at":"2024-06-14T17:42:12.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"trunk","last_synced_at":"2025-02-16T19:15:23.416Z","etag":null,"topics":["adb","android","cli","screencap","screencapture","zig"],"latest_commit_sha":null,"homepage":"","language":"Zig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ssttevee.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-06-11T21:52:35.000Z","updated_at":"2024-10-15T16:46:31.000Z","dependencies_parsed_at":"2024-06-14T18:31:48.887Z","dependency_job_id":"7ae3bde3-260d-40d0-8ec5-883b44c6d383","html_url":"https://github.com/ssttevee/libadb","commit_stats":null,"previous_names":["ssttevee/libadb"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssttevee%2Flibadb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssttevee%2Flibadb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssttevee%2Flibadb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ssttevee%2Flibadb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ssttevee","download_url":"https://codeload.github.com/ssttevee/libadb/tar.gz/refs/heads/trunk","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253768486,"owners_count":21961340,"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":["adb","android","cli","screencap","screencapture","zig"],"created_at":"2024-12-25T10:18:43.683Z","updated_at":"2025-05-12T15:51:07.431Z","avatar_url":"https://github.com/ssttevee.png","language":"Zig","readme":"# libadb\n\nThis is an attempt to reimplement the host (and maybe client) side of the [Android Debug Bridge](https://en.wikipedia.org/wiki/Android_Debug_Bridge) such that it may embedded into other programs and be used independently of the official ADB binary. Please see [protocol.md](protocol.md) for more information about the protocol.\n\nThere is currently no actual library or header emitted while the implementation is confirmed to work on a wide range of devices, but it can be imported from other zig programs.\n\n## Building\n\n```sh\nzig build --release=safe\n```\n\n## Importing from another zig project\n\nRun this command from your project folder\n\n```sh\nzig fetch --save https://github.com/ssttevee/libadb/archive/refs/heads/trunk.tar.gz\n```\n\nThen add this snippet to your build.zig file\n\n```zig\nconst adb = b.dependency(\"adb\", .{\n    .optimize = optimize,\n    .target = target,\n});\n\nexe.root_module.addImport(\"adb\", adb.module(\"adb\"));\n```\n\n## Examples\n\nThere is currently only one example that simulates running `adb exec-out screencap -p`.\n\n```sh\n./zig-out/bin/example_screencap \u003e screencap.png\n```\n\n## Additional notes\n\n- Openssl is currently required. This dependency will likely be removed as soon as the necessary RSA and TLS operations are shipped in the zig std library.\n\n- The TCP transport implementation is not currently working due to what seems to be an issue with the zig std library tls client.\n\n- This library currently only supports single-threaded and single-socket operation. This will most likely only be addressed after ziglang/zig#6025 is fixed.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssttevee%2Flibadb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fssttevee%2Flibadb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fssttevee%2Flibadb/lists"}