Does anyone know what file system or method to unpack (and repack) the stock rom .img files? It is not yaffs (no surprises there) or ext4 img.
Related
hi,
for school I'm making a Windows program to unpack system.img, edit it, and repack it.
Is there anyone who know how to do this on windows? without an program? (especially repacking system.img)
I am now using ext4_unpacker and then ext2_explorer link: http://forum.xda-developers.com/showthread.php?t=2285831
this is the result: http://i.imgur.com/NJpDoCM.png
how to repack this? I prefer as system.img so I can flash it with adb, but if that is not possible I can also use my custom recovery (twrp or cwm) to flash it.
and I want to do this without a program, I prefer cmd commands.
(if it's possible to add all thos files to one zip file (update.zip) and then flash it in TWRP, that would be a solution, but is it possible?)
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?
HI! Is there any way to flash a custom rom using PC?
SP FLash tool needs a scatter file
but my ROM doesnt have any.
I tried to make my own scatter file but I cant find the system.img
The system.img is a folder
how can i convert the system folder to system.img?
PLS HELP
Ive done this but it was year's ago while making an odin flashable firmware for sgh-t599. Sorry to say I can't remember the procedure but I used guides so the info is out there.
You'll need Linux, and you must know the size of system partition and if it need to be raw img format or sparse img format.
With the right commands these img's can also be extracted straight from a working device.
Hello, after a lot of struggle i successfully repack system.img
but my file is in system.img.ext4 before extracted and its repack in system.img not in EXT4 ,so its not flash-able ,its says in odin (invaild dev type etc ,) while i trying to flash
so kindly share your experience is that the problem is EXT4? i mean its need must in EXT4 img ? if yes so how can i repack it again in ext4 ? or how can i change img. to img.ext4?
I downloaded the stock rom for a Motorola device (E4 Plus) and know how to flash it with SP Flash Tool it but I'm curious as to how I could mount/extract the .img files to see what's inside and try modifications.
Trying to mount the .img files as ext4 on Linux fails and running simg2img also fails. Any ideas?
Another thing I'm wondering is if there's a way to convert the scatter files to a flashable rom (zip file)? and why are the scatter files so large compared to "normal" flashable roms?