bkerler / android_universal

Universal android boot to root

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android Universal Boot Rooting Toolkit

(c) B. Kerler, MIT License

Converts 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 :)

About

Universal android boot to root

License:MIT License


Languages

Language:Python 90.8%Language:Tcl 4.4%Language:C 4.0%Language:HTML 0.3%Language:C++ 0.2%Language:Makefile 0.1%Language:PLSQL 0.0%Language:Roff 0.0%Language:Shell 0.0%Language:C# 0.0%Language:Mako 0.0%Language:CSS 0.0%Language:JavaScript 0.0%Language:QMake 0.0%Language:F# 0.0%Language:CMake 0.0%Language:Forth 0.0%Language:Batchfile 0.0%Language:DTrace 0.0%Language:VBScript 0.0%