Skip to content

Instantly share code, notes, and snippets.

@merothh
Created December 6, 2018 15:09
Show Gist options
  • Save merothh/8401efb8364dd98357bbcc44d0980f70 to your computer and use it in GitHub Desktop.
Save merothh/8401efb8364dd98357bbcc44d0980f70 to your computer and use it in GitHub Desktop.
repack android boot image
./mkbootimg --kernel ./boot.img-zImage --ramdisk ./boot.img-ramdisk.gz --cmdline "$(cat ./boot.img-cmdline)" --base "$(cat ./boot.img-base)" --pagesize "$(cat ./boot.img-pagesize)" --ramdisk_offset "$(cat ./boot.img-ramdiskoff)" --second_offset "$(cat ./boot.img-secondoff)" --tags_offset "$(cat ./boot.img-tagsoff)" --kernel_offset "$(cat ./boot.img-kerneloff)" --os_version "$(cat ./boot.img-osversion)" --os_patch_level "$(cat ./boot.img-oslevel)" --header_version "$(cat ./boot.img-headerversion)" --hash "$(cat ./boot.img-hash)" --output ./boot-new.img
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment