- Patches Google Play services app and certain processes/services to be able to use battery optimization
- Support API 23 or later
- Support Magisk and KernelSU
- 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
- topjohnwu / Magisk - Magisk Module Template
- JumbomanXDA, MrCarb0n / Script fixer and helper
- Donations: PayPal - LiberaPay - Ko-fi
- Source Code: GitHub
- Support Thread: XDA Developers