- Sep 13, 2011
- 776
- 102
- 0
I'd like to take apart a recovery ROM and mess with the insides, but I can't quite figure out how to unpack it, assuming there is a way to unpack it. I searched for a while, and came up with the following method, which didn't work for me. This is what I did so far. Let's say that my recovery is named 'recovery.img'. What I tried was this:
[Obviously executed in the same directory as recovery.img]
The error I get is:
And cpio gives me:
I'd like to know if anyone has a method for extracting the contents of a recovery ROM, but I'm starting to think that it's going to have to be built from source. Not that that will be a problem, it's just that I've never done it before. I'm more than willing to learn how.
Code:
gunzip -c recovery.img | cpio -i
[Obviously executed in the same directory as recovery.img]
The error I get is:
Code:
recovery.img: not in gzip format
And cpio gives me:
Code:
premature end of archive
I'd like to know if anyone has a method for extracting the contents of a recovery ROM, but I'm starting to think that it's going to have to be built from source. Not that that will be a problem, it's just that I've never done it before. I'm more than willing to learn how.