View Single Post
Old May 12th, 2012, 03:47 PM   #5 (permalink)
LordErebus
New Member
Thread Author (OP)
 
Join Date: May 2012
Posts: 9
 
Device(s): HTC Wildfire, Samsung Galaxy Tab 8.9
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default

Hey guys!

Managed to figure out how to dump /boot and /recovery BEFORE gaining full root

For those that are interested, i followed the procedure laid out on "Addictive Tips - How To Backup Your Android Phone's Boot, Recovery And System Partition Images". Can't post links yet, but here's a run down of what i did.

After trying root with SuperOneClick and z4root (yes, i tired it; didn't work and slowed down my phone) i decided to try something different, and here's how it worked:

1. Use SuperOneClick to gain "Shell Root"
2. Once established run ADB from the command line/terminal
3. Type "adb shell"
4. If the Shell Root was unsuccessful, you will see "$" appear. You can still run ADB commands, but you will NOT be able to dump the /boot or /recovery images
5. If the Shell Root was successful, you will see "#" appear
6. Type "cat proc/mtd"
7. You will now get output that looks something like this:

dev: size erasesize name
mtd0: 000a0000 00020000 "misc"
mtd1: 00480000 00020000 "recovery"
mtd2: 00300000 00020000 "boot"
mtd3: 0fa00000 00020000 "system"
mtd4: 02800000 00020000 "cache"
mtd5: 093a0000 00020000 "userdata"

8. To dump these files to a .img use the following command:

"dd if=/dev/mtd/mtd1 of=/sdcard/ITEM_TO_DUMP.img bs=4096"

replacing ITEM_TO_DUMP with "boot" or "recovery"

9. Once complete, you should fins these image files in the root of your SD Card

And that's it!

Word of warning. Addictive Tips point out that you CANNOT use this method to create a dump of /system as it will not produce a viable image file.

Phew, thats one hurdle over, will now go ahaed and try for full root
LordErebus is offline  
Reply With Quote