You can do this if your phone is rooted:
All you have to do is use Root Explorer and go to /data/system/ find accounts.db and rename it to accounts.db.bak so I could just name it back if I had a problem instead of doing a restore. I also did a Nandroid backup.. Reboot your phone and goto settings>accounts and sync>add account and your good to go!!!!
**I would definitely recommend doing a NANDROID backup before, just in case you delete the wrong file accidentally.
I want to delete a Gmail Account from my phone without doing a factory reset, Is it possible?
I had logged into Gtalk and Gmail, through one of my Gmail Id's, but I do not want to use that account as a primary account. I realize I can add as many accounts as possible to Gmail, but there is no option to add another account to Gtalk.
I want to delete the Gmail account or atlaest be able to add another account to Gtalk, without doing a factory reset. Any help is much appreciated.
Hi. It is not necessary to root your phone/tablet
This procedure has worked fine to me:
Important: check that the phone/tablet is in "USB debbuging" mode
1)connect phone/tablet
2) run the following command on terminal on your pc
lsusb
it will show something like this
Bus 001 Device 025: ID
18d1:deed
numbers in bold are the vendor ID
3)run the following comands on you terminal pc
sudo vi /etc/udev/rules.d/50-android.rules
add the following line
SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666"
finally change permissions and restar service
sudo chmod a+rx /etc/udev/rules.d/50-android.rules
sudo /etc/init.d/udev restart
4) go to the adb path (you can download in the link below: file adb_unix.rar) and run
chmod +x adb
5)disconect phone/tablet and run:
sudo ./adb start-server
6)connect phone/tablet again in debbug mode and run
./adb devices
Your window terminal will show something like this:
List of devices attached
0123456789ABCDEF device
It means everything is ok, your are now conected to your device.
7) run this command to get a shell from your device:
adb shell
8) this is the easiest part: rename accounts.db to reset gmail account
run the following commands:
cd /data/system
look for accounts.db
mv accounts.db accounts.db.bak
9)Reboot your phone/tablet and that