How to extract system.img.ext4? - Android Q&A, Help & Troubleshooting

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?

Related

Modifying stock rom

I am very interested in ROM developing, the problem is i am a beginner. I tried to look for some guides, but they are quite hard to find to be honest. If i would want to modify stock rom what should i do? Although i could not find it i thought this could be an option:
- flash stockrom through odin
- modify stockrom
- make backup and copy system.img
- in a flashable zip you have the system directory, but how do you obtain this directory from system.img, what program do i need? Simple mounting program poweriso didn't recognize the image. I thought it might be possible to directly extract the required files from the odin package, but not find a guide for this?
Use MagicISO to extract system.img
Sent from my GT-S5830 using Tapatalk
Use 7zip to extract system.img from odin's md5 file.
Sent from my GT-S5830 using Tapatalk
how about dsixda kitchen??
you know you are rooted when you use XDA more than FB
Dragonoid said:
how about dsixda kitchen??
you know you are rooted when you use XDA more than FB
Click to expand...
Click to collapse
dsiXDA kitchen should be used only to zip-align, deodex and repack everything to flashable zip. It isnt really good at extracting .img files (personal opinion).
Read ketut's blackhawk rom's 2nd post for more info about dsiXDA kitchen
Sent from my GT-S5830 using Tapatalk
Probably a dump question, but when i extract the md5 file i obtained only a boot.img file and a recovery.img file, system.rfs file and some other files. Where is the system.img file located? I can't load the .img files with magic iso.
acceleratus said:
Probably a dump question, but when i extract the md5 file i obtained only a boot.img file and a recovery.img file, system.rfs file and some other files. Where is the system.img file located? I can't load the .img files with magic iso.
Click to expand...
Click to collapse
Open magicISO. Click on open -> navigate to system.rfs. It will load up all folders inside system.rfs. Select all -> right click -> extract all
Sent from my GT-S5830 using Tapatalk
Use my guide to get a better understanding of roms.
Sent from my GT-S5830 using XDA
I'm interested in extracting a stock rom from my s5830i to computer
Can someone help me with that. I'm not a newbie

[Q] How to repack system.img file to flash using odin

i have extracted the system.img file in my windows computer and and tweaked it now i want to repack it and flash it using odin can anyone tell me how to repack the system.img files i have extracted

how to repack system.img file i extracted to flash it with odin

i have extracted the system.img file in my windows computer and and tweaked it now i want to repack it and flash it using odin can anyone tell me how to repack the system.img files i have extracted

kdz and dz files to system.img

hello, i used WindowsLGFirmwareExtractor to extract a kdz file to a dz file. then i merged into a system.img file. then opened that file in ext2explore. there is an app folder with all the apps in it. what i would like to know is first, can i delete the apps i dont want, and second, re-create a kdz file and flash that. and how do i make a new file to flash? would i delete the whole folder, or just the apk inside the folder?

Repacking the extracted system.img file as a system.img file

I extracted my system.img file to the folder with Jancox tool. but I don't know how to close it back as system.img file. Can you please help?
OmerParlak25 said:
I extracted my system.img file to the folder with Jancox tool. but I don't know how to close it back as system.img file. Can you please help?
Click to expand...
Click to collapse
[TOOL][LINUX][ANDROID][WINDOWS] Jancox Tool Unpack Repack ROMs
Jancox Tool Unpack Repack ROMs Jancox tool is a tool for unpacking and repacking ROMs, in other words this is a tool for modification Android ROM, and it supports Linux, Android and Windows. Requestment Requestment Linux - Installed Python 3...
forum.xda-developers.com

Categories

Resources