Guest Wacky.ddw Posted January 27, 2012 Report Posted January 27, 2012 (edited) Hi, I have a ZTE Skate with an apparently uncommon stock ROM (GB_MODELABS_P743V1.0.0B01). So I'd like to backup the whole phone before starting installing clockworkmod. I might be able to find another identical phone. Is there a tutorial or more information available about how backing up all the needed images? Thanks. COULD SOMEONE CONFIRM THIS IS THE CORRECT WAY? You will need 2 phones to do this, the root package from my tutorial and ADB. (you canalso download ADB made easy) On phone A you will need to install clockworkmod and make a backup. From that backup you can take the original"boot.img" Then on phoneB you can use the root package from my tutorial (if your version is 2.3.4 or 2.3.5) To root your phone. Once its rooted continue. Connect your phone to your computer and make sure USB debugging is turned on. Go into ADB and type these commando’s su cat /proc/mtd In result you will find the partition structure of your device. dev: size erasesize name mtd0: 00600000 00020000 "recovery" mtd1: 00400000 00020000 "boot" mtd2: 00180000 00020000 "splash" mtd3: 00080000 00020000 "misc" mtd4: 00200000 00020000 "cache" mtd5: 08200000 00020000 "system" mtd6: 13400000 00020000 "userdata" mtd7: 00100000 00020000 "oem" mtd8: 00180000 00020000 "persist" The structure above I quoted from xiaoyaoswim. Your phone should be the same, but the partitions will be different since he repartitioned he’s phone. From this chart you will know mtd0 is recovery, mtd2 is splash and so on. cat /dev/mtd/mtd0 >/sdcard/recovery.img cat /dev/mtd/mtd1 >/sdcard/boot.img cat /dev/mtd/mtd2 >/sdcard/splash.img cat /dev/mtd/mtd5 >/sdcard/system.img You dont need to dump the other partitions, they are useless. (I think) Now you have dumped the stock “boot.img” on phoneA but replaced the stock recovery. And on phone B you dumped everything except the “boot.img” since that one is rooted.So now you can take the “boot.img” from phone A and replace it with the one from phone B. Now you have a full stock backup. recovery.img (phone B ) boot.img (phone A) splash.img (phone B ) system.img (phone B ) There is a part on how to restore partitions in my tutorial if you would ever want to restore to this backup Edited January 27, 2012 by Wacky.ddw
Guest Wacky.ddw Posted January 27, 2012 Report Posted January 27, 2012 I hate it when it all looks good when you do a preview and then you post it and then the layout is completly screwed.. Anyway thank xiaoyaoswim he explained it to me :)
Guest ziofunk Posted January 27, 2012 Report Posted January 27, 2012 Thank you very much. I found another user with the same phone, so we can maybe try doing the full procedure. Just I need to understand a little better before starting. Clockworkmod overwrites the recovery partition, right? So the backup on phone A only has that partition "wrong"? So from the phone B (the one I need to root before installing anything) I only need the recovery.img, correct? I am quite new on android, so this may be s silly question: I saw that "ADB made easy" has the root and unroot functionalities. Is the "root" procedure reversible? If it is, can't I root, extract the recovery, unroot, install the clockworkmod and extract the rest? If not, what am I misunderstanding? I'll read more stuff now I promise ;-)
Guest Wacky.ddw Posted January 27, 2012 Report Posted January 27, 2012 (edited) Thank you very much. I found another user with the same phone, so we can maybe try doing the full procedure. Just I need to understand a little better before starting. Clockworkmod overwrites the recovery partition, right? So the backup on phone A only has that partition "wrong"? So from the phone B (the one I need to root before installing anything) I only need the recovery.img, correct? I am quite new on android, so this may be s silly question: I saw that "ADB made easy" has the root and unroot functionalities. Is the "root" procedure reversible? If it is, can't I root, extract the recovery, unroot, install the clockworkmod and extract the rest? If not, what am I misunderstanding? I'll read more stuff now I promise ;-) Yes you are correct :) You can take the "recovery.img" from backup B and take the other images you made with clockworkmod. Or you can dump all the partitions with the commando's mentioned above and only take the "boot.img" from backup A. You can choose :) So just follow my tutorial on rooting one device and then follow the tutorial on installing clockworkmod on the other device. Dont use the buttons in ADB made easy :) Then you put togetter the dumps like i explained above. Then on phone A: You can just flash any ROM you want since you allready have clockworkmod. (you dont need to root) On phone B: You need to install clockworkmod if you want to change ROM. I hope it helps :) Edited January 27, 2012 by Wacky.ddw
Guest C3C0 Posted January 27, 2012 Report Posted January 27, 2012 Why needing two phones? You don't need to flash clockworkmod to make nandroid backup. You can just boot clockworkmod.img (not flashing - so original recovery is preserved). Just reboot your phone into bootloader (adb reboot bootloader) then boot (NOT FLASH) clockworkmod using: fastboot boot clockworkmod.img and you are all set to do nandroid backup...
Guest Wacky.ddw Posted January 27, 2012 Report Posted January 27, 2012 Why needing two phones? You don't need to flash clockworkmod to make nandroid backup. You can just boot clockworkmod.img (not flashing - so original recovery is preserved). Just reboot your phone into bootloader (adb reboot bootloader) then boot (NOT FLASH) clockworkmod using: fastboot boot clockworkmod.img and you are all set to do nandroid backup... That would be nice in theory but that doesnt seem to work. In the Medion topic we tried that.
Guest ziofunk Posted January 29, 2012 Report Posted January 29, 2012 (edited) That would be nice in theory but that doesnt seem to work. In the Medion topic we tried that. Hi. C3C0's solution sounded too good not to give it a try. I tried with the latest ClockworkMod-v5.5.0.4-Skate. It seems to work, but I could not find the Medion topic where you guys already tried that, so I am not sure if everything is fine with my backup. I the backup made with ClockworkMod already a standard stock ROM image or I need to do something more? Thanks. Edited January 29, 2012 by ziofunk
Guest Wacky.ddw Posted January 29, 2012 Report Posted January 29, 2012 (edited) Hi. C3C0's solution sounded too good not to give it a try. I tried with the latest ClockworkMod-v5.5.0.4-Skate. It seems to work, but I could not find the Medion topic where you guys already tried that, so I am not sure if everything is fine with my backup. I the backup made with ClockworkMod already a standard stock ROM image or I need to do something more? Thanks. It worked that way Ive tried that like 10 times... anyway glad it worked :) Edited January 29, 2012 by Wacky.ddw
Guest ziofunk Posted January 29, 2012 Report Posted January 29, 2012 It worked that way Ive tried that like 10 times... anyway glad it worked :) well... I hope it worked. I have to do it again because I did not do the "cleaning" before the backup. At the end of the backup, what I find in the SD is shown in the attached image. Is that a standard ROM image? I don't see all the files you were talking about, and I see some more files. If I clean my phone and do it again can I declare it a "stock ROM image" and post it to the stock ROM topic? Thanks for your help. If everything is ok I'll post the steps I followed. Thanks for your help.
Guest Wacky.ddw Posted January 29, 2012 Report Posted January 29, 2012 (edited) well... I hope it worked. I have to do it again because I did not do the "cleaning" before the backup. At the end of the backup, what I find in the SD is shown in the attached image. Is that a standard ROM image? I don't see all the files you were talking about, and I see some more files. If I clean my phone and do it again can I declare it a "stock ROM image" and post it to the stock ROM topic? Thanks for your help. If everything is ok I'll post the steps I followed. Thanks for your help. Clockworkmod doesnt backup your splash.img so you will have to do that separatly unless its one of these splash images: http://android.modac..._1#entry1890749 The backups seems to be good :) Edited January 29, 2012 by Wacky.ddw
Guest C3C0 Posted January 29, 2012 Report Posted January 29, 2012 (edited) Backup looks good. Seems to me like new version of CWM adds also "yaffs" extension to images to indicate the type of filesystem. Practically, you need only three images from backup: boot, recovery and system to be able to restore your phone to original (if you don't care about your additionally installed applications and settings) all others are just images containing user data and cache - you don't need these and it would also be a bad idea to expose them to public since they contain your personal information :) Edited January 29, 2012 by C3C0
Guest ziofunk Posted January 30, 2012 Report Posted January 30, 2012 So I repeated the procedure (with the external clockworkmod) but cleaning up the phone before. So I now have a "Backup A" with the following files: 30-Jan-12 12:13 1,536 .android_secure.vfat.tar 30-Jan-12 12:11 4,194,304 boot.img 30-Jan-12 12:13 35,904 cache.yaffs2.img 30-Jan-12 12:13 4,224 data.yaffs2.img 30-Jan-12 12:14 302 nandroid.md5 30-Jan-12 12:11 6,291,456 recovery.img 30-Jan-12 12:13 186,850,752 system.yaffs2.img After that I rooted the device (following the tutorial) and extracted all the partition obtaining the following "Backup B": 30-Jan-12 13:46 4,194,304 boot.img 30-Jan-12 13:47 60,293,120 cache.img 30-Jan-12 13:47 524,288 misc.img 30-Jan-12 13:51 1,048,576 oem.img 30-Jan-12 13:52 1,572,864 persist.img 30-Jan-12 13:46 6,291,456 recovery.img 30-Jan-12 13:46 1,572,864 splash.img 30-Jan-12 13:49 230,686,720 system.img 30-Jan-12 13:51 170,393,600 userdata.img I understood that only the splash.img was needed from this second procedure, but I thought... you never know ;-) So, now I guess I have all I need to recreate the stock situation in case I need it and I can start trying new ROMs. Now, if I want to build a proper stock ROM package to share it, so that it can be used with the offline_updater, I guess I have to do something more, right? I downloaded another stock ROM to take a look to it and I see some more files. Do you know where I can find such information? Thank you
Guest Wacky.ddw Posted January 30, 2012 Report Posted January 30, 2012 (edited) Now, if I want to build a proper stock ROM package to share it, so that it can be used with the offline_updater, I guess I have to do something more, right? I downloaded another stock ROM to take a look to it and I see some more files. Do you know where I can find such information? Thank you I would like to know this two, if there would be a way to make a TPT from these files that would be even better! The medion backup is the same as "backup B" you made so the only way i can restore it, is by flashing all partitions trough ADB or by restoring a backup in clockworkmod and flashing the Splash and recovery afterwards :) So yea your good to go :) Edited January 30, 2012 by Wacky.ddw
Guest ziofunk Posted January 30, 2012 Report Posted January 30, 2012 I would like to know this two, if there would be a way to make a TPT from these files that would be even better! The medion backup is the same as "backup B" you made so the only way i can restore it, is by flashing all partitions trough ADB or by restoring a backup in clockworkmod and flashing the Splash and recovery afterwards :) So yea your good to go :) Hey thank for all your help. If I ever manage to make a TPT from those files I'll post it here. I just saw an application called TPT helper that seems interesting in this direction. Yet first I'd like to try some new ROM. Thank you again and thank to all other forum's members.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now