[MODULE] Universal GMS Doze

Search This thread

AllanEloy

Member
Oct 6, 2015
33
4
Samsung Galaxy S22 Ultra
This is beta build, nothing special in particular except I try to create a new one that someone pulled request to the repo and I need to know does it work or not (especially for those that don't have the module working yet).
Op, thanks for this module!

It works wonders. But i have question, I use Whatsapp WEB a lot in my work, but with this module turned ON, after a couple of minutes with the screen off, whatsapp web goes offline.
As soon as I unlock the phone, whatsapp web connects again.

I have battery optimization OFF for whatsapp.. Any thoughts? Is it possible to completely white list whatsapp from dozing?
 

exnokiafan

Senior Member
Aug 29, 2014
356
49
Hi @gloeyisk ! I have been using your module for a long time.

Now I have a rooted OnePlus Nord with the latest Android 11 stable update. I have to report that Google Maps keeps crashing. I casually came across a thread on your github about that specific issue.

I have to report that Google Maps stops crashing if I disable your module (the latest November version).

Any solution? :)
 
  • Like
Reactions: Fishawy

Fishawy

Senior Member
Mar 26, 2010
3,719
1,312
Melbourne
Google Pixel 7 Pro
Hi @gloeyisk ! I have been using your module for a long time.

Now I have a rooted OnePlus Nord with the latest Android 11 stable update. I have to report that Google Maps keeps crashing. I casually came across a thread on your github about that specific issue.

I have to report that Google Maps stops crashing if I disable your module (the latest November version).

Any solution? :)

Thanks for that, I was going crazy trying to figure this out.

Same here. Maps started crashing after upgrading my OnePlus 7T today to Android 11 stable. Disabling the module restores the maps functionality.

Hopefully this can be fixed.
 

n0j0e

Senior Member
Hi @gloeyisk ! I have been using your module for a long time.

Now I have a rooted OnePlus Nord with the latest Android 11 stable update. I have to report that Google Maps keeps crashing. I casually came across a thread on your github about that specific issue.

I have to report that Google Maps stops crashing if I disable your module (the latest November version).

Any solution? :)
 
  • Like
Reactions: Fishawy

exnokiafan

Senior Member
Aug 29, 2014
356
49

danbest82

Senior Member
This is beta build, nothing special in particular except I try to create a new one that someone pulled request to the repo and I need to know does it work or not (especially for those that don't have the module working yet).
1.8.2 acts like Google play services needs an update but won't let me sign in to Google play store. 1.8.3 allows me to update and seems to work so far. Just installed and still making sure everything works. Android pie on LG V30, services 21.09.15.
 

GrayJack

Senior Member
Sep 16, 2012
531
220
Silent Hill
So i add
Code:
<!-- Specify the explicit set of other applications whose app data directories are
        accessible by other applications. -->
    <app-data-isolation-whitelisted-app package="com.google.android.gms" />
in..

/data/adb/modules/UniversalGMSDoze/system/etc/sysconfig/google.xml

Google Maps works great for now but i didn't know if this makes the module faulty or something!?
In fact you just disabled the com.google.android.gms from being dozed :)

I can confirm the issue with Google Maps (and generally getting maps information from Google Play Services being dozed) - more info in github was published.
 

loshabih

Senior Member
Jul 2, 2012
120
11
Op, thanks for this module!

It works wonders. But i have question, I use Whatsapp WEB a lot in my work, but with this module turned ON, after a couple of minutes with the screen off, whatsapp web goes offline.
As soon as I unlock the phone, whatsapp web connects again.

I have battery optimization OFF for whatsapp.. Any thoughts? Is it possible to completely white list whatsapp from dozing?
I've same issue, did you able to solve it?
 

Burt Squirtz

Senior Member
Feb 11, 2018
608
295
Google Pixel 6
I'm not sure if the module is working properly, because when I go to Google Play services, it only gives the option for 'intelligent control,' or 'not optimized'. There's no 'optimized' choice. (OnePlus 9 Pro and the newest version of oxygen OS.)
 

Attachments

  • Screenshot_20210521-205303.jpg
    Screenshot_20210521-205303.jpg
    311.8 KB · Views: 210

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: