[How To] Preparing yourself for a wipe data/factory reset in Clockwork Recovery
Thanks to Jaekar99, Landshark, and DroidXCon for their help with this.
[note]Post 1: Basics about Wiping Data/Factory Reset in Clockwork Recovery
Post 2: Backing Up User Data
Post 3: Restoring
Post 4: Recap and tip sheet. [/note]
This thread is intended to help you prepare for a data wipe/factory reset. It seems that since it is required and developer recommended when installing any of the versions of Ultimate Kang Bang/Comm Rom many have neglected this step either from fear of the process, not understanding what in involves, or avoidance of an inconvenience. This thread is intended for those who are Rooted and have some version of Clockwork Recovery installed and would like some info on wiping data/factory reset. If you don’t have these things, or are not interested, this thread is not for you.
I. First Things First,
• When we say “wipe data” or “factory reset”, THIS IS NOT FACTORY RESET IN SETTINGS. If you Factory Reset in settings with a custom Rom, you will likely soft brick your phone and will need to re-flash a Rom to correct. When we say wipe data, factory reset we are referring to the option in Clockwork Recovery (aka CWM).
• This will restore all system settings back to factory spec or as established by the developer of the Rom that is installed.
• The wipe data/factory reset function in CWM erases all USER data that has been stored on the phone. Imagine out of the box new in regards to what's on the phone.
• Ask yourself “Would this ‘blank’ be here if I had never had my hands on the phone” If the answer is NO, than it’s going to be gone when you wipe data. There is a lot that falls under this umbrella. Once again, we will call this USER data.
[box="Some examples of USER Data:"]
• Third party applications and data (which includes your widgets that are third party),
• Contacts added to the phone (Numbers, Pictures, Email, birthdays etc)
• Call logs (missed calls, placed calls, incoming calls)
• Messaging threads and multimedia messages (images received via mms)
• Bluetooth pairings
• Wifi access locations
• Calendar data
• Accounts that have been established (google, fb, twitter etc). (Make sure you know your login info)[/box]
[box="This function DOES NOT affect any of the following:"]
• External SD Card data
• the Rom (system files, system settings, system apps)
These things must all be handled individually in the respective manner. Droid X Con has also covered this information in brief, in his sticky. Refer there for visual aids.
[warn]*****************************************************************Prior to wiping************************************************************************
I want to re-iterate that you will lose all user data and it is recommended to back up these things unless you absolutely want to start fresh. If you lose these things, I am not responsible. This thread was written specifically to reduce the risk of permanently losing your user data. Please continue reading. [/warn]
II. Backing-Up User Data
When backing up, there are some important things to mention first.
- Your phone consists of two basic things. SYSTEM data and USER data.
- We are just going to back up USER data. (USER Data meaning the listed items in section I.)
- DO NOT backup SYSTEM APP’s, SYSTEM SETTINGS, or anything else SYSTEM if your installing a new ROM. Custom ROM’s have their own system stuffs, so no need in backing them up. If you backup and restore system stuff from one Rom to another Rom, you’ll be enjoying a nice big bowl of frustration. I’ve tasted it and don’t recommend.
- A full nandroid backup will backup your ROM and all user data, but if you do a full restore after flashing a new ROM you’ve just reverted back to where you were at, i.e. you’ve gone in a big circle. Robtao is working on a partial nandroid restore project that seems very promising. However, at this time, not enough is known about it.. See his thread for info on that! Nandroids are awesome and work well, but may not be what you’re looking for if trying to change Roms. They can be helpful if you want to revert to how your phone once was at a certain point in time...(thanks Jaekar99 for this info)
With that said,
There are two applications for download in the market that are commonly used to backup/restore applications/data, messaging, call logs, system settings, and other user data. Both have free and paid versions. The main difference in paid and free versions is the time it takes to restore your user data, from minutes to hours some have reported. I am not an expert at these applications. I know how to use them, but I am saying you should figure it out too. It’s good to become familiar with your backup application(s) whichever you choose.
Here are the applications with references:
[box="My Backup or My Backup Pro"]-Simpler user interface, and less features. Makes backing up simple and user friendly, but offers less depth.[box="Titanium Backup or Titanium Backup Pro"]
My Backup User Guide[/box]
More Advanced, More complicated, More features, More chance for error. I would recommend for advanced users only, or recommend you understand the app before using.
TB - User's guide : Titanium Backup - Wiki[/box]
Both of these will work, both require root access and different people prefer different ones. I personally have one paid version and the free version of the other one.
Another app to consider is AppBrain App market. This will sync with your google account and will allow you to keep track of apps installed and give you links to re-install from the market or batch install from the internet. This doesn’t require root access and is a good second/third backup choice.
Top Android Apps and Games in the Android Market | AppBrain.com
Things to Backup
Of things to backup Contacts and Applications are the things people will miss the most. I will cover these in specific and supply resources for others.
You’ll be angry if you don’t back these up correctly. This can be done in a number of manners. Since it’s so important I recommend doing it with at least two or more of the following.
- Export your contacts directly to the sdcard.
Go into contacts---menu soft key--- import/export---export to sdcard
- Sync your contacts with your Google account
System Settings---Accounts& Sync---Google—Sync Contacts
(Go Online to gmail and double check everything is sync’d and looks ok)
- Use My Back Up (pro) or Titanium Backup (TiBu) to save contacts.
(If you don’t how to do this read the user manuals listed above or just look around in the app and figure it out )
- Backup Assistant (will only backup contacts that are stored on the phone, not in accounts)
See Droid X Con's thread for another reference. http://forum.androidcentral.com/veri...ing-forum.html
[note]Contact pictures that were sync’d with Facebook, will be erased upon data wipe. If you don’t have a picture saved and sync’d with google, the contact picture will be gone upon restoring your contacts. You’ll have to re-sync FB and join contacts with google to get pic to appear across all applications.[/note]
Third party applications and data stored within the applications can be backed up for restore using the back-up software mentioned earlier or you could just re-download all them from the market. The market will remember what apps you have paid for, so there isn’t a need to repurchase those. Obviously, data from applications will not return if you re-download from the market. It’s gone if you don’t back it up.
When backing up applications with TiBU or MyBU you’ll have the option to backup apk’s (which is the app software), and/or application data (data stored within the application) or both at the same time. It is okay to backup apk+data simultaneously (batch) but I recommend restoring apk’s and data separately. We will cover restoring later in the thread. For now I would Batch Backup APKs+Data together. (TiBU does this by default in batch mode)
To backup apps with the mentioned backup software.
My Backup (Pro)
Backup—Applications & Media—Local (/sdcard/external_sd)—Select all or select the apps you would like to backup---ok to location—choose apk’s+data
Titanium Backup (Pro)
Launch TiBU—Menu soft key—Batch—[RUN] Backup all user apps—
Launch TiBU—Backup/Restore—Individually choose the apps to backup.
Other things to consider backing up:
• MyBU and TiBU can back up your messaging. There is also a list of apps in the market directly related to backing up messaging.
Messaging Backup - Search Android Apps on AppBrain
For MMS as well (images from MMS)
MMS Backup - Search Android Apps on AppBrain
Google Doc’s-Saves Online. Double Check on-line to ensure your doc’s are there before wiping data.
ThinkFree Office-Saves to the Sdcard, so no backup needed.
Memo app or Write and Go- Backup App data with MyBU or TiBU.
• Backup with MyBU or TiBU
• Sync Calendar with Google.
Calendar—menu soft key—more—settings—Calendars—Check google account---go back---Calendar Sync—Sync Google Calendar---
Check online to make sure the calendar sync’d appropriately with google.
• Back-up with MyBU or TiBU.
• Can be restored once the corresponding email account is setup.
Wi-fi Access Points.
• TiBU has a feature that will allow you to backup Wi-Fi access points (My backup Pro does not to my knowledge support this.)
TiBU or MyBU have an option to backup your browser bookmarks.
If you use a different browser than stock browser the bookmarks will be backed up in the respective applications data.
Xmarks | Bookmark Sync and Search
Xmarks is a great app and dolphin hd browser plugin that will allow you to store and sync your bookmarks in the cloud and access across multiple sources (PC, Fascinate, etc) .
I use this and it’s awesome I highly recommend.
Just synchronize your bookmarks before doing a data wipe.
Launcher Pro Plus
Save your activation key, this is usually sent to you in an email.
- Your phone consists of two basic things. SYSTEM data and USER data.
Restoring user data is a double edged sword. It can help you and it can hurt you.
Some notes to a clean restore:
• Your restore is as only as good as your backup. Don’t be frustrated if you didn’t backup properly.
• Don’t restore any SYSTEM related things if you’re switching Roms. (System Settings, System Data, etc). It’s a Force Close sandwich.
• Only begin restoring things once you’ve made sure that you’ve had a successful installation of your new Rom. I always cycle a couple of reboots without any problems before I am satisfied and move forward in restoration.
• It’s cool to Batch restore your APK’s. However, as I mentioned earlier, I recommend restoring apk’s and app data individually. TiBU by default in BATCH will restore apks+data and this has been reported not to cause any problems. However, I still feel that it is safer to restore app data as you find you need it, as this can limit the chances for problems, and be easier to diagnose if a problem pops up.
• Always check your system after restoring anything. If you batch your apk’s, reboot and make sure that everything restored ok, and your phone is booting ok before you move forward. Be Scientific after every change. Test it out.
• I do not backup or restore apps2sd app. It can cause problems during your restore. I recommend a clean install from the market after all your apk’s are restored.
1. Most people will sync with Google to restore contacts, as establishing your google account is necessary to download things from the market.
To sync contacts: Settings—Accounts & Sync—Google Account—Sync Contacts
2. From sdcard:
Contacts—menu soft key---import/export—select where to save (I recommend google.com)
3. From TiBU or MyBU application (if you don’t know how, see user guides)
4. Backup Assistant—Settings—Accounts & Sync—Backup Assistant---Enter Pin –It will begin restore.
You’ll have to set up your google account to access the market. Once you do that you can re-download your backup software. It will remember your key if you purchased one of these.
My Backup (Pro)
Restore—Applications & Media)—Local (/sdcard/external_sd)—Select the backup you want to restore--Select all or select the apps you would like to restore ---ok to location—choose APKs (first)
Titanium Backup (Pro)
Launch TiBu—Backup/Restore—Select each individual app you want to restore and select apk. (Follow the same process to restore data that you want)
Launch TiBu---Settings---Batch---Scroll to RESTORE--User Apps [RUN]—
My Backup (Pro)
Restore— Data ---Local (/sdcard/external_sd)—Select the backup you want to restore--Select MMS ---ok to location—
(I usually restore all “data” I backed up at once. MMS, Call Log, etc using MbuP)
Titanium Backup (Pro)
Backup/Restore—choose [SMS/MMS Prefs] Messaging—Restore
Emails, Calendar, and many other things can be restored by sync and setting up your respective accounts on your phone. Obviously it’s impossible to cover all recovery of all the user data. My hope is at this point, you have become familiar with your restoration software, and got your contacts, applications and messaging successfully restored. There are some things personally, I just chalk it up to and reset up from scratch each time I wipe data. I find it’s safer and in the long run takes less time.
IV. Recap and Tip Sheet
Each person will have a different process. Rest assured this is a tight forum and there will almost always be someone around to help you if you hit snags in the process. With that said, you must also take some responsibility for what you do. No one can take care of your contacts but you. If those get jacked up there isn’t really anything anybody on any forum can do to get them back, it would be on you.
A Brief Recap:
- Don't back-up and restore anything SYSTEM if switching ROMs
- Don't Factory Reset in settings
- Handle restoration of APK's and app Data seperately if you want to be safe.
- Know your backup software
- Double check what you have backed up to ensure it's backed up properly.
- Back-up across a couple different manners.
As a tip sheet I have included my process for backing up and restoring. This isn’t the law or the same for everybody, and this may look different for you, this is just how I roll..
1. Sync Contacts with Google and cross check on-line to ensure sync was successful.
2. Export Contacts to sdcard
3. Backup APKs+Data in MyBUpro
4. Backup user apps in TiBU
5. Backup select things in TiBU
6. Sync Xmarks
7. Sync Google Calendar and cross check to ensure it’s up to date online
8. Wipe cache’s
9. Perform wipe data/factory reset
10. Flash new Rom
11. (redo wipe data/factory reset if required i.e. UKB/CR)
12. Boot phone allowing media scanner to fully scan, then testing for install.
13. Reboot to recovery
14. Flash necessary patches
16. *228 opt 1/opt2
17. Test phone for about 20 minutes(Websearch a couple pages, outgoing call, incoming call, send sms/mms, test camera/video, etc)
18. Use setup wizard to establish google account..
19. Sync Contacts with google.
20. Download MyBUpro from market..
21. Batch Restore APK’s only
23. Test phone again to ensure a clean restore of apps.
24. Set up other accounts. (Email and Fb)
25. Restore app data for selected apps
26. Reboot to test.
27. Reconfigure settings that I liked
28. Sync FB contacts..
29. Sync Calendar..
30. Join FB contacts to existing google contacts.
31. Enjoy my new phone setup!
- 05-18-2011, 05:11 PM #7
- 452 Posts
- Stock rooted
Nice job! I'd like to add that if you are using TiBu to restore your apps that prior to doing the app restore process you set your phone to not restore apps automatically by going to Settings - Privacy - and make sure the box for "Automatic restore" is unchecked. Otherwise anything you have backed up to Google will automatically start restoring and it will do it all at once. Someone can correct me if I'm wrong about that.
Also: CWM stands for Clockwork Mod
- 05-18-2011, 05:18 PM #8
- 05-18-2011, 06:08 PM #10
I have been restoring my data via CWM Nandroid Backup, using advanced restore, and only restoring data.
This is a very quick method, and seems to break nothing but...
Currently on Evil Fascination 3.5.1, wondering if this data restore method is overwriting anything in the ROM or newer functions?
Any reasons I should NOT be doing this? It seems like a possible candidate for the adage "If it seems too good to be true, it probably is!"
- 05-18-2011, 07:12 PM #12
- 05-18-2011, 07:34 PM #14
- 05-19-2011, 12:05 AM #17
So I have been choosing Restore data. And boom, my stuff is all back. But so is my launcher, etc. Which got me to thinking about launcher options which were part of the ROM and wondering if I was possibly losing new launcher features. But I think they are still in there, just possibly some user data selections having been overwritten.
But it definitely does NOT overwrite the whole ROM back to the old ROM.
I am also curious about what "Restore boot" is all about and if "Restore sd-ext" means my sd card is being backed up (I don't think so, because it is huge.)
- 05-19-2011, 12:19 AM #18
I'll let you know what DroidXCon finds.. and when the new version of KB comes out I may be inclined to play around with it some..
Couple questions, just to satisfy my curiosity,
What steps did you take to ensure that it's not overwriting the whole ROM? Did you come from SC2.x to KB with nandroid data from SC? Stock to KB with nandroid data from Stock? What was your process...
When you say launcher..does that mean your custom launcher (lp, adw) shows back up (it should if it's restored)? or the launcher that came with your Rom shows up after you restore nandroid data and the custom launcher doesn't (which it should)? Clarify for my thick head..
- 05-19-2011, 02:11 PM #20
Ha! My one claim to fame! Now back to the real world of relative Android newbie-ism.
Well, for examples of maintaining the ROM, the new TSM Parts under Settings in the new EF ROM stays, I think. (or did I flash that?) Baseband and Build number both still contain ED01 after restoring data from previous ROM over ED01. (I used the Anrynalyne method, not OTA ED01).
What else would be a good thing to check?
I kind of like Launcher, fromm Com Rom and EF, and now what I think is Launcher2, but this is where I began to wonder if my Nandroid Data backup might be overwriting some of the ROM launcher stuff. Because I don't know how to tell if I have Launcher2 or not.
I believe my evolution path has been:
Odin DB/DO tar
EC01 DB/D0 (zip i think, can't remember)
ComROM 1.0 zip
EF, all variants in sequence. zip
Oh, and I wipe like crazy, includiing data. Lately, triple wipes, but I think that is overkill. (did triple wipe originally mean wipe all 3 places? or 3 times each?)
Whenever I started flashing through CWR, shortly after (perhaps immediately) I started doing Nandroid Backups, and found Advanced Restore/ Restore data. Used it ever since. TB is pretty flexible, but also pretty convoluted. Based on your writeup, though, I am trying My Backup again as a more straight forward alternative. (I even wonder if it doesn't do many of the same things as Nandroid.)
I think I will try flashing the new MIUI Hybrid over at XDA, with a number of different backups, My Backup first, then Nandroid Data, and see what I get.
I think with Android (minus the Fascinate-ing tendency to write the file structure poorly, as I understand, and to create unusual dependencies) it should be possible to stucture the files such that a very clean batch User Data backup could be obtained. Making flashing so easy some of us junkie's won't know what to do betweeen flashes. (actually using our phones instead of tweaking them?) Here's hoping I am right.
PS: nothing thick about your head
Thanks for the info! Now, here we go..
I need to know where your nandroid backup was initially made from that you are restoring...was it from your "stock" ECLAIR or FROYO? Which ROM are you restoring from?
With that said..
TSM parts is actually an application and could have been backed up/restored with your "data" in nandroid....It is also a part of ComRom and EF..so that doesn't give me any information. it should show up in a EF and KB rom as its included in both roms...
We can't use TSMparts to tell..I can't tell if it saves the .apk and restores it or if it is restoring it with the Rom..
Baseband and build number won't change unless you change your modem(baseband) and you switch from stock ECLAIR (DL09, EA28 etc) to FROYO (EB01, ED01,EC10)..
If your initial advanced nandroid backup was made from an ECLAIR build, and you restored it over a FROYO ROM (which all the ones listed are) and the build number stays ED01..your on to something..
However if your restoring a adv nan bu from a ED01 build on to another ED01 build, you can't look at this. It's going to be ED01 no matter what..they're all ED01 builds. This doesn't mean it isn't restoring the Rom..
I don't know anything about Launcher 2, and the info you gave me is hit or miss, so we can't use that either to test this out.
Here's what to do if you want to know if it's replacing your Rom...or parts of it.
Follow whatever steps your taking to backup with nandroid with EVIL Fascination or another Custom ROM installed. It doesn't matter which one, just make sure its a ED01 build.
Wipe caches, and wipe data...
Flash this if your currently voodoo..
Let it boot all the way...take note of the build number should be (EB01 or EC10 or something)
Then reboot to recovery and do your advanced nandroid data restore..
Reboot to phone.. (if it boots at all )
See if the superclean stuck.. (there should be something in the pulldown that says SC2.9.2).
See if the build number is still EB01 or whatever it was before the restore...
Check to see if TSM parts is there..
Try this and let us know what you find!
If it doesn't boot at all..
Three button to boot to recovery and then just do a full nandroid restore and you should be back to where you were before you started the testing..
Good luck and please let me know what you find.
- 05-19-2011, 06:20 PM #22
I guess you would have to say the backup is cumulative, ever since I have been working with CWM, which would have started after Froyo. I always create a new Nandroid backup before I flash.
Let's just do this thing! I will get back with the results. Downloading SC 292.
- 05-19-2011, 07:50 PM #23
- 05-19-2011, 09:58 PM #25
OK! I am sitting pretty with same Build info before and after Nandroid Advanced Restore/Restore Data:
SC292 up at the top (but in my font now)
All the above did not change after Nandroid Data restore.
TSM must have been part of the ROM, it is no longer found in Settings.
Launcher 2 and associated widgets are no longer there as they were also part of the older ROM. I remember that I had to redo all the widgets especially for Launcher 2.
But my wallpaper is back.
This is a pretty cool ROM, I never actually tried any of the SC. My loss.
All my apps, contacts, data, as far as I can tell are all there.
I am ready to try MIUI now.