Quote:
Originally Posted by lokiUnbound
( CORRECTED... )
You can modify the user directly using sqlite3, if you have root access. This prevents you from losing your contacts.
First, do a full backup using JF recovery console.
Then do a backup of your contacts DB, just in case and for reference:
Code:
adb shell
su
cd /data/data/com.android.providers.contacts/databases
cat accounts.db > /sdcard/accounts.db
Then copy it from the SD card to your computer.
Modify your account:
Code:
adb shell
su
sqlite3 /data/data/com.google.android.googleapps/databases/accounts.db << EOF
update accounts set username = 'MYACCOUNT@gmail.com';
delete from authtokens;
EOF
sqlite3 /data/data/com.android.providers.contacts/databases/contacts.db << EOF
update groups set _sync_account = 'MYACCOUNT@gmail.com' where system_id = 'Contacts';
EOF
sqlite3 /data/data/com.google.android.gm/databases/gmail.db << EOF
update accounts set user_name = 'MYACCOUNT@gmail.com';
EOF
and reboot. Go to Settings -> Data Sync, press Menu and Sync Now.
I am not sure if there's any additional action required to sync contacts, because I don't sync my contacts to gmail. You might have to touch the _sync columns in the contacts database.
|
just a modification, tested on Nexus S =>
update accounts set username = 'MYACCOUNT@gmail.com';
change to
update accounts set name = 'MYACCOUNT@gmail.com';
and reboot. I don't used over options ie sync et gmail
Galaxy S3 : Rom Omega JB V36
Kernel : Boeffla-Kernel
Baseband: BUELK1
Sorry for my bad english... i try to do my best...
|