Skip to content
Tools to edit Android boot.img. NDK buildable, to be usable in an update.zip
Branch: master
Clone or download
DavisNT and phhusson Improve hidesu (part 2 version 2)
* Unmount anything mounted under /system/.
* Rise priority to give advantage in race conditions.
* Use SIGSTOP and SIGCONT on app processes to give advantage in race
conditions + wait until namespace is separated from Zygote. Ideas taken
from Magiskhide (by John Wu (@topjohnwu)).
* Remove shellscript.
* Ensure /sbin is mounted under Zygote namespace(s).
* Support pid_max up to 2^32-1.
Latest commit 96fe0c2 Jun 23, 2017

README.md

super-bootimg

Tools to edit Android boot.img. NDK buildable, to be usable in an update.zip

Integrate superuser.zip into another zip

In your update.zip, create a folder called su, and put superuser.zip in it, then add the following lines in your updater-script, AFTER flashing boot.img:

package_extract_dir("su", "/tmp/su"); run_program("/sbin/busybox", "unzip", "/tmp/su/superuser.zip", "META-INF/com/google/android/update-binary", "-d", "/tmp/su"); run_program("/sbin/busybox", "sh", "/tmp/su/META-INF/com/google/android/update-binary", "3", "42", "/tmp/su/superuser.zip");

You can’t perform that action at this time.