I am trying to see the content in a boot.img file from an Android image.I googled and found this article to extract system.img, but it doesn't work for boot.img. When trying to do this for boot.img, it is showing the following:Invalid sparse file format at header magiFailed to read sparse fileIs simg2img used only for extracting system.img?If so, Is there any other method to extract boot.img?If not, what is the problem for not extracting boot.img?
How to extract boot.img?
filesystems;boot;android
boot.img is a small(ish) file that contain two main parts.          * kernel(important for android)          * ramdisk( a core set of instruction & binaries)Unpack boot.img:It contains the following steps:Download the tool using wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/android-serialport-api/android_bootimg_tools.tar.gzExtract the file using tar xvzf android_bootimg_tools.tar.gz.It contains two binaries:       * unpackbootimg       * mkbootimg3.Then execute ./unpackbootimg -i <filename.img> -o <output_path>It will contain,           * boot.img-zImage     ----> kernel           * boot.img-ramdisk.gz ----> ramdiskWe can extract ramdisk also, using the following commandgunzip -c boot.img-ramdisk.gz | cpio -iAfter changing the files, we can again pack those files as boot.img using mkbootimgHave fun!