• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Without PC] Unpack, Edit, Repack boot.img

:)

6uhuqu2u.jpg
 
Upvote 0
I'm getting this error code under gunzip .. can anyone help me
Called. Gunzip invalid error



mkbootimg --base 0 --pagesize 2048 --kernel_offset 0x00008000 --ramdisk_offset 0x0f813290 --second_offset 0x00f00000 --tags_offset 0x04800000 --cmdline 'console=ttyHSL0,115200,n8 androidboot.hardware=g2 user_debug=31 msm_rtb.filter=0x0' --kernel kernel --ramdisk ramdisk.cpio.gz -o boot.img
root@android:/data/local/tmp # mkdir ramdisk
mkdir failed for ramdisk, File exists
255|root@android:/data/local/tmp # cd ramdisk
../ramdisk.cpio.gz | cpio -i <
gunzip: invalid magic
root@android:/data/local/tmp/ramdisk #
 
Upvote 0
I'm getting this error code under gunzip .. can anyone help me
Called. Gunzip invalid error



mkbootimg --base 0 --pagesize 2048 --kernel_offset 0x00008000 --ramdisk_offset 0x0f813290 --second_offset 0x00f00000 --tags_offset 0x04800000 --cmdline 'console=ttyHSL0,115200,n8 androidboot.hardware=g2 user_debug=31 msm_rtb.filter=0x0' --kernel kernel --ramdisk ramdisk.cpio.gz -o boot.img
root@android:/data/local/tmp # mkdir ramdisk
mkdir failed for ramdisk, File exists
255|root@android:/data/local/tmp # cd ramdisk
../ramdisk.cpio.gz | cpio -i <
gunzip: invalid magic
root@android:/data/local/tmp/ramdisk #
Your ramdisk isn't a gzip compression.

Use this tool instead. Place the bash binary to /system/xbin and place the rest in /data/local/.

See the README.md on how it is used.

It currently supports lzma, lz4, gzip, and xz.

https://github.com/ModdingMyMind/mkbootimg_tools/tree/master/ARM
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones