This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rebuild / modify recovery partition

I'm trying, without any luck, to modify the recovery image within the v131104 android image. I've tried various tools, but attempting to boot the modified image ends up with no signal on my display.

What I've done that gets me closest to success is:

Extract the recovery partition using dd via a root adb shell

Extract this image on a linux box (RaspPi) using abootimg -x <image file>. This gives me the config, kernel and initial ramdisk

If I then pack the ramdisk back into the boot image with abootimg -u, the new image is identical to the old one, and boots ok.

However, if I gunzip the ramdisk, then re-gzip it (without any changes), the new zip doesn't match the old zip exactly.

Writing this to the boot image - either with -u or --create leaves the recovery partition unbootable until I overwrite it with the original image.

I may have another problem ahead, in that un-cpio-ing the ramdisk, then re-cpio-ing it doesn't make an identical archive to the original, but that's a fight for another day.

So, tl;dr - how can I ungzip and gzip a ramdisk image such that the new file is identical to the old one??  Huh


Forum Jump:

Users browsing this thread: 1 Guest(s)