Skip to content

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

License

Notifications You must be signed in to change notification settings

seSuperuser/super-bootimg

 
 

Repository files navigation

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");

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 95.5%
  • Objective-C 2.7%
  • Shell 0.8%
  • Makefile 0.3%
  • C++ 0.3%
  • Roff 0.3%
  • Lex 0.1%