What to do when your Android smartphone can’t connect to Google services?

What to do when your Android smartphone can’t connect to Google services?

Screenshot_2015-03-29-20-59-04

This post is for all those people who might be facing the same problem.

What are the ‘symptoms’?

There is only one symptom. Any services provided by Google will not be able to access the internet. This includes Google Play Store, Google+, YouTube, Gmail, Hangouts, what not?

[‘Internet’ includes both WiFi and mobile data]

Screenshot_2015-03-29-20-59-12
This is what I saw whenever I opened Play Store
Screenshot_2015-03-29-20-59-04
I could live without Play Store. However, Gmail, YouTube, Hangouts – everything stopped working!

However, the apps that are not provided by Google (your internet browser, apart from Chrome, for example, or WhatsApp) will be able to access the internet.

But, chances are, the third-party apps won’t be able to provide push notifications.

Why would this happen?

I have no idea why this would happen. Occasionally, I tweek certain ‘regions’ of my smartphone. Chances are I might have done something accidentally. But, one of my hostel mates encountered a similar problem a week ago. I know this for sure: he doesn’t do much ‘tweeking’.

Solutions?

I’ll provide a couple of solutions. Try the next one if the previous one fails.

First solution set:

  1. Toggle airplane mode. Toggle WiFi.
  2. Reboot your smartphone. (If the problem is solved, stop here)
  3. Reset the date/time. Enable network provided time.
  4. Stop Google Play and Google Play Services from ‘All Apps’ under ‘Apps’, in ‘Settings’. Clear the cache of the two applications.
  5. Reboot your smartphone.

Second solution:

This is the method I used. However, before proceeding, you should note that you need root permissions in order to try this method.

If you have root permissions, follow these steps, in the given order:

  1. Open your file explorer. You need an explorer that can access the System partition of your phone. I use FX, bundled with the Root Add-On. Also, your explorer needs to be granted SU permission. Another popular file explorer is ES File Explorer. Screenshot_2015-03-29-21-18-03
  2. Open your system partition.
  3. Open the folder ‘etc’. Screenshot_2015-03-29-21-19-59
  4. Find and delete the file named ‘hosts’ (without any extension). Screenshot_2015-03-29-21-20-18
  5. Reboot your smartphone.

[This method didn’t make my (stock) ROM unstable, so you can take some assurance from that] Google services should resume working, after this 🙂

Notifications - of the past two to three days - soon started pouring in after I followed this process.
Notifications – of the past two to three days – soon started pouring in after I followed this process.