I rooted my LG G3 awhile back and everything was fine. One day, I couldn't access my gmail or play store using the installed apps due to a connection error. I factory reset my phone and whenever I try to add my gmail account, I get an error that says "Can't establish a reliable connection to the server". How do I go about fixing this?

Note: I'm with Verizon on 4.4.2


2 Answers 2


check date/time

If they are "too far off", it might cause problems with certificates – which then either appear "not yet valid" (with your date too far in the past), or "no longer valid" (with your date too far in the future). Most Google components such as Playstore, Gmail, Sync, use secure communications, and thus rely on certificates.

check the /etc/hosts file

Especially with Custom ROMs or on rooted devices in general, the file might have been altered. Some "ROM cooks" add the IP for Google's servers here "to speed things up" (avoiding "lookup overhead") – with the side effect being things break when those servers are "relocated".

So in that file, there might be multiple entries you need to comment out or remove (check first if that's the case – if not, you can save yourself the trouble). Leave only the local host entry as is. You'll need to remount the system partition read/write to modify this file--, which requires root access. This can be done either via adb shell from your computer, or with a terminal app directly on the device:

$ cat /system/etc/hosts # first check if the work below needs to be done. If so:
$ su
# mount -o remount,rw /system
# cd /system/etc
# cp hosts hosts.bak
# echo " localhost" > hosts

Now see if it works again. If not, you can always restore your original hosts file (note we copied it to hosts.bak). When done, don't forget to remount /system read/write again – either by a reboot, or with mount -o remount,ro /system.

  • What does the date/time have to do with not being able to connect to google account? if it really does have something to do with it, you should probably explain. Editing the hosts file requires root, the original quest does not mention the device is rooted, you should not assume that it is. And if they are rooted, what "entry (or 2)" do they need to have commented out, and why would they be in there if they should be commented out? Commented Jan 7, 2015 at 4:04
  • He did a factory reset so the hostfile would be wiped anyways. Commented Jan 7, 2015 at 5:41
  • -for date and time see user186247 answer -the lg phone was originally rooted and even if you factory reset, the phone still remains rooted. -stop being snarky. if you aren't satisfied with my answers downvote me or provide a better one
    – Seth
    Commented Jan 7, 2015 at 13:16
  • The date and time is fine
    – scream1809
    Commented Jan 7, 2015 at 13:51
  • 2
    Date/time might be an issue for certificate check (when too far off). @MatthewRead since when does a factory-reset modify /system? /etc is nothing but a link to /system/etc (usually). So only "root actions" change it. // Seth: To avoid "snarkyness", please note answers should provide some background on recommended actions ;) You might be right with the hosts file, though – I once had a comparable case.
    – Izzy
    Commented Jan 7, 2015 at 14:49

I had this issue and it was because my phones had year randomly changed to 1990, check your date and time settings.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .