Universal GMS Doze
Overview
- Patches Google Play services app and certain processes/services to be able to use battery optimization
- Support API 23 or later
Download Links (Archive)
Troubleshootings
- Command-line for check optimization (with module installed):
> su
> gmsc
- Command-line for check optimization (in general):
There's a line writtenWhitelist (except idle) system apps:
and ifcom.google.android.gms
line does not exist it means Google Play services is optimized).
> su
> dumpsys deviceidle
- Command-line for fix delayed incoming messages issue:
If the issue still persist, move the app to Not Optimized battery usage.
> su
> cd /data/data
> find . -type f -name '*gms*' -delete
- Command-line for disable Find My Device (optional):
> su
> pm disable com.google.android.gms/com.google.android.gms.mdm.receivers.MdmDeviceAdminReceiver
Credits
- @topjohnwu
Magisk - Magisk Module Template - @MrCarb0n
Script / syntax helper
Extras
- Donations: PayPal - LiberaPay - Ko-fi
- Source Code: GitHub
- Support Thread: XDA Developers