google play services

We know, sleep is an important factor for human health.Well, it is also a deciding factor for Android deviceโ€™s battery health. Sounds intriguing.?! Well, when not in use certain Android apps run in the background leading to battery loss.Some apps can be optimized whereas some cannot be optimized.Google Play Services is such an app that cannot be optimized and it keeps running in the background.So is there any mechanism to stop google play services from running in the background? Meanwhile, you may also want to checkout our ultimate guide to save battery on Android post.

Google Doze

Google introduced a feature called Doze, with the release of Android 6.0 Marshmallow. Normally Android apps run in the background, checking for

  • checking for notifications.
  • receiving and installing updates

But, it is ok if the phone is being used. But if your device is idle, yet appsย are running in the background, then it will drain the battery.
Here is when Doze comes to action.ย Doze only works when your phone is completely still.

That means

  • Phone has to be completely motionless/hibernates.
  • You shouldnโ€™t carry it in the pocket. (Doze will detect motion through ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย  ย accelerometer and wonโ€™t work)
  • onlyย high priority notifications/phone calls and messages are allowed to run.
  • Apps will not constantly sync in theย background.

ย  Exceptions On which Doze Wonโ€™t Work

We have to manually set Apps to optimizedย or non-optimized so that unused Apps would sleep.Hence, battery life will stretch.

Notifications of Apps set to โ€œHigh priorityโ€ will come through, even when the phone is in Doze mode.
In case of

  • Incoming phone call
  • Text Messages
  • Messages from Phoneโ€™s Network provider
  • Alarms

Doze will allow these above-mentionedย applications to wake the device and let the user know of incoming notifications.

How To Set an App as Optimised, So As To Make Doze Work

Well, like we mentioned above we can select which Apps we need to run in the background and which Apps needed to be optimized.

Step-1 ย on your Android device, go to Settings > Battery

Step-2 Tap the menu button.

Step-3 Tap Battery optimization.

By default, every app will be optimized, and youโ€™ll see the phrase โ€œOptimizing battery useโ€ in the list. In addition to that, You can Optimize the Apps according to your requirement.

stop Google Play Services from running in the background
Optimize the Apps You want, so that Doze will work on these Apps

To prevent an app from dozing,ย tap it in the listย and select โ€œDonโ€™t optimize.โ€
Android will allow that app to run in the background, evenย while your device is dozing.

stop Google Play Services from running in the background
You can select an App to remain Non-optimized by selecting Donโ€™t Optimize option

Google Play Services: Prime Culprit for Battery Life Reduction

Most noteworthy fact about Google Play Service is it always runs in the background and contributes to a steady loss of battery.

In addition to that, Doze feature does not work on Google Play Service.
In simpler words, we cannot optimize the Google Play Services application.

Even if we optimize other apps and our device enters Doze mode, Google Play Service is still running in the background.

If You want to see a list of all apps installed on your device,

Tap the โ€œNot optimizedโ€ menuย and select โ€œAll Appsโ€.

stop Google Play Services from running in the background
go to Settings > Battery > Not Optimized to see the non-optimized Apps that are not affected by Doze

And yes You guessed it right.You can see Google Play Services on that list. It would mention against Google Play Service that โ€œBattery Optimization Not Availableโ€ !!!

stop Google Play Services from running in the background
Optimization option is unavailable for Google Play Services by default

So, whyย there is no battery optimization option available for it ??!

And the Question of the day, how to stop Google Play Services from running in the background ??
So, let us check that out.

Why Google Play Services Optimization Option Is Not Available

The reason for optimization option not being available for Google Play Service is due to a configuration i/system/etc/sys_config/google.xmlย .this configuration Whitelists Google Playย Services from being affected by the DOZE Mechanism.

To make Google ย Play Services optimized, we have to remove the whitelisting.

So, how to do that?

How To Stop Google Play Services From Running In The Background

You need to download and install a module in order to stop Google Play Services from running in the background. By installing this module, you can change Google Playย Services from the โ€œAppย Not Optimisedโ€ list to โ€œAppย Optimisedโ€ state.

How to Download

You can download the module here.

How To Install

After downloading the module,

Step-1 ย  Installย it through MAGISKย MANAGER.

Step-2 Then Reboot.

Step-3 On your device, go to Settings > Battery.

Step-4 Tap on the tri-dot menu on the top right side.

Step-5 Select ย Batteryย Optimisation.

Step-6 ย Select Allย Apps and switch ON the toggle forย Google Playย Services.

stop Google Play Services from running in the background
After installing the mod, option for optimizing Google Play Services is now available

Compatibility, Advantages, and Disadvantages

This Module is compatible with any Android Marshmallowย andย Nougatย ROM ย that hasย Google Playย Services Installed on it.

Nougat usersย may not find systemย appย onย Batteryย Optimisation list, but they can use 3rd partyย appย like Greenify or Naptime to open Doze Whitelist.

Well, everything comes with its own set of Pros and Cons.

Installing this mod, you get the following advantages

  • * You can optimize Google play Services
  • * Battery life your device will be saved up to great extent.
  • * You can additionally use 3rd party Apps like Greenify to further optimize your Apps.

And it has disadvantages tooโ€ฆ

  • * Some of the incoming notifications in optimized Apps might be delayed.
  • * This feature will only work on Android 6.0 and above.

Therefore, now that you know how to stop Google Play Services from running in the background using Doze, you should give it a try.

Doze is the perfect fix for unnecessary loss of battery life.

So, call it a day and go Doze off your Android devices.

Thanks to โ€“ otonieru


Swayam Prakash Avatar


Leave a Reply