• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root what to do after factory reset on rooted phone

wccanard

Newbie
Complete noob question. I am having problems with phone vibrate and it has got to the point where I am going to try a factory reset. Samsung Galaxy Ace (S5830i).

Clearly though, I want to restore the phone to pretty much its former state afterwards -- i.e. (1) rooted (2) all apps and data back (3) all contacts back. (4) all old text messages back.

I have Titanium backup installed. I am running the stock rom. I can find plenty of web pages explaining how to factory reset the phone (which is pretty obvious) but then after that they just seem to say "and then re-install from your backups". I don't even know whether I will be unrooted after a factory reset -- I am completely unclear about what the relationship is between a factory reset and SuperUser. Can someone point me to a place where these sorts of things are explained carefully? I'm happy to learn.
 
You will not lose root after a factory reset. Use Titanium backup to backup any apps you want back. After you do the factory reset use Titanium back to restore the app and it's data. Make sure all your contacts are saved as Google contacts and that you have contacts synced to Google. After you log back into your phone all your contacts will be automatically restored.

After you rooted, did you install a custom recovery like Clockwork Mod or TWRP? Before doing a factory reset, I would recommend booting into recovery and clearing cache and delvik cache. See if this helps your vibrate issue before doing a factory reset.
 
I think TB has the option to save texts now too doesn't it? At least the Pro version does.
To add to what valorian said, if you decide on the factory reset, you just need to download TB from the market again to restore user apps/data.

But valorian has a good suggestion of wiping cache and dalvik in recovery first. :)
 
Many thanks for this quick and helpful reply. I cleared the cache and dalvik cache in the naive way (by going into the appropriate directories and deleting all the files and then rebooting), and this didn't solve the problem. Clockwork Mod seems to be a company, not an app. I have ROM Manager installed, if that's what you mean. But I have never used it. My reasons for rooting were not to install other roms, I just wanted more say in memory management [i.e. I wanted Link2SD]. In fact I've not ever even run ROM manager!

OK so let's run it -- ooh look, "GT-S5830i does not have an officially supported ClockworkMod Recovery yet. Have you installed a ClockworkMod based recovery manually?" I am assuming this is bad news...
 
You don't have to worry about system apps and root after a factory reset, it only affects the user apps and user settings. make a backup via TB as everyone has suggested, you can use a different app for backing up texts, contacts etc like MyBackup root, you can simply install these apps again via play store and easily restore them afterwards. You can also make apk files if these apps and keep them in your sd card and you won't have to download them again, just re-install them from the sd card.
SuperUser does not gives you root access, it merely controls what apps to give root access as per your choice, you won't loose root if you don't have it. If its been installed in your system then the reset will not affect it, but just in case you do loose it, just install it from play store again, its just an app after all.

I don't know where you have learned all the rooting stuff about ACE but i am shocked to know that you have ROM Manager on your phone, UNINSTALL IT!!
Its a fatal app, if you had run that app, you would have fried your motherboard, i am surprised you never came across a warning for that.

CWM is available for your device model, its official or not that i don't know but its available.
http://forum.xda-developers.com/showthread.php?t=1552792
 
@ayush29k: I think that what happened in practice was that I read some generic "OK so if you root your phone then here are several things that you MUST install: (a) busybox (b) Rom manager (c) Link2SD" and then I found some Ace-specific rooting instructions, which worked fine, and then I just installed the things that were recommended, and it was only after all this that I actually figured out how to do what I actually _wanted_ to do, which was free up internal memory. Of course Link2SD did this, and I had no interest in running other roms, so busybox and rom manager just sat there installed, but because they were linked to the SD card they were not taking up any space so I just left them there ;-)

Thanks to everyone who replied here for the pointers.
 
OK so here is what I did, in order to factory-reset-and-then-restore-all-data a rooted Samsung Galaxy Ace GT-S5830i. I'd be happy to get marks out of 10 ;-)

WARNING: the entire process here took about 2 hours in total, and at a random point in the middle you probably have a non-working phone, so you might want to find two clear hours if you want to do this.

Start: I have a rooted Samsung Galaxy GT-S5830i running Android 2.3.6. I have a file "update.zip" on my SD card which I put there when I rooted it. I wanted to apply a factory reset and then get the phone back into pretty much the same state as before (i.e. same apps, same data (e.g. same bookmarks on my browsers, same saves on my games etc), same contacts, same text messages...).

1) I downloaded Titanium Backup and used it to make a backup of my apps + data, following instructions here: http://androidforums.com/faqs/443075-root-terminology.html [and click on "show" a few lines down]. OK so I think I made a **minor error** here -- I should have backed up user apps *and* system data (we'll see why in step 20).

2) I downloaded MyBackup Root and used it to back up all my contacts/SMS etc.

All these backups went to my SD card.

3) I then backed up my SD card onto my computer -- just in case.

4) I downloaded ClockWorkRec5830i.zip from http://forum.xda-developers.com/showthread.php?t=1552792 there, and put it in /sdcard [basically I am going to follow the
instructions there about Clockwork recovery, to get a nandroid backup of everything]

5) I booted into recovery mode [phone off; then vol up + home + power button, and get ready to release all three very quickly the *moment* the recovery mode screen comes up or you'll reboot and have to start step 5 again].

6) I selected "apply update.zip" (this was here because I was rooted) and then selected ClockWorkRec5830i.

7) I made a nandroid backup! This failed the first time because I only had about 200 megs free on my SD card and the backup needed more space. But I had just backed up the SD card, so I deleted a bunch of stuff, freed up a gig, and it worked fine.

8) I booted the phone up again, and copied the nandroid backup onto my computer.

9) I synced my google contacts.

10) I booted into recovery mode and restored factory settings!!

11) I switched the phone on, told it my google account.

12) I waited for about 30 minutes while the phone synced with google and magically downloaded a whole bunch of apps that had been installed before. This surprised me -- I thought TiBu was going to do this. My guess is that google remembered somehow which roms I'd downloaded from the play store. I didn't quite get all my apps back because my kids have written a couple of apps which I'd installed direct from them rather than google play. But I'd certainly got most of them. I note at this point that (as I'd hoped and expected) my SD card has survived uncorrupted, so I don't need to touch the computer backups [I'll keep them though] -- so this is great -- I can restore everything from the SD card.

13) [unlucky for some] DISASTER! I only have about 15 contacts!! Dammit, lose lots of points. Maybe I should have understood valorian's comment "Make sure all your contacts are saved as Google contacts" better before I started all this.

14) FIX! MyBackup Root had backed up all my contacts. I used MyBackup Root to restore all my contacts [this took a good 45 minutes -- around 3 seconds per contact and I have 1200 contacts :-/ that's what happens if you've had a phone for 14 years and an email address since 1988 :-/ ] and everything else. It gave me a warning about restoring my calendar -- so I just didn't bother restoring it (I have a google calendar and google will certainly have that backed up). It also gave me a warning about restoring "APNs" or something -- it said I might break stuff. So I just unticked that box too. I don't even know what these are, and they might not even have been "APN"s, I forgot what it said exactly :-(

15) After about an hour, MyBackup Root finished. All my SMS's and contacts were back. I fired up my web browser and of course I had no bookmarks etc etc. But we're not finished yet.

16) I used Titanium Backup to restore all the data for all my apps. Note that I did _not_ use it to restore all apps+data because google had somehow restored all my apps for me. I then used TB to restore all my non-market apps + data.

17) CONFUSION: I have lost a bunch of text messages.

18) UNCONFUSION: I'd used Titanium Backup to back up my text messages a couple of months ago, and had just restored the TB back-up of my text messages. I used MyBackup Root again to restore my texts to their current state [it only took a few minutes this time because I had the option of not restoring all my contacts, thank goodness].

19) My phone now vibrates when someone sends me a text!! I fixed my phone!!

20) ANNOYANCE: Turns out that "Memo", which looks like a generic note app, was in fact a system app, and I didn't back up system data, so I have lost all my memos. Actually, Titanium Backup had an old system backup, so I've got most of them back.

21) V MINOR ANNOYANCE: I've lost the widgets on my home screen. I just put them back manually, no trouble.

22) V MINOR ANNOYANCE: I've lost all the links to my non-market apps on my home screen. I just put them back manually.

Conclusion: 21 and 22 suggest that I should have somehow backed up the home screen.

However, despite losing 2 hours of my life and some memo notes, my GT-S5830i is now essentially the same phone as it was before, except that the weird phone vibrate bug I had is fixed.

In particular -- my entire life is stored in: (a) my google calendar, (b) an alarm clock app [not stock -- Alarm Clock Xtreme] and (c) an app called Life Reminders. All the data for these apps has all been successfully restored. For the google calendar I'm not at all surprised (as the data is all stored in the cloud). For the other two I am mightily relieved ;-) although I had done an independent back-up of Life Reminders just in case.
 
OK so here is what I did. I'd be happy to get marks out of 10 ;-)

Start: I have a rooted Samsung Galaxy GT-S5830i running Android 2.3.6. I wanted to apply a factory reset and then get the phone back into pretty much the same state as before (i.e. same apps, same data (e.g. same bookmarks on my browsers, same saves on my games etc), same contacts, same text messages...).

1) I downloaded Titanium Backup and used it to make a backup of my apps + data, following instructions here: http://androidforums.com/faqs/443075-root-terminology.html [and click on "show" a few lines down]

2) I downloaded MyBackup Root and used it to back up all my contacts/SMS etc.

All these backups went to my SD card.

3) I then backed up my SD card onto my computer.

4) I downloaded ClockWorkRec5830i.zip from http://forum.xda-developers.com/showthread.php?t=1552792 there, and put it in /sdcard [basically I am going to follow the
instructions there about Clockwork recovery]

5) I booted into recovery mode [phone off; then vol up + home + power button, and get ready to release all three very quickly the *moment* the recovery mode screen comes up or you'll reboot].

6) I selected "apply update.zip" and then selected ClockWorkRec5830i.

7) I made a nandroid backup! This failed the first time because I only had about 200 megs free on my SD card. But I had just backed up the SD card, so I deleted a bunch of music, freed up a gig, and it worked fine.

8) I booted the phone up again, and copied the nandroid backup onto my computer.

9) I synched my google contacts.

10) I booted into recovery mode and restored factory settings!!

11) I switched the phone on, told it my google account.

12) I waited for about 30 minutes while the phone synched with google and magically downloaded a whole bunch of apps that had been installed before. This surprised me -- I thought TiBu was going to do this. My guess is that google remembered somehow which roms I'd downloaded from the play store. I didn't quite get all my apps back because my kids have written a couple of apps which I'd installed direct from them rather than google play. But I'd certainly got most of them. I note at this point that (as I'd expected) my SD card has survived uncorrupted, so I don't need to touch the computer backups [I'll keep them though] -- I can back up from SD card.

13) [unlucky for some] DISASTER! I only have about 15 contacts!! Dammit, lose lots of points. Maybe I should have understood valorian's comment "Make sure all your contacts are saved as Google contacts" better before I started all this.

14) FIX! MyBackup Root also backed up all my contacts. I used MyBackup Root to restore all my contacts [this took a good 45 minutes -- around 3 seconds per contact and I have 1200 contacts :-/ that's what happens if you've had a phone for 14 years :-/ ] and everything else. It gave me a warning about restoring my calendar -- so I just didn't bother (I have a google calendar and google will certainly have that backed up). It also gave me a warning about restoring "APNs" or something -- it said I might break stuff. So I just unticked that box too.

I'm still waiting for MyBackup Root to finish, but after that I'm going for Titanium Backup to get apps/data back, although I'm a bit unclear about what has happened already -- seems that the phone has already downloaded about 40 apps for me during the initial booting process. After TiBu I think I'll be done! And then I can check to see whether I've fixed my phone vibrate issue ;-)

Yes, TB will take care of your apps and their data, you should have stopped play store from downloading all your apps again, you wasted time and data there, TB would have done that much faster and with app data.
MyBackup root takes time but hey you got 1200 contacts there! Still it'll restore everything fine, although i have never been able to restore alarms through it, it just doesn't works with alarms for some reason.

I don't know why you needed cwm to do factory reset from the recovery, even stock recovery can do factory reset, and its pretty much the same as doing it from the settings menu, we do it from recovery only when the phone is not booting and we know that we installed an app that's causing it and the reset would fix the problem.
I suppose you did the nandroid backup just as a precaution, that was a good move, in case your backups failed then you can restore that and try doing it all again without losses.
 
[Note: you quoted my post in full above, but I've just made substantial modifications to it; I wrote the post originally when I hadn't quite finished the job]

Titanium backup -- because most of my apps had been re-downloaded from the play store (and I had no choice in the matter, it seemed to me) I did *not* get T.B. to restore all apps and data -- I just asked it to restore all data. I then asked it to re-install all apps and data for just the "missing" apps. It offered me about 25 apps, most of which I had deleted (probably took old T.B. backups of them once?) but a few of which were apps I or my kids had written, and these were restored fine.

Brief answers to questions: I didn't know how to stop play store from downloading all apps again and I agree that TB would have been quicker [google downloaded all the apps from the app store, I think TB actually just backs up the apks and then re-installs them locally -- this is not only quicker, but better, because I could imagine that in theory if an app updated when you were in the middle of the process you'd end up with a newer app but old data, which could in theory be a problem]. Alarms worked for me on non-stock app. I used CWM just to get the nandroid backup, and yes that was just a precaution. I didn't even know what CWM _was_ before we started on all this, or even what recovery mode was. I just happened to be using CWM when I went for the factory reset; if it wasn't for the nandroid backup then I don't see the point of it, so I presume it was for the nandroid backup.

Hope this thread helps anyone else who wants to restore factory reset and is as scared as I was ;-) Thanks to everyone who helped/contributed.
 
You could have just let TB restore all your apps and data, it would have simply overwritten the ones already installed by play store.
You can just cancel the download from play store when its installing, there is no big trick in stopping a download.

Some of the launchers like holo and adw have the functionality to backup their settings and homescreen, that might have helped you if you had been using these launchers.

You may want to get the firmware reinstalled if vibration is that big of a problem and its not a fault in the phone.
Exactly what vibration problem are you having?
 
I guess it's not possible to restore all old text messages "by magic". So they will have to be backed up _somewhere_! I guess you're asking whether you have to explicitly back them up or whether something running in the background can back them up for you without you noticing.

I did notice that my text messages were probably backed up twice, by two different procedures, in the above. I think that both Titanium Backup and MyBackup Root might have backed them up.

But in general, if you want to make sure something is restored, surely your best bet is to make sure it's backed up!
 
You could have just let TB restore all your apps and data, it would have simply overwritten the ones already installed by play store.
You can just cancel the download from play store when its installing, there is no big trick in stopping a download.

Some of the launchers like holo and adw have the functionality to backup their settings and homescreen, that might have helped you if you had been using these launchers.

You may want to get the firmware reinstalled if vibration is that big of a problem and its not a fault in the phone.
Exactly what vibration problem are you having?

Replies:

1) Actually the downloads from the play store all happened in the background. I didn't even notice they were happening for a while -- I just looked at the status bar and saw things were going on, and then I noticed that I was getting messages of the form "[random app] is being downloaded" -- I wasn't even warned that this would happen. I decided it was best not to stop the phone doing what it wanted to do, because basically all I had done at that point was factory reset and then typed in my gmail address and password; the phone just then basically was saying "OK I can handle this, leave me alone for a while" and I didn't want to interrupt because I didn't know what it wanted to do, what I *definitely* should let it do, and whether interrupting one thing would mean that I stopped it doing everything else.

2) I don't even know what a launcher is, but if I ever do this again I'll investigate options for backing up the home screen.

3) My vibration problem was: the vibration motor was definitely not broken [e.g. if I switched my phone onto vibrate mode it would vibrate when I got a call] but it simply would not vibrate when I got a text message, and yes notifications were on, and yes I'd tried other apps, and yes I'd asked around, and basically I knew that there was a chance that a factory reset *might* solve it, and I was just interested in trying a factory reset anyway [because at some point I had a corrupted SD card with some system apps foolishly linked to it and my phone was slightly messed up because of this; that could well have been the reason I was having vibrate troubles] so I thought I'd go for it.
 
Last thing, while I'm here, if there's still anyone reading: why did I lose my memos? Presumably it's because memo will in fact be a system app?? And so backing up all user apps and data doesn't back up memo? I didn't realise this.

It's a bit annoying that MyBackup Root seems to actually back up "everything that is stored in system apps apart from your memos". i.e. texts/contacts/MMS but not memos. Or am I doing it a disservice?

I wonder if I can get my memos back directly from the nandroid back-up without having to re-install the nandroid back-up...? I shouldn't really ask this here, I should find out about nandroid back-ups myself.

Once again, thanks.
 
Your apps reinstalled themselves because you had auto update enabled in the play store settings. You could have stopped them if you had paid attention to it.

If you had backed up data of the system apps then you would still have your memos.
Mybackup does not backup memo data, so you can't blame it for not restoring it.

Your memos are still inside that nandroid backup you made, you can do an advanced restore of the /data, that might bring back your memos, but it may also bring other data back, so its better to not try that.
What i would suggest is that you create a nandroid backup of this rom, restore the previous one, use TB to backup your system app data(i.e memos) and then restore the new backup and restore the TB memo app data backup.

There are also programs and apps that can navigate into the nandroid backup, you can extract your data from there also, its just an option, i have never actually tried that.
 
If you had backed up data of the system apps then you would still have your memos.
Mybackup does not backup memo data, so you can't blame it for not restoring it.

Sure, of course: what I am complaining about is that I did not know that memo was a system app -- I have found out the hard way.

But actually I found a *much* better solution than backup/restore again. I had a look at what the nandroid backup actually _was_, and it's just a bunch of tarfiles. I am sitting at a unix machine as I type, and I just untarred data.rfs.tar, changed directory to data/data/com.sec.android.app.memo/databases , and took a look at what was there. There was just one file, Memo.db, which was an sqlite3 database file, so I just opened it up with sqlite3 and exported it as a csv file. Done! Nice, because not only were there "programs and apps" which do this sort of thing as you said, but actually I already had all these programs on my linux machine already and was familiar with how to use them. I guess this is the advantage of android running on top of unix.
 
Sure, of course: what I am complaining about is that I did not know that memo was a system app -- I have found out the hard way.

But actually I found a *much* better solution than backup/restore again. I had a look at what the nandroid backup actually _was_, and it's just a bunch of tarfiles. I am sitting at a unix machine as I type, and I just untarred data.rfs.tar, changed directory to data/data/com.sec.android.app.memo/databases , and took a look at what was there. There was just one file, Memo.db, which was an sqlite3 database file, so I just opened it up with sqlite3 and exported it as a csv file. Done! Nice, because not only were there "programs and apps" which do this sort of thing as you said, but actually I already had all these programs on my linux machine already and was familiar with how to use them. I guess this is the advantage of android running on top of unix.

Now that is awesome:D
 
Sure, of course: what I am complaining about is that I did not know that memo was a system app -- I have found out the hard way.

But actually I found a *much* better solution than backup/restore again. I had a look at what the nandroid backup actually _was_, and it's just a bunch of tarfiles. I am sitting at a unix machine as I type, and I just untarred data.rfs.tar, changed directory to data/data/com.sec.android.app.memo/databases , and took a look at what was there. There was just one file, Memo.db, which was an sqlite3 database file, so I just opened it up with sqlite3 and exported it as a csv file. Done! Nice, because not only were there "programs and apps" which do this sort of thing as you said, but actually I already had all these programs on my linux machine already and was familiar with how to use them. I guess this is the advantage of android running on top of unix.

That's pretty great, i never used a linux machine so i have no idea about that, but it really did save you a lot of trouble in getting your data back. :D:D
 
Hey wcc, and everyone else i suppose (just registered for the forum) :-)
But wcc, i read through ur entire thread as i had the same exact question. Great info for us noobs... Blah some of this stuff might as well be in a foreign language haha.

I had a quick question for you, or anyone else for that matter : i was told to NEVER restore my DATA when it came to TB... The person told me that it would basically rewrite over the same data again, im assuming system processes... And create a huge mess. Is that true? It made sense at the time bc if im backing up apps AND data, then restoring both using TB, wont it give me "doubles" do to say?

Also, i don't mean to hijack ur thread, i didnt think i was as it pertains to the same info. If im wrong, i apologize
 
Hey wcc, and everyone else i suppose (just registered for the forum) :-)
But wcc, i read through ur entire thread as i had the same exact question. Great info for us noobs... Blah some of this stuff might as well be in a foreign language haha.

I had a quick question for you, or anyone else for that matter : i was told to NEVER restore my DATA when it came to TB... The person told me that it would basically rewrite over the same data again, im assuming system processes... And create a huge mess. Is that true? It made sense at the time bc if im backing up apps AND data, then restoring both using TB, wont it give me "doubles" do to say?

Also, i don't mean to hijack ur thread, i didnt think i was as it pertains to the same info. If im wrong, i apologize


Welcome Nick! Glad to have you here ;)

I have always played it safe and never backed up or restored SYSTEM apps/data....just user apps/data.
Restoring user apps/data will just overwrite what you currently have installed, you won't get "doubles" :)

Now, back to system data, I have never tried it but I would surmise the only time you safely could restore system apps/data is if you reflashed the same rom, or restored a nandroid of the same rom.

Hope that helps a wee bit :)
 
Even i don't usually make a backup of data of the system apps, mostly because i keep shifting through different kinds of roms having different system apps.

But when i am just flashing a rom update or i flash a new rom knowing that it has the same rom base and the system apps would be same, in those cases i do make a system app's data backup and have restored them with good results.
Saves time in setting up the all the settings and alarms and stuff. :D
 
Hello mike! And hello to u all. Im very glad i finally registered :-D
Well as regards to titanium backup, maybe i did something wrong? I got the free version for now and i did a backup with backup "apps and data" i could have done them each separately, as im sure u guys know, buy they seem to have separated themselves anyway. I. E. - i can choose to restore apps or just data, or both. Maybe im misunderstanding WHAT TB is actually backing up... Is it just backing up my user apps and THEIR data? Or did it backup my entire device, meaning android processes(data) as well? Amd that's why restoring data would be bad? My God... Am i confused or what? Lol
 
Back
Top Bottom