[MODULE] Universal GMS Doze

Search This thread

ceejay105

Senior Member
Dec 31, 2012
79
15
Hello guys, how do I install this module on my Huawei Watch 2? It obviously has no volume button, so I can't press one on installation. Anything I am doing wrong? Thanks in advance and stay safe.
 

Zaxx32

Senior Member
Mar 23, 2019
626
230
Morgantown
Moto G5 Plus
Moto G7
fwiw...it seems to be working for me...afaik lol But I'm also running:

Stock Ore0 8.1
Greenify (Donation Package) -Greenifying system apps enabled....GCM push enables
Servicely 8.1.1 Pro- Forces all apps (except WL) to standby on screen off...incl. google play services
main com.Google.android.GMS 'prevented from running in the backround under no circums.'

Google Play Service is Optimizing.....Find My Device - Off Is it just Pie and Q having issue with these 2??

From last night thru this morn. Used 1% for all night idle!!

For me it's Greenify Donate w/Xposed Opts. installed as a system app
Servicely 8.1.1 Pro - installed as a system app
L-Speed 2.1.6 - installed as a system app
LeanDroid Pro 4.1.3 (ROOT)
 
  • Like
Reactions: gloeyisk

BatZzn

Senior Member
Nov 20, 2011
566
135
Xiaomi Mi 10T / 10T Pro
Also, I don't understand why everyone keeps asking about new version if the released ones are working fine, just be patient and stop asking about ETA.

Latest beta is working fine on my phone Google services are dozed but I have some WiFi disconnects especially when the screen is off. After the phone wakes up it connects again. It was on mobile network before.
Beside from that I have no issues :) And as you say, if the recent version is doing it's job, why update? :good:
 
  • Like
Reactions: gloeyisk

Gruber008

Senior Member
Jul 17, 2011
329
127
Split
Great that a recent version works for YOU! For many others here not, including me. Tried 4 versions and none works with crDroid 6.6 and latest OpenGapps.
Hoping for an update.

You're on OnePlus 5/5T if I recall correctly from some other threads, right?
Well I had OnePlus 5 until one month ago and it worked just fine on stock ROM, did you consider that it collides with crDroid and/or Gapps you're using, did you check if anyone else is experiencing the same issue with that particular ROM?
 

eebssk1

Member
Oct 20, 2015
48
2
23
Changshu
Find my device won't turn off after boot.I have written a script to constantly disable these services more aggressively,however they don't work.But when i run manually in terminal they do the work....I'm confused now..
 

nabril15

Senior Member
Hello
This question may not be for this thread, and I ask it humbly. Two nights ago, I lost 20% battery overnight, so I installed BBS to try to find the cause.
The screen shot shows Doze Idle Time as a high user. I have xxx installed on my oneplus 7pro, and in that rom, there's an option for Universal GMS Doze and I have it enabled.
Could the high drain be related to this setting?
Thank you
 

Attachments

  • Screenshot_20200521-080020.jpg
    Screenshot_20200521-080020.jpg
    239 KB · Views: 940
  • Screenshot_20200521-080107.jpg
    Screenshot_20200521-080107.jpg
    249.1 KB · Views: 944

Top Liked Posts

  • There are no posts matching your filters.
  • 176
    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 (Archives):
    -
    GitHub Releases
    - Mediafire
    - MEGA
    - SourceForge
    - Telegram

    Credits:
    - @topjohnwu
    Magisk - Magisk Module Template
    - @MrCarb0n
    Script / syntax helper

    Extras:
    - Donation: PayPal - LiberaPay - Ko-fi
    - Source Code: GitHub
    70
    Troubleshooting

    - Command-line for check optimization (with add-on installed):
    Code:
    > su
    > gmsc

    - Command-line for check optimization (general):
    There's a line written Whitelist (except idle) system apps: and if com.google.android.gms line does not exist it means Google Play services is optimized.
    Code:
    > su
    > dumpsys deviceidle

    - Command-line for fix delayed incoming messages issue:
    Code:
    > su
    > cd /data/data
    > find . -type f -name '*gms*' -delete

    - Command-line for disable Find My Device:
    Code:
    > su
    > pm disable com.google.android.gms/
    com.google.android.gms.mdm.receivers.MdmDeviceAdminReceiver

    Change Log

    - 1.9.0
    Android 14 support
    Fixed synchronization for Location Sharing and Play Games


    - v1.8.8
    A long-awaited hotfix
    Addresses script that caused patching XML gone wrong
    Raised Magisk Boot Service to 100 seconds

    - v1.8.7
    Android 13 support
    Added GMS to battery optimization and disabled another components
    Fixed broken API checking and Multi-User support
    Moved to inbuilt (Magisk) BusyBox
    Improved pre-boot conflict fixer and proper boot script execution
    Improved superuser checking method and used cmd flag arguments
    Improved XML patching logic
    Minimized root path checking depth
    Revived overall code quality and syntax
    Rewrite GMS state checker bin

    - v1.8.6
    Added /system_ext detection support
    Improved patching detections (Allow to revoke location permissions)

    - v1.8.5
    Added updateJson support
    Improved patching detections (XML files)

    v1.8.4
    - Removed redundant script (GMS: Stay with disabling Find My Device only)

    - v1.8.3
    Android 12 support
    Additional boot complete check
    Multi-User support
    Set ignore for GMS and IMS WRITE_SETTINGS
    Minor improvements

    - v1.8.2
    Android 11 support
    Improved installation (Magisk Live and Custom Recovery)
    Improved patching detections (XML files and conflicting modules)
    Integrated add-on (run 'gmsc' with superuser rights for check optimization status)
    Set ignore for GMS and IMS BOOT_COMPLETED
    Set ignore for GMS and IMS AUTO_START (custom permissions for Oxygen OS)
    Updated template

    - v1.8.1
    Integrated custom recovery installation
    Added boot logic for search and patch any conflicting modules (if present)
    Whitelisted IMS and Turbo (this should fixed location crash issue in MIUI)

    - v1.8.0
    Initial re-release
    100 seconds Magisk Boot Service
    35
    So this is it guys, both of my old machines are totally broken and some parts are get burned. I've no idea to revive it since my money were spent for my primary demands. I've built ±5 beta builds available in the support group (if you want to) but there's no special things since I'm still tinkering with every devices that Find My Device doesn't disabled automatically. Talking/sharing in here or in support group would be a nice place to find other workarounds. I'm so sorry for the lack of updates, also I just want to tell that I'll married soon.

    Keep up all of your supports, sorry for the inconveniences.
    Have a nice day!
    30
    New stable build is up!​

    This is like a dilemma, where I've to continue this GMS optimization stuff or not. But I got a few ideas lately where my loyal supporters always ask about GMS optimization and this is the answer. I will continue to try to make this module work well, stable, efficiently and of course optimized GMS.
    Please remember to read installation guides on OP, and don't use similar modules or tweaks because I won't know where the issue came from that might one day happens to you. I would like to say Thank You to all my supporters for my simplicity-oriented-usability project.
    Happy flashing :fingers-crossed:
    27
    GL-DP wishes you Happy Eid Mubarak
    and
    Here's the Stable Update!​

    I've made a lot of changes regarding I'll stop/drop supports or works for optimizing GMS. Now I'm starting to focus to prevent unnecessary GMS running in the background with my own modified services in hope for getting better battery life. Please note that I'm not referred you to use similar modules while reporting any issues you've faced of. So I can check whether the wrong is from my module or in your ends.

    While the ponds is starting to dry, don't forget that the ponds will stay wet when the rain comes.
    Happy flashing! :fingers-crossed: