https://github.com/pcboy/adb-insecure-patcher
Enable adbd as root on any ROM
https://github.com/pcboy/adb-insecure-patcher
Last synced: about 1 year ago
JSON representation
Enable adbd as root on any ROM
- Host: GitHub
- URL: https://github.com/pcboy/adb-insecure-patcher
- Owner: pcboy
- Created: 2017-08-13T11:17:12.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-06-05T02:16:12.000Z (about 7 years ago)
- Last Synced: 2025-03-30T09:22:07.791Z (about 1 year ago)
- Language: Shell
- Size: 5.66 MB
- Stars: 70
- Watchers: 4
- Forks: 13
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ADBD insecure patcher
In some cases android ROM prevent you from running adb as root. After an `adb root` you can get the message `adbd cannot run as root in production builds` which is super annoying.
The script ./adb\_insecure.sh can patch any android ROM kernel in order to enable running adbd as root.
# Usage
```
./adb_insecure.sh YOUR_ROM.zip
```
Then you will get a boot.img file that you can flash with `fastboot flash boot boot.img` in bootloader mode.
# For Xiaomi.eu ROMS (and other Treble ROMs)
On Xioami.eu ROMS the ramdisk/default.prop is a symlink to /system/etc/prop.default.
You can if you want take that /system/etc/prop.default and overwrite the ramdisk/default.prop.
The script right now is simply overwriting the ramdisk/default.prop with a default one.