{"id":17310491,"url":"https://github.com/kpcyrd/forensic-adb","last_synced_at":"2025-06-25T22:36:10.077Z","repository":{"id":147934866,"uuid":"618915409","full_name":"kpcyrd/forensic-adb","owner":"kpcyrd","description":"Tokio based client library for the Android Debug Bridge (adb) based on mozdevice","archived":false,"fork":false,"pushed_at":"2025-03-28T16:35:01.000Z","size":138,"stargazers_count":25,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-22T13:48:05.885Z","etag":null,"topics":["adb","android","async","rust","tokio-rs"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kpcyrd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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,"zenodo":null}},"created_at":"2023-03-25T18:05:53.000Z","updated_at":"2025-06-10T04:54:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"f593476d-92ad-4442-ab5b-8bb7edd342ba","html_url":"https://github.com/kpcyrd/forensic-adb","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/kpcyrd/forensic-adb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpcyrd%2Fforensic-adb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpcyrd%2Fforensic-adb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpcyrd%2Fforensic-adb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpcyrd%2Fforensic-adb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kpcyrd","download_url":"https://codeload.github.com/kpcyrd/forensic-adb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpcyrd%2Fforensic-adb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261964892,"owners_count":23237506,"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","async","rust","tokio-rs"],"created_at":"2024-10-15T12:37:22.028Z","updated_at":"2025-06-25T22:36:10.055Z","avatar_url":"https://github.com/kpcyrd.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# forensic-adb\n\nTokio based client library for the Android Debug Bridge (adb) based on mozdevice for Rust.\n\n[Documentation](https://docs.rs/forensic-adb)\n\nThis code has been extracted from [mozilla-central/testing/mozbase/rust/mozdevice][1] and ported to async Rust. It also removes root detection so no commands are executed on the remote device by default.\n\n[1]: https://hg.mozilla.org/mozilla-central/file/tip/testing/mozbase/rust/mozdevice\n\n```rust\nuse forensic_adb::{AndroidStorageInput, DeviceError, Host};\n\n#[tokio::main]\nasync fn main() -\u003e Result\u003c(), DeviceError\u003e {\n    let host = Host::default();\n\n    let devices = host.devices::\u003cVec\u003c_\u003e\u003e().await?;\n    println!(\"Found devices: {:?}\", devices);\n\n    let device = host\n        .device_or_default(Option::\u003c\u0026String\u003e::None, AndroidStorageInput::default())\n        .await?;\n    println!(\"Selected device: {:?}\", device);\n\n    let output = device.execute_host_shell_command(\"id\").await?;\n    println!(\"Received response: {:?}\", output);\n\n    Ok(())\n}\n```\n\n## License\n\nMozilla Public License (MPL-2.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkpcyrd%2Fforensic-adb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkpcyrd%2Fforensic-adb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkpcyrd%2Fforensic-adb/lists"}