https://github.com/bkerler/android_universal
Universal android boot to root
https://github.com/bkerler/android_universal
Last synced: about 2 months ago
JSON representation
Universal android boot to root
- Host: GitHub
- URL: https://github.com/bkerler/android_universal
- Owner: bkerler
- License: mit
- Created: 2019-08-28T12:13:59.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-07-27T08:02:23.000Z (almost 4 years ago)
- Last Synced: 2025-04-04T01:32:16.043Z (3 months ago)
- Language: Python
- Size: 52.1 MB
- Stars: 273
- Watchers: 19
- Forks: 65
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-hacking-lists - bkerler/android_universal - Universal android boot to root (Python)
README
# Android Universal Boot Rooting Toolkit
(c) B. Kerler, MIT LicenseConverts stock boot images and adds hidden root (accessible via netcat session), patches selinux and adds adb.
Tested with Android 4.x - 10.x.## Options:
```
-filename FILENAME, -fn FILENAME boot.img or recovery.img
-stopboot Device will halt on boot logo
-justunpack, -ju Just extract kernel + ramdisk (files will be in tmp/)
-custom, -c Stop in order to make changes (files will be in tmp/)
-precustom, -pc Stop in order to make changes before patches (files will be in tmp/)
-forcesign, -fs [1|2] Enforce signing with google keys, 1=Avbv1, 2=Avbv2
-nopatch, -np Do not patch anything
-not_unpack_ramdisk, -nu Do not extract ramdisk (use with -np)
```## Installation:
### Windows:
- You need to run makeramdisk.cmd twice. The first time being run, it will setup
the environment.### Linux:
```
sudo apt install python3 python3-pip
sudo pip3 install -r requirements.txt
```## Usage:
### Linux:
```
./makeramdisk.sh -filename boot.img
```### Windows:
```
./makeramdisk.cmd -filename boot.img
```
```
For AVBv1 : Output is boot.signed
For AVBv2 : vbmeta.img needs to be in the same directory. Output is boot.patched
```## ToDo:
Nothing, but maybe Android 11 needs more help :)