{"id":41574293,"url":"https://github.com/evdenis/adb_root","last_synced_at":"2026-02-27T12:27:48.779Z","repository":{"id":37784469,"uuid":"233614724","full_name":"evdenis/adb_root","owner":"evdenis","description":"Magisk Module that allows you to run \"adb root\". Android 10 only. Probably will work with Android 9. Definitely not with Android 11/12.","archived":false,"fork":false,"pushed_at":"2026-02-15T21:53:55.000Z","size":684,"stargazers_count":489,"open_issues_count":19,"forks_count":79,"subscribers_count":15,"default_branch":"master","last_synced_at":"2026-02-16T04:39:30.995Z","etag":null,"topics":["adb","adbd","android","magisk","magisk-module","root"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evdenis.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-01-13T14:29:03.000Z","updated_at":"2026-02-15T21:54:00.000Z","dependencies_parsed_at":"2022-07-12T16:52:55.441Z","dependency_job_id":null,"html_url":"https://github.com/evdenis/adb_root","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/evdenis/adb_root","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evdenis%2Fadb_root","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evdenis%2Fadb_root/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evdenis%2Fadb_root/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evdenis%2Fadb_root/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evdenis","download_url":"https://codeload.github.com/evdenis/adb_root/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evdenis%2Fadb_root/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29894851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-27T12:09:13.686Z","status":"ssl_error","status_checked_at":"2026-02-27T12:09:13.282Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","adbd","android","magisk","magisk-module","root"],"created_at":"2026-01-24T08:11:11.651Z","updated_at":"2026-02-27T12:27:48.769Z","avatar_url":"https://github.com/evdenis.png","language":"Makefile","readme":"# ADB Root\n\nA Magisk module that runs the `adbd` daemon as root and skips USB authentication.\n\nThis module only supports **Android 9/10** on **aarch64** devices.\n\n## Compatibility\n\n| Android Version | Architecture | Status |\n|-----------------|-------------|--------|\n| 9 (Pie) | arm64/aarch64 | Supported |\n| 10 (Q) | arm64/aarch64 | Supported |\n| 9/10 | arm/x86/x86_64 | Not supported (arm64 binary only) |\n| 8 (Oreo) and below | any | Not supported |\n| 11+ | any | Not supported |\n\n## What this does\n\nYou don't need this module if you don't know what is \"adb root\". It's not an\nordinary root (su), it's the adbd daemon running on your phone with root rights.\nadb root allows you to \"adb push/pull\" to system directories and run such commands\nas \"adb remount\" or \"adb disable-verify\".\n\n**This is a highly insecure magisk module.**\nDon't forget to disable it once you've done all the things you need.\nDon't use it constantly.\n\nThis module provides a patched adbd binary obtained from AOSP sources that disables\nprops checks and USB auth. The binary is required because \"adb root\" can be disabled\nat compile time by some vendors.\n\n\u003cdetails\u003e\n\n\u003csummary\u003ePatch:\u003c/summary\u003e\n\n```diff\ndiff --git a/adb/daemon/main.cpp b/adb/daemon/main.cpp\nindex d064d0d..a520bfd 100644\n--- a/adb/daemon/main.cpp\n+++ b/adb/daemon/main.cpp\n@@ -51,48 +51,11 @@\n static const char* root_seclabel = nullptr;\n\n static bool should_drop_capabilities_bounding_set() {\n-#if defined(ALLOW_ADBD_ROOT)\n-    if (__android_log_is_debuggable()) {\n-        return false;\n-    }\n-#endif\n-    return true;\n+    return false;\n }\n\n static bool should_drop_privileges() {\n-#if defined(ALLOW_ADBD_ROOT)\n-    // The properties that affect `adb root` and `adb unroot` are ro.secure and\n-    // ro.debuggable. In this context the names don't make the expected behavior\n-    // particularly obvious.\n-    //\n-    // ro.debuggable:\n-    //   Allowed to become root, but not necessarily the default. Set to 1 on\n-    //   eng and userdebug builds.\n-    //\n-    // ro.secure:\n-    //   Drop privileges by default. Set to 1 on userdebug and user builds.\n-    bool ro_secure = android::base::GetBoolProperty(\"ro.secure\", true);\n-    bool ro_debuggable = __android_log_is_debuggable();\n-\n-    // Drop privileges if ro.secure is set...\n-    bool drop = ro_secure;\n-\n-    // ... except \"adb root\" lets you keep privileges in a debuggable build.\n-    std::string prop = android::base::GetProperty(\"service.adb.root\", \"\");\n-    bool adb_root = (prop == \"1\");\n-    bool adb_unroot = (prop == \"0\");\n-    if (ro_debuggable \u0026\u0026 adb_root) {\n-        drop = false;\n-    }\n-    // ... and \"adb unroot\" lets you explicitly drop privileges.\n-    if (adb_unroot) {\n-        drop = true;\n-    }\n-\n-    return drop;\n-#else\n-    return true; // \"adb root\" not allowed, always drop privileges.\n-#endif // ALLOW_ADBD_ROOT\n+    return false;\n }\n\n static void drop_privileges(int server_port) {\n@@ -183,9 +146,7 @@ int adbd_main(int server_port) {\n     // descriptor will always be open.\n     adbd_cloexec_auth_socket();\n\n-    if (ALLOW_ADBD_NO_AUTH \u0026\u0026 !android::base::GetBoolProperty(\"ro.adb.secure\", false)) {\n-        auth_required = false;\n-    }\n+    auth_required = false;\n\n     adbd_auth_init();\n\ndiff --git a/adb/services.cpp b/adb/services.cpp\nindex 8518f2e..24f9def 100644\n--- a/adb/services.cpp\n+++ b/adb/services.cpp\n@@ -78,12 +78,6 @@ void restart_root_service(int fd, void *cookie) {\n         WriteFdExactly(fd, \"adbd is already running as root\\n\");\n         adb_close(fd);\n     } else {\n-        if (!__android_log_is_debuggable()) {\n-            WriteFdExactly(fd, \"adbd cannot run as root in production builds\\n\");\n-            adb_close(fd);\n-            return;\n-        }\n-\n         android::base::SetProperty(\"service.adb.root\", \"1\");\n         WriteFdExactly(fd, \"restarting adbd as root\\n\");\n         adb_close(fd);\n```\n\n\u003c/details\u003e\n\n## How to install\n\n**Requirements:** Android 9/10, aarch64 device, Magisk v20.4+\n\nStable release:\n1. Download latest adb_root.zip from releases page\n   https://github.com/evdenis/adb_root/releases\n2. MagiskManager -\u003e Modules + Downloads/adb_root.zip -\u003e Reboot\n\nMaster branch:\n1. git clone https://github.com/evdenis/adb_root\n2. cd adb_root\n3. make install\n\n## Troubleshooting\n\n**Device disappears / goes offline after reboot:**\nSome vendors (Samsung DEFEX, Huawei, etc.) have kernel-level security that kills\nmodified system binaries. The v2 module includes a `service.sh` script that\nautomatically restarts adbd after boot. If the device still disappears, the module\nwill auto-disable itself on the next boot — simply reboot again to recover.\n\n**`adb install` or `adb pull` fails with permission errors:**\nThis is caused by missing SELinux permissions. v2 includes expanded sepolicy rules\nthat should fix this. If you still see denials, check `adb logcat | grep avc` for\nthe specific denial and report it.\n\n**`adb root` says \"already running as root\" but shell is not root:**\nMake sure `adb shell id` shows `uid=0(root)`. If not, try `adb kill-server \u0026\u0026 adb root`.\nThe v2 module sets `service.adb.root=1` via `system.prop` which helps with this.\n\n**Module doesn't work on Android 11+:**\nThis module's patched binary only works on Android 9/10.\n\n**Module doesn't work on 32-bit devices:**\nThe patched adbd binary is compiled for aarch64 (arm64) only. There are no plans to\nsupport 32-bit architectures.\n\n## Support\n\n- [Telegram](https://t.me/joinchat/GsJfBBaxozXvVkSJhm0IOQ)\n- [XDA Thread](https://forum.xda-developers.com/apps/magisk/module-debugging-modules-adb-root-t4050041)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevdenis%2Fadb_root","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevdenis%2Fadb_root","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevdenis%2Fadb_root/lists"}