yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] ssrij:
Have you turned on "Auto rotate/brightness fix" in the app's Settings?
[Android Apps and Games] keijikage:
Super early, I know, but the new N developer preview seems to have broken forcedoze. It's not stepping into deep idle, and I think they have changed the command to step out of a forced-idle state.
[Android Apps and Games] ssrij:
Thanks for letting me know, I'll add support for N in the next update
[Android Apps and Games] petr232:
Thanks, the 1000ms delay you added helped when the Automatic lock is set to immediately, however enabling "Ignore lockscreen timeout" still prevents the phone from entering Doze - at least on my Z3C.
[Android Apps and Games] ssrij:
Reuploaded, I promoted the beta to stable so you'll now have to wait until the next beta is available. You can grab the latest stable APK from page 1, which is the same as the last beta.
[Android Apps and Games] ssrij:
On a rooted Nougat device, there is no delay. On an unrooted Nougat device, there is a 5 min delay, where the device spends the time in Light Doze, and after the 5 mins, it goes into Deep Doze.

You also have lock screen delay and Doze delay, the former is basically the time the device waits after the screen goes off before locking the device, and the latter is a setting that you can use to add a user-defined delay before the app puts your device into Doze. By default, the device ignores the lock screen delay.

So,

Rooted device: Screen off > Delay (Optional) > Immediate Deep doze

Unrooted device: Screen off > Delay (Optional) > Light Doze (5 mins) > Deep Doze
[Android Apps and Games] ssrij:
I dont think it uses the word "Display". Display timeout has nothing to do with ForceDoze. However, lock screen timeout does. By default, the app ignores the lock screen timeout. But if you have the option off, then the app will wait for the length of the lock screen timeout delay before putting your device into Doze. This is so your device locks itself before Doze kicks in, otherwise when you turn the screen on, you'll be able to bypass the lock screen, since the device never locked itself, which can be dangerous if someone else has access to you device.
[Android Apps and Games] ssrij:
When Ignore lock screen timeout is turned on, that delay is set to 0ms. I'll change it to 1000ms in the next update.
[Android Apps and Games] jlb1959.01:
I think the settings you have are perfect right now.very happy with ur app....
[Android Apps and Games] darkwolf_99:
Thank you, I've used it.
[Android Apps and Games] darkwolf_99:
[MENTION=5427507]ssrij[/MENTION]

v67 still cannot make exit records when the device is woken up from light doze (Emui5, Android 7.0). It's not a big deal, just my feedback
[Android Apps and Games] sanderg:
Thanks for the explanation. I looked at the settings again.

My device was set to lock 15 seconds after it was automatically switched off. I now see that ForceDoze warns about it to be 0.25 mins which is the same. When changing the timeout to 5 seconds, ForceDoze it complains that 0.083333336 mins is too high :)
[Android Apps and Games] Bobzee:
Hello, first of all - thanks for the app!

I am using it on a non-rooted xperia Z5C, on Nougat 7.0.

But I'm not quite sure if the app works at all, particularly the notification on top.

Firstly, this notification cannot be removed, even if you disable it from the settings.

Secondly, sometimes it shows absurd numbers, like:

Time spent dozing: 21015510230123 minutes

Battery usage: -35% (yes, actually a negative number)

And it sometimes works, showing normal numbers, but they never seem realistic to me. Like, it shows 15 minutes of sleep sometimes, 1.5 hours another time, 25 seconds another time. The Doze battery stats logs seem quite inconsistent and not connected to what is actually going on.

Is it the case that this app just doesn't work on non-rooted nougat anymore? (using latest updated play store build) I cannot detect any change or improvement in battery life, unfortunately.
[Android Apps and Games] Bewildered Wolf:
For that notifications thing you have to turn off the notifications and reboot bro.

And all these problems are there maybe because you are non rooted.
[Android Apps and Games] Bobzee:
Thank you for the reply. Yes, I figured not having root can be the root cause of this (no pun :D) but at the same time it was not clear to me what is supposed to work w/o root, and what isn't.

I thought the Doze forcing itself is supposed to work, but it seems to me that it does not... Is it official, because the latest app update in Play Store said that non-root Nougat is no longer supported? Which is surprising if it was supported and no longer is. I am still on android 7.0 so if this app ever worked on it, it should work for me as well. Not complaining, just brainstorming. It is clear to me that such apps are a very long shot unless you DO root.
[Android Apps and Games] Bewildered Wolf:
It doesn't say non-root Nougat is not supported. It says it enables doze on unsupported nougat devices only when they are rooted.

So, i guess you being non rooted is the problem.
[Android Apps and Games] Bobzee:
My bad, that's completely correct. In any case, someone recommended to try this in another thread, claiming it is the current working Doze enforcer for non-rooted Nougat devices. It could be that we misunderstood each other.

In any case, I will definitely be trying this again if I root anytime soon.
[Android Apps and Games] android_htc:
Just wondering if you followed the steps in the screenshot below?
[Android Apps and Games] Bobzee:
Yes, I followed these exact steps and gave permission through the adb prompt. It did not show any errors and adb devices also detected my device properly.

In fact, I had done the same steps with Greenify. Force Doze is also "not optimised" in battery optimisation settings. All I could achieve is a delay when my screen wakes up, ever since I tried Greenify. I am also doubting my SD card, but it seems to be just fine. I am not sure if these doze apps can do this, but I can't get rid of the screen wake-up delay anymore. :[ It is possibly related to another factor, so I can't say anything solid here. The delay is also very inconsistent. It appears, usually, after the device was idle for at least a few minutes. If I wake up the device a few times in a row, they are all almost instant. That's why I imagined it could be related to deep sleep, but then other users said that they have no such issue.
[Android Apps and Games] DB126:
Usually related to lack of maintenance windows during doze. Once woken the processor pegs trying to service multiple concurrent requests (amplified if a lot of I/O is involved). Perceived impacts are device and workload dependent.
[Android Apps and Games] lilmikey201:
it is for me.. this is texting not random notifications
[Android Apps and Games] pakudaboy:
ForceDoze removing the blacklisted apps icon from my desktop.

wonder if there's any walkaround for it?
[Android Apps and Games] ssrij:
Yes, because it's supposed to be 0 seconds ("Immediately"), otherwise ForceDoze will use a wake lock to delay itself by the length of the timeout (so it doesn't doze your phone before the device locks itself - otherwise when you turn on the screen, you will be able to bypass the lock screen). I've fixed it so it doesn't display such a long number, instead displays number of seconds if the timeout is less than 1 minute.

I've fixed it so it doesn't display negative battery usage. This happened when your device was charging, so the app assumed battery life difference was infact the battery life lost. This is now fixed, so the app reports 0% battery usage if the device is charging. I've also fixed the the way the time spent dozing value is calculated. Hopefully this should prevent the app from displaying such absurd values. It may be because the device itself is reporting incorrect values, in that case I cannot do anything. Let me know if the new method fixes the issue.
[Android Apps and Games] ssrij:
Not yet, unfortunately that's a side effect of disabling apps. Does restarting the launcher fix it?
[Android Apps and Games] darkwolf_99:
Sometimes V67 cannot make records when the device is woken up from light doze and deep doze.

Unrooted emui5, Android 7.0
[Android Apps and Games] ssrij:
New beta

I have pushed a new update to the beta channel. Mostly bug fixes. You can grab the new APK from page 1.

New:

* You can click on an broadcast item in Tasker broadcasts section to copy the broadcast name

Fixed:

* Rare crash on some devices

* Sometimes negative battery life was displayed in Doze stats and in notification

* Sometimes wrong time spent was displayed in Doze stats and in notification

* Toggling QuickTile doesn't reflect the change on the app when it's open
[Android Apps and Games] ssrij:
I already know that, I haven't fixed it yet, so that's why you are experiencing the issue. It will be fixed soon.
[Android Apps and Games] darkwolf_99:
Thank you for all.

In my smartphone, with v68, it spends about ten minutes to go into deep doze, no light doze before that, after the screen is off.

Sometimes I can't be sure the service of forcedoze works well. So after installing new beta, I reset it by the option in forcedoze. I wonder if it can check the service status by itself and users can get notification if the service doesn't work well. Yesterday my device couldn't go into deep doze, only went into doze for more than twenty minutes, but it was more than 1 hour after the screen was off by that time. The phone hadn't been moved and received any notification.
[Android Apps and Games] Bobzee:
Thank you, ssrij! I have just enlisted in the Play Store beta and will update as soon as I can. But I do believe that even the previous update (which was from y-day I think, or the day before) did something to fix this, and stopped showing me such crazy numbers.

EDIT: Btw, I forgot to say. I fixed my wake-up delay! It was related to my SD card, so I formatted it through a PC and the delay is no longer present. It did not have anything to do with Greenify or Force doze.

EDIT2: Actually, the delay kind of returned... I can still sense it and at this point I am not sure how can I solve it without a factory reset, or a re-flash of the rom. The quest continues :cyclops:
[Android Apps and Games] dieccast39:
Hello I am on miui 8 rom and force doze has a default big whitelist of apps which most of them I don't want!

1)Why there are so many apps on whitelist by default ?

2)also everytime I reboot or flash something my whitelist preferred apps are setting back to default ?

It's a rom problem?
[Android Apps and Games] darkwolf_99:
It's related to Miui, not forcedoze. That's your system's default setting.

What you can change is in this whitelist.
[Android Apps and Games] dieccast39:
So if I choose in battery optimization an app would remove it self from whitelist??
[Android Apps and Games] Licaon_Kter:
S/he meant that the battery optimisation whitelist is NOT part of ForceDoze, so the OEM/ROM maker has decide what (system) apps are put there, also you can add/remove apps in the Android Settings-> ...whatever...->Battery options... (this is ROM specific)
[Android Apps and Games] ssrij:
1) The default apps you see are added by your device OEM. You cannot remove them. They're added while building the ROM so even if you manage to remove them they will be added again.

2) Could be a ROM issue. Also, see (1) regarding removing default apps, they will be back when you reboot.
[Android Apps and Games] BenardMk:
Nice app to save battery ? life. On data toggle, it would be great if there's an option to choose auto enable when percentage is bla..bla....
[Android Apps and Games] Shaneee:
This app is great. Had it on 6.0.1 with my S6. Now updated to 7.0 and installed it back in. Thanks for your work.
[Android Apps and Games] dieccast39:
So that's the explanation thank you very much ! ?
[Android Apps and Games] Bewildered Wolf:
[MENTION=5427507]ssrij[/MENTION] bro this can be a great feature. Like the disable data during doze will only work after a specific battery count like 40%.

What do you say ?
[Android Apps and Games] DB126:
There are other methods/tools that can accomplish this. Personally I'd hate to see this focused app cluttered with knobs that detract from the original intent.
[Android Apps and Games] darkwolf_99:
Have rooted my device today, feel awesome!
[Android Apps and Games] ssrij:
Yeah. The app supports automation tools so you can simply use, for ex, Tasker to send an intent to turn on the option when your battery is below 40%.
[Android Apps and Games] ssrij:
Great!
[Android Apps and Games] turtle254:
What features are not turned on in an un-rooted device in the Beta version for us in this situation where

our device is blocked from every being rooted?
[Android Apps and Games] stbxxl:
Just installed this on my stock 6P. Seems to be working. Is there a way to force the "new" doze battery stats? For some reason the page changed to "Doze battery stats (old)" after about half a day.
[Android Apps and Games] dieccast39:
Hello another problem I have is that everytime I reboot force doze whitelist goes back to default apps !! Is this my rom problem or generally a force doze problem ?
[Android Apps and Games] iXaidyiu:
Try adding those apps in the System Settings > Apps > gear icon > Battery Optimistion whitelist there.
[Android Apps and Games] jlb1959.01:
shouldn't the white list be the same as the ROMs/phones ignore optimization list??,only difference is force doze should be on it..I have no idea what phone or ROM but both my white lusts are the same..
[Android Apps and Games] iXaidyiu:
Yes, its the same, but seems FD is instable in modifying the list, so modifying the one in Battery Optimisation is better.
[Android Apps and Games] jlb1959.01:
OK,that's the way I've always done it,the lists should be the same as far as I've done,and I've never had a problem with FD.a lot of the questions on FD are basic knowledge of doze working with force doze,definately give the moderators credit for patients..
[Android Apps and Games] iXaidyiu:
Thanks for your appreciation:D
[Android Apps and Games] jlb1959.01:
I must say a fantastic app!!!.and great help..
[Android Apps and Games] ssrij:
You can no longer add to/remove from the whitelist directly from the app if you're on Nougat and your device isn't rooted. The next update will disable this feature for unrooted Nougat users.

Marshmallow users (regardless of root status) aren't affected. Just unrooted Nougat users.

The app simply adds/removes apps to/from the whitelist directly. If the list gets resetted on reboot, something's wrong with your ROM. The app doesn't maintain its own whitelist, so it's not an app issue.
[Android Apps and Games] tonyec7:
In all honesty, I don't think it works with the S7. I'm having 0 luck going into deep doze on my Tmo s7 on nougat.
[Android Apps and Games] DB126:
Deep doze should occur naturally after a few min on Nougat. If that's not happening your device (rom/apps/config) has other issues.
[Android Apps and Games] lkvnclh:
where can I translate the "Notification for Doze and battery consumption stats" ?

I checked the Github , the strings file doesn't include that part.
[Android Apps and Games] BenardMk:
Yes would be much much better if those options are present
[Android Apps and Games] DB126:
Believe OP/author responded to this (here). You'll need to click through the responses to see further conversation.
[Android Apps and Games] zera89:
Hi,

I own a S7 Edge, Nougat, non-root.

I did a factory reset and i reinstalled forcedoze with its permission. I attach a screenshot of my "Held Awake/Doze" Gsam screen. I think ForceDoze isn't working at 100%. Can you give me your opinion?
[Android Apps and Games] orlans21:
I just got nougat on my s7 edge, im unrooted so im trying to activate FD by going through ADB. Well i put the command in adb and the app isn't enabling FD so i dont know what is wrong.
[Android Apps and Games] stbxxl:
I'm still experiencing this issue. It appears to be pretty random which style of battery stats are displayed. I there a away to avoid the old style?
[Android Apps and Games] ssrij:
Have you changed any settings in ForceDoze?
[Android Apps and Games] ssrij:
Maybe you're passing the wrong command to ADB. The commands are clearly listed in the Play Store description. Take a look and make sure you're entering it exactly as its written. Also, there's plenty of info available on the web on how to use ADB, so read them as well.
[Android Apps and Games] ssrij:
It's a bug. Clearing the stats will fix it temporarily. It will be fixed soon.
[Android Apps and Games] orlans21:
I copied and pasted the command it told me to in the app.
[Android Apps and Games] ssrij:
Please post the commands that you entered along with the screenshots showing it being entered/executed.
[Android Apps and Games] orlans21:
adb -d shell pm grant com.suyashsrijan.forcedoze android.permission.DUMP

why is my picture upside down? lol
[Android Apps and Games] ssrij:
You also have to grant WRITE_SECURE_SETTINGS permission. It clearly says on the dialog that the app shows ("If your device isn't rooted, you can manually grant the permission 'android.permission.DUMP' (and 'android.permission.WRITE_SECURE_SETTINGS'

if you're on Nougat

)").

You can grant it using the following command: adb -d shell pm grant com.suyashsrijan.forcedoze android.permission.WRITE_SECURE_SETTINGS
[Android Apps and Games] orlans21:
ahhh yeah stupid me I missed that. Thanks for your help it works now.
[Android Apps and Games] zera89:
I changed settings in ForceDoze, you can see them in attached screenshot.

I attached also another screenshot of Gsam. There are today values of "held awake/doze".
[Android Apps and Games] ssrij:
Maybe try turning off the experimental option. It's marked as experimental for a reason.
[Android Apps and Games] hijax2001:
RE Nova Launcher and App Icons Disappearing

Ok, so I first used Nova Launcher and found icon disappears when app is in Doze App Blocklist. I then switched to Google Now Launcher, thinking there was a compatibility issue. But same thing happens in Google Launcher. Next, I switched back to Nova Launcher, placed icons how I wanted, then went to Nova setting for Desktop/Advanced/Lock Desktop. This solved the icons disappear issue. However, I do not know now if doing this causes a fight between Nova and ForceDoze, that may prevent the app from actually dozing, and/or possibly cause negative result such as greater battery drain.

Thoughts?
[Android Apps and Games] stbxxl:
Thanks for the clarification. I'm looking forward to the bugfix.
[Android Apps and Games] zera89:
I turned off that option and I have experienced a worse battery life, I can't provide a feedback screenshot because I had to recharge my phone during the day.
[Android Apps and Games] Chinaboy5216:
On RR N 5.8.2 here, stock kernel, magisk root, turned this option on and get better battery life. Stock kernel uses a lot of juice but still with this option on it gets better
[Android Apps and Games] lkvnclh:
Hi,

where can I translate the "Notification for Doze and battery consumption stats" in the Notification shade ?

I checked the Github , the strings file doesn't include that part.
[Android Apps and Games] omeren83:
Hi guys;

I am using Greenify and ForceDoze at the same time. From what i understand, there is no need to use aggresive doze and forcedoze together since they pretty much do the same thing. But are there no benefits to using Greenify alongside ForceDoze? If there are, what are they?

Also, do i need to whitelist the default music player, alarm clock and Spotify? I am using galaxy s7, non-rooted.
[Android Apps and Games] DB126:
I see no benefit to using them both on a rooted device. Pick one or the other. I prefer the UX of Greenify but Force Doze is a fine offering that works great on most devices.
[Android Apps and Games] omeren83:
My device is not rooted. I am using the adb command.

Can you tell me what is UX?
[Android Apps and Games] Mynacol:
UX = User experience.
[Android Apps and Games] ssrij:
You can add it yourself to the strings file of your choice (language) and send a PR.
[Android Apps and Games] omeren83:
Guys i have another question. My galaxy s7 turns off the always on display when it is in my pocket although forcedoze is enabled. I think this means the proximity sensor is working. Does this mean forcedoze is not working since it is supposed to disable the proximity sensor?
[Android Apps and Games] sunsero:
I recently had to fight those screen delays as well. I think for me the issue was that I had frozen some system apps like phone, calendar and contacts including their syncing tasks in a great app called Island. My freezing of those system apps seemed to have caused exactly the same wake-up delay symptoms you are describing. My guess is Android wants to access the one or other system app when the screen turns on and waits for them for a while blocking the whole UI if they are not available.
[Android Apps and Games] ssrij:
You must have turned on a setting in ForceDoze that prevents the app from disabling motion sensors.
[Android Apps and Games] robert1337:
[MENTION=5427507]ssrij[/MENTION] I like the new feature app/notification blocklist but it doesnt make any sense

if anything it should be whitelist and not blocklist (blacklist)

touchwiz stock rom itself (without any app installed) is already full of pre installed softwares/bloatwares

blocking all these would take hours lol
[Android Apps and Games] ssrij:
It's the same for someone on a stock/AOSP ROM, putting all non-bloatware apps would take a lot of time.

Anyway, you are not supposed to block all apps, just the ones that significantly drain your battery.
[Android Apps and Games] robert1337:
so you mean i have to install another app to check battery draining app instead of.. you know, whitelist the only apps i want to use?

alright
[Android Apps and Games] Mgssidley:
Even when I have Google Maps or Waze added to the whitelist, within a couple of minutes of turning the screen off my navigation will stop functioning. Waking the device shows that the GPS signal was lost, and it begins working again, until turning my screen off again. Disabling ForceDoze entirely does fix the problem. This never used to be an issue, but must have started in the past few updates. Gonna try the beta and see if anything changes...
[Android Apps and Games] ssrij:
There's no way to fix it. Doze disables GPS, although there are some workarounds, to use the Xposed module or use Tasker to disable ForceDoze when you launch Google Maps/Waze and re-enable when you close it.
[Android Apps and Games] zdv80:
I'm very happy with the app... Thanks!! :D

The only problem that I've is with the last update... I also have icons disappearing in Nova Launcher... :silly: Any trick to solve it? :)
[Android Apps and Games] juchdr:
Hi, great app for battery savings without too much hassle.

A little question, how to activate the autorotate/brightness fix option? I tried and it asked for authorization, got taken into options for modifying system but nothing happened. I'm on oxygenos and stock kernel.

Oh yeah, I only had autobrightness problem in recent version.
[Android Apps and Games] Licaon_Kter:
Known issue: https://github.com/theblixguy/ForceDoze/issues/44