Android accounts location for backup app - Java for Android App Development

Hi all, I hope I'm in the right place.
I'm writing app with classes for backing up and restoring android data and settings for rooted device. I successfully managed to back up call and sms databases, home layout and rom (system) settings but now I need to understand if (and how) it is possible to back up exchange accounts in order to restore and reuse them in gmail app after new rom installation without manually setting. Found the file EmailProvider.db in com.google.android.gm package data folder in wich are stored accounts data and credentials but even after full restoring data folder the accounts are not displayed.
I think because accounts are system related, so my ask is where are exchange accounts (or accounts in general) information stored in android? It is possible to programmatically backup and restore them?
Thanks

Related

[Q] Restoring Contacts problem

I've been flashing and enjoying all the different roms. I backed up my phone from a few days ago via clockwork recovery and one version has all of the contacts that I need, but when I restore the data after a new flash, not only do I get the contacts I want, but also other things that I don't want to restore.
So for now, I just want to bring over the contacts file that I backed up, and none of the other data. I tried google sync but it only brings over the email addresses, but not the phone numbers of my contact. I tried Titanium Backup, but it did the same thing. I tried Android Backup app, but it won't restore what I backed up.
Where can I find the specific contacts file and what is the best way to back it up and restore it?
This isn't a direct answer to your question however the simplest and most foolproof way is to go into contacts and export the list. You can take that file and import it into your gmail contacts (the option is there). After that you can move the email addresses to another folder within your gmail contacts. (They'll still be just as easily accessed when emailing) After that when you do gmail sync it will always bring back just the phone numbers. Then it's as easy and adding that acccount within your rom. Hope this helps....
Sent from my SPH-D700 using XDA App
worked! Thanks so much.

[Q] Titanium Backup - contacts data

I have rooted my Droid X and installed Titanium Backup. I want to do a backup but am concerned with including the contact and calendar data. Since I am on an Exchange account and Gmail, I don't need to back up the actual data files. What are the names of the data files for contacts and calendar? There are several "Contacts...." and "Calendar..." files. One says storage, another data, which one do I exclude?
adevan said:
I have rooted my Droid X and installed Titanium Backup. I want to do a backup but am concerned with including the contact and calendar data. Since I am on an Exchange account and Gmail, I don't need to back up the actual data files. What are the names of the data files for contacts and calendar? There are several "Contacts...." and "Calendar..." files. One says storage, another data, which one do I exclude?
Click to expand...
Click to collapse
i have found if i restore ANY data i have the syncing symbol on my notifications bar all the time, i do the batch Restore all missing apps and click app only from now on
If you have them syncd to your Gmail account, they are ALWAYS backed up. Menu, Settings, Accounts & Sync, check the "Contacts" check box and all of your contacts sync to Gmail.
I do understand that the are essentially backed up via sync with Gmail and/or corp exchange. That is why I don't want to backup that data with Titanium Backup. When I open Titanium Backup, I do the following.
Select Backup/Restore tab
Select Menu>Batch
Select Run Backup all system data
When I scroll down, I see the following Contacts files
Contacts 2.2.1
Contacts Storage 2.2.1
Contacts Sync 2.2.1
Contacts Sync Adapter 2.2.1
ContactsData 2.2.1
ContactsUnconnected 2.2.1
Which of those files should I deselect so if I need to do a restore I don't receive duplicate contacts?
Sent from my DROIDX using XDA App
adevan said:
I do understand that the are essentially backed up via sync with Gmail and/or corp exchange. That is why I don't want to backup that data with Titanium Backup. When I open Titanium Backup, I do the following.
Select Backup/Restore tab
Select Menu>Batch
Select Run Backup all system data
When I scroll down, I see the following Contacts files
Contacts 2.2.1
Contacts Storage 2.2.1
Contacts Sync 2.2.1
Contacts Sync Adapter 2.2.1
ContactsData 2.2.1
ContactsUnconnected 2.2.1
Which of those files should I deselect so if I need to do a restore I don't receive duplicate contacts?
Sent from my DROIDX using XDA App
Click to expand...
Click to collapse
all of them
Funnyface19 said:
i have found if i restore ANY data i have the syncing symbol on my notifications bar all the time, i do the batch Restore all missing apps and click app only from now on
Click to expand...
Click to collapse
This has been fixed in the newer versions. (At least in my experience) the last restore I did with TiB I restored EVERYTHING and do not have the sync symbol stuck there anymore. This used to happen to me also but not as of late with the newer updates of Ti.
Sent from my DROIDX using Tapatalk
I have gotten a replacement DroidX and this has happened to others as well. While other I had did not have this phenomenon. But after I reestablished root and installed Titanium Backup, i notice "ContactsUnconnected 2.2.1" is frozen. I unfreeze it, reboot, and it is frozen again. And I never froze it to begin with. And my previous DroidX did not have it frozen do I have yet another possessed DX? With a mind of it's own? Wanting to be a real Android (boy)?" (bad Pinochio" reference). What exactly DOES "ContactsUnconnected" do? Is it still an unknown variable as it has been since day one?
Many thanks in advance. (Please ignore my phone info on my profile if it still says WinMo. As I have not had a chance to update my info yet)

Giving my G2 away - How to "clean" the phone?!

I am giving away my phone to a friend, but how do I "clean" the phone?
Like, I want to erase/uinstall all the apps I've downloaded and installed, empty my messages, folders and camera files... Make it look like "new"..
Can I save my sms/text messages + contacts and their details on my PC or something? Or can I perhaps put them on my sim-card as I won't be giving away the sim-card?
I will be using another android phone, of course.
There are various programs on the market that perform sms backups/restores. I use SMS backup+ to backup my sms every few hours automatically to my gmail account under a label entitled "SMS." I think there is an option to restore SMS in that app too.
As for contacts, they should be backed up with your google account (email). Log into your google account on a computer and under contacts will be various groups. I've created a group specifically with phone numbers to appear under my contacts on android (Contacts [push menu]> display>click google account.and check the contact group you want on the phone).
By default, google will back up your contacts. Under settings, push accounts and sync, and manage your google account. There, the Sync contacts should be enabled and all of your contacts will sync to the google account (where you can edit the groups I've outlined above).
I would connect the phone to a computer, create a folder, and copy all of the contents of your SD card into that folder just in case. When you're ready to pass on the phone, wipe the sd card (on the computer or on the phone by settings>storage>erase sd card).
Reboot into recovery and wipe data, cache, etc. There might be a factory reset option as well. If you aren't rooted, I'm not sure, but there might be a key sequence that does the wipes for you. Try a google search for that.
elgy said:
I am giving away my phone to a friend, but how do I "clean" the phone?
Like, I want to erase/uinstall all the apps I've downloaded and installed, empty my messages, folders and camera files... Make it look like "new"..
Can I save my sms/text messages + contacts and their details on my PC or something? Or can I perhaps put them on my sim-card as I won't be giving away the sim-card?
I will be using another android phone, of course.
Click to expand...
Click to collapse
market - smsbackup - works great here, puts all your sms on your sdcard. then email them to yourself.
then
settings - factory reset (wipes everything you ever did off the phone)
if you make a TiTanium Backup of the device first, you can just move everything from the sdcard to your new phone, or let google take care of the settings (online backup). either way, it's pretty painless.
what are you getting next ?
should take
If you're rooted you can data wipe from within CWM and format your sd card and also for backing up you can use mybackup very handy application. It'll backup your apps, sms, call logs, contacts and your media(camera pictures, videos)
Menu -> Settings -> Privacy -> Factory Data Reset

Help! Contacts gone after Flash!

Hey all,
I just succesfully flashed Android 2.3.4 to my SGS. Also I succeeded in restoring all my apps with Titanium Backup (I didn't restore System-Apps and Data). I linked the new system to my Google Account, and hoped that my phone contacts would be restored. However they are all gone and although my phone syncs with my Google Account it doesn't retrieve the contacts. What can I do? Are they somewhere in the Titanium Backup?
Thanks for your help.
have you checked that you set your phone to show you google contacts?
you can set it in display settings in your contacts

Live ID Change

Can anybody confirm this works?
Hi all,
I have found a way to remove the main Windows Live account associated with the phone and insert another one without having to Hard-Reset the device.
Removing the main WL account might be indicated in the following conditions:
Improper Region Selected with Your Account
Switching between 2 Windows Live accounts
Problem with Contact Sync through Windows Live
Problem with Contacts stored locally on phone
Requirement:
Dev-Unlocked Windows Phone
WP7 Root Tools
Procedure:
Goto WP7 Root Tools or any other file explorer on the device
Navigate to \Application Data\Microsoft\Outlook\Stores\DeviceStore\
Rename store.vol to store.vol.txt (or anything else) - can be used as a backup
Restart the phone
WP might indicate that there was a problem with updating and all your messages, contacts and accounts data have been removed.
Now you can manually add them again.
Please note that, all your stored emails, messages, locally stored contacts and other data associated with your setup accounts will be erased from the device (can backup by restoring store.vol.txt to store.vol). Make sure you sync your contacts before proceeding with this.
Click to expand...
Click to collapse

Categories

Resources