[Q] Restore contacts2.db - Android Q&A, Help & Troubleshooting

Hello everyone!
Up till now this forum helped me in every stupid thing i did with my HTC Tattoo (rooting, insxtaling cyanogen etc) but now im stuck and i couldn find any anwsers so i have to ask for help
Here's the deal: I have cyanogen mod 7 on my HTC Tattoo and yesterday it got stuc (bootloop) and wouldnt turn on. Me being the i***t i am didnt do a backup recently, so i did a backup in clockworkmod recovery. I did a factory reset and everythin and the phone works ok now, but i've lost all my data. I can live without the apps and sms's but i would really like to get my contacts back. I tried to backup only the data in clockwork recovery, but i get the same bootloop again. I managed to extract the contacts2.db file from my data.img, but now i don't know how to get it back on my device. I tried coppying it back in the correct folder using root explorer, but that didnt work (contacts were still empty) and now i'm stuck.
I would really apreciate some help
Thank you!

This is why you should sync your contacts to Google. Before you wiped your phone, did you try flashing the CM ROM zip first? If the cause of the boot loop was something you messed up in the /system partition, then flashing the CM zip will wipe your system partition and put a clean copy of the ROM there, and your phone will work. You wouldn't need to wipe your data partition. So try this now, restore the backup of your messed up ROM and flash the CM zip over it. Let's see if it works.
Sent from my Desire HD using xda premium

Related

[Q] URGENT HELP NEEDED. Galaxy s2 not booting after changing framework-res.apk

I can see there is already a similar thread in this section but there is no solution in it!
Anyways im using a Rooted Galaxy s2. with 2.3.4 villainrom flashed on it.
I changed the framework-res.apk file using root explorer after renaming the original file there......i restarted my phone and now it is hanging on the first screen with the yellow triangle!
have i bricked the phone?!?
I cant access bootloader or the recovery. whenever i pres power,volume up and home simultaneously, the same thing keeps occuring. freezing on the first screen!
help what do i do!!!!!!
EDIT::::::: stupid me. i can access the recovery menu now. i'd like to access the system folder and try to solve the problem but i dont know how to. i can mount USB STORAGe. but when i press MOUNT \ SYSTEM nothing happens. how can i access the system folder ?
sosolid4u09 said:
I can see there is already a similar thread in this section but there is no solution in it!
Anyways im using a Rooted Galaxy s2. with 2.3.4 villainrom flashed on it.
I changed the framework-res.apk file using root explorer after renaming the original file there......i restarted my phone and now it is hanging on the first screen with the yellow triangle!
have i bricked the phone?!?
I cant access bootloader or the recovery. whenever i pres power,volume up and home simultaneously, the same thing keeps occuring. freezing on the first screen!
help what do i do!!!!!!
EDIT::::::: stupid me. i can access the recovery menu now. i'd like to access the system folder and try to solve the problem but i dont know how to. i can mount USB STORAGe. but when i press MOUNT \ SYSTEM nothing happens. how can i access the system folder ?
Click to expand...
Click to collapse
Just restore "system" from your nandroid backup.
You did a nandroid backup, right?
The quickest and best thing to do would be to do a factory reset if you can and then flash another rom with odin, or just flash another rom.
Can I ask why you wanted to remove or move that file?
free-sidux said:
Just restore "system" from your nandroid backup.
You did a nandroid backup, right?
Click to expand...
Click to collapse
u basically screwed ur rom,i would siggest flashing other rom or the same rom via odin
free-sidux said:
Just restore "system" from your nandroid backup.
You did a nandroid backup, right?
Click to expand...
Click to collapse
noo =(
i have a titanium backup on my phone. as well as a cwm backup.
i dont understand the whole mount \ system feature.
I mount the \ system, but nothing happens. i assumed that allowed me to view the system folder on my computer?? Since when i mount USB storage i can see my USB storage!
drreality said:
u basically screwed ur rom,i would siggest flashing other rom or the same rom via odin
Click to expand...
Click to collapse
the rom zip file is still on my sd card....could i just flash the rom back on the same way i did it the first time ? (through CWM install zip from sd card)
hehe
nandroid backup = cwm backup
restore your backup and try screwing up with your ROM again : )
ended up re-flashing the same rom.
phone started up perfect with all the settings intact.
thanks for help guys

Flashing stock ROM and the going back to Cyanogen

Hello, I always find the people on this corner of xda very helpful. As usual, I think I know what I'm doing, but I'd like to check that I am proceeding in the right direction.
I've been using Mik's Cyanogen ROMs on my Optimus One. That's going well. But I need to SIM unlock my phone and I need to go back to a stock ROM to input the codes (please let me know if this is incorrect).
Before installing Mik's ROM, I performed a Nand backup. I have boot, cache, data, recovery and system img files. I think I can flash these through recovery and I should be back to stock.
Do I lose my apps and settings by doing this? Do I need to clear any caches?
What about returning to Cyanogen after I unlock my phone... Do I have to root my phone again or will I still be able to flash using recovery?
Using Clockwork, I just backed up my current ROM. I assume I will be able to restore from this later.
Is there anything else I should be aware of?
Thanks for answering my questions / clearing up my confusion.
Hello, I always find the people on this corner of xda very helpful. As usual, I think I know what I'm doing, but I'd like to check that I am proceeding in the right direction.
I've been using Mik's Cyanogen ROMs on my Optimus One. That's going well. But I need to SIM unlock my phone and I need to go back to a stock ROM to input the codes (please let me know if this is incorrect).
this is correct
Before installing Mik's ROM, I performed a Nand backup. I have boot, cache, data, recovery and system img files. I think I can flash these through recovery and I should be back to stock.
Do I lose my apps and settings by doing this? Do I need to clear any caches?
to revert back to stock, you must wipe data/factory reset, cache, and dalvik cache. you will lose your settings. as for your apps, you can back them up with titanium backup and restore them after you have restored your backup.
What about returning to Cyanogen after I unlock my phone... Do I have to root my phone again or will I still be able to flash using recovery?
when you restore your backup of the stock rom, you will still have root. i dont think unlocking your phone will cause you to lose root. your root access and custom recovery will still be intact
Using Clockwork, I just backed up my current ROM. I assume I will be able to restore from this later.
yes this is true
Is there anything else I should be aware of?
just to be on the safe side, please list the steps you are going to follow
Thanks for answering my questions / clearing up my confusion.
Thanks for the quick answer...
I on my sd card, I have a /clockwork directory with two subdirs. One is my original backup that I made before first installing Cyanogen. The other is the one I just made. Both contain boot, cache, data, recovery and system img files. The difference is that with my new backup the image files have an extra yaffs2 suffix: cache.img (stock) but cache.yaffs2.img (Cyanogen). Any problem here?
1. boot into recovery
2. restore stock from my sdcard using nandroid and wipe caches as you indicated
3. reboot, enter unlock code
4. reboot into recovery
5. restore current ROM from my sdcard using nandroid and again wipe the same caches
6. reinstall / restore apps (I'm not using Titanium, instead I backed up the list of installed apps)
Will I need to find and reinstall the GoogleApps (Market, etc) or will they come with the backup of my current ROM?
Pretty simple really. This make sense?
Thanks for the quick answer...
I on my sd card, I have a /clockwork directory with two subdirs. One is my original backup that I made before first installing Cyanogen. The other is the one I just made. Both contain boot, cache, data, recovery and system img files. The difference is that with my new backup the image files have an extra yaffs2 suffix: cache.img (stock) but cache.yaffs2.img (Cyanogen). Any problem here?
there might be a problem. what clockworkmod version did you use to make the backup of the stock rom? if i remember correctly, using cwm 3.x.x.x backs up a certain way (and also does not have the yaffs2 suffix) and using cwm 5.x.x.x backs up a different way (with the yaffs2 suffix) so backups may not be "inter"compatible (more info on that here). however, you can just flash back cwm 3.x.x.x right now (you can do it using rom manager), restore your stock rom backup, do the following steps, flash back cwm 5.x.x.x, then restore your backup
1. boot into recovery
2. restore stock from my sdcard using nandroid and wipe caches as you indicated (i recommend wipe first then restore)
3. reboot, enter unlock code
4. reboot into recovery
5. restore current ROM from my sdcard using nandroid and again wipe the same caches
(same here again, wipe first then restore)
6. reinstall / restore apps (I'm not using Titanium, instead I backed up the list of installed apps)
Will I need to find and reinstall the GoogleApps (Market, etc) or will they come with the backup of my current ROM?
i think you will have to flash gapps again
Pretty simple really. This make sense?
looks good (how sure am i? id say 80-90%. it definitely makes sense, but i have never done this before)
Good good. It's getting late so I'll tackle this tomorrow. Thanks for the detailed help... I'm glad I asked before going at it.
sweetnsour said:
looks good (how sure am i? id say 80-90%. it definitely makes sense, but i have never done this before)
Click to expand...
Click to collapse
I followed your instructions (I downgraded Clockwork before starting) and the 10-20% chance of you being wrong came true... but in a good way
Restoring from the backup brings everything back: apps, settings, contacts, SMSs etc. So it was actually even easier than you suggested since I didn't have to use my backups at all.
Thanks again for the tips!
bosth said:
I followed your instructions (I downgraded Clockwork before starting) and the 10-20% chance of you being wrong came true... but in a good way
Restoring from the backup brings everything back: apps, settings, contacts, SMSs etc. So it was actually even easier than you suggested since I didn't have to use my backups at all.
Thanks again for the tips!
Click to expand...
Click to collapse
glad it worked out for you i am assuming your phone is now unlocked right?
sweetnsour said:
glad it worked out for you i am assuming your phone is now unlocked right?
Click to expand...
Click to collapse
Yes... when I was back in stock I could access the unlock menu by entering 2945*#500# on my keypad. The SIM unlock code that I have worked fine. I haven't actually tested with another SIM card but the phone claimed to have been unlocked, so I should be good to go.

[q] couldnt open directory/sdcard/nandroid/

I DID some cache wipe and dalvik cache wipe and accidentaly included data wipe too..the phone rebooted and ask for goole etc etc to be filled up but then the phone died and when i tried to reboot it. I get stuck at CM7 boot screen. I tried recovery pressing power-volume down-menu all at onece and when i try to restore back up it says E: Couldn't open directory/sdcard/nandroid/ please help me please i dont know what to do
Did you move the nand backup elsewhere on your card or to your computer? Toggle USB storage and copy the nand backup back to the sdcard (and to the same folder).
no.backup was not moved ever since i created it using nand backup.and upon checking..it is still there
my guess is that the rom has become corrupt (somehow), so this is what i would do:
1. wipe everything again (as if you were going to do a fresh install of new rom)
2. flash cm7
3. once everything has booted properly, reboot into recovery and try to restore the backup
Im gonna try that one out sweet...anymore suggestions or solutions or is there anyone out there who knows exactly what to do?
Hoping your suggestion would solve this problem...Rebooting now after re-installing cm7......
Re-installed CM7 and phone went On..Tried to restore backup but to no avail....anyone who can suggest what to do?
did you rename the folder of your backup? i know that the name cannot have "invalid" characters, such as asterisks and spaces.
also try reflashing your recovery and try again.
I think I know what went wrong. Yesterday I used Amon Ra to wipe cache and dalvik cache and battery stats coz I've seen somewehere here in this forum that CWM recovery doest completely wipes caches so I used it but I forgot to return to CWM. I think that causes the problem "couldnt open file directory". Upon reinstalling CM7 rom, I flashed CWM and tried to restore backup and it did.
Nope..I never did anything with the backup...reflashing recovery solves the problem
so everything is now up and running? glad to hear that
yeah..up and running thanks

[Help] Serious app problem after ICS alpha flash

[Solved]
Hello XDA
(Please tell me if this is the wrong forum for help)
So, I was plodding along happily with CM7 on my Optimus One, then I decided to Nandroid backup and flash a CM9 alpha ROM here.
Once I wiped user data through amon_ra recovery, I flashed it and it worked fine (except I was on old baseband, so GSM didn't work).
When I decided to Nandroid back to what I had previously however, BAD THINGS HAPPENED.
All the user apps didn't show up in the app draw. All the widgets had a problem. The CM7 theme had vanished. Even the google apps had vanished.
I tried to reflash the Market but it didn't work and was still missing.
I was able to Nandroid back to the ICS alpha rom and it worked fine.
I then tried to restore the stock LG firmware through the official updater app. It refused to boot, getting stuck at the ANDROID logo.
I then had to manually flash Clockworkmod recovery through emergency mode. I then proceeded to Nandroid to my CM7 save. Which booted, but still had the same problems. (I flashed amon_ra from there so I could use my other backups)
All the normal functions work properly eg. Camera, USB, ADB, GSM, 3G, Data, web browsing.
I also noted that everything is sitting normally in the data partition when looking through ADB, but not through File Manager, is that normal?
Help, please?
Thanks x 1000000 in advance
Titanium Backup?
Can't get it installed.
Well, it is installed, it's just unusable.
I can't get the Market so I can't try and install it.
And attempting to install it's APK with File Manager results in "Application not installed"
Okay, I seem to have figured it out, while I had this problem, my dalvik-cache was inaccessible as a folder. I deleted it in ADB and recreated it.
It was because when I wiped user data to flash ICS, it also wiped the SD-EXT partition, which my dlavik-cache was on, that was not backed up.

[Q]Boot problem after recovery - ICS & CWM

I've encountered weird problem: The phone doesn't boot (got stuck on bootanimation) after nandroid recovery from CWM. I've tried recoverying it over fresh install of same ROM or over formated partitions, but neither of it works. I'm using CWM v5.0.2.0 and trying to recover hephappys PRE4.
Is this caused by some incompatibility of CWM and ICS?
No, cwm 5.0.2.0 is working with ICS, using it currently (haven't tried using backup/restore, but it shouldn't cause any problems imo).
So, what exactly are you doing? Trying to restore an earlier cm9 backup? Try wiping all, including system and boot, before restoring.
Sent from my LG-P500 using XDA
Yes, I've made backup before messing with my ROM and it just fails to recover. I've already tried to wipe everything.
Is there any tool for viewing backup files on Windows? I guess that the file is somehow broken.
Is there any way how to get calls and sms from this raw data?
Here is boot logcat: https://gist.github.com/2603614
Jirrick said:
I've encountered weird problem: The phone doesn't boot (got stuck on bootanimation) after nandroid recovery from CWM. I've tried recoverying it over fresh install of same ROM or over formated partitions, but neither of it works. I'm using CWM v5.0.2.0 and trying to recover hephappys PRE4.
Is this caused by some incompatibility of CWM and ICS?
Click to expand...
Click to collapse
have the same issue with cwm...
recommand u to use amonra...gwtting best with it
When I was on cm9 and restored my cm7 backup=same thing(yes, I wiped everything)
Well, that backup image is somehow corrupted as it cant be correctly deployed. At least I've managed to extract SMS, the rest is not so important for me.
CWM is pretty much useless when it creates backups which can't be used for recovery...
I don't think that there is a specific problem with CWM and ICS- I have been making backups and recovering quite often ICS builds (including hephappy's pre4) in the last weeks, no problems so far (knock on wood ).
Do you have other/older backups that you can try to recover and see if you get stuck at bootloop?
What about reinstalling the build from scratch- just to see that everything boots? You can later try either restoring your original backup (the one causing you problems), or using TiB or similar applications that can extract applications+data from nand backups.
Could the backup file got corrupted somehow? I don't remember CWM having some inherent checking of md5 before restoring backups (I could be mistaken, as I have never had a bad nandbackup with the P500 phone so never noticed anything weird). For example, I used to have an HTC MT4G with 4ext touch recovery which would always check md5sum and let the user know if backup was corrupted, and I did got a corrupted backup file once.
Back to topic- If anything else fails and you can't recover, maybe try to copy the backup to a different sdcard? Perhaps it's a shot in the dark but worth trying, just in case the problem is in sdcard?
Older backups are only CM7 and they are working flawlessly. I don't know what happened, but it wasn't byte-level error as MD5 check passed on that image. It's more likely the recovery "forgot"/wasn't able to recover some files in /data partition.
Later I've tried to install some fresh ICS, did some changes (configuration + apps), backuped, wiped partitions, then restored and everything worked , so it's definitely not a general CWM problem. It's probably a bad luck, when you really need the backup, it just corrupt itself to annoy you...
As I wrote, I've managed to retrive my SMS and that's enough for me. I don't trust that image so I will install fresh apps via Appbrain and do the new setting by myself (I wanted to make some chcnges to phone configuration, this is just the right moment) .
I have never had much luck with the CWM recovery system. It's really buggy and sometimes only restores select partitions. Or if it couldn't mount the drive at the time of backing up, sometimes it just refuses to tell you or tells you but you have to start the backup over..
Like said above, I would try Amonra. It's a far better recovery and it has almost no bugs to speak of
Cheers mate.

Categories

Resources