• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[MODULE] Universal GMS Doze

Search This thread

alefmm

Senior Member
May 15, 2013
147
36
Xiaomi Poco F3
Rebooted several times since then... Even used the command multiple times



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



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).
If you have a custom recovery (TWRP or OrangeFox) and your ROM allows that:

0. Do your backup before.
1. Dirty install your ROM (just flash the same ROM, without format or Wipes).
2. It will restore your ROM to stock settings.
3. Will be required flash, install and set Magisk/Modules again. Flash then after flash the ROM.
4. Maybe Magisk is enough to restore your modules, after boot check them on it.
 

thxcertified

Member
Mar 4, 2015
45
16
If you have a custom recovery (TWRP or OrangeFox) and your ROM allows that:

0. Do your backup before.
1. Dirty install your ROM (just flash the same ROM, without format or Wipes).
2. It will restore your ROM to stock settings.
3. Will be required flash, install and set Magisk/Modules again. Flash then after flash the ROM.
4. Maybe Magisk is enough to restore your modules, after boot check them on it.

Also did that quite a few times as the beta updates for xiaomi.eu are released every thursday... Still no change... I really don't know what to do anymore 😅
 

enebro77

Senior Member
Aug 19, 2008
388
53
What do you want to be whitelisted, to be exact?
Because I only focus to Google Play services.
You can create your own creation based on my module, and if you find it useful. Use it.

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
 

gloeyisk

Senior Member
Jun 17, 2017
659
1,187
27
Cimahi
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.
 
  • Like
Reactions: enebro77

73sydney

Senior Member
Jul 21, 2018
1,909
1,670
Sydney
Google Pixel 2 XL
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

It would be a spectacularly bad idea to do what you're suggesting

What are you actually trying to achieve? please explain, because there might be other modules etc to achieve what youre trying to do.

But blanket applying one thing across all apps on Android rarely ends well.....
 
Last edited:

73sydney

Senior Member
Jul 21, 2018
1,909
1,670
Sydney
Google Pixel 2 XL
From what I understand I should be able to flash it through TWRP or orange fox recovery? Is it possible or did I just misunderstood?

While flashing magisk modules through TWRP was an option, these days, its probably best to flash it through the magisk manager app, as some modules will not flash with TWRP anymore...

So, tap on last icon on the bottom toolbar...the puzzle piece , and then tap Install From Storage (at top)...locate the module in your storage, tap to install, reboot
 
Last edited:

RainGater

Senior Member
Aug 5, 2013
1,140
690
OnePlus 7
OnePlus 8T
Thank you for this wonderful magisk module.

So, I can flash gms_v1.8.3.zip right from Magisk (v23) on my 8T (Havoc-Android v11) and reboot and don't have to do anything else, correct? After rebbot, Play services will start to behave well?

I see that you have some command line commands to perform if there are delayed messages, for example. Do I have to do any of that or only if the messages are delayed?
 
  • Like
Reactions: gloeyisk

73sydney

Senior Member
Jul 21, 2018
1,909
1,670
Sydney
Google Pixel 2 XL
Thank you for this wonderful magisk module.

So, I can flash gms_v1.8.3.zip right from Magisk (v23) on my 8T (Havoc-Android v11) and reboot and don't have to do anything else, correct? After rebbot, Play services will start to behave well?

I see that you have some command line commands to perform if there are delayed messages, for example. Do I have to do any of that or only if the messages are delayed?

install it, reboot

worry about it if you notice issues

no point trying to worry about things before they happen, you'll develop ulcers...

i didnt make it to 50 by being "risk averse"
 

73sydney

Senior Member
Jul 21, 2018
1,909
1,670
Sydney
Google Pixel 2 XL
Yeah right! Worry about it after sh*$ happens? No thank you!

FWIW, flashed it and didn't see any negative impact so far.
Well, ive been using it since the first version, if there was a risk of anything terrible, i would have pointed that out :)

For the record, pretty much the point of magisk modules is they are reversible, meaning if you have a negative experience, you remove the module and reboot...hopefully this provides some clarity and comfort
 
  • Like
Reactions: gloeyisk

Sourabh Gharde

Senior Member
May 13, 2017
224
43
Sonipat
Thanks a lot. This works for me.
All olivelites (8A) have custom roms (with gapps) have system ui freeze and touch not responding. This isuue is not in vanilla with custom gapps package.
After flashing this module I haven't seen mentioned issue.
 
  • Like
Reactions: gloeyisk

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    I think I've found the culprit. I have naptime installed and the option to disable motion detector seems to be disabling sensors access to gms.
    1
    Q .Which is better installation ?
    Magisk or Custom Recovery

    You should be installing modules via magisk manager these days...
    1
    I'm having problems with maps apps not being able to use compass. It has happened every phone I had since years ago. And I've always had this module enabled. Could it be somehow related? Other apps [Gps Status] work without issues.
    Thank you!
    I have universal GMS doze installed and both Google maps and Waze work for me.
    But it could be the phone and how it handles it?I'm not too sure.
    1
    I'm having problems with maps apps not being able to use compass. It has happened every phone I had since years ago. And I've always had this module enabled. Could it be somehow related? Other apps [Gps Status] work without issues.
    Thank you!

    All my nav works too and ive been using this module for eons (since the beginning)
    1
    You should be installing modules via magisk manager these days...
    Okay bro thanks for the answer
  • 161
    Universal GMS Doze

    Overview:
    - Optimized and adjusted Google Play services.
    - Support API 23 or later.
    - Support Magisk Live or Custom Recovery installations.

    Contents:
    - Base extensions
    module: 1.8.4 (0830)
    code: 184

    Credits:
    - @topjohnwu / Magisk - Magisk Module Template
    - @JumboMan / Custom installation script

    Extras:
    - Donation: PayPal - LiberaPay
    - Mirror Links: GitHub Releases - Telegram - Index
    - Source Code: GitHub
    63
    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

    Changelog:

    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: