How to extract system.img - Desire Q&A, Help & Troubleshooting

Hi all,
I am trying to develop a rom but I came along this difficulty: I can't find the sysyem.img. I tried to download a .zip file, only the folder named "system" came in it. And I tried it with a .exe and looked in "%TEMP%" no luck either...
Can anyone explain how I should extract the system.img?
Thanks in advance.

I guess your referring to a nandroid backup really. When you download a rom, it comes in a zip file which you can flash and has only a boot.img file (I think, can't remember off top of my head) so it can boot. It doesn't have anything else. You only see a system.img file when you do a nandroid backup. Everything that is in the system.img file is still the same as the system folder in a zip file.. more or less.

If you do have a system folder, it is possible to convert it using the HTC Kitchen
http://forum.xda-developers.com/showthread.php?t=633246
That should help heaps with ROM development

Can you please explain to me how I can convert the system folder, I don't have a clue.

Convert it how? How do you want to convert the system folder? And why? Might help us out more you know.

On "Theunlockr" (My guide for making a rom) It says
"If you have a .zip file, you can unpack the system.img and boot.img"
I only have the boot.img and a system folder!
And it also says: "If you have a .exe, run it until the first screen and then go to run and type %TEMP% and a rom.zip should be here"
in both cases it is not the case.
So, can anyone help me out please?

Related

extract rom.zip from Sprint ruu

I am having a helluva time getting the .exe to extract. Keeps saying damaged or unknown file format.
RUU_Supersonic_1.32.651.1_Radio_1.39.00.04.26_release_171253
Need it because the regular way to update and unroot is not working for me, and need to just flash from the recovery menu. Any help would be appreciated.
Tried 7zip and winrar
linflas said:
I am having a helluva time getting the .exe to extract. Keeps saying damaged or unknown file format.
RUU_Supersonic_1.32.651.1_Radio_1.39.00.04.26_release_171253
Need it because the regular way to update and unroot is not working for me, and need to just flash from the recovery menu. Any help would be appreciated.
Tried 7zip and winrar
Click to expand...
Click to collapse
try this.
goto your temp folder.
ex. win 7: C:\Users\CYBERxNUKE\AppData\Local\Temp
and make sure all your programs are closed and delete all your temp files.
Run the RUU program, and once its up and running on your screen, go back to your temp folder....
C:\Users\CYBERxNUKE\AppData\Local\Temp
look for a new folder created there.
without closing the RUU, copy the entire folder over to a safe place and exit the RUU.
you should have what you need.
Stock RUU Roms http://bit.ly/c1jNWR

help with flashable zips for a rom im maken

im trying to make my own rom trying to try new this out and i was going around taken lil apps tht other roms hads like hulu, mastermind mirror, ect and i dont think i zip it correctly cause when i check the inside of the zip folder the other file is still not zip and i am sure that is a problem right ??? ps im using cwm 3.0 is tht a problem ?
i use this meth...
ok, here it goes.
first, figure out where you want to push your file. i'd reccomend pushing manually in recovery to make sure the file itself works. then, using a tool like 7zip (pc) or betterzip (mac) create a file structure that matches the one on the phone. for example, if you wanted a boot animation to be put in system/customize/resource, make a folder system, customize in that, resource in that, and the bootanimation.zip inside that. now you have the main part. next, make a folder in the root of the zip called META-INF (caps counts) inside that, com, inside that, google, and inside that, android. thats /META-INF/com/google/android/. inside android, you need to place in an update-script. i'd reccomend taking one from another zip and just editing it becasue i still have not figured out a way to make that type of file (unix exec) from scratch. open it up in a .txt editor like notepad++ (pc) or coda (mac) and write your script. here is the baisic script for copying the directory system on the zip to system on the phone (like flashing a boot animation).
copy_dir PACKAGE:system SYSTEM:
CAPS COUNT AND MAKE SURE YOU HAVE AN ENTER AT THE END. IF YOU DO NOT HAVE AN ENTER AT THE END (TO MAKE IT TWO LINES INSTEAD OF ONE, LIKE ISSUEING A COMMAND) THEN IT WILL NOT WORK AT ALL ( E:SYNTAX ERROR IN UPDATE-SCRIPT IS THE ERROR YOU WILL GET)
so put this file into the folder android, and zip it. make sure it is in store only, compatibility mode, if you have such options. then, use an auto signer (or just say zip is not signed and make sure to put sig verification off) to sign the zip. flash, and watch your work magically appear.
the update-script i showed is written in amend. i have no idea how to write in edify bcuz it is much more complicated with the binary and stuff. so dont flash with cwm 3.0+.
i only have 1 thing to say first switch to amon ra amon ra is 1000 times better than clockwordmod
how do i switch?? lol also what if i unroot my phone would tht be a problem?
Jcki4 said:
how do i switch?? lol also what if i unroot my phone would tht be a problem?
Click to expand...
Click to collapse
go here and download the PC36IMG.zip and follow the directions
http://forum.xda-developers.com/showthread.php?t=705026.
as for setting up a rom unzip one to see how it's set up, i have changed a few things in some and zipped it back up and signed it but never built one, sorry couldnt be more help

[Solved]Moving back to Stock LTE - Someone give me a hand please?

So google released this file called : mysid-icl53f-factory-65895fa8.tar
Inside of it is a file with no extension called mysid-icl53f-factory-65895fa8
Can someone (for the love of God) tell me what I need to do with this thing? I want to revert completely back to stock so I can get rid of the OTA nag that is popping up every 10 minutes on my phone. (Yes I am rooted and running Revolution HD w/the latest custom kernel he has posted in that listing, it is still popping up).
Could someone tell me how I can revert back to Stock on Verizon Wireless LTE Please?
Thank you!!
P.S. I did do a search, I did see the how to for the GSM version. he's talking about all kinds of files for radios and whatnot that are not in the package I posted up top of this post. The files he has are not compatible with LTE version.
Do I just go in and fastboot the file that doesn't have an extension in the tar file? Do I fastboot -w the tar file? Do I shoot myself in my foot twice, hop around in a circle yelling ow ow, then do it?
***EDIT*** SOLVED
Ok so what I did was go to rootzwiki Some of the guys over there shed some light.
The deal is this, if you download the file from google's website you get a tar file. If you are running windows 7 64 bit and using Winrar (I'm not sure which is the culprit) when you open the .tar file it contains a file with no extension.
What you do is extract that file, rename it whatever and ADD the extension .ZIP to it.
Then you can unzip that file and inside you have all the .img files you need to fastboot.
So to revert back to stock LTE you do this:
fastboot flash boot boot.img
Fastboot flash system system.img
fastboot flash userdata userdata.img
fastboot flash recovery recovery.img
this will bring you back to full stock with the latest version of the OS.
shameless bump
This is a good question. Have you tried posting in the Developer's thread where you downloaded the ROM?

creating a rom out of a original RUU

can anybody guide me through making a flashable zip from a rom.zip which i gained from a original RUU for my branded HTC one X? Problem here is that this ROM i want to create should not contain or do any hboot/firmwares updates as currently i am on a higher base then the current available RUUs for my phone. So because of this i cannot just install the original RUU to go back to the original branded ROM. Somebody told me that i have to take out the system.img to achive my goal, so thats what i also tried. i Extracted the system.img out of the rom.Zip and placed it in a new rom.zip folder without all the hboot.img and oder files.
This is how far i am for sow now:
-extracted the rom zip out of the ruu
-installed dsixdas ANdroid rom kichten
- did set up a working folder with the rom.zip from the original ruu
-tried to build a new rom out of the working folder in two ways ->
1. with the whole rom.zip containing everything original
2. rom.zip just containing the system.img
everytime i try to flash the built zip file, it gives me error in /sdcard/update.zip status 0 in recovery.
Is that right that i have to flash the stock kernel and recovery.img after sucessful flashing my own rom? What else should i do? Hope somebody could help me out!
what do i have to do now?
My main goal is to go back to my original branded rom so i can do the OTA updates which are available.
thank u in advance
anyone?
schidddy said:
anyone?
Click to expand...
Click to collapse
I tried the same things you did, My device is HTC Explorer (Pico) and got the same error message while flushing. You cant try putting META-INF folder from other custom rom and try to rebuild the rom. this trick worked for me once. I am no expert of creating rom I am a complete noob just sharing my experience. Do it with your own risk. Sorry for my bad English.

[HOW TO] Extract Rom.zip From RUU

Extracting ROM files from HTC RUU
Official HTC ROM updates are released as RUU (ROM Update Utility), which you run on your (Windows) PC to get the target device updated automatically.
Some of the big brains in the Android community release RUUs re-packaged into signed update files,
which in turn allow for whatever ROM customization you can imagine.
In this how to I will explain how to extract ROM files from a RUU image,
which you can then customize and use to flash your device without the fear of a new bootloader possibly making your device unrootable.
Requirements :
Windows PC,
Microsoft Process Monitor,
File Archiver capable of extracting ZIP files(eg, 7ZIP),
Official HTC RUU for your Android device.
The process of extracting ROM files from a RUU is really straightforward.
The idea behind it is that the self-contained update utility first needs to unpack the update payload into a temporary folder before pushing it onto the device.
This is when we grab the ROM file...
1. download the official RUU
2. start Process Monitor.
3. press CTRL+L
4. change "Architecture" to "Process Name"
5. leave the "is" field as it is
6. in the empty field copy and paste the name of your
RUU file (eg, RUU_Ace_Sense30_S_HTC_WWE_3.12.405.1_Radio_12.65.60.29_26.14.04.28_M_release_225512_signed.exe)
7. click "Add"
8. change "Process Name" to "Path"
9. change "is" to "Contains"
10. in the blank field type "rom.zip" (without quotes)
11. click add
Click "OK" to set the filter and then run the RUU file.
Once the utility starts switch back to Process Monitor and look for an entry in the "Path" column that ends with "\rom.zip".
Right click on that line and select "Jump to..."
this will open a Windows Explorer window in the folder which contains the zipped ROM files
Copy the "rom.zip" file to some other folder, outside of the temp RUU folder tree (eg, desktop)
Once copied, close Process Monitor and the RUU utility.
The copied "rom.zip" file contains the following files:
android-info.txt - list of CIDs this RUU will flash to,
boot.img - root file system image,
hboot (followed by a version string) - boot-loader update,
radio.img - radio driver update,
recovery.img - recovery partition image,
splash1_Hero_320x480.nb0 - boot loader splash image,
system_rel.img - system partition image,
userdata.img - data partition image.
You can now, among many other things, root the ROM
and then flash the updated boot.img and all the other image files on to your device using Recovery​
it doesnt work... the process monitor colum is all blank after running RUU... there are no processes listed
munnibhai said:
it doesnt work... the process monitor colum is all blank after running RUU... there are no processes listed
Click to expand...
Click to collapse
you mst be doing something wrong i double checked the method and it still works fine for me..
make sure your environment is set up correctly and run everything as administrator or disadle uac in windows..
thanks for the reply, let me check it again...
i will post back to u
rom.zip corrupted
I followed the directions and like another post in here procmon shows a blank screen. I went to task manager and opened processes and saw when it ran then clicked open file location and found it. I did this twice and both zips are corrupt. (used winzip)
error [D:\android apps\EVO root\EVO\rom.zip]: start of central directory not found; Zip file corrupt.
Possible cause: file transfer error
when I close the RUU all the files in that folder disappear so you have to leave the RUU running while you copy the zip file or it's gone.
At least that's what I saw.
update to last post
I found a zip repair tool and was able to repair and extract the 1.10.653.2 RUU rom capture. I will have to try to run it later. If anyone gets corrupted zip error, Zip Repair pro will repair it.
To get the rom zip without any errors just run the ruu.exe file, when the box with a picture of a phone pops up, click start on pc, type in "run" and click on run then in that box that pops up, type in %temp% and click ok. Another window pops up then just scroll down to the most recent folder and rom.zip will be in there, if not it will be in the next folder.
Hi,
when I try to open the rom.zip I get an error message, it just said it cannot open with 7zip and with windows it says its invalid.
I tried downloading the RUU multiple times but still the same error. I rune the RUU as administrator.
Tried copying it over to different locations and then open it.
RUU_ENRC2B_U_JB_45_O2_UK_1.14.206.13_Radio_3.1204.167.31_release_289474_signed
HTC ONE X+
Thank you
Update:
I used Zip Repair Pro.. however there is no boot.img inside the repaired zip -_-
For those which have problem with making Process Monitor detect RUU temp folder, make sure You add whole file name of RUU including .exe at the end.
Jmcclue's steps, work perfectly, Thank you post #7
htc RUU Rom
Inside 4ndroid said:
Extracting ROM files from HTC RUU
Official HTC ROM updates are released as RUU (ROM Update Utility), which you run on your (Windows) PC to get the target device updated automatically.
Some of the big brains in the Android community release RUUs re-packaged into signed update files,
which in turn allow for whatever ROM customization you can imagine.
In this how to I will explain how to extract ROM files from a RUU image,
which you can then customize and use to flash your device without the fear of a new bootloader possibly making your device unrootable.
Requirements :
Windows PC,
Microsoft Process Monitor,
File Archiver capable of extracting ZIP files(eg, 7ZIP),
Official HTC RUU for your Android device.
The process of extracting ROM files from a RUU is really straightforward.
The idea behind it is that the self-contained update utility first needs to unpack the update payload into a temporary folder before pushing it onto the device.
This is when we grab the ROM file...
1. download the official RUU
2. start Process Monitor.
3. press CTRL+L
4. change "Architecture" to "Process Name"
5. leave the "is" field as it is
6. in the empty field copy and paste the name of your
RUU file (eg, RUU_Ace_Sense30_S_HTC_WWE_3.12.405.1_Radio_12.65.60.29_26.14.04.28_M_release_225512_signed.exe)
7. click "Add"
8. change "Process Name" to "Path"
9. change "is" to "Contains"
10. in the blank field type "rom.zip" (without quotes)
11. click add
Click "OK" to set the filter and then run the RUU file.
Once the utility starts switch back to Process Monitor and look for an entry in the "Path" column that ends with "\rom.zip".
Right click on that line and select "Jump to..."
this will open a Windows Explorer window in the folder which contains the zipped ROM files
Copy the "rom.zip" file to some other folder, outside of the temp RUU folder tree (eg, desktop)
Once copied, close Process Monitor and the RUU utility.
The copied "rom.zip" file contains the following files:
android-info.txt - list of CIDs this RUU will flash to,
boot.img - root file system image,
hboot (followed by a version string) - boot-loader update,
radio.img - radio driver update,
recovery.img - recovery partition image,
splash1_Hero_320x480.nb0 - boot loader splash image,
system_rel.img - system partition image,
userdata.img - data partition image.
You can now, among many other things, root the ROM
and then flash the updated boot.img and all the other image files on to your device using Recovery​
Click to expand...
Click to collapse
this is good working 100% thank you :good:
i_4_u89 said:
this is good working 100% thank you :good:
Click to expand...
Click to collapse
no problem and please instead of saying thanks please remember to hit the thanks button on threads first post..
works great, to bad you cant open the zip file
jpwhre said:
works great, to bad you cant open the zip file
Click to expand...
Click to collapse
You can open the zip. Go back a page n try the way i said.
jmcclue said:
You can open the zip. Go back a page n try the way i said.
Click to expand...
Click to collapse
note path is desktop (last post showed from temp folder) and i still get same results. did some searching and aperantly htc now signs their zip files and they can't be opened anymore. having usb issues that causes fastboot force close errors and need to be able to flash boot.img thru flashify app to return it to stock. ran the htcguru reset rom that uses aroma installer to return to stock that lets me take ota's but i get qualcom location force close and other custom roms give me issues forcing me to reset phone to stock every few days with guru installer. flashing recovery in fastboot is a chore as well. I have s-off and can keep it, but doing fastboot oem lock wont relock the bootloader, even though it shows success in cmd line. i can cid and super cid with fastboot.
it leaves me at a point where i really need to pull everything out of the rom.zip file and it wont open.
pic 1, 7zip wont open archive on desktop
pic 2, how i get recovery to flash
pic 3, results from running RUU
i have to reboot device, set comand to reboot bootloader, set command to flash recovery all faster than phone will do all commands to get it to flash, and RUU doesnt work that fast. i know im on sprint with htc one m7, but google search "extract htc zip" "extract rom.zip" both lead to this thread as top result. no other searches will tell me how to open the archive, except one that resulted in "htc signed zips can no longer be opened"
you're more than welcome to give it a go
http://forum.xda-developers.com/showthread.php?t=2795856 Sprint_HTC_One_m7wls_5.05.651.2_RUU.exe
Did HTC change the way they create the exe? I don't find it, the biggest file is data1.cab file that I can't extract.
I'm trying to extract the stock rom for an ATT HTC One Mini (m4) because RUU keeps crashing on me and won't install. I am also rooted with S-off.
If anybody can help me get the stock m4 rom so I can go back to stock, I would really appreciate it.
SyPete said:
Did HTC change the way they create the exe? I don't find it, the biggest file is data1.cab file that I can't extract.
I'm trying to extract the stock rom for an ATT HTC One Mini (m4) because RUU keeps crashing on me and won't install. I am also rooted with S-off.
If anybody can help me get the stock m4 rom so I can go back to stock, I would really appreciate it.
Click to expand...
Click to collapse
No they didn't change it. Some ruu's use a different format requiring the use of a tool called unruu instead of trying to capture the zip file when using the exe (I just learned this today). I've gone ahead and used unruu and the resulting zips have been put in a single tar file. you can download it from here for about 30 days after which ill have to delete the file. also i dont know which zip has what in it.
hi
master how to open Zip firmware !!?
i want to open zip firmware (PM60IMG.zip Desire 400)with 7zip ! but shows below error :
"can not open file PM60IMG.zip az archive "
how to pass this encryption ?
gandolf007 said:
hi
master how to open Zip firmware !!?
i want to open zip firmware (PM60IMG.zip Desire 400)with 7zip ! but shows below error :
"can not open file PM60IMG.zip az archive "
how to pass this encryption ?
Click to expand...
Click to collapse
https://github.com/kmdm/ruuveal/tree/f4936338f19841c75edafbe7e622242105cb39aa

Categories

Resources