yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] DB126:
FWIW - similar experience with three different devices tested mid 2017. Used a similar methodology to generate objective results over a 10-14 day period.

I have since concluded that other apps/methods that attempt to activate doze prematurely and/or artificially limit "maintenance windows" are either benign (best case) or counterproductive. Deferred tasks will run eventually...often when the device is explicitly woken. That can lead to a lousy user experience and increased overall power consumption as multiple services compete for resources and drive the device into a less efficient state.

Folks tend to associate doze with 'sleep' and assume something is wrong if the former isn't active. Doze restricts background activity that may (and often does) increase the time a device operates in a lower power state. However, it not a prerequisite to deep sleep or efficient power utilization.

I do use Greenify to restrict motion sensors on Android 6.x based ROMs and rein in occasional bad actors. I let the device handle everything else using default values for doze. Idle drain rates are typically well under 1% per hour with no service restrictions. Good enough for me.
[Android Apps and Games] Thaodan:
Some questions,

Is it normal that the doze windows are sometimes only second's long?

Also what's "ForceDozeTempWakelock“ about, is it make the device actually enter doze?

I have 32 from 4,3h run time, this is normal or not?

I'm running 8.1 (stock) on pixel XL 2.
[Android Apps and Games] DE SEXIEST:
One of the best battery saving apps that even work without root access
[Android Apps and Games] xt7xda:
[MENTION=5427507]ssrij[/MENTION]

Hi Suyash,

It's a great app. I'm really getting good battery life.

I want to know is it possible to reduce maintenance window time frame and its occurrence per hour.

Can you please tell me the default values of doze tunables (Light and Deep) when force doze service is active?

Thanks...
[Android Apps and Games] xt7xda:
I want to doze my phone whenever display is off, keeping maintenance window as small as possible.

Following is the doze tunable currently set:

adb shell settings put global device_idle_constants light_after_inactive_to=1,light_pre_idle_to=1,light_idle_to=1,light_idle_factor=2.0,light_max_idle_to=1,light_idle_maintenance_min_budget=1,light_idle_maintenance_max_budget=1,min_light_maintenance_time=1,min_deep_maintenance_time=1,inactive_to=86400000,sensing_to=1,locating_to=1,location_accuracy=20.0,motion_inactive_to=86400000,idle_after_inactive_to=1,idle_pending_to=1,max_idle_pending_to=1,idle_pending_factor=2.0,idle_to=86400000,max_idle_to=86400000,idle_factor=2,min_time_to_alarm=3600000,max_temp_app_whitelist_duration=300000,mms_temp_app_whitelist_duration=60000,sms_temp_app_whitelist_duration=20000,notification_whitelist_duration=20000

But it is getting too much wakelocks, please check the screenshots.

Any suggestion?
[Android Apps and Games] stylemessiah:
I dont even bother installing Greenify these days, ForceDoze goes on and thats about it....

Long since gave up on the drama of putting xposed on just for Amplify too...being on Oreo and the wait for xposed helped refocus on what works and what just adds more overhead...
[Android Apps and Games] DB126:
Why not go commando? There's little evidence accelerating/aggressive doze yields significant power savings. Tweaking other doze parameters is usually counterproductive. I use Greenify to rein in a few bad actors (hibernation isn't the same as doze) but find Android 7+ handles power management just fine.
[Android Apps and Games] Paz9:
is this command what the app uses when screen off?

does the command forze doze even when screen on? if so wouldnt it be better if we use this command instead?
[Android Apps and Games] eng3:
That may be true but it depends on the use case. I have a tablet I am using for car GPS. When the car is on, it has power. When the car is off, I have no need for the tablet to do anything and it may be left for many days so I'd like to conserve power. I could ofcourse just turn it off, but the boot up time is too long to wait everytime I start my car. I don't mind a little lag as things resync versus waiting for boot up, plus there is boot up lag too.

I'm not quite sure what Doze does during its wakup maintenance cycles. I don't have anything that requires syncing and I turn on airplane mode when the screen turns off
[Android Apps and Games] DB126:
There are always specialized situations that generate exceptions. That said I would submit real world battery consumption following a normal doze cycle closely parallels more aggressive approaches in your use case. But if turning knobs & dials makes you feel better and causes no undesirable side effects then why not.
[Android Apps and Games] eng3:
I'm not saying that "turning knobs & dials" will make things better. I was just pointing out that there are different use cases which may require different settings. I'm sure google programs for the majority use cases.

For example, most people don't turn on airplane mode whenever their phone screen goes off, they leave wifi/data bluetooth on. However, turning on airplane mode when the screen is off does saves alot of battery. So in that case, it does work. As for doze, I just discovered this app so I haven't figured out all the settings to try to make it stay in deep doze and have no maintenance windows. Once I do figure that out, I can try it and see if I get better results or not.

I suppose in my mind, I'm thinking of the analogy of my laptop. I can put it to sleep or hibernate and it wont wake up til I hit the power button again. It gives me a faster startup than if I shut it down completely. but it still uses near zero to zero power. That's what I want with my tablet. Quick startup, with near zero power loss.
[Android Apps and Games] DB126:
Best outcomes (if not powering off) will likely be achieved by enabling airplane mode assuming your hardware/kernel is intelligent enough to put radios in a low power state when not being used. Use a power monitoring app like BBS or GSAM to check for significant (operative word) activity while sleeping. Don't sweat the small stuff. If anything major pops up use Greenify or a similar tool to hibernate offenders. Doze is a different beast and really not applicable in this use case. Good luck.
[Android Apps and Games] eng3:
This is pretty much what I already do. I use "Automate" to turn on airplane mode (and turn off sync) when the screen turns off. I use GSAM and I generally am down to about 0.1% to 0.2% per hour. If accurate, that should give me like 20 days but I don't know how accurate that really is. So I agree, that is pretty much getting me where I want.

I don't see any harm in trying to tweak doze though. It's a good chance to allow me to learn more about doze anyways. Unfortunately, eventough there are descriptions for the tunables, I still don't fully understand what they do.

light_after_inactive_to=1,light_pre_idle_to=1000,light_idle_to=1209600000,light_idle_factor=0.0,light_max_idle_to=1000,light_idle_maintenance_min_budget=1,light_idle_maintenance_max_budget=2,min_light_maintenance_time=1,min_deep_maintenance_time=1,inactive_to=1,sensing_to=1,locating_to=1,location_accuracy=1000000.0,motion_inactive_to=1000,idle_after_inactive_to=1,idle_pending_to=1,max_idle_pending_to=1,idle_pending_factor=0.0,idle_to=1209600000,max_idle_to=1209600000,idle_factor=2,min_time_to_alarm=1,max_temp_app_whitelist_duration=1,mms_temp_app_whitelist_duration=60000,sms_temp_app_whitelist_duration=20000,notification_whitelist_duration=1

With these settings, if i let it sit overnight, it now says 0%/hr to 0.1%/hr. When I look at GSAM, it shows 1 light doze session for 5 sec with no maint windows and 1 deep doze session for the remaining hours with no maint session. However, if I look at the GSAM graph, it shows lots of "active" time during doze so I dont know what this really means. Maybe this is doze checking for motion? I don't quite understand why doze needs to try do maintenance sessions of I have sync turned off and airplane mode turn on. What does it actually do during the maintenance window? does it override my settings and turn sync on and airplane mode off during that time? Also, I wasnt sure if I should put 0 or 1 for the shortest amount of time and I wasnt sure what the largest amount of time is. I initially put a really big number and forcedoze started to crash.
[Android Apps and Games] DB126:
From a user perspective attempting to 'tune' doze is largely a fool's errand that will likely yield no tangible benefits and little reusable knowledge. Especially in your use case where network connectivity is already disabled and the device is largely stationary. Google is your friend if you want to know more, eg:

https://developer.android.com/training/monitoring-device-state/doze-standby.html

FWIW - doze does not override flight mode and/or sync settings. Maintenance windows simply remove restrictions for brief periods permitting apps/services to behave as they normally would. You'll need to freeze or hibernate (preferred) apps to further curtail activity. That said, savings will likely be miniscule in the absence of a 'bad actor' which GSAM or other activity/power monitoring tool will quickly identify.
[Android Apps and Games] kinderarco:
Do you know why even though whatsapp is in my whitelist, i can only get notifications when i unlock my phone and open its window?
[Android Apps and Games] Ranching:
I read the last two pages of this thread. So, Davey126, you're not recommending FD or similar apps on Android 8.1? Is that why FD is not updated for almost a year? Is it even fully compatible with Oreo? I was thinking of using it along with Brevent, but I guess it isn't needed at all.

Do you guys see any noticeable battery improvement on Oreo with FD? Screenshots would be helpful. Thanks.
[Android Apps and Games] DB126:
There is little/no evidence tinkering with doze parameters yields improved battery endurance when one looks at power consumption holistically (ie: battery level over some time period that includes active/inactive windows). In contrast, numerous side-effects have been reported by those who over manage doze. My personal experience with a handful of devices mirrors community reports. There are also significant misunderstandings of what doze does and does not do, most notably confusing doze with idle/sleep states.

Bottom line: let Android manage doze. Enjoy your device as designed by skilled engineers. Surf responsibly, connect sensibly, avoid sketchy apps. Use a VPN based firewall if needed. Pretty simple stuff.
[Android Apps and Games] Ranching:
Exclusively VPN-based? Would iptables do the job? I just flashed my new ROM today and I was thinking of using AFWall+ to restrict certain apps from accessing the Internet, as well as XPrivacyLua.

Tweaking doze settings and hibernation are out of the picture now. I don't feel like experimenting, I'll just take your word for it. Thanks.
[Android Apps and Games] DB126:
VPN based firewalls insure complete control over all network traffic. Solutions using IP tables typically rely on a HTTP proxy which can only control a subset of traffic. Such firewalls are quite good; I happen to prefer a condom with no perforations.

Hibernation can still be beneficial for reining in rogue apps that can't be uninstalled. My preferred solution is Greenify but many speak highly of Brevent. I only hibernate apps when needed (ie: demonstrated resource abusers). Many folks ignorantly add every app to the hibernate list then wonder why things don't behave as expected.

As you probably gathered doze and hibernation are different things although they have similar goals and often can be used interchangeably. Biggest difference: hibernation is under your control and operates at the app level.

Enjoy your new ROM.
[Android Apps and Games] Ranching:
Very informative. Thank you for the guidelines.

As you obviously know what you're talking about, I'll sadly go offtopic again and ask one more thing. What is considered a good idle battery drain? I let my phone overnight for 4 hours today with Wi-Fi and Location turned on, and BBS showed that battery consumption was 2% (mostly Android System, Android GMS and Facebook apps wakeups). I suppose that's pretty good. It would be even better without an Internet connection. I'll test it out more tomorrow.
[Android Apps and Games] DB126:
0.5%/hr is quite reasonable given the stated conditions. Facebook app is a pig; give Facebook Lite a whirl.
[Android Apps and Games] jdr_85:
How to disable motion sensors completely?

Hi,

I've been using ForceDoze on my good old Zenfone 2 Laser ZE500KL for quite a while with excellent idle battery drain.

Now I have a Redmi 4X with Resurrection Remix Luis (Android 7.1.2, of course rooted) and I'm unable to disable the motion sensing. The phone goes into deep doze as it is supposed to. But when the phone detects movement, it wakes up and if the movement continues never goes back to deep doze. Never understood why the (as I thought) clever people at Google implemented such a more than stupid and senseless thing. When the phone is in my pocket, I want it to deep doze and not to wake up because of the movement. Basta.

I tried both sensor disable options (root/non-root) in ForceDoze but none of them worked. How does FD try to disable motion sensing? Are there maybe other things I can try just like changing some configuration files or whatever?
[Android Apps and Games] DB126:
It's not Google but the mix of hardware/kernel/ROM and possibly other tweaks that's the problem. Motion management is not a wide spread problem on the vast majority of devices running Android 7+ or MM with 'doze on the go' or the equivalent enabled.

Try Greenify along with Xposed framework to see if the problem persists. If no improvement you'll need to consider backing off mods one at a time until the culprit is identified. Also check device forum to see if others are experiencing this problem with/without custom kernels, ROMs, etc.
[Android Apps and Games] jdr_85:
Greenify with Xposed seems to do some Voodoo magic :D. It works as it should, the phone stays in deep idle while moving. Thank you very much for this great suggestion! I had spent a lot of resultless time on this before...
[Android Apps and Games] gayanperera:
Oreo update

Any plan to update for Oreo since the app is not working in Oreo.
[Android Apps and Games] Ubimo:
Please update for Oreo.
[Android Apps and Games] DB126:
Dev hasn't posted to this thread in 9 months and has been scarce since early 2017. There is no need to force anything in Oreo; Android takes care of itself.
[Android Apps and Games] Bewildered Wolf:
Or you can use Naptime.
[Android Apps and Games] Lughnasadh:
Although not a regular user of this as I have come to abide by the owl-like advice of [MENTION=5488402]Davey126[/MENTION] , I have had no problems using this on Oreo in the past.
[Android Apps and Games] DB126:
No surprise ForceDoze and similar tools continue to work across multiple Android builds with no apparent drama. Subtle influences are harder to assess as cause-effect relationships are not always obvious. For the overwhelming majority of devices, ROMs and use cases mucking with stock doze on Android 7/8 is akin to watering the garden in a rain storm. Often benign (but not always) and rarely beneficial.
[Android Apps and Games] eng3:
Well this was working well for about a month. Whenever I turned my tablet back on I only saw one light and deep maint session. No held awake time, nearly 0% used. My only issue was that my tablet couldnt charge faster than it drained. However, after a month, I started seeing multiple maint sessions. I thought maybe I need to reapply settings after reboot and I was forgetting. Now its worse and its being held awake for 30min everytime I turn it off for some reason.
[Android Apps and Games] DavidEUS:
I have a Xiaomi redmi note 4 global 8.1.25 and in time spent dozing it does not exceed 3 minutes. I have it installed as a system application, it goes into deep sleep perfectly, what can be the error?
[Android Apps and Games] Darayavahus:
Force Doze doesn't work well on oreo. When my phone goes into sleep mode, the wifi turn off and block my apps from receiving data. Even if I actually download something on the fly.
[Android Apps and Games] vulcan4d:
I can't see to kill the ForceDoze stat notification. Is this a requirement? I was thinking it was the option that says Show persistent notification which I unchecked, but it's still there always in my notifications with stats.
[Android Apps and Games] Sysdo:
If someone was still wondering.

Tested on HTC10 Android 8.0 a few days. In my case Davey126's advice is right: the battery drain was worse with FD in my case + notifications/auto-brightness played up.
[Android Apps and Games] AgustinH:
well, someone recommend me this app for my LeEco, the thing is that even if I put it on exceptions I won't receive any whatsapp message or email...how can I do?
[Android Apps and Games] DB126:
Uninstall the app and enjoy your device. Android 6+ can take care of itself.
[Android Apps and Games] AgustinH:
thanks Davey
[Android Apps and Games] Fahrilubis:
How to disable light doze then just enable deep doze? Then if deep doze trigger, can i still get notification from my app especially whatsapp cause whatsapp used gcm? Then how affect if i set motion+sensing+both locatio to 0? I just want to ignore motion when deep sleep then no late notification, is that possible?
[Android Apps and Games] ivar418:
Love this app. But i cant seem to find it anymore on the play store
[Android Apps and Games] spocko:
Interesting. No longer showing in the play store for me either. Can still get it here:

https://m.apkpure.com/forcedoze/com.suyashsrijan.forcedoze
[Android Apps and Games] DB126:
Likely out of compliance with updated Play Store guidelines. Regardless, app has limited utility on Android 6+ in terms of extending battery endurance on modern devices. Makes the doze stats look marginally better which has little to do with reducing actual power consumption.
[Android Apps and Games] Fahrilubis:
How to know disable motion is work?
[Android Apps and Games] DB126:
Built into doze on Android 7+.
[Android Apps and Games] Gunbit:
what happen to this app ? cant find it in the playstore
[Android Apps and Games] DB126:
Likely pulled for not meeting Google design requirements.
[Android Apps and Games] Saswata Chakraborty:
It does the job pretty well. But NapTime is the best.
[Android Apps and Games] flamedrops:
it work on my mate 10 lite running dot os 2.4 here is the screenshot. :)
[Android Apps and Games] mrchaien:
dont know why but i tried to use naptime and it even drain my battery more than before. applied adb commands as guide

---------- Post added at 10:59 AM ---------- Previous post was at 10:55 AM ----------

anyone else here using force doze on unrooted devices? please give me some feedbacks. is it really useful? thanks in advance
[Android Apps and Games] DB126:
Save yourself some aggravation - you don't need this tool or any other doze helpers.
[Android Apps and Games] mrchaien:
the same result with forcedoze. guess that you're right. lol

actually, my FE has good battery with my usage
[Android Apps and Games] DB126:
Just asking for trouble mucking with native power management on newer devices. Is stock doze perfect? No - nothing is. Can one gain a significant advantage (±5%) turning knobs and dials. Sure - if you enjoy placebos and adding unnecessary complexity to your life. Time better spent elsewhere.
[Android Apps and Games] Fahrilubis:
Why this app cant combine with greenify? I mean when greniify get trigger, all value back to stock again lol
[Android Apps and Games] DB126:
Unwise cocktail - especially since Force Doze hasn't been updated in ages.
[Android Apps and Games] Fahrilubis:
Yeah its really dispointed to me cause this app rly work even on p, this app still working
[Android Apps and Games] Fahrilubis:
Anyone know why i got stuck clock when deep doze trigger?
[Android Apps and Games] Yoannjap:
Hello,

I would like, with Tasker, to stop forcedoze disabling my data connexion (when display is off), only if my Spotify app is playing music (and so when a notification of music plying is persistent).

How could I do that?

Thanks a lot for your help
[Android Apps and Games] fahri170693:
Hei dude why i my value always back to default ?
[Android Apps and Games] Darayavahus:
Add clock to whitelisted apps in force doze
[Android Apps and Games] Spo0cky ^^:
I can not add an app to the whiteList.

Nougat 7.1 CustomRom Ressurection
[Android Apps and Games] DiamondJohn:
FYI:Visual graph and modify doze settings

If you wish to see the results and the running history of your doze. It also allows you to modify your running doze profile; 14 profiles to chose from, I built a new feature into an app of mine which provides a visual display graph. TeMeFI
[Android Apps and Games] bipufirst:
already download it, but how can i set it?

pls help.
[Android Apps and Games] DiamondJohn:
https://xdaforums.com/showpost.php?p=79135309&postcount=74

but it will most likely be reset on a boot, so you will need to set up a boot script; which TeMeFI provides the code for.

That thread may be a good read to get familiar with how to use the interface. It has minimal UI objects so many have long press actions.
[Android Apps and Games] roscos:
Goodmorning everyone

In the end I didn't understand if it works on Oreo 8.1

Rooted with Magisk

I Use [MODULE] [UNITY] Universal GMS Doze

Can this App be useful?
[Android Apps and Games] DB126:
Likely not. Nor is there a need. But if you MUST tinker probably best to use the tool linked two posts up.
[Android Apps and Games] 73sydney:
Actually i use it in Oreo and it can still be useful, caveat as always, "if you set it up right"

The tool two posts up is far form user friendly....possibly due to living up to its name for too much info

Greenify on the other hand, yes, its usefulness is definitely arguable/pointless from Nougat onwards....even the Greenify geeks will tell you that...
[Android Apps and Games] DB126:
The holistic benefit of *any* doze manipulation app/tool is questionable on Android 7 and above. Akin to squeezing a long balloon. But there are always exceptions, real or perceived.

The power saving benefits are Greenify are marginal to none on Android 7+. However, it remains a solid tool for 'hibernating' apps that are responsive to foreground triggers. I still use it in that capacity.
[Android Apps and Games] 73sydney:
I like having an agreeable conversation :)

I used to love Greenify to death, But in general i use almost no tweakage apps since Nougat. Long gone, in years, are the days id hurriedly install Xposed to install things like Amplify etc...seems like a distant dream!. But as you rightly say theres still some niche application for some doze/hibernation tools. But i bet theres plenty who are still stuck in old habits kneejerk installing the same old tools...
[Android Apps and Games] DiamondJohn:
I actually use Havoc-OS which has a built in doze configuration tool. It allows you to configure the doze parameters which directly affect how doze works (or doesn't work) on your phone. On a spare phone I have run LOS which did not have the config feature, but I performed the same changes to doze (I used shell commands, but it could of been done with a "Tool"), and the difference was night and day.

You can get an idea from the last two graphs/screenshots in the following post. You can see the second last one sits in light idle (blue) for some time after being fully active (red), before it finally goes into deep-idle (green). While the second one only stays in light-idle (blue) for a very short time before jumping down into deep-idle (green). IN regards to doze, config is key, and that may be done by a tool.

https://xdaforums.com/showpost.php?p=79135309&postcount=74

Doze is a means to an end, not the end in itself.

On a lesser point, I use Greenify to rein in badly behaving apps :mad:. I want their actions/features, so I don't wish to uninstall them, but when not in use, off to dream land for them.[IMG="Zzzzz"]http://emoji.tapatalk-cdn.com/emoji99.png[/IMG]