Universal GMS Doze - Optimize Battery Without Sacrificing Notifications
Google Mobile Services (GMS) is a key part of many Android devices that runs almost everything, from notifications to syncing data. But GMS is also known to be one of the main reasons batteries run out quickly because it is always running in the background. The Universal GMS Doze module is a smart way to solve this problem.
This Magisk module was made by gloeyisk and its main goal is to make your battery last longer by using Android’s built-in Doze mode on Google Mobile Services. This will greatly reduce unnecessary GMS background activity when your phone is not in use, which will make your battery last longer.
How Does It Work?
By default, Android puts GMS on a “whitelist” for the system’s battery optimization (Doze). This means that GMS can run in the background at any time, which often causes wakelocks and drains the battery too quickly.
The Universal GMS Doze module works by fixing the Google Play Services app. Like any other app, this patch lets GMS follow the system’s battery optimization rules. The good thing is that the module does this without breaking any important features. You will still get important notifications like WhatsApp messages and emails right away, but less important background sync processes will have to wait until the device is active again.
This module works with a lot of different devices, as long as they have API 23 (Android 6.0) or later. It also works with a number of well-known root methods, such as Magisk, KernelSU, and APatch.
Troubleshooting
You can use a terminal emulator with root access to run a few simple commands to check that the module is working correctly or if you run into any problems.
1. Checking Optimization Status
To check if GMS has been optimized, use the command below:
su
gmsc
Alternatively, you can manually check the system’s exception list. Open a terminal and type:
su
dumpsys deviceidle
Find the line that says “Whitelist (except idle) system apps:” and scroll down. If you don’t see the line “com.google.android.gms” in that list, it means that the module has successfully improved GMS.
2. Fixing Delayed Message Notifications
In rare cases, this optimization might cause delays in notifications from messaging apps. If this happens, you can try clearing the GMS-related cache with the command:
su
cd /data/data
find . -type f -name '*gms*' -delete
If the problem keeps happening, the last thing you can do is go to your phone’s battery settings and change GMS’s status back to “Not Optimized.”
3. Disabling Find My Device (Optional)
To stop GMS from doing even more things, you can turn off Google’s “Find My Device” feature:
su
pm disable com.google.android.gms/com.google.android.gms.mdm.receivers.MdmDeviceAdminReceiver
Credits and Support
The community made this module possible. Thanks to:
- gloeyisk (Main Developer)
- topjohnwu (Magisk Module Template)
- JumbomanXDA, MrCarb0n (Script fixer and helper)
For the source code, discussions, or if you wish to support the developer, please visit the following links:
- Source Code: GitHub
- Support Thread: XDA Developers
- Donations: PayPal | LiberaPay | Ko-fi
Download Link
Module Info
- Module By
- Root SupportMagisk KernelSU APatch
- Source View on GitHub/Source
- Latest Update
- Word Counter 504
- Character Counter 5286
Universal GMS Doze - Optimize Battery Without Sacrificing Notifications is a Module that supports installation on Magisk, KernelSU, APATCH, KSUNext