[Q] Why does Contacts2.db keep replacing itself after being deleted/overwritten? - XPERIA X10 Q&A, Help & Troubleshooting

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?

Related

adb push .apk vs update.zip - Missing Cache?

OK, So I have my rom properly working on my device and I have a nandroid backup of it. I'm making an update.zip so I can hand it to my testers, but when you flash the update.zip, the settings.apk and gmail/google_login don't appear in the programs list, even though they're in the /system/app/ folder on the device.
I end up having to adb push the settings apk to get it back, and no matter what I do I can't get gmail to show up again - so I wiped and restored my nandroid backup and that works - Gmail and settings. OK, weird, so I adb PULLED all of the apps in the /system/app/ folder and used those to recreate the update.zip... same problem after flash, settings.apk needs to be pushed and gmail is broken.
Edit: Also, on the new flash, the first screen of HTC setup is skipped, the first screen you see is the second screen. If I open HTC setup on my restored backup, this doesn't happen.
HELP!

[Q] Backup and restore not quite working?

Hey, after i updated to 2.1 i attempted to restore alla my data I had previously saved with the built in SE Backup and restore. When I open my contactbook no contacts appear, if I click on Favorites though there are 6 contacs as it should be. If i go in to the message app all my messages are still there, with contact names and numbers displayed, even though my contactbook shows no contacts?? Sort of like the contacts are there but won't display...
Also no applications were saved =(
Did this happen to anyone else? Anyone got a fix?
Thanks in advance
Hey !! i believe that you must have used the old version of backup and restore !!
SE has released a new version of backup and restore, with backing up market application and stuff !!
well.. this info may not be of any use to u know as u are already in 2.1..
But as for me, who is still in 1.6, I downloaded the new backup and restore and installed in 1.6 it has got market backup, etc...
may be to all those who are going to update to 2.1 by using the flash method from XDA must use this to backup ...
http://w ww.sonyericsson.com/update/backupandrestore/xperiaX10?lc=en&cc=gb
And it is always nice and better to restart from ur phone once u finished the backup !! hehe just my advice !!!
I restored my Contacts successfully. Here what I done
1) Reset to factory default
2) After the phone restarts I did not do any setup. I skipped all including email and contact setup.
3) Left the phone idle for 30 mins so things could settle.
4) Went to Backup and Restore and selected only Contacts and call log (No messaging or other Stuff)
5) Done. After 99% it says it done but my contacts got restored.

Couple of questions on Resurrection Remix JB 3.06

Hello.
I just replaced my old Gingerbread by GT-I9100 Resurrection Remix JB v3.0.6[04-09][AOKP JB](AROMA+OTA) using the suggested 'extended steps' and selecting its default settings.
I did this after taking full app+system data backups with Titanium 5.5 and EFS backup with EFS Pro.
The system restarted just fine and looks pretty spiffy.
I tried to restore back my data and that's where I got stuck.
USB debugging shows as checked but Titanium keeps asking for it. EFS Pro is also having problems with it.
If I disable it, EFS Pro complains. If I enable it, EFS Pro runs at full processor load trying to initialize without ever managing to do so.
Titanium on the other hand, refuses to find the data it had saved earlier. They are both on the phone itself and in a laptop. It only shows the new 4.1.1 applications and I see no way to point it to anything else.
Is it a matter of version incompatibility or something else?
Do I have to install some extra mod before these two work?
Thanks in advance.
kanenas_0 said:
Hello.
I just replaced my old Gingerbread by GT-I9100 Resurrection Remix JB v3.0.6[04-09][AOKP JB](AROMA+OTA) using the suggested 'extended steps' and selecting its default settings.
I did this after taking full app+system data backups with Titanium 5.5 and EFS backup with EFS Pro.
The system restarted just fine and looks pretty spiffy.
I tried to restore back my data and that's where I got stuck.
USB debugging shows as checked but Titanium keeps asking for it. EFS Pro is also having problems with it.
If I disable it, EFS Pro complains. If I enable it, EFS Pro runs at full processor load trying to initialize without ever managing to do so.
Titanium on the other hand, refuses to find the data it had saved earlier. They are both on the phone itself and in a laptop. It only shows the new 4.1.1 applications and I see no way to point it to anything else.
Is it a matter of version incompatibility or something else?
Do I have to install some extra mod before these two work?
Thanks in advance.
Click to expand...
Click to collapse
1. After enabling USB debugging, just reboot once. Although in JB, titanium backup doesn't require USB debugging, in order to function properly.
2. Goto Settings - Apps - All - superuser - force stop and clear data. this ensures next time you run those apps, they ask for Su permissions again.
3. Manually tell Titanium backup the location of your old backups.
How?
- Run Titanium backup
- Press menu button, Select Preferences
- Select Backup folder Location (under Backup Settings)
- Browse to the location of your old backups and select use current folder, when you are done.
Notes:
A). Ensure your old titanium backup folder is still present on your phone's Internal/External SD.
-Use a file manager to confirm this.
-If your old folder is missing or empty, copy it back from your Pc and try the third step above again.
B.) Your internal SD is the location always shown by default. Your external SD is located in
/storage/sdcard1 Or in /mnt/emmc
C.) Please only restore your apps only with titanium, don't restore their data. This is to only ensure maximum performance and stability of your new ROM.
Problem solved!
Swyped from my Samsung Galaxy SII
Thank you much Jokesy.
I tried to follow your instructions and came up with some completely different problem right after the reboot in step 1.
My unlock popup doesn't come up.
Instead I get a message on the bottom of the screen:
"SIM card is locked. Emergency calls only"
The battery is full, the signal level is at zero, and I find myself inaccessible when I try to call my cellphone.
I can still run CWM but don't see any relevant options.
Removing/reinserting the battery didn't make a difference. I haven't tried installing some other SIM card yet.
Update: I tried another SIM card and it gets into the phone. My standard card still doesn't.
How did that come up out of the blue? And how do I get around it? Do I have to redo the ROM installation?
Thanks.
kanenas_0 said:
Thank you much Jokesy.
I tried to follow your instructions and came up with some completely different problem right after the reboot in step 1.
My unlock popup doesn't come up.
Instead I get a message on the bottom of the screen:
"SIM card is locked. Emergency calls only"
The battery is full, the signal level is at zero, and I find myself inaccessible when I try to call my cellphone.
I can still run CWM but don't see any relevant options.
Removing/reinserting the battery didn't make a difference. I haven't tried installing some other SIM card yet.
Update: I tried another SIM card and it gets into the phone. My standard card still doesn't.
How did that come up out of the blue? And how do I get around it? Do I have to redo the ROM installation?
Thanks.
Click to expand...
Click to collapse
that another SIM you used, does it belong to the same network as yours?
Swyped from my Samsung Galaxy SII
Jokesy said:
that another SIM you used, does it belong to the same network as yours?
Swyped from my Samsung Galaxy SII
Click to expand...
Click to collapse
It's the same SIM I was using before.
Situation has improved in the meantime.
I left the phone without the SIM card and the battery for a few minutes and then tried with a dead SIM I had around.
It got in with no problems and I managed to restore the apps as per your instructions (but see below).
I also set it to ask for a pin code instead of swipe.
At this point I rerun EFS Pro. It gave some sort of error during intialization but it started up and I restored the saved EFS settings (that seems to have done the trick with the signal).
I powered off, replaced the dead SIM with my working one and restarted.
Back to the 'SIM card is locked' and a dial pad on the screen. Entering my code, didn't remove it. But I now had a full signal.
By hitting the buttons randomly, I eventually got an overlaid message about the Nova launcher not starting up or something and should I wait (it was a bit unreadable). I told it to wait and the system started up right away.
It looks like the 'SIM card locked' message is triggered by some delay in starting up the lancher. Maybe some timer fires up.
The final problem with the Titanium restore, is the contacts list.
It refuses to restore my contacts.
I pointed it to the proper folder where the contacts backup is along with the apps (I can see the file and a hex editor shows my contacts in it) but it never shows them as a restore option in the list (they are dated 9/9/2012 and I only see the default contacts file created by the new ROM (which has only me and a couple of others from my Google account).
Is it a bug/conflict in Titanium or some esoteric trick is needed?
Thanks so much again.
kanenas_0 said:
It's the same SIM I was using before.
Situation has improved in the meantime.
I left the phone without the SIM card and the battery for a few minutes and then tried with a dead SIM I had around.
It got in with no problems and I managed to restore the apps as per your instructions (but see below).
I also set it to ask for a pin code instead of swipe.
At this point I rerun EFS Pro. It gave some sort of error during intialization but it started up and I restored the saved EFS settings (that seems to have done the trick with the signal).
I powered off, replaced the dead SIM with my working one and restarted.
Back to the 'SIM card is locked' and a dial pad on the screen. Entering my code, didn't remove it. But I now had a full signal.
By hitting the buttons randomly, I eventually got an overlaid message about the Nova launcher not starting up or something and should I wait (it was a bit unreadable). I told it to wait and the system started up right away.
It looks like the 'SIM card locked' message is triggered by some delay in starting up the lancher. Maybe some timer fires up.
The final problem with the Titanium restore, is the contacts list.
It refuses to restore my contacts.
I pointed it to the proper folder where the contacts backup is along with the apps (I can see the file and a hex editor shows my contacts in it) but it never shows them as a restore option in the list (they are dated 9/9/2012 and I only see the default contacts file created by the new ROM (which has only me and a couple of others from my Google account).
Is it a bug/conflict in Titanium or some esoteric trick is needed?
Thanks so much again.
Click to expand...
Click to collapse
1. Some people have reported entered enter pin issue, after flashing JB ROMs.
2. You must be kidding me if you think Titanium will restore your contacts from Gingerbread to an AOSP based Jellybean ROM.
They had some better options than titanium in backing up your contacts.
1. Exporting your contacts to SD.this one is simple and doesn't require you to download anything.
2. Using free apps like contacts backup & restore.
3. Merging & syncing your contacts, with your Google account.
My advise:
- backup your present ROM,
- flash a stock based 4.0.3 custom ROM
- Restore your contacts
- backup your contacts with the options i listed above.
- Restore your ROM via CWM recovery
- Restore your contacts.
Done
It will only take few hrs, but you will get your problem solved.
Swyped from my Samsung Galaxy SII
OK, I'll try this and report back.
This (2) is annoying though.
It's just a SQLite database. If they can backup JB (therefore they know the contacts format) they should be able to restore anything back to it.
Otherwise it defeats the purpose of using a database for backup.
Oh well. I have some restoration to do
I must say I never expected such a mixup with the upgrade but at last, it seems to be on the right track.
I followed your last instructions, reinstalled my old XXKI3 ROM, restored and made a couple of backups of my contacts.
I restored the backed up JB 3.0.6, rebooted and imported the contacts, but in the process I lost the signal again (wi-fi was OK).
So EFS Pro back to the rescue, or so I thought.
I tried importing the saved EFS folder from the old XXKI3 but EFS Pro had a problem now mounting the /efs so nothing happened.
I even installed KTool at this point, renamed the EFS Pro image to efs.img, and tried loading it. I can't remember if it also gave me a mount /efs error but I still had no signal.
Trying to go back to the old XXKI3 with Odin, it gave me the same /efs problem so I didn't have a signal even in the old version.
Then I found out about GSII_Repair.
I got it from the market, run option 1 (save existing efs), then option 2 (make /efs writable) and rebooted.
Back with the signal again (but with some different IMEI). But it worked just fine. It seems option 2 doesn't just make it writable but it also loads up some default working files.
I did the whole cycle again, upgraded to JB and all's fine.
EFS Pro can restore /efs now but it loses the signal, so it's back to GSII_Repair to restore it along with the wrong IMEI.
All in all a good exercise.
Hopefully I'll be able to reset the IMEI back to what it was (or find a way to convert the saved img to the actual files and maybe do the IMEI fix manually -- I found this thread that might help: http://forum.xda-developers.com/showthread.php?t=1264021 )
The problem can be considered as successfully completed and I have no words to thank you enough Jokesy.
Much appreciated for your help.

[Q] Restore contacts on Jelly Bean without factory reset... Please help. :'C

Preface (skip if you want):
So a week ago, my data and wifi both stopped working alltogether. If I did a factory reset, it worked, but when I restored my synced apps, it stopped working again. I reset without syncing, so I backed up everything using Titanium, and did an upgrade to Jelly Bean AOKP.​
Now, my contacts won't restore.
When I try, nothing shows up in my contacts book, even though when I view my db files in .txt format, I can see jumbled info.
Titanium can't back up my contacts probably because I was using "Contacts" in Ginger Bread, and Jelly Bean has "People". I don't know, I'm a noob. I'm just guessing.
I've JUST finished restoring via Titanium and redownloading all my apps. And now I read I have to go back to stock firmware and back it up again and go back to AOKP?!
PLEASE help me figure out another way!
I only had computer access yesterday while visiting family (my own is broken).
Idea 1 (attempt in progress):
Remove "People" app on JB, restore original contact book, back up there, remove old GB book, reinstall People.
Problem is, I don't know where to find "People" again. Nor do I know how to uninstall it.
So, trying to figure that out.
Idea 2
Dissect my compressed backed up files and retype everything out, or replace my People files with them.
- com.android.contacts-20121205-121353.tar
- com.android.contacts-63595028103eedc350c975b39a6e23f4.odex
- com.android.contacts-e358929a51f0e35200269216062cfd41.apk
- com.android.mms-1eb9bc46bf5a27dcf82f70a4c46e23ac.apk
I managed to scavenge (out of other things):
- contacts2.db
- contacts2.db-journal
- profile.db
- profile.db-journal
...NO IDEA how.
Sync yout contacts with your google account before flashing JB. After flashing JB set your Google account and your contacts will be restored to your device.
If upgrading between stock roms you can also backup and restore contacts using Samsung Kies.
Sent from my GT-I9100
Sent from my GT-I9100

[Q] Recover Contacts

I recently rooted my phone. Before doing so I attempted to export my contacts, but in the processing of reloading the phone I have lost or wiped out the contacts list I exported. I also took a adb backup before wiping the phone. Is there any chance I can extract the contacts from the backup and restore them to the new configuration?
adb backup was performed when the phone was on 2.19.605.2... Phone is now running KitKat 4.4.4
Do backup Kk Rom, restore 2.19.605.2, save your contacts and restore Kk Rom back Btw you don't have Google account? Because it's good place to save your contacts, especially when you often change Roms
oldguardmd said:
I recently rooted my phone. Before doing so I attempted to export my contacts, but in the processing of reloading the phone I have lost or wiped out the contacts list I exported. I also took a adb backup before wiping the phone. Is there any chance I can extract the contacts from the backup and restore them to the new configuration?
adb backup was performed when the phone was on 2.19.605.2... Phone is now running KitKat 4.4.4
Click to expand...
Click to collapse
I keep all my contacts in Goolge. That way they are never lost. It also allows my wife and I to share contacts.
Contacts in Google
I have had Android devices for years and keep getting things screwed up on the contact side. I am not even sure how it happens. Some contacts end up on the phone and some end up in Google. When I reloaded the phone and tablet a while back all of my contacts got duplicated in gmail with old and new data all mixed together. Makes a huge mess. I need to spend a little time figuring out what I am doing wrong and clean up all of the messes. I try to stick with GMAIL for contacts, but it seems like with all of the applications asking to sync contacts, sometimes you click yes before you really realize the impact of the decision you are making.
I was not able to get the old contacts back from the backup. For some reason they didn't restore. Decided I am just OK with that... Maybe I will be a little more careful next time.
I still wonder if it would have been possible to find the backed up contacts database so I could import it in to the android emulator and export the contacts... Maybe a weekend project when it gets cold out.

Categories

Resources