{"id":22761701,"url":"https://github.com/jakeler/adb-root","last_synced_at":"2025-07-11T22:09:12.840Z","repository":{"id":114458523,"uuid":"149517511","full_name":"Jakeler/adb-root","owner":"Jakeler","description":"Script to transfer files over adb as root","archived":false,"fork":false,"pushed_at":"2020-04-04T20:29:41.000Z","size":6,"stargazers_count":19,"open_issues_count":2,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T19:41:14.804Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/Jakeler.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,"zenodo":null}},"created_at":"2018-09-19T22:06:29.000Z","updated_at":"2024-09-01T04:28:35.000Z","dependencies_parsed_at":"2023-06-08T02:15:38.151Z","dependency_job_id":null,"html_url":"https://github.com/Jakeler/adb-root","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Jakeler/adb-root","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jakeler%2Fadb-root","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jakeler%2Fadb-root/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jakeler%2Fadb-root/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jakeler%2Fadb-root/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jakeler","download_url":"https://codeload.github.com/Jakeler/adb-root/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jakeler%2Fadb-root/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264904852,"owners_count":23681288,"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-12-11T09:14:34.290Z","updated_at":"2025-07-11T22:09:12.826Z","avatar_url":"https://github.com/Jakeler.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ADB root push/pull\nThis script allows to push/pull files as root over adb (rooted Android device with working busybox/toybox required).\n```\nusage: adb-root.py [-h] [-m MODE] [-o OWNER] [-c] [--verbose]\n                   [--verbosity {DEBUG,INFO,WARNING,ERROR}]\n                   {push,pull} source target\n\nread/write files as root on any Android device\n\npositional arguments:\n  {push,pull}                             pull to copy from device, push to copy to device\n  source                                  path of the file to copy\n  target                                  destination for the copied file\n\noptional arguments:\n  -h, --help                              show this help message and exit\n  -m MODE, --mode MODE                    set mode of file (chmod notation)\n  -o OWNER, --owner OWNER                 set owner and group of file (chown notation)\n  -c, --check                             calculate and compare hashsum after transfer\n  --verbose, -v                           Increase verbosity from default warning level\n  --verbosity {DEBUG,INFO,WARNING,ERROR}  Directly set logging level\n```\n\n### Technical background\nDetailed: \u003chttps://blog.ja-ke.tech/2018/09/20/adb-root.html\u003e\n\nIt reads the file to stdout, sends the stream over adb to a root shell, which writes it with dd to disk/flash. \nChanging mode/owner and is done with directly calling chmod/chown and the hashsum check with sha256.\n\nRecursive handling of directories is currently not implemented, but planned for the future.\n\n### Speed\nIn my tests comparable to the normal adb push/pull, about USB 2.0 performance (30 MB/s). Small files can be drastically slower, because of the shell spawning overhead.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakeler%2Fadb-root","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakeler%2Fadb-root","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakeler%2Fadb-root/lists"}