Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
czdjj
Old
(Last edited by czdjj; 27th April 2010 at 07:45 PM.) Reason: phone dump error explanation
#1  
Recognized Developer - OP
Thanks Meter 15
Posts: 151
Join Date: May 2008
Location: Kojetin

 
DONATE TO ME
Exclamation How to BACKUP and RECONSTRUCT ROM for MEGA

It works, but you must wait after reboot about 30s, don´t panic like me


I take no responsability in any damage on your device. If you're not sure what you're doing, DON'T DO THAT.


All what you need:
  • Original ROM (here)
  • Custom Rom Flasher (RUU)
  • HARDSPL (here)
  • Dumped Rom (read below Step 1)
  • Folder with programs (attached zip "_FilesNeeded_czdjj.zip")

Step 1 - Dumping your ROM

Use PhoneDump (attached zip)
Run "Partition.Addresses.bat"
Now look into "Partition.Addresses.txt" and if you see something like this (windows path will be different):

Code:
Copying d:\_HTC_system\Dump\Phone Dump\itsutils.dll to WCE:\windows\itsutils.dll
Could not update itsutils.dll to the current version, maybe it is inuse?
try restarting your device, or restart activesync
or maybe your device is application-locked.
your device is locked.
Solution: Copy "EnableRapi.cab" (from attached "Phone Dump.zip") into your device and run.
After you make this, you run again "Partition.Addresses.bat" and in txt you see this:

Code:
456.63M (0x1c8a0000) FLASHDR
|         124.00k (0x1f000) Part00
|           3.50M (0x380000) Part01
|         118.75M (0x76c0000) Part02
|         334.25M (0x14e40000) Part03
  7.43G (0x1db400000) DSK7:
|           7.42G (0x1db000000) Part00
STRG handles: 
handle#0 8f8a926a   7.42G (0x1db000000)
handle#1 ef789dba 334.25M (0x14e40000)
handle#2 cf857026 118.75M (0x76c0000)
handle#3 8f857002   3.50M (0x380000)
handle#4 4f8a1e1a 124.00k (0x1f000)
disk 8f8a926a
0 partitions, 0 binary partitions
customerid=00000000 uniqueid= 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
disk ef789dba
0 partitions, 0 binary partitions
customerid=00000000 uniqueid= 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
disk cf857026
0 partitions, 0 binary partitions
customerid=00000000 uniqueid= 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
disk 8f857002
0 partitions, 0 binary partitions
customerid=00000000 uniqueid= 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
disk 4f8a1e1a
0 partitions, 0 binary partitions
customerid=00000000 uniqueid= 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
and thats OK.

Now run "Dump My Phone.bat" or use this Tutorial.
We need only Part01.raw (XIP) and Part02.raw (OS)

Step 2 - Original ROM

Original ROM is exe files, extract it with winrar, we need only RUU_signed.nbh.Copy it to folder _FilesNeeded_czdjj from attached files
I downloaded WWE Europe - 1.28.401.4

Step 3 - Reconstructing the ROM
  1. Copy to folder _FilesNeeded_czdjj from attached files and rename Part01.raw to xip.bin and Part02.raw to imgfs-new.bin
  2. Extract RUU_Signed.nbh
    Code:
    nbhextract RUU_Signed.nbh
    We need only 04_os.nb
  3. Split 04_os.nb
    Code:
    nbsplit -kaiser 04_os.nb
    Now we have 04_os.nb.payload
  4. Now insert the imgfs-new.bin (renamed Part02.raw) to 04_os.nb.payload and create a new file called 04_new-os.nb.payload
    Code:
    imgfstonb imgfs-new.bin 04_os.nb.payload 04_new-os.nb.payload
  5. Insert XIP (renamed Part01.raw) into new-os.nb.payload
    Code:
    implantxip -xip xip.bin -payload 04_new-os.nb.payload
  6. Merge 04_new-os.nb.payload into 04_new-os.nb
    Code:
    nbmerge -kaiser 04_new-os.nb
  7. Start HTCrt, select tab "Rom Builder", select "MEGA" under "Device," enter your version number, change the Language if needed (e.g. CZE for a czech ROM) and select 04_new_os.nb as OS under Firmware contents.
  8. Click on Build! button and save your RECONSTRUCTED ROM.


I tested it on my device and I flash my reconstructed rom without problem.

You can use BAT file for simplifying (just run "_reconstruct_czdjj.bat" in attached folder below .




Thanxs for inspiration and their work to:
jockyw2001
efsane
DaveShaw
Johan Kraczmar
and all good people on XDA
Attached Files
File Type: zip Phone Dump.zip - [Click for QR Code] (626.9 KB, 1740 views)
File Type: zip _FilesNeeded_czdjj.zip - [Click for QR Code] (754.1 KB, 1398 views)
 
czdjj
Old
#2  
Recognized Developer - OP
Thanks Meter 15
Posts: 151
Join Date: May 2008
Location: Kojetin

 
DONATE TO ME
===RESERVED===
 
glaucos
Old
#3  
glaucos's Avatar
Senior Member
Thanks Meter 1
Posts: 277
Join Date: Jan 2007
Location: Torino
Dummy question: what's the useful of this tutorial?
If I have the original rom, why I have to merge it with the dumped (original too)?
 
czdjj
Old
(Last edited by czdjj; 15th April 2010 at 10:11 PM.)
#4  
Recognized Developer - OP
Thanks Meter 15
Posts: 151
Join Date: May 2008
Location: Kojetin

 
DONATE TO ME
If you want to test WM 6.5.5 and than you want to go back to original rom (specific language, operator software ... )

Example: There is not Czech language rom to download. If i test 6.5.3 or 6.5.5 ROM from here, there is no way back without this manual. But you must make this backup BEFORE you flash another ROM.
Example 2 : From nbh you can in kitchen make lite version :)
 
glaucos
Old
#5  
glaucos's Avatar
Senior Member
Thanks Meter 1
Posts: 277
Join Date: Jan 2007
Location: Torino
Quote:
Originally Posted by czdjj View Post
If you want to test WM 6.5.5 and than you want to go back to original rom (specific language, operator software ... )
... in case we can't download the original operator version, I think...

Now I understand, thank's!
 
czdjj
Old
#6  
Recognized Developer - OP
Thanks Meter 15
Posts: 151
Join Date: May 2008
Location: Kojetin

 
DONATE TO ME
Use can go back to original operator rom, just find someone, who has original rom in Mega, dump his Mega and flash yours
Yes, if you have flashed your Mega, you can´t dump from your Mega original Rom (its overwritten)
Sorry for my english
 
Johan Kraczmar
Old
(Last edited by Johan Kraczmar; 16th April 2010 at 01:01 AM.)
#7  
Johan Kraczmar's Avatar
Senior Member
Thanks Meter 15
Posts: 224
Join Date: Sep 2008
(0409) You are the best!!!! I new it before that you will be successful !!!!!
Congratulation and the best for future work!!!!!!

(0405) Gratuluji, tutorial je krásně přehledný a srozumitelný.Díky moc !!!!!
HTC Sensation XE
ROM : SharkDrOiD S3 v2.7 | ICS | Sense3.6 + 4.0 Skin | 3.32.401.105R2 | AROMA
RECOVERY : 4EXT Recovery Touch v1.0.0.4 RC 3
RADIO : 11.69.3504.00U_11.22.3504.07_M
OPERATOR : Vodafone

Asus Transformer TF101-32GB
ROM : [ROM] Android Revolution HD™ 3.0.0 ICS 9.2.1.11

My work :

HTC MEGA ROM
and any other stuff for this nice mobile
 
yellowfever
Old
#8  
Senior Member
Thanks Meter 1
Posts: 127
Join Date: Mar 2009
Location: Frankfurt
Quote:
Originally Posted by czdjj View Post
Step 3 - Reconstructing the ROM
Hey czdjj, thanks a lot / děkuji for your work! I personally don't really need this, but I am sure this helps a lot of people who have an original ROM which is not (yet) available for download as exe or nbh. Thos people might be not willing to try other ROMs, unless they have a way for backup. Well, this here is the way

I would suggest to rename the thread to something like "How to Backup your ROM", so that people who don't immediately know why they would want to reconstruct a dumped ROM get the idea, and understand how helpful this is

By the way, maybe a very dumb question. Does this backup "only" the base ROM, or does this operation do a complete backup, including all modifications that you did so far (installed programs, changed settings, added ringtones, saved messages, etc.)?
 
czdjj
Old
#9  
Recognized Developer - OP
Thanks Meter 15
Posts: 151
Join Date: May 2008
Location: Kojetin

 
DONATE TO ME
to yellowfever:
en: it is only original ROM (after HR), doesn´t include personal settings.
cze: je to pouze romka od vyrobce, original, bez osobniho nastaveni

to. Johan:
en: maybe czech WM 6.5.5? :)))
cze: ze bychom udelali ceskou 6.5.5?
 
fktsndr
Old
#10  
fktsndr's Avatar
Senior Member
Thanks Meter 2
Posts: 696
Join Date: Jun 2007
Default Maybe error

I think there is an error in point 4.

"implantxip -xip xip.bin -payload 04_new-os.nb.payload"

04_new-os.nb.payload still does not exists, will be created in point 5!

The right point 4 is:

implantxip -xip xip.bin -payload 04_os.nb.payload

Could you check it?

 
Post Reply+
Tags
czech.rom, dumping rom, mega, reconstruct
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Flash Custom ROM and Recovery to Samsung Galaxy S 4

After reading about Dan Rosenberg’s bootloader exploit for the Samsung Galaxy S 4,I … more

Windows-Based Multi-Tool for the Sony Xperia U

If you are a flashaholic and an owner of the Sony Xperia U, you may be interested in the … more

XDA University: Crafting Recovery-Flashable Packages

Those of us who use Linux on a day to day basis don’t think twice about sinking … more