Extract System TWRP Nandroid Backup - Android Q&A, Help & Troubleshooting

Hello. I created a backup of my system files in TWRP but when I want to extract them on PC, 7Zip give me this error: "Cannot open output file" and only extract a few files. I tried renaming the files but doesn't works. I have two files, system.ext4.win000 and system.ext4.win001. EXT4 unpacker does not working. Any way to extract them?

Related

Converting img files to clockworkmod zips

Hi,
The company Ainol release their latest updates as img files which we than have to flash using a program called livesuit. Does anyone know the process (or have any tips) on converting these img files to clockworkmod zip files?
I can extract the system and kernel files using something similar to this tutorial: http://www.techknow.t0xic.nl/forum/index.php?topic=1679.0
That tutorial explains how to modify the img file and then repack as img. I tried moving the system directory and the kernel & ramdisk over into a clockworkmod zip that i know works and overwrote the files in that with the one i had extracted.
when i try to install it, i get the e: cant open cwmzip.zip
(bad)
any ideas? Maybe i need to get the updater binary from the extracted files somehow?
Trugglepunts said:
Hi,
The company Ainol release their latest updates as img files which we than have to flash using a program called livesuit. Does anyone know the process (or have any tips) on converting these img files to clockworkmod zip files?
I can extract the system and kernel files using something similar to this tutorial: http://www.techknow.t0xic.nl/forum/index.php?topic=1679.0
That tutorial explains how to modify the img file and then repack as img. I tried moving the system directory and the kernel & ramdisk over into a clockworkmod zip that i know works and overwrote the files in that with the one i had extracted.
when i try to install it, i get the e: cant open cwmzip.zip
(bad)
any ideas? Maybe i need to get the updater binary from the extracted files somehow?
Click to expand...
Click to collapse
It really all depends, how many images? What are the images called? What are in each of the images if there is more then one?
thanks for replying, i think i have it right. I ran a log and saw that there was an invalid filename in my zip and sure enough, i looked in the app folder and saw a file with a lot of chinese characters. Deleting this file has sorted this problem
Thanks for replying anyways!

Help Need Meta-inf

So, my phone recently got soft bricked....
I had the tar file of the XXELK4 leaked firmware and i extracted it, unpacked system.img.
Mounted it as ext4 and extracted the contents.
I want to make a flashable zip file from the system.img contents.
I made a folder called system. In which all app, bin, etc and other folders are.
Then i copied over the boot.img from the tar file...
Now, i need the meta-inf. I tried using some meta-inf from other roms, and removing the aroma functions from them.
Then trying to flash..
I get only a bootloop.
So, could someone provide a clean Meta-inf consisting of only the updater-script and update-binary??

ADB restore doesn't restore after editing

I used ADB to backup, ABE to unpack and edited one of the xml file in the extracted tar.
After that, I used 7-zip to pack the data as a tar and used ABE to pack it as .ab again.
However, it restored nothing in the new .ab file. I was able to restore the old .ab file though.
Can anyone tell me how to restore the new .ab file?

Unpacking, Modifying, and Repacking Rikomagic ROM

Hello,
I am having some serious trouble modifying a ROM. I download the entire ROM in the form of an .img, and thanks to a reRepacker am able to unpack the contents of the rom, each part into individual .img files. I then use file ext4 explorer to open system.img, then save as an ext4. I then use ext2 explorer to open the now ext4 system.img, and I save the contents in a file folder within the unpacked folder. I make all of the edits I need, and then use WinRar to "add to archive' the file folder as an .img. Note that it compresses the size of the file bu about 40%. I then throw the dump folder into the repacker and out spits the new "modified" rom ready to be flashed to the device. I then use the batch tool to "flash" the compute stick. Flash being a relative term because it does not get past the boot image. EVEN IF I EDIT NOTHING and just convert to ext4 to ext2 and then to .img it still won't boot. Maybe this is because I am going from an ext2 to an image? When the file is supposed to be ext4? I'm not quite sure, hence why I ask here. Anyone have any ideas?

How to extract system.img.ext4?

I accidentally deleted DefaultContrainerService.apk and now I can't install apps. Can someone tell how can I extract system.img.ext4 to get it back?
I think Android Kitchen can do that.
Sent from my GT-I9060I using Tapatalk
7-Zip
7-Zip cannot read .img.ext4 files. I used program called sgs2toext4 and now the file is .ext4.img and 7-Zip can read it but it can't extract any .so files. I need to get libdefcontrainer_jni.so from /system/priv-app/DefaultContrainerService/lib/arm.
PetteriM said:
I accidentally deleted DefaultContrainerService.apk and now I can't install apps. Can someone tell how can I extract system.img.ext4 to get it back?
Click to expand...
Click to collapse
Use for that the EXT2 unpacker tool,
https://androidfrog.com/5gt67f
Select Package and then the directory where you want to extract it.
Doesn't work. It can't save that .so file.
same problem here, i try to extract cache.img from S8 firmware (G950FXXU1AQJ1/G950FOXM1AQJ1/G950FXXU1AQJ1/G950FXXU1AQJ1 , 20171018104053) . using ImgExtractor 1.3.7 it extracts , but the extracted zip cannot be opened by any program, with ext4_unpacker (after i fix the img header 4 bytes using sgs4ext4fs) it gives 'list index out of bounds' when i try to extract the zip, using CacheRipperUX it extracts the zip from img but when i try to open the zip using 7-zip it only sees a few files, when i try to open with Winrar it sees full list but cannot extract any of them because it give archive corrupted.
i found a solution: convert the original cache.img (samsung sparse ext4) to raw ext4 using simg2img , and the resulted .img file open with 7-zip and extract the content. My zip content was extracted correctly.
Is there any app for android which can extract .img files like system.img?

Categories

Resources