[RESOLVED][Q] Unable to add a Google account - A long story [Edit hosts file] - Desire HD Q&A, Help & Troubleshooting

So it started a couple of days ago when I noticed that my Google Maps is not downloading data at all. Google Maps used to be my great companion while trying to know my way around in a new place. I used to mark places and do what not. So, when it stopped working on mobile data, I thought let me wait till I connect to WiFi and fix whatever is bothering it. But no, it didn’t work.
I noticed in Accounts and Sync that my Google account is not in sync any longer. I try but the last sync time/date stays unchanged no matter how I try: WiFi, mobile data, internet pass-through. It just does not sync. Assuming it to be a problem with my Google account, I fire up my laptop and type my credentials on Gmail. Behold! After a wait of more than usual time, I see that my browser cant find the page. I leave the tab open, and try to enter Gmail and I am in. No glitch. I sign out and try again. Same thing: it never logs in when I hit Sign In button. I link this issue to my phone sync and forgot it. Since I work (and live too) in China, it was safe to assume that Google is under heat.
I sync my other personal Gmail account with Windows Live Mail. I noticed that I can login to my personal account (web browser on a laptop) effortlessly. When I try my other Google account on my laptop (account I use with Android), it does not log me in. I work-around it and change my password. I tried to log in but same problem.
I go to my phone assuming it will ask me for a password change, IT DOESN’T. I just doesn’t sync. I try to remove my account from Android to add it again but IT WONT DELETE or be modified. Every time I try to add a new Google account, I get the message: “Can’t establish a reliable data connection to the server” on WiFi, Mobile Data, Internet Pass-through. Nothing works and all bring up the same message. I get pissed off. So then on, I spend two days doing all this ****:
1. Create a new Gmail account and try to add a secondary account on my DHD: FAILED
2. Delete the which-was-working-earlier-account from Google (laptop) and try to sync Android: FAILED
3. Try to add account in MARKET, GMAIL and GTALK Apps: FAILED
Being a happy to go flasher and happy with RCMix Runny 1.3, I get really serious:
4. Wipe using recovery and restore to month old RCMix Bliss 1.3 nandroid backup. FAILED to sync with deleted Google account. Does not ask for change of anything. Just connection reliability error. Add new Google account: FAILED.
5. FULL WIPE and reinstall RCMix Runny 1.5. New setup. Add newly created working Google account during setup: FAILED
6. Try step 4 again after double wipe and everything. FAILED
7. Download ‘Revolution Super Wiper’ and wipe DHD twice. Install RCMix Runny 1.5. Try to add Google account: FAILED
8. Wipe with Super Wipe and install ARHD 6.1.2. Add new Google account: FAILED
9. Super Wipe, almost format SD Card, install ARHD 6.1.2 without SIM card Add Google account: FAILED
10. Give up and rant here in the forum.
Here is what works:
1. I CAN add a Google/Hotmail account in MAIL app. Everything works fine. No issues whatsoever.
2. I am connected on WiFi, Data Connection, Internet Pass-through. Checked and verified. No internet connection issues whatsoever.
Here is what I cannot try:
1. Use the Youtube workaround mentioned almost everywhere: though I did try to fire up the Youtube App.
It leaves very little to guess: if I can write about this for 10 straight minutes, I have ‘wasted’ a lot of my time trying to look for a fix and trying to fix this issue. I may be missing something terribly stupid or something really is wrong.
Who can help?
RESOLVED:
Updated the host file with a line :
74.125.93.113 android.clients.google.com
and I am through adding my new Google account.

Thank you so much... After reading a lot on web, n wasting my whole 2 days i finally got the solution.. I had to root my phone, but that was nothing to solve this problem.. thanks a lot...

I wonder what caused the issue in the first place.
This shouldn't happen by default, but I'm glad you found a workaround and I'm sure a lot of folks will find it useful.
Cheers

Related

MIUI ROM -- can't add Google account

I wrote a more descriptive post explaining how I got here but the forum ate it because it logged me out for taking too long. You want a better explanation, bug the admins about lengthening the timeout.
I installed this, somehow totally hosed it by installing a live wallpaper via push (I didn't do anything weird, just clicked "Install" from my desktop PC and then my tablet flipped the **** out), was forced to reflash it over, now it won't sign in to Google. I select Play app, Existing, username and password, sign in successful what do you want to sync, then it dumps me back at the homescreen. No error, no hint of what went wrong. If I try to open Play Store again it asks for my Google info all over again.
How do I fix this? CAN I fix this? Is there a hardware issue going on here, bad RAM or something? How the hell would I even test for that?
So, I wiped everything... cache, dalvik, data, battery, rotate, system, sdcard, sd-ext, the whole nine yards. Then I updated TWRP (to 2.1.1 from 2.0.0) and reinstalled MIUI. Google sign-in worked the first time. I could install and use the LWP that broke it in the first place too. Whatever, I'll take it!

[Q] Phone is not seen in the playstore account

hey guys, so a month or so ago I flashed a new rom. I think I messed up with the restore though because I remember that Titanium Backup asked if I wanted to update my android ID.
I did.
Everything that i use everyday works fine - EXCEPT - two things that I have noticed.
chrome to phone doesnt work (instant unable to connect error)
And pushing apps from the app store on the web doesnt work (although the playstore on my phone works fine)
I also noticed in the settings of the play store (web based) that it is not showing my phone as being connected anymore.
To be more precise, the "last used" column just has " - - "
So I'm guessing I boned the android ID.
So I did a complete wipe and reinstalled the rom from scratch. Did not restore any apps from the market or from TiBu.
The phone will not show up on the webbased version of the store.
I added my secondary gmail account and it saw it! I was able to push. This is good, but I have purchased apps from the other account.
I wanted to test it out, so i factory reset and added my secondary gmail account as my main.
Now THAT wont push! I have no idea whats going on and how to correct this issue.

[Q] After factory reset, unable to sync Galaxy Nexus with Gmail!

I was able to boot up, and I was upgraded from 4.1.1 to 4.2.1 when I did the data wipe. Starting over, I should have had a prompt to connect with gmail and download my contacts, but this didn't happen. My People app is unpopulated, so I chose to connect to "sign into an account". While I am sure of my login input, it didn't recognize this, and then the process ended with a "couldn't finish - couldn't open connection with the server" error. My contacts are backed up to my PC, but I want to sync them to Gmail for the future, and I should not have to side-load the Play app (if that's even possible). I do have the web browser, and voicemail functions, and they work. Any clue where to go from here?
Some standard apps are missing too, including the Play Store app!

Some Google Services Refuse to Sync

Hello Everyone. I have a Samsung Captivate Glide i927 (AT&T). It was running Omni ROM 4.4 but since the latest Google Play Services update keeps 'crashing' the phone (multiple pop-ups stating that Google Play Services has stopped), I have decided to go back to stock ICS 4.0.4
The problem now is that my Google account isn't syncing properly. My contacts, calendar, Keep notes are unable to sync. I keep getting an error that states that 'Sync is having problems.' I also can't connect to the Google account from certain apps like WhatsApp & SwiftKey keyboard and as a result, I can neither back my chats to Google Drive nor download my customs words for the SwiftKey keyboard app. I can however use the Google Drive app normally. The Play Store also works properly.
I have done everything that I can think of (& read online). They are:
1. Deleting the Google Play Services cache.
2. Emptied the phone's cache. I also formatted it & the Dalvik cache in CWM.
3. Removed my Google account from the phone. Restarted & added the Google account.
4. Reset the phone to factory settings.
5. Re-flashed the official/stock 4.0.4 ROM by using Odin.
6. Changed my Google account password to 'force' everything to 'reset' and resync.
7. I have added a hash prefix to the localhost IP address in the hosts file in the 'etc' folder. I have also deleted it.
Syncing still doesn't work for those services. I am at my wit's end. Please can anyone suggest a solution?
Thanks.

Logging into Google account successful and then asks me to login again

Today I was logged out of my Google account and I needed to login again. After completing the 2FA it starts over again.
I tried restaring my phone, deleting the Google Play Services data, updated Open GApps but it is always the same.
Oddly enough it works with a second user on my phone but happens to other Google accounts for my own user as well. There is no Google account currently in use.
Is there a way to reset the accounts by deleting something in /data? I suspect there is something wrong with the Google logins on my user.
Update: I solved it by deleting /data/system_ce/0/accounts.db and /data/system_de/0/accounts.db. I just found that out by coincidence and now it's working fine again

Categories

Resources