FORUMS
Remove All Ads from XDA

[MODULE] Universal GMS Doze

509 posts
Thanks Meter: 782
 
By gloeyisk, Senior Member on 13th October 2018, 05:47 PM
Post Reply Email Thread
Universal GMS Doze


What is Doze?
As we all know Android normally allows apps to run in the background, checking for new data, receiving notifications, and generally doing whatever they want. This is fine if you’re using your phone, but your phone doesn’t constantly need to be waking up if you’ve set it down on a table and walked away for a few hours. Doze kicks in when you aren’t using your device. When haven’t touched your phone in a while, it will go into a deeper sleep mode. (In technical terms, Doze prevents wakelocks from waking your device, keeping it in a lower-power sleep state.) This is especially useful for a phone you might leave on your coffee table, too. Rather than waking up all the time, the phone will be dozing most of the time, which should stretch its battery life much further.

Doze Will Not Block “High Priority” Notifications
“High priority” notifications will still come through, even when your phone is dozing. Notifications from your cellular provider, like SMS messages and incoming phone calls, will cut right through Doze so you won’t miss any messages. The phone will wake for alarms, too, so you won’t have to worry about missing those.
Other apps–for example, messaging apps like Google Hangouts, Facebook Messenger, WhatsApp, Telegram, and similar apps–can mark their notifications as “high priority.” High priority notifications will still be delivered to you, so you’ll get messages without having to wait for them. Most notifications aren’t marked as high priority, and won’t get through Doze, so as example Vainglory's notifications won’t wake your phone and drain your battery.

There are few things worth to know:
  • The original Doze, or Deep Doze, is available since Android Marshmallow (6.0) and Light Doze is since Android Nougat (7.0).
  • There are actually two state machines running in parallel for both Deep and Light Doze.
  • Once either Deep or Light Doze enters its IDLE state, the battery saving actions are enabled. Namely, more time in IDLE less battery should be used.
  • However, Apps having Wakelock or without respecting Doze IDLE state can still trigger activities consuming precious battery any time! For example, Google Play Service alone can totally kill battery regardless Doze or not!
  • Whenever Deep Doze enters IDLE state, Light Doze will be overridden, or suspended, (i.e. in OVERRIDE state) until another motion is detected.
  • Deep Doze would only work if there is any motion sensor available and would fallback on significant motion sensor if necessary. Without any sensor (e.g. on older phone) Deep Doze will never enter IDLE state (but Light Doze will still work).
  • Some system service might be only affected by Deep Doze (e.g. UsageStatsService, GnssLocationProvider) and battery usage might be better in Deep Doze than Light Doze.
  • Some battery saving Apps would disable (i.e. actually restrict) sensors to other Apps, but Deep Doze will still need to depend on motion sensors.
  • The illusion that Light Doze always run before Deep Doze kicks in has to depend on proper settings (i.e. device_idle_constants for usual phone or device_idle_constants_watch for wearable watch).

Installation Guides:
Making this module as a simple way to prevent unnecessary GMS running in the background systemlessly. Optimized and tweaked with additional modified services for achieves better battery life. Here's the guides and I'll appreciate if you want to reports any issues by installed this module Standalone.
  • API 23 or later is supported.
  • Either install from Magisk Manager or any custom recoveries.
  • Check whether BusyBox and SQLite is already installed (optional).
  • Avoid to use similar modules or tweaks at once.

Development Supports:
Credits:
  • @topjohnwu; Magisk
  • Contributors and Donators

License:
Copyright © 2019 GL-DP, gloeyisk. Licensed under the GNU General Public License v2.0
Attached Files
File Type: zip v1.7.2_stable.zip - [Click for QR Code] (16.6 KB, 894 views)
The Following 96 Users Say Thank You to gloeyisk For This Useful Post: [ View ] Gift gloeyisk Ad-Free
 
 
13th October 2018, 05:47 PM |#2  
gloeyisk's Avatar
OP Senior Member
Flag Cimahi, CGT
Thanks Meter: 782
 
More
Notes:
  • Universal GMS Doze still on development
  • Personal test (including all beta/experimental builds)
  • Does not guarantee fully for OEMs

Changelogs:

v1.7.2-Stable
  • Module revision: Moved to Imageless Template, dropped Unity Template
  • Sleep statements (80)
  • Optimized and tweaked GMS
  • Re-added tunable Boeffla wakelock blocker
  • Added add-on for keep GMS optimized on boot
  • Added modified props
  • Stability and efficiency improvements


v1.7.1-Stable
  • Added native busybox detection
  • Added modified props
  • Update doze setup services
  • Dropped modified xml
  • Dropped optimizing GMS
The Following 19 Users Say Thank You to gloeyisk For This Useful Post: [ View ] Gift gloeyisk Ad-Free
14th October 2018, 08:11 AM |#3  
Member
Thanks Meter: 38
 
More
Hi.
I'm using Your doze for some time now and it's working quite good. Good work, thanks.
Attached Thumbnails
Click image for larger version

Name:	Screenshot_Settings_20181014-090021.png
Views:	18766
Size:	85.8 KB
ID:	4618546   Click image for larger version

Name:	Screenshot_Settings_20181014-090028.png
Views:	18672
Size:	107.0 KB
ID:	4618547  
The Following User Says Thank You to bartekm01 For This Useful Post: [ View ] Gift bartekm01 Ad-Free
14th October 2018, 01:44 PM |#4  
VincentJoshuaET's Avatar
Senior Member
Flag Angat
Thanks Meter: 433
 
More
What does XiaomiDoze do, exactly and specifically?

Sent from my Xiaomi Redmi Note 5 using XDA Labs
14th October 2018, 01:52 PM |#5  
gloeyisk's Avatar
OP Senior Member
Flag Cimahi, CGT
Thanks Meter: 782
 
More
Quote:
Originally Posted by VincentJoshuaET

What does XiaomiDoze do, exactly and specifically?

Deleted.
The Following 6 Users Say Thank You to gloeyisk For This Useful Post: [ View ] Gift gloeyisk Ad-Free
18th October 2018, 08:51 AM |#6  
gloeyisk's Avatar
OP Senior Member
Flag Cimahi, CGT
Thanks Meter: 782
 
More
New build is up!
The Following 4 Users Say Thank You to gloeyisk For This Useful Post: [ View ] Gift gloeyisk Ad-Free
18th October 2018, 09:51 PM |#7  
Member
Thanks Meter: 4
 
More
What's the difference between universal gms doze NMF21F
Because it works great on OnePlus devices ,is the Oct version better than this
19th October 2018, 04:32 AM |#8  
gloeyisk's Avatar
OP Senior Member
Flag Cimahi, CGT
Thanks Meter: 782
 
More
Quote:
Originally Posted by amitporedi007

What's the difference between universal gms doze NMF21F
Because it works great on OnePlus devices ,is the Oct version better than this

Oh hello, this new build I've made still on Experimental status. But a lot of users report to me that the module working properly. Anyway, you can try latest build (currently) also. Thanks.

Sent from my Redmi 3 using XDA Labs
The Following User Says Thank You to gloeyisk For This Useful Post: [ View ] Gift gloeyisk Ad-Free
19th October 2018, 02:40 PM |#9  
gloeyisk's Avatar
OP Senior Member
Flag Cimahi, CGT
Thanks Meter: 782
 
More
New build is up!
The Following 4 Users Say Thank You to gloeyisk For This Useful Post: [ View ] Gift gloeyisk Ad-Free
19th October 2018, 02:42 PM |#10  
L22EEW's Avatar
Senior Member
Flag Wales
Thanks Meter: 225
 
More
Known issue for Pie. I have frozen Find my Device via TiB.

Flashed module, but still unable to optimise play services.

Anyone else on Pie managed to get this to work?


Sent from my OnePlus 5 using XDA Labs
19th October 2018, 02:46 PM |#11  
L22EEW's Avatar
Senior Member
Flag Wales
Thanks Meter: 225
 
More
.

Sent from my OnePlus 5 using XDA Labs
Attached Thumbnails
Click image for larger version

Name:	Screenshot_2018-10-19-14-43-40.jpg
Views:	16488
Size:	190.3 KB
ID:	4622388   Click image for larger version

Name:	Screenshot_2018-10-19-14-44-07.jpg
Views:	16516
Size:	225.5 KB
ID:	4622389   Click image for larger version

Name:	Screenshot_2018-10-19-14-44-56.jpg
Views:	16438
Size:	16.0 KB
ID:	4622390  
The Following User Says Thank You to L22EEW For This Useful Post: [ View ] Gift L22EEW Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread