Jump to content


Photo

How to /dump/ the ROM image ?


  • Please log in to reply
76 replies to this topic

#1
Minishlink

Minishlink

    Newbie

  • Members
  • Pip
  • 19 posts
  • Location:Paris, France
  • Devices:HTC Desire
  • Twitter:@Minishlink
Hi ! :)

I have a Orange FR HTC Desire who is waiting for the generic'ifying process. But the Stock ROM for this operator is not available, so I want to dump my Stock ROM in order to have a backup when needed. (and I will host the ROM)
So, how ?
I searched, and I found a tool called "Nandroid", but you need to have root, do you ? And if I root my device, the stock ROM will be replaced...

Is there no solution to dump the ROM without root access ? Can't the /system partition be readable in no-superuser mode ?

Thank you anyway ;)


PS: I want to do a dump, not a backup: I don't need write access.

  • 0

#2
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 36,254 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:All the Nexus!
  • Twitter:@paulobrien
Install busybox to /data/local then tar the /system directory to a file on the SD card.

P

  • 0

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#3
Minishlink

Minishlink

    Newbie

  • Members
  • Pip
  • 19 posts
  • Location:Paris, France
  • Devices:HTC Desire
  • Twitter:@Minishlink
Currently tar'ing ! Thanks a lot ! :)

Now that I'll have my .tar, how can I create the .img ?


EDIT: The tar process exited before the end due to "previous errors". I'm trying again.
I did with the adb shell:
cd /sdcard
ls // to make sure it's correctly here
chmod 755 /data/local/busybox // to make it executable
/data/local/busybox tar cvf dump.tar /system


EDIT2: Same thing the second time ! "tar: error exit delayed from previous errors"

EDIT3: Just did a /data/local/busybox du -s /system and it was 239200, my tar is 239540. Allright then ?

Edited by Minishlink, 15 May 2010 - 07:47 PM.

  • 0

#4
Minishlink

Minishlink

    Newbie

  • Members
  • Pip
  • 19 posts
  • Location:Paris, France
  • Devices:HTC Desire
  • Twitter:@Minishlink
So...

Is it enough to have the /system partition ? If yes, how do I convert the system.tar to system.img in order to execute with the RUU if needed ?
If not, which partitions do I have to dump ? How do I obtain the splash image if needed ?

Thank you :)

  • 0

#5
moodi

moodi

    Newbie

  • Members
  • Pip
  • 23 posts
  • Location:Paris, FRANCE
  • Devices:HTC Desire
  • Twitter:@Moodi
You will need:
1. Linux OS
2. Yaffs2 tool
3. your System folder

The Code:

# cd /where/your/dumped/system/folder/is
# ./mkfs.yaffs2 system /system.img
# exit

Please correct me if i'm wrong... :)

Attached Files


  • 0

#6
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 36,254 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:All the Nexus!
  • Twitter:@paulobrien
The /system partition is enough. The 'exiting with errors' is fine, if you watch it go through you'll see there are some files it can't read (not real files), so don't worry.

Rather than making it into a .img, you're better off making it into an 'update zip' for flashing via the custom recovery.

P

  • 0

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#7
moodi

moodi

    Newbie

  • Members
  • Pip
  • 23 posts
  • Location:Paris, FRANCE
  • Devices:HTC Desire
  • Twitter:@Moodi

...Rather than making it into a .img, you're better off making it into an 'update zip' for flashing via the custom recovery.

I think you're right.
So Minishlink, do you need help to create an update.zip ?

  • 0

#8
Minishlink

Minishlink

    Newbie

  • Members
  • Pip
  • 19 posts
  • Location:Paris, France
  • Devices:HTC Desire
  • Twitter:@Minishlink
Here is the update.zip:
http://louislagrange...FR_StockRom.zip (pass: "desire")
This archive has to be extracted to give the "update.zip". :)

It doesn't have a META-INF folder nor a boot.img inside, does it matter ? Or the recovery tool just replace what's inside the archive ?

Edited by Minishlink, 12 September 2010 - 03:38 PM.

  • 0

#9
moodi

moodi

    Newbie

  • Members
  • Pip
  • 23 posts
  • Location:Paris, FRANCE
  • Devices:HTC Desire
  • Twitter:@Moodi
strange... i can't download your file...

  • 0

#10
Minishlink

Minishlink

    Newbie

  • Members
  • Pip
  • 19 posts
  • Location:Paris, France
  • Devices:HTC Desire
  • Twitter:@Minishlink
???
It works well for me. :)

EDIT: New link http://louislagrange...FR_StockRom.zip (pass: "desire")

Edited by Minishlink, 12 September 2010 - 03:39 PM.

  • 0

#11
biker200

biker200

    Newbie

  • Members
  • Pip
  • 21 posts
  • Gender:Male
  • Location:israel
  • Devices:mio a701

I think you're right.
So Minishlink, do you need help to create an update.zip ?


u can help me doing the update .zip

thanks

  • 0

#12
dread123

dread123

    Newbie

  • Members
  • Pip
  • 39 posts
will this enable me to make a backup of vodafone rom thats on my desire?

if so..can anyone post laymans instructions on how to please?

thanks

  • 0

#13
hkfriends

hkfriends

    Newbie

  • Members
  • Pip
  • 40 posts
  • Devices:null
thanks all.... now i can backup my HK rom system folder

now, i want to merge the rooted part with ModaCo, is it possible?
i want to make an image (CHT HK) with rooted feature.

here is the dump
http://hotfile.com/d...m_dump.tar.html

  • 0

#14
Celui

Celui

    Newbie

  • Members
  • Pip
  • 2 posts

Here is the update.zip:
http://louislagrange...FR_StockRom.zip (pass: "desire")
This archive has to be extracted to give the "update.zip". :)

It doesn't have a META-INF folder nor a boot.img inside, does it matter ? Or the recovery tool just replace what's inside the archive ?


Did you managed to hade META and Boot.img? I've been trying to make an update_signed.zip... but still got an error (can't find update-script)... Does anyone have a clue?

  • 0

#15
xTc is loVe

xTc is loVe

    Enthusiast

  • Members
  • PipPipPip
  • 183 posts
  • Devices:HTC Hero

Did you managed to hade META and Boot.img? I've been trying to make an update_signed.zip... but still got an error (can't find update-script)... Does anyone have a clue?



U need the META folder which includes the update script! Without u cant use the update.zip.....just grab it from another rom and delete all lines and let the first 2 there and the last! Hope this will help you

OT:
Cant we dump ALL Partitions of the Desire and flash them on a bricked device, to solve the USB Port problem?

Edited by xTc is loVe, 19 May 2010 - 09:05 PM.

  • 0

#16
moodi

moodi

    Newbie

  • Members
  • Pip
  • 23 posts
  • Location:Paris, FRANCE
  • Devices:HTC Desire
  • Twitter:@Moodi
some issue when i try to boot with Minishlink's system files just after Orange boot animation...
05-19 20:16:39.335: ERROR/libEGL(182): eglSetSwapRectangleANDROID:1743 error 3008 (EGL_BAD_DISPLAY)
05-19 20:16:39.464: ERROR/HtcBootAnimation(194): CID=ORANG202
05-19 20:16:39.464: ERROR/HtcBootAnimation(194): Can't find CID.xml, use default.
05-19 20:16:41.054: ERROR/SurfaceFlinger(182): eglSwapBuffers: EGL error 0x3008 (EGL_BAD_DISPLAY)
05-19 20:16:42.274: ERROR/BluetoothService.cpp(182): Could not get onto the system bus: Failed to connect to socket /dev/socket/dbus: No such file or directory
05-19 20:16:42.274: ERROR/BluetoothEventLoop.cpp(182): initializeNativeDataNative: Could not get onto the system bus!
05-19 20:16:43.084: ERROR/installd(58): eof
05-19 20:16:43.084: ERROR/installd(58): failed to read size
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): Cannot open /dev/audience_a1026 -1
05-19 20:16:43.394: ERROR/HTC Acoustic(216): Fail to open /system/etc/AdieHWCodecSetting.csv -1.
05-19 20:16:43.394: ERROR/HTC Acoustic(216): read ADIE para from file failed -1
05-19 20:16:43.394: ERROR/HTC Acoustic(216): ioctl ACOUSTIC_UPDATE_ADIE failed -1
05-19 20:16:43.394: ERROR/HTC Acoustic(216): Fail to open /system/etc/TPA2018.csv -1.
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): speaker amplifier tpa2018 is not supported
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name Default (tx,rx)=(1001,1101)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name Default Car-kit (tx,rx)=(1002,1102)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name JKDAP3265 (tx,rx)=(1003,1103)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name JKDAP3264 (tx,rx)=(1004,1104)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name HTC BH M200 (tx,rx)=(1005,1105)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name BH M300 (tx,rx)=(1006,1106)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name Jabra BT530 (tx,rx)=(1007,1107)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name Jabra BT5010 (tx,rx)=(1008,1108)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name Jabra BT3030 (tx,rx)=(1009,1109)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name Nokia BH-208 (tx,rx)=(1010,1110)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name Nokia BH-703 (tx,rx)=(1011,1111)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name Nokia BH-103 (tx,rx)=(1012,1112)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name Samsung WEP410 (tx,rx)=(1013,1113)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name 3xxPlantronics (tx,rx)=(1014,1114)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name 6XXPlantronics (tx,rx)=(1015,1115)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name 8XXPlantronics (tx,rx)=(1016,1116)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name Motorola H710 (tx,rx)=(1017,1117)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name Motorola H12 (tx,rx)=(1018,1118)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name Motorola S9 (tx,rx)=(1019,1119)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name HBH-IV840 (tx,rx)=(1020,1120)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name HBH-PV710 (tx,rx)=(1021,1121)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name HBH-DS220 (tx,rx)=(1022,1122)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name HBH-DS980 (tx,rx)=(1023,1123)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name Nexus One Car Dock (tx,rx)=(1024,1124)
05-19 20:16:43.394: ERROR/AudioHardwareQSD(216): BT name END (tx,rx)=(0,0)
05-19 20:16:43.634: ERROR/MediaInfo(217): media_jni UnsatisfiedLinkError

  • 0

#17
moodi

moodi

    Newbie

  • Members
  • Pip
  • 23 posts
  • Location:Paris, FRANCE
  • Devices:HTC Desire
  • Twitter:@Moodi
My update script

show_progress 0.1 0

format SYSTEM:
copy_dir PACKAGE:system SYSTEM:
set_perm_recursive 0 0 0755 0644 SYSTEM:
set_perm_recursive 0 2000 0755 0755 SYSTEM:bin
set_perm 0 3003 02755 SYSTEM:bin/netcfg
set_perm 0 3004 02755 SYSTEM:bin/ping
set_perm 0 2000 06755 SYSTEM:bin/reboot
set_perm_recursive 1002 1002 0755 0440 SYSTEM:etc/bluez
set_perm 0 0 0755 SYSTEM:etc/bluez
set_perm 1014 2000 0550 SYSTEM:etc/dhcpcd/dhcpcd-run-hooks
set_perm 0 2000 0550 SYSTEM:etc/init.goldfish.sh
show_progress 0.1 10

show_progress 0.2 0
format BOOT:
write_raw_image PACKAGE:boot.img BOOT:
show_progress 0.2 10

You can remove some lines is you don't need

i used boot.img from RUU

  • 0

#18
moodi

moodi

    Newbie

  • Members
  • Pip
  • 23 posts
  • Location:Paris, FRANCE
  • Devices:HTC Desire
  • Twitter:@Moodi
Who want the stock Orange FR system? :) ;) :D Thanks to Google, Paul and Minishlink for their help LOL
Attached File  device2.png   32.38KB   48 downloads Attached File  device.png   449.83KB   45 downloads

  • 0

#19
popo51

popo51

    Newbie

  • Members
  • Pip
  • 6 posts
si tu peut l'uploader moodi je te serai reconnaissant car j'en ai un grand besoin car le fichier de minishlink n'est pas fonctionnel archive corrompu, je l'ai d'ailleurs pm merci d'avance^^

  • 0

#20
Celui

Celui

    Newbie

  • Members
  • Pip
  • 2 posts

Who want the stock Orange FR system? ;) :D :( Thanks to Google, Paul and Minishlink for their help LOL

Well done!!!!! Wanna eat some :)

si tu peut l'uploader moodi je te serai reconnaissant car j'en ai un grand besoin car le fichier de minishlink n'est pas fonctionnel archive corrompu, je l'ai d'ailleurs pm merci d'avance^^


+1

Edited by Celui, 19 May 2010 - 10:40 PM.

  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users