[Q] contacts2.db overwritten on boot - Nexus S Q&A, Help & Troubleshooting

chopmeister said:
Hi all,
I have an X10 which had 2.1 stock FW installed.
-got root, dualtouch, xRecovery all working
-synced contacts to google
-made a backup with xRecovery
-flashed FreeX10 beta 4, gapps, hotfix, market, all sucessfully
Everything worked so far. And then when I synced again, all contacts were without phone numbers. So I logged on to google to check and yes all contacts were without numbers there too. So I though what the hell, I'll revert to the backup and sync again. But the backup kept WLODing. I tried all possible combinations of wiping cache and restoring and whatnot. So I decided to do things manually:
-extracted data.img
-found contacts2.db
-opened adb shell and deleted current contacts2.db file and replaced it with the old one with all the phone numbers, changed ownership to app_1.
And I thought that should be it... Instead what happens is that as soon as I launch Contacts app, the contacts get reverted to the first state, ie. without phones. The funny thing is, if after the whole procedure I tap really fast on the call log, I can see al the old calls and the old contact names - everything - but just for a second, and then from nowhere one by one everything gets overwritten again by the just-deleted ones. How is that possible, and what am I doing wrong?
Click to expand...
Click to collapse
This is my problem (except for Nexus S) and this thread got no replies. Thought I might check if the Nexus S community has any thoughts.

Related

Retrieving contacts from nandroid

I wanted to get my wife's phone current and on CM7 (she was still on a rooted froyo), so I did a backup via cwm, flashed a stock rom, flashed stock recovery, unrooted. Then I did a LGUpdater update (worked fine :O), then flashed cwm and cm7.
Somewhere along the way, her contacts were lost, and for some reason, weren't all on her google contacts list. There are only 57 contacts on her google contact list, but she had many more than that. So, I went and reloaded the froyo backup from before unrooting and upgrading (did a factory reset too), but it still required me to re-sync with google and only retrieved the contacts that are on her google.com/contacts list.
Is there anyway I can get into the froyo backup and retrieve her complete set of contacts? I thought that they'd come back when I restored that backup, but asked me to re-enter her gmail and password (like it was starting fresh).
I don't know how she got into a state where her contacts weren't syncing with google, but I imported the contacts from the SIM card incase she was somehow saving them there, but that didn't get them.
Any recommendations? Another way to get the contacts by going into the rooted froyo backup itself, or perhaps a way to reflash that backup and have it "remember" the contacts?

[Q] Flashing ROMs & Titanium Backup

Hey guys
I've recently rooted my 9023i Nexus S and am currently running Codename Android 1.4.0 with the included Kernel.
I did flash and test Matr1x kernel and one other which I can't remember the name of but in both cases I went ahead and reflashed the ROM to get the original kernel back as I felt the phone became unstable and sluggish after a while on the custom kernels.
I use Titanium Backup to backup and restore my apps and system settings which worked beautifully when I was just flashing the same ROM again, but I am wondering if I would like to try a different ROM (would be based on ICS 4.0.3 or 4.0.4) if I could restore my apps AND my system settings with Titanium Backup?
I have seen around here that I should only restore apps and not system settings when going to a different rom which I totally understand, but I would love to be able to keep my call logs, sms, contacts and especially Email (Exchange) settings between ROM flashes.
Is this possible?
Thanks!
I never really liked Titanium Backup, but you shouldn't have an issue, I believe. You should never lose your contacts as long as you are signed into Google. After you flash a new rom, sign back in and your contacts should be there. As for system settings, I have no idea. Wifi settings, etc shouldn't be a problem. Go ahead and try it. Thats what Clockwork Recovery and Titanium Backup are for. If it doesn't work, then restore back to what you had. Its best to learn from trial and error.
mabry said:
I never really liked Titanium Backup, but you shouldn't have an issue, I believe. You should never lose your contacts as long as you are signed into Google. After you flash a new rom, sign back in and your contacts should be there. As for system settings, I have no idea. Wifi settings, etc shouldn't be a problem. Go ahead and try it. Thats what Clockwork Recovery and Titanium Backup are for. If it doesn't work, then restore back to what you had. Its best to learn from trial and error.
Click to expand...
Click to collapse
Thanks, I did do it like that the first couple of times when I flashed a rom, but I really like not having to redo the exchange settings and resync all my email and exchange contacts (all of my contacts come from exchange, none from Google) and also not having to resign into all of my services (Facebook etc.)
I guess I'll just do some tests and see how it goes
Restore apps. Leave the system stuff alone.
albundy2010 said:
Restore apps. Leave the system stuff alone.
Click to expand...
Click to collapse
That's the answer I was expecting
But do you think it's ok to manually restore some settings, for example email settings, rather than doing a batch restore on all settings?
I see a backup in Titanium Backup for Email 4.1 and Exchange Services 4.1 which I assume would include all my emails and settings, right?
You could try restore data only on those. If you get a bunch of force closes .....
The emails are stored on the email server. You log into Gmail/Hotmail/work .. the emails will sync.
If you want to screw with it. Make a current Nandroid of your system. Restore what you want. Screw up ...restore Nandroid. Works... smile
Thanks guys
Tried it yesterday, didn't work
One other question... When restoring apps+data after a flash do you sign into Google and then restore or do you restore and then sign into Google?
Sent from my Nexus S using XDA App
bjornvil said:
Thanks guys
Tried it yesterday, didn't work
One other question... When restoring apps+data after a flash do you sign into Google and then restore or do you restore and then sign into Google?
Sent from my Nexus S using XDA App
Click to expand...
Click to collapse
Correct me if i'm wrong but with CNA you need to flash Gapps manually. If you don't flash it, you wont have market or anything, so you wont be able to sign in will you?
What i do is just leave google apps alone and flash my user apps. Then when you flash a rom, flash gaps, sign in, then restore user apps.
Yes it's a bit of a pain to reconfigure gmail etc, but most of the data is synced online so it shouldnt be too bad.

[Q] How can I restore after booting into recovery? All contacts, apps, sms lost

Hello,
I booted into recovery using the Down Volume and Power button. It seems to have restored the interface to factory default, although all my pics on the phone and SD card are there.
I cant find any contacts,SMS or previous apps. The app files are on the device. I can see them from my PC, but they are not installed.
After booting into recovery mode I just returned there a couple times. Finally I was able to boot normally, but into a fresh UI.
How can I restore or get back my (wife's) contacts and SMS's? I think that they should be there on the phone still. They were not backed up.
Thanks.
Wind Mobile Canada LG Optimus 2x / same as t-mobile G2x / p999
Android 2.2.2 Froyo
Build Number FRG83G
Is the phone rooted? Are you using clockwork mod recovery? Contacts are usually backed up with a google/gmail account. Go into her settings>sync settings and hopefully her gmail account is there. If it is, just click on it and her contacts should restore. You can also backup your apps through the gmail account as well. I believe the playstore has an option to automatically update via wifi, try looking in there for options about that. If her contacts were not backed up via gmail, then they are probably lost. I'm going to assume that you do not have a nandroid backup on the device via CWM that you could roll back to?
Pain-N-Panic said:
Is the phone rooted? Are you using clockwork mod recovery? Contacts are usually backed up with a google/gmail account. Go into her settings>sync settings and hopefully her gmail account is there. If it is, just click on it and her contacts should restore. You can also backup your apps through the gmail account as well. I believe the playstore has an option to automatically update via wifi, try looking in there for options about that. If her contacts were not backed up via gmail, then they are probably lost. I'm going to assume that you do not have a nandroid backup on the device via CWM that you could roll back to?
Click to expand...
Click to collapse
Thanks for your reply. No, it is not rooted. No CWM (yet). It seems there is no backup of the contacts because syncing was off. I used the phone first and then passed it to my wife, so she did not want all my contacts, she just managed contacts manually. That is why syncing was off. I kept my google account on the phone to manage apps.
I do not have a Nandoid backup. I looked at Helium, but it does not seem to work on Android 2.2.2. How would you recommend I back up the device to prepare for a custom ROM like CM7.2?
I am more worried about her manually added contacts and SMS's.
I did not install anything like CWM yet, just booted into recovery mode. Then the phone started asking me questions like in the initiall setup ei "Add a Google Account"
Is there a way that I can extract the contacs and SMS's from a directory on the phone. (Most of her data and directories seem to be there when viewed from a PC as USB storage).
Why would this happen from a simple reboot into recovery mode? Did I hold the Volume Down and power too long?
Thanks,
Pain-N-Panic said:
Is the phone rooted? Are you using clockwork mod recovery? Contacts are usually backed up with a google/gmail account. Go into her settings>sync settings and hopefully her gmail account is there. If it is, just click on it and her contacts should restore. You can also backup your apps through the gmail account as well. I believe the playstore has an option to automatically update via wifi, try looking in there for options about that. If her contacts were not backed up via gmail, then they are probably lost. I'm going to assume that you do not have a nandroid backup on the device via CWM that you could roll back to?
Click to expand...
Click to collapse
Thanks for your reply. No, it is not rooted. No CWM (yet). It seems there is no backup of the contacts because syncing was off. I used the phone first and then passed it to my wife, so she did not want all my contacts, she just managed contacts manually. That is why syncing was off. I kept my google account on the phone to manage apps.
I do not have a Nandoid backup. I looked at Helium, but it does not seem to work on Android 2.2.2. How would you recommend I back up the device to prepare for a custom ROM like CM7.2?
I am more worried about her manually added contacts and SMS's.
I did not install anything like CWM yet, just booted into recovery mode. Then the phone started asking me questions like in the initiall setup ei "Add a Google Account"
Is there a way that I can extract the contacs and SMS's from a directory on the phone. (Most of her data and directories seem to be there when viewed from a PC as USB storage).
Why would this happen from a simple reboot into recovery mode? Did I hold the Volume Down and power too long?
Thanks,
To be honest I do not know if there is way to extract the lost contact information. I am only knowledgeable about recovery protocols with a rooted device utilizing a custom recovery software such as cmw. I have never entered recovery prior to flashing cwm. There are plenty of guides in the stickies that show how to flash cwm via nvflash and guides on how to use it in order to flash a custom rom like cm7.2
Sent from my LG-P999 using xda premium
Your contacts are unfortunately gone. With the stock recovery holding the buttons too long equals a data wipe which is where contacts and such are stored.
Been there, done that. I had a similar situation on my wife's phone and ended up creating a dummy Google account for her so contacts would be backed up automatically.
The noob says:
In the absence of a valid argument, 2+1=3 may be used to explain why the g2x did not get the ICS update!
I was hoping you would jump in here mansa! Thanks!
Sent from my LG-P999 using xda premium

[HELP[TIPO DUAL]]Contacts lost...

I need help for this problem, I installed some mod for the Contacts that looks like Z1 somewhere in the forum, then when I rebooted my tipo dual the Phone icon is gone so I restored the backup apk from the stock phone/contacts after wiping cache and dalvik, I rebooted. After that when I opened the Phone and Contacts there is no contacts left, Is there any way that I can recover those contacts?? when I opened my messaging app the numbers are still there but the contact names are not.... please help me, and also whre might the android store the contacts numbers and names???
does anybody know where android stores contact names and contact numbers?? so I can backup them w/o the use of any apps
FIXED
okay, I fized it by myself, just searched for the Nandroid backup mine. I found out that the files/contacts are in "data/data/com.android.providers.contacts" I just recopied it from my old nandroid backup and Fixed the permissions using TWRP,

[Resolved] [Q] Importing Contacts from Backup corrupted by Contacts+

Hi everyone,
hope this is the right place for my question:
The facts:
Device: Evo 3D GSM
Old Rom: CM10.2 Android 4.3.1
New Rom: CM11.0 Android 4.4.4
Recovery: 4Ext Recovery Touch v.1.0.0.6 RC2
Available Backups: Full Nandroid, Partial TB (including contacts storage)
I upgraded my phone from CM10.2 to CM11. Before I made a complete backup using the CWM recovery and backupped some things, including the contacts storage, manually as well with Titanium.
Now everything is running fine, except for the contacts, which for some reason are not restorable. After an restore attempt and before opening the contacts app the contacts2.db has the correct size (about 38mb) and still has it after a reboot. But opening the contact app after reboot and waiting for it to finish its update process somehow resets the contacts2.db file.
I used contacts+ as contact app, and had several contact accounts on my old setup (whatsapp, facebook, and contacts+ and maybe more).
What I already tried:
- Restoring via Titanium -> Contacts app loads after reboot but contacts app stays empty
- Restoring from Nandroid backup using Titanium -> same result after reboot and opening contacts app
- Restoring from Nandroid using AppExtractor -> Contact app crashed continuously until contact storage data were deleted, but contacts2.db stayed at correct size
- Extracting data from contacts2.db but no satisfying outcome, either all contacts from all accounts or only phone numbers.
When I connected the phone in debug mode I got these interesting debug messages out of LogCat in Eclipse:
"E/ExternalAccountType(3258): Problem reading XML in line 92 for external package com.contapps.android"
"E/ExternalAccountType(3258): com.android.contacts.common.model.account.AccountType$DefinitionException: Undefined data kind 'photo/Contapps'"
As com.contapps.android is the package name of the Contacts+-App I suppose the error is somewhere in the things it has done to my contacts database.
But I'm unable to figure out what it is or how to resolve the issue.
Any help is appreciated, I'm already quite desperate with this problem
Cheers,
Chris
Edit:
Resolved this by backing up the new ROM, reverting to the old backup and uninstalling Contacts+ there which fixed the database.

Categories

Resources