[Q]Unpacking and repacking system.img - Android Q&A, Help & Troubleshooting

Hey guys,
Can I unpack and repack system.img using Android Kitchen? If yes, please tell me how to do it.

Augustoandro said:
Hey guys,
Can I unpack and repack system.img using Android Kitchen? If yes, please tell me how to do it.
Click to expand...
Click to collapse
Use this tool to do so :
https://forum.xda-developers.com/an...-conver-lollipop-dat-files-to-t2978952/page82

RaiZProduction said:
Use this tool to do so :
https://forum.xda-developers.com/an...-conver-lollipop-dat-files-to-t2978952/page82
Click to expand...
Click to collapse
I can't use it since I don't have a system.dat file. I only have system.img file.

Augustoandro said:
I can't use it since I don't have a system.dat file. I only have system.img file.
Click to expand...
Click to collapse
Oh , I thought you were running Ubuntu , because with Ubuntu you can mount the system.img with a command and browse it with the file explorer as if it was an USB removable disk.

Related

sin_file_set on setool

any ppl know how to unpack the s(in_file_set) file download on setool?
nini8888 said:
any ppl know how to unpack the s(in_file_set) file download on setool?
Click to expand...
Click to collapse
with sin2img, and to extract the files from your img file use unyaffs
sin2img and unyaffs are in this forum, use search.
nini8888 said:
any ppl know how to unpack the s(in_file_set) file download on setool?
Click to expand...
Click to collapse
i use 7zip... try this.. i download file from omnius server.. and unpack using 7zip...
trapacska said:
with sin2img, and to extract the files from your img file use unyaffs
sin2img and unyaffs are in this forum, use search.
Click to expand...
Click to collapse
thx but i got some problem for sin2img and unyaffs can teach me how to use it , use the commed to extra it rite? but in dunno the commed for it
can give me the link for sin2image and unyaffs thx many

DSIXDA kitchen : will it work on neov ??

Hello i wanted to know if i can cook ROM using DSIXDA's kitchen for neov ?? If yes what are the files which i will need besides the kitchen ??
Yes. You need system.img.
Madfysh said:
Yes. You need system.img.
Click to expand...
Click to collapse
Thanks System.img of stock ROM right ??
Abhiheart said:
System.img of stock ROM right ??
Click to expand...
Click to collapse
If you are starting from stock, then yes.
Madfysh said:
If you are starting from stock, then yes.
Click to expand...
Click to collapse
Can you tell me a software to extract system.img from the .ftf ??
Abhiheart said:
Can you tell me a software to extract system.img from the .ftf ??
Click to expand...
Click to collapse
use flashtool->advanced->sin editor
Madfysh said:
use flashtool->advanced->sin editor
Click to expand...
Click to collapse
Thanks
Does kitchen support .431 stock or .562 ..i previously read somewhere that it only supports .562 ...
Abhiheart said:
Thanks
Does kitchen support .431 stock or .562 ..i previously read somewhere that it only supports .562 ...
Click to expand...
Click to collapse
It works with both.
btw: http://forum.xda-developers.com/showthread.php?t=1632515
Madfysh said:
It works with both.
btw: http://forum.xda-developers.com/showthread.php?t=1632515
Click to expand...
Click to collapse
Thanks again and i found that thread later after creating my thread ..thanks for it
Abhiheart said:
Thanks
Does kitchen support .431 stock or .562 ..i previously read somewhere that it only supports .562 ...
Click to expand...
Click to collapse
I cannot find sin editor in flashtool using ver 0.6.9
.431 firmware
@ Madfysh
if i want to cook a custom ROM using latest .431 from the ftf's you uploaded, which one should i download (i want the world/global firmware)
thanks
Abhiheart said:
I cannot find sin editor in flashtool using ver 0.6.9
Click to expand...
Click to collapse
Abhi,
is this what you referring to?
Use NANDROID backup instead of FTF. Cooking ROM from FTF is very lengthy procedure.
bombayboy said:
Abhi,
is this what you referring to?
Click to expand...
Click to collapse
Yup ..it is : ) how can i get it ??
sainath23 said:
Use NANDROID backup instead of FTF. Cooking ROM from FTF is very lengthy procedure.
Click to expand...
Click to collapse
What files of nandroid backup i need ?? I hv a CWM backup of my stock
Abhiheart said:
What files of nandroid backup i need ?? I hv a CWM backup of my stock
Click to expand...
Click to collapse
Copy "System.yaffs2.img" file from your memory card CWM backup folder to your PC local drive and extract it using "unyaffs.exe" for that give command "unyaffs system.yaffs2.img". It will extract your system folders and files. After extracting complete delete "lost-found" and "sd" folder if present.
Abhiheart said:
Yup ..it is : ) how can i get it ??
Click to expand...
Click to collapse
I installed the latest flashtool
Sent from my MT11i using Tapatalk 2
sainath23 said:
Copy "System.yaffs2.img" file from your memory card CWM backup folder to your PC local drive and extract it using "unyaffs.exe" for that give command "unyaffs system.yaffs2.img". It will extract your system folders and files. After extracting complete delete "lost-found" and "sd" folder if present.
Click to expand...
Click to collapse
Thanks i did that already ..but kitchen needs system.img file ?? how to get that ?? I dont want to extract ..but find system.img
Use the system.img from a nandroid back up is easiest way to start. Just copy to working directory from SD card
Sent from my MT11i using xda app-developers app
Abhiheart said:
Thanks i did that already ..but kitchen needs system.img file ?? how to get that ?? I dont want to extract ..but find system.img
Click to expand...
Click to collapse
Arey yaar why you need system.img! Create new folder in kitchen and give it name as WORKING_XXX and put these system folders and files which you have extracted from system.yaffs2.img and also put the META-INF folder and Kernel (boot.img) in your WORKING_XXX folder. After that start DSIXDA kitchen and change the updater-script into update-script. Now you can able to modify your ROM as you want. After your modification complete change the update-script to updater-script. Go to META-INF folder and edit updater-script and remove following line :
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
Click to expand...
Click to collapse
Now select 99 build your ROM. Thats it!

[Q] How to Unrepack & Repack System.img using Windows

How can i unpack & repack system.img? I have no linux and I only have Windows Xp s3. I just want to create a custom rom for my device. I use kitchen but i have an error status 6. so i want to try repacking my system.img so that i can install my rom. thanks in advance!
badtreep said:
How can i unpack & repack system.img? I have no linux and I only have Windows Xp s3. I just want to create a custom rom for my device. I use kitchen but i have an error status 6. so i want to try repacking my system.img so that i can install my rom. thanks in advance!
Click to expand...
Click to collapse
Google is our friend , try to google compile and decompile apk tool + xda developers
Hit the thx button if i helped ya in anyways
i don't think the apktool is the solution with my problem. i want to decompile and recompile a system.img not an apk file.
badtreep said:
i don't think the apktool is the solution with my problem. i want to decompile and recompile a system.img not an apk file.
Click to expand...
Click to collapse
Oops my bad
Hit the thx button if i helped ya in anyways
it might help .....
http://forum.xda-developers.com/showthread.php?t=1477845
thebdcoder said:
it might help .....
http://forum.xda-developers.com/showthread.php?t=1477845
Click to expand...
Click to collapse
This needs Linux, as written in the Guide. But yes, installing Linux through VirtualBox in Windows will do the trick, on the other hand if you ask.
@ OP, this is a tool for windows. Check this out, and see whether it works.
[WINDOWS][TOOL]Android ICS JB EXT4 ImageFile Unpacker!!!

[Q] Roms structure

Hello!
Can someone explain to me what differences are between these roms? (see attachements):
I have MT6755 device and it's stock ROM has inside a boot.img, system.new.dat, system.patch, META-INF, etc..
And then I found a device which ROM has inside just boot.img, META-INF and system folder.
What's the difference?
If I want to port a custom rom, does my device need to have in a custom rom these files(system.new.dat, system.patch...) too, or can I use a "structure" of the ROM zip with just boot.img and system?
As far as i know You just need only System,boot.img and meta-inf also data if you wish to add an app as user
sohamsen said:
As far as i know You just need only System,boot.img and meta-inf also data if you wish to add an app as user
Click to expand...
Click to collapse
So if I want to port a ROM from device that has (system.new.dat, etc..), I need only to extract system.new.dat to get system folder and just use it?
Adreno306™ said:
So if I want to port a ROM from device that has (system.new.dat, etc..), I need only to extract system.new.dat to get system folder and just use it?
Click to expand...
Click to collapse
Ya
sohamsen said:
Ya
Click to expand...
Click to collapse
Ok, I will try it.
Thank you for your answer
Adreno306™ said:
Ok, I will try it.
Thank you for your answer
Click to expand...
Click to collapse
best of luck

I have an issue making stock based rom

I extract system from spflash (to make .Img into a folder), and try to add to my meta-inf and boot.img and it doesn't boot... the script is correct, I'm sure of it, it just formats system, and drops the system folder to /system, but it still doesn't boot.. what am I doing wrong? I've made stock based rooms for other devices but the stock rom was already in system folder type(I didn't have to extract system.img) and I guess it's something to do to the way I extract system.img.. how can I fix it?
Hi.
Did you convert the sparse image? If you extract the img without converting it, then it will not boot. Use simg2img to convert system.img.
Greetings
vsrookie
Ps. Please attach script.
Sent from my P9000 using XDA-Developers Legacy app
vsrookie said:
Hi.
Did you convert the sparse image? If you extract the img without converting it, then it will not boot. Use simg2img to convert system.img.
Greetings
vsrookie
Ps. Please attach script.
Click to expand...
Click to collapse
i havent converted it, i just extracted it using a winrar, ill leave the script and try to convert but im 100% the script is correct, and for some reason i cant send the script so ill leave a link to it:
https://pastebin.com/4aLmga5X
Ruben Craveiro said:
i havent converted it, i just extracted it using a winrar, ill leave the script and try to convert but im 100% the script is correct, and for some reason i cant send the script so ill leave a link to it:
https://pastebin.com/4aLmga5X
Click to expand...
Click to collapse
Hi.
That's the fault. You have to convert it. Pls check other threads on xda.
greetings
vsrookie
Sent from my P9000 using XDA-Developers Legacy app
vsrookie said:
Hi.
That's the fault. You have to convert it. Pls check other threads on xda.
greetings
vsrookie
Click to expand...
Click to collapse
I converted it to ext4 and now I'm using ext2explore to extract, will that work?
vsrookie said:
Hi.
That's the fault. You have to convert it. Pls check other threads on xda.
greetings
vsrookie
Click to expand...
Click to collapse
I converted to ext4, then from ext4 to a folder.. Packed everything and flashed, still didn't boot (I used the unedited system.img), do I have to change the boot.img to make unsecured or it doesn't matter?
vsrookie said:
Hi.
That's the fault. You have to convert it. Pls check other threads on xda.
greetings
vsrookie
Click to expand...
Click to collapse
Got it to work, thanks! I forgot to make boot.img unsecure

Categories

Resources