ggrandou / abootimg

Tool to read/write/update android boot images
GNU General Public License v2.0
121 stars 43 forks source link

Trouble w/ system-as-root setups where boot.img has no initrd #2

Open johnstultz-work opened 6 years ago

johnstultz-work commented 6 years ago

With newer AOSP environments, the system partition is used as rootfs, and there is no initrd in the boot.img.

Unfortunately abootimg -x seems to fail in this case: /home/jstultz/noinitrd-boot.img: ramdisk size is null /home/jstultz/noinitrd-boot.img: not a valid Android Boot Image.

Probably need to adjust the code to not make a null ramdisk size a fatal error.

johnstultz-work commented 6 years ago

Created a pullrequest here to try to resolve this: https://github.com/ggrandou/abootimg/pull/3