Watch This Now!

Top Forum Discussions

Extract files from stock firmware images

17 posts
Thanks Meter: 8
By pmzqla, Junior Member on 12th January 2014, 11:20 PM
Post Reply Subscribe to Thread Email Thread
25th May 2015, 07:20 PM |#11  
Junior Member
Thanks Meter: 2
Originally Posted by Darkshado

Just concatenate the three chunks together like so:

cat system.img_sparsechunk1 system.img_sparsechunk2 system.img_sparsechunk3 > system.img
Then apply the steps from the OP and voilą!

Edit: Scratch that: the image is accessible, some files are visible but others are missing. To be continued...

I just replaced the first line in the OP's instructions with this to join the system.img_sparsechunk files:
simg2img system.img_sparsechunk.* system.img.raw.tmp
And then the rest worked fine. Here were the exact steps I took (I shortened it a tiny bit, but it's the same concept):

simg2img system.img_sparsechunk.* system.img.raw.tmp
offset=`LANG=C grep -aobP -m1 '\x53\xEF' system.img.raw.tmp | head -1 | awk '{print $1 - 1080}'`
dd if=system.img.raw.tmp of=system.img.raw ibs=$offset skip=1
sudo mkdir /mnt/system
sudo mount system.img.raw /mnt/system
The Following 2 Users Say Thank You to SenorChang For This Useful Post: [ View ]
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes