• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[MODULE] Universal GMS Doze

Search This thread

GrayJack

Senior Member
Sep 16, 2012
521
207
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
80
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
477
162
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: 158

73sydney

Senior Member
Jul 21, 2018
1,682
1,376
Sydney
Google Pixel 2 XL
Can you recommend applications to check the functionality of the module?

No app needed.

Use either of the first two commands in Post #2:

 
  • Like
Reactions: camellbizz

ariscma355

New member
Sep 27, 2018
3
1
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).

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).
Thank You Very Much....working great on Miui 12
 

asusgarb

Senior Member
Jul 4, 2010
1,781
346
In case this would cause delayed notifications, what is the better way to solve the bug?
is it enough using the command line (post 2), or will be better remove the module and, after that, use the command line?
 

alefmm

Senior Member
May 15, 2013
122
31
Xiaomi Poco F3
Any idea to solve this?
All on my possibilities have done but still running in second plan. Other devices it doesn't happen.


Using BBS it show the same results, I can't link gservices issue with other processors, services or app.
Any idea to help me?

Device: Alioth (Poco F3)
ROM: Lineage OS 18.1 (A11)
Firmware: Tested 12.5 and 12.0.3 (Global)
SIM card: Not insert.

1624367050736.png


1624367059613.png


1624367066799.png


1624367073943.png


1624367082068.png


1624367088758.png
 

thxcertified

Member
Mar 4, 2015
45
16
I have an issue (probably) with 1.8.3...

For some apps (including Gmail and eBay) I don't receive notifications AT ALL anymore. Also tried the delayed notification command - no luck.

I can't really track it down to when exactly it started, but I remember with the 1.8.3 beta everything was working fine, problems started with the newest (non beta) update.

I'm on MIUI 12.6 of xiaomi.eu with a mi 10 pro.

Removing my Google account and readding it didn't bring back notifications. Also deleting the module didn't bring back notifications.

Notifications for whatsapp, telegram, etc. Are working just fine so I have no idea where to start.

Maybe someone on here can help?
 

thxcertified

Member
Mar 4, 2015
45
16
After command, you need to reboot system.
Rebooted several times since then... Even used the command multiple times

Even remove the module, you need to restart gservices manually because it was hibernated.

How do I manually restart Google services? I cleared data and cache in settingsand rebooted but I don't know how to really "restart" it


Open all apps that you need notifications to try wake up gservices.
When I open the apps that don't receive notifications (e. G. Gmail) I see the reason why I SHOULD have gotten a notification (e. G. An email). But the notification still doesn't pop up afterwards (delayed).
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Would you be so kind to share the download link of the patched mixer paths module or where you downloaded it from, thanks
    I don't even think that it'll make someone reacted like this, but well since you're asking for it so here you go.
    1
    Well .... this is my whitelist.
    Lets say I would like to doze,

    com.samsung.android.knox.pushmanager
    com.sec.android.app.samsungapps
    com.samsung.android.game.gamehome

    How would I manage ?
    Modifying file google.xml (located in / system / etc / sysconfig / ) would be enough ?
    (credits to -> https://respuestas.me/q/como-hacer-...y-y-otras-aplicaciones-predetermi-60475271004)


    Many thanks in advance


    >>>>>>>
    Whitelist (except idle) system apps:
    com.sec.vsim.ericssonnsds.webapp
    com.samsung.android.app.galaxyfinder
    com.samsung.android.app.cocktailbarservice
    com.microsoft.appmanager
    com.android.providers.calendar
    com.osp.app.signin
    com.samsung.android.service.airviewdictionary
    com.samsung.android.smartmirroring
    com.sec.android.app.safetyassurance
    com.samsung.android.easysetup
    com.samsung.android.aware.service
    com.sec.android.easyonehand
    com.samsung.android.rubin.app
    com.android.providers.downloads
    com.sec.android.widgetapp.easymodecontactswidget
    com.samsung.android.knox.pushmanager
    com.sec.android.app.samsungapps
    com.samsung.android.game.gamehome
    com.sec.android.daemonapp
    com.android.vending
    com.samsung.android.knox.attestation
    com.samsung.android.privateshare
    com.sec.android.mec.mecagent
    com.samsung.cmh
    com.samsung.android.sm.devicesecurity
    com.samsung.android.service.stplatform
    com.android.mtp
    com.samsung.android.messaging
    com.samsung.android.app.telephonyui
    com.samsung.android.bixby.agent
    com.sec.imsservice
    com.facebook.services
    com.samsung.android.mobileservice
    com.samsung.android.mdx.kit
    com.samsung.android.kgclient
    com.samsung.knox.securefolder
    com.samsung.android.game.gametools
    com.samsung.android.app.contacts
    com.samsung.android.service.peoplestripe
    com.samsung.android.app.smartcapture
    com.sec.android.app.clockpackage
    com.sec.spp.push
    com.android.proxyhandler
    com.samsung.android.allshare.service.fileshare
    com.samsung.android.authfw
    com.samsung.android.dialer
    com.sec.android.app.ringtoneBR
    com.samsung.android.game.gos
    com.samsung.android.forest
    com.samsung.android.hdmapp
    com.samsung.android.beaconmanager
    com.sec.unifiedwfc
    com.samsung.android.fast
    com.samsung.android.app.notes
    com.google.android.apps.turbo
    com.samsung.android.bluelightfilter
    com.samsung.android.service.aircommand
    com.samsung.android.providers.contacts
    com.android.shell
    com.google.android.apps.carrier.carrierwifi
    com.samsung.android.app.appsedge
    com.samsung.android.sdk.handwriting
    com.facebook.appmanager
    com.google.android.cellbroadcastreceiver
    com.samsung.android.allshare.service.mediashare
    com.samsung.android.cidmanager
    com.samsung.sec.android.application.csc
    com.samsung.android.video
    Whitelist system apps:
    com.sec.vsim.ericssonnsds.webapp
    com.samsung.android.app.galaxyfinder
    com.samsung.android.app.cocktailbarservice
    com.microsoft.appmanager
    com.osp.app.signin
    com.samsung.android.service.airviewdictionary
    com.samsung.android.smartmirroring
    com.sec.android.app.safetyassurance
    com.samsung.android.easysetup
    com.samsung.android.aware.service
    com.sec.android.easyonehand
    com.samsung.android.rubin.app
    com.android.providers.downloads
    com.sec.android.widgetapp.easymodecontactswidget
    com.samsung.android.knox.pushmanager
    com.sec.android.app.samsungapps
    com.samsung.android.game.gamehome
    com.sec.android.daemonapp
    com.samsung.android.knox.attestation
    com.samsung.android.privateshare
    com.sec.android.mec.mecagent
    com.samsung.cmh
    com.samsung.android.sm.devicesecurity
    com.samsung.android.service.stplatform
    com.android.mtp
    com.samsung.android.messaging
    com.samsung.android.app.telephonyui
    com.samsung.android.bixby.agent
    com.sec.imsservice
    com.facebook.services
    com.samsung.android.mobileservice
    com.samsung.android.mdx.kit
    com.samsung.android.kgclient
    com.samsung.knox.securefolder
    com.samsung.android.game.gametools
    com.samsung.android.app.contacts
    com.samsung.android.service.peoplestripe
    com.samsung.android.app.smartcapture
    com.sec.android.app.clockpackage
    com.sec.spp.push
    com.samsung.android.allshare.service.fileshare
    com.samsung.android.authfw
    com.samsung.android.dialer
    com.sec.android.app.ringtoneBR
    com.samsung.android.game.gos
    com.samsung.android.forest
    com.samsung.android.hdmapp
    com.samsung.android.beaconmanager
    com.sec.unifiedwfc
    com.samsung.android.fast
    com.samsung.android.app.notes
    com.samsung.android.bluelightfilter
    com.samsung.android.service.aircommand
    com.android.shell
    com.samsung.android.app.appsedge
    com.samsung.android.sdk.handwriting
    com.google.android.cellbroadcastreceiver
    com.samsung.android.allshare.service.mediashare
    com.samsung.android.cidmanager
    com.samsung.sec.android.application.csc
    com.samsung.android.video
    Whitelist user apps:
    com.samsung.android.ipsgeofence
    com.samsung.accessory
    I'd say better to keep them like that, untouched and unmodified. That's Samsung system stuff, I don't want something bad is happened to your phone.
  • 159
    Universal GMS Doze

    Overview:
    • Optimized and adjusted Google Play services.
    • Patching process is handled by a command script, which detects default file location and any conflicting modules.
    • Support API 23 or later.
    • Support Magisk Live or Custom Recovery installations.

    Contents:
    • Base extensions
      cc: 1.1 (1115)
      dd: 1.2 (0610)
      gmsc: 1.2 (0610)
      module: 1.8.3 (0610)
      code: 183

    Credits:

    Extras:
    59
    Troubleshooting:
    • Command-line for check optimization (with add-on installed):
      Code:
      > su
      > gmsc
      [/LIST]
    • 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 history:
      v1.8.3 (2021.06.10)
      • Android 12 support
      • Additional boot complete check
      • Multi-User support
      • Set ignore for GMS and IMS WRITE_SETTINGS
      • Minor improvements


    • v1.8.2 (2020.11.15)
      • 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 (2020.09.25)

      • 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 (2020.09.03)

      • 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: