yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] ssrij:
No. The OS does not persist the Doze on/off preference, so it gets reset on reboot. I'll see if there's a way around it so you don't have to use that option again every time after a reboot.

Thanks for reporting this
[Android Apps and Games] darkwolf_99:
It's ok now after I did as what you said. Thanks a lot.
[Android Apps and Games] littleshiro:
I think that I've solved adding the cyanomod system to doze:

and reseting the service [emoji16]

Enviat des del meu MotoG3 usant Tapatalk
[Android Apps and Games] darkwolf_99:
Would you please sort log date from resent to oldest? Thanks.
[Android Apps and Games] darkwolf_99:
Just now I just found OS hasn't entered doze again since 12:51. Please check the log.
[Android Apps and Games] littleshiro:
Why debug log is empty? How Can enable it?

Enviat des del meu MotoG3 usant Tapatalk
[Android Apps and Games] petr232:
Deleted
[Android Apps and Games] hhuimie:
Holping for "persist Doze on" version.

btw, the toast "restart your device now" after click the "Enable doze on unsupport device" menu item, wasn't right, was it?
[Android Apps and Games] darkwolf_99:
It happened again from 18:01 to 18:20.
[Android Apps and Games] Mstniy:
Are you using some other power saving app such as powernap?
[Android Apps and Games] darkwolf_99:
Of course, not.
[Android Apps and Games] weir:
In version 1.2.6，Wakelock Detector show that it generated a lot of wakelock, this did not happend in the previous version.
[Android Apps and Games] darkwolf_99:
New version makes sure OS will enter doze after screen is off by using some wakelock.
[Android Apps and Games] weir:
On my phone, previous version works well.

Is there any way I can return to the previous version?
[Android Apps and Games] kryshnakishore:
uninstall & install old apk
[Android Apps and Games] weir:
The problem is, I can not find the old APK..:(.

If you happen to have an older version, you can send me please？
[Android Apps and Games] kryshnakishore:
here it is... hope it helps
[Android Apps and Games] weir:
Thank you very much!:D
[Android Apps and Games] ak117:
This has no effect for i'm running cm13 but didn't found any amount of battery saving figures.

It has been 2 weeks since i have installed this but no good effect

After leaving my phone for 6 straight hours without installing this app i got 2% reduction in my battery which was same when i used this apk.

So there was no effect

Hope it work for other well
[Android Apps and Games] optimummind:
[MENTION=5427507]ssrij[/MENTION] The latest version keeps on turning off my WiFi & doesn't turn it on automatically when screen is turned back on (despite what I set in the WiFi advanced settings menu). So I have to manually toggle the WiFi back on.
[Android Apps and Games] hhuimie:
I just flash another rom, can not find the "Enable doze on unsupport" menu item. WHY?
[Android Apps and Games] lehongwang:
sometime, my screen is keeping dark after turning on, already check the fix screen brighnés
[Android Apps and Games] evisser4:
Would it be possible to have the Doze Delay begin as soon as the screen is "OFF" vs "LOCKED"? I like to keep my lock delayed to 30 minutes so I am not constantly having to unlock my device, however I would like to have my device enter doze in 3 minutes. Seems I would have to set my device lock time to 3 minutes to achieve this currently.
[Android Apps and Games] reycharlesconrad:
Hi. Doesn't it defeat the purpose if we have wakelocks like this?

Is there anyway we can avoid this apart from adding this wakelock to ensure it will run? Thinking of rolling back to an older version.

Thanks
[Android Apps and Games] optimummind:
Went back to version 1.24 & no more issues with the WiFi getting turned off & not being turned back on after screen turn on.
[Android Apps and Games] ssrij:
Strange, the app doesn't touch WiFI settings. Do you mean the toggle becomes off, or just the WiFi disappears (and the toggle stays on)? It could also be the system doing that instead.
[Android Apps and Games] ssrij:
Maybe because that ROM hasn't disabled Doze internally
[Android Apps and Games] ssrij:
Which phone?
[Android Apps and Games] ssrij:
I'll add the option as an experimental feature, but beware this could make the device show the lockscreen regardless of the lockscreen timeout value, on screen on. Dozing before the screen locks can lead to strange behavior that is why I didn't add such an option and that's why ForceDoze is always delayed by Lockscreen timeout as long as it's not set to Immediately
[Android Apps and Games] ssrij:
No, I experimented with several ways in the past many versions and none of them worked because the OS put the Handlers/Timers to sleep as soon as the screen turned off, so a wakelock is the only way out. As I explained in the changelog, the app creates a temporary wake lock when you turn off the screen and releases it before making the device enter Doze. The wake lock ensures that the timers in the ForceDoze service responsible for delaying Doze (due to lockscreen timeout value being high i.e 5/10/30 mins, or Doze Delay being activated by user) are correctly fired and don't get suspended by the system on screen off. If you don't use Doze Delay (or use it with a very low value) and/or have a low lockscreen timeout value (Immediately/5/10/15 secs), then the wake lock will not have a noticeable effect on battery life. If you have a high Lockscreen timeout value and/or use Doze Delay with a high value then it could have negative effect, and the app warns the user if their lockscreen timeout value and/or Doze Delay value is high (> 15 mins). In the upcoming update, I'm going to be more strict with it and enforce the warning on > 5 mins and may even decide to turn off the ForceDoze service if at least the lockscreen timeout value is high.

TD;DR: If you don't want the Wakelock to have any noticeable impact on battery life, consider reducing the Lockscreen timeout value in Security Settings on your phone to Immediately.
[Android Apps and Games] ssrij:
Yes, I'll fix it now! I'll see if there's a way to persist Doze Pushed a new update that adds an Xposed module to permanently enable Doze
[Android Apps and Games] ssrij:
Can you send me the log? Also what device are you using?
[Android Apps and Games] ssrij:
Is it empty every time you open it? What device and ROM are you using?
[Android Apps and Games] darkwolf_99:
My smart phone is Huawei Mate7, OS is Emui4.0 (based on Android 6.0).

I will attach the specific log file if it happens again. Thanks for replying me.:)
[Android Apps and Games] lehongwang:
mine is note 4 910F with 6.0.1

thank you
[Android Apps and Games] optimummind:
Toggle becomes off.
[Android Apps and Games] ssrij:
Are you by chance using GoodLock?
[Android Apps and Games] littleshiro:
Moto g 3rd 2015 & CyanogenMod 13 6.0.1

Enviat des del meu MotoG3 usant Tapatalk
[Android Apps and Games] optimummind:
No. In Wifi Advanced, I have WiFi set to Keep WiFi on while charging.

After reverting back to ForceDoze 1.24, the WiFi is working as I'm used to. That is, once the screen turns on, WiFi connects to my home WiFi automatically.

On 1.2.6, when the screen turns on, my phone stays on LTE. So I have to pull down the notification panel & toggle the WiFi back on.
[Android Apps and Games] ssrij:
That's the weirdest bug I've come across with the app. If you can send me a logcat I can look into why this happens, it doesn't happen with me though
[Android Apps and Games] Fishawy:
"WhiteList Apps" force closes on 1.2.8.
[Android Apps and Games] ssrij:
Whoops, I have fixed this now and pushed a new update to Play Store
[Android Apps and Games] Draygon:
Could you please add system services back to the whitelist?

I need to exclude Google Play Services from getting dozed, to receive GCM push messages.

Love your app so far!
[Android Apps and Games] ssrij:
Google Play Services is by default exempt from Doze on all devices. And it only delivers high-priority GCM messages to the device while it's in Doze. Normal priority ones are delivered during a maintenance window or when you turn your screen on.
[Android Apps and Games] erghetto:
Just to understand well..

If we use aggressive doze with greenify then we don't need to use this app?
[Android Apps and Games] ssrij:
It's your choice which app you want to use. ForceDoze offers a lot more features/customizability than Greenify AD, and also saves more battery.
[Android Apps and Games] Arstoien:
Could you tell me how it saves more battery – by entering Doze quicker? Realistically that's not very much different battery-life-wise, however the wakelock that comes with the service now, does make a difference. I just can't make sense of why would I use an app to save battery life that holds a wakelock every time I turn off the screen. Or forces me to change my lockscreen settings.

Really, I don't mean to bring a negative tone, I'm just trying to understand your decision on the wakelock and why you say it saves more battery than greenify, which does essentially the same but without the wakelock.

What made you use a wakelock compared to the previous method you used? If it's reliability for some devices, isn't it possible to make it optional?

Sent from my Nexus 5
[Android Apps and Games] evisser4:
Wow, thanks!
[Android Apps and Games] darkwolf_99:
In 1.2.8, there is no wakelock if you set to lock screen immediately after screen is off in system setting. I've tested.
[Android Apps and Games] optimummind:
Sure, I'll do that. BTW, which model is your GS7E?
[Android Apps and Games] ssrij:
How does it save more battery?

By putting your device into Doze faster, and by disabling motion sensors, so it stays in Doze, even if your device isn't stationary.

How is it better than Greenify AD?

It's free, it's open source and it has no ads, and

nothing is going to change about those three things, ever

. It offers a bunch of customization features and other features that you won't find in Greenify AD, but not too much as to confuse the users (like Naptime perhaps). On top of that, it allows users to enable Doze on any unsupported device (running M obviously), which no other app does.

Why does it use wake lock?

First of all, in the latest version, it no longer uses wake locks if your lockscreen timeout value is set to Immediately. Now, if you use Doze Delay, then it will use wake locks, because there's no other way, but again, a warning is given to the user. The wake lock is present to prevent ForceDoze from putting the device into Doze until the lockscreen timeout and/or the Doze Delay (set by user) passes. I had received quite a few complaints regarding that. Previously, the app used Handlers and then switched to Timers, but both of them were very unreliable and they used to get suspended by the OS sometime after the screen off, and that prevented ForceDoze from putting the device into Doze. There's no other way in Android to schedule tasks like that, so the only choice left was to use a partial wake-lock that kept the CPU running to make sure the Timers fire correctly. It won't have any impact on battery life even if you had a lockscreen timeout of 1 min, but if the timeout is a lot longer, then yes it could have a bad effect. The app gives you a warning if your lockscreen timeout is high, and also gives you an option to make the device enter Doze regardless of the timeout. I rolled that out a few versions ago as an experimental feature, once I receive confirmation from some of the users that it doesn't have any effect whatsoever on the functioning of Doze and doesn't cause any unwanted behavior,

I will change ForceDoze so it always ignores the lockscreen timeout

. Just because Greenify ignores the lockscreen timeout does not necessarily mean it's the best thing to do. Even Doze itself activates after 30 mins by default on all devices, because the max lockscreen timeout value is 30 mins, I believe there is a reason why it does so and honors the lockscreen timeout.
[Android Apps and Games] ssrij:
It's G935F, Exynos model!
[Android Apps and Games] Arstoien:
Hey, thanks for the detailed answer. Hope you didn't take my comment the wrong way.

Sent from my Nexus 5
[Android Apps and Games] ssrij:
Not at all!
[Android Apps and Games] optimummind:
[MENTION=5427507]ssrij[/MENTION] I PM'ed you the my logcat file.
[Android Apps and Games] Stroky:
Does somebody know which part i have to set on the whitelist when im having wifi drops by streaming music?

The Streaming Apps are set to the whitelist and it is only when i stream it via wifi.

When i play a song which is downloaded there is no drop
[Android Apps and Games] optimummind:
[MENTION=5427507]ssrij[/MENTION] Even on the latest 1.2.8, I'm having WiFi issues. Also, Doze still sometimes starts when the screen is turned on & not when turned off.
[Android Apps and Games] liver20:
Tonight i lost 4% of battery on doze mode

Enviado desde mi Z1 mediante Tapatalk
[Android Apps and Games] ssrij:
Consider reducing your lockscreen timeout to Immediately, the app even gives a warning in case you've not noticed it
[Android Apps and Games] ssrij:
Logcat please
[Android Apps and Games] Devoct:
v1.2.8 rocks hard!

quick question, how do i know if motions are disabled properly?

because my Ambient Display works correctly, while it shouldn't?

(i don't enable "Don't disable sensors on screen off" option)

edit: logs show it's Disabling sensors when screen turns off.
[Android Apps and Games] ssrij:
If the logs says disabling sensors then your sensors get disabled. Also, only on some devices there's an issue with sensors, so if ambient display is working for you, then it means your device isn't affected and that's good.
[Android Apps and Games] ssrij:
I think I may have found a way to prevent Doze from using motion sensors, without disabling the sensors themselves. This should help with auto-brightness/rotate and other issues (esp on LG devices) but it would require Xposed. I'll release it as an experimental feature in the next version in a few hours
[Android Apps and Games] darkwolf_99:
Great! Should I install Xposed?
[Android Apps and Games] rcherif38:
If you have issues or if you have lg device then install xposed if you want it
[Android Apps and Games] darkwolf_99:
Neither. I've install it before, but it made my several apps crash. If it can't enhance forcedoze, I'd better not do it. Thanks for replying me.
[Android Apps and Games] erghetto:
How to reduce this?

App gives me the advice and opens settings of my s6, but i haven't understood what have i to modify
[Android Apps and Games] ssrij:
https://youtu.be/J1NXMiuKiR8?t=1m2s
[Android Apps and Games] erghetto:
I haven't that option xD

I am on custom rom, maybe this is the reason..
[Android Apps and Games] ssrij:
It should be in security/lockscreen settings somewhere
[Android Apps and Games] erghetto:
Mm no, nothing.

I am on a heavy debloated rom, maybe that's the reason
[Android Apps and Games] ssrij:
Set it via ADB then: adb shell settings set secure lock_screen_lock_after_timeout 0
[Android Apps and Games] erghetto:
Thank you for your help, but i'm not able to do this.

I'll see to change that option if i come back to stock rom or to another one.

Thanks again ^^
[Android Apps and Games] ssrij:
You can't use ADB?
[Android Apps and Games] erghetto:
If i remember what it is, maybe i have used it once some years ago on a nexus device.

Now i surely wouldn't be able to use.

Don't worry. Thbak you however ^^
[Android Apps and Games] liver20:
Last version dont works auto bright correctly

Enviado desde mi Z1 mediante Tapatalk
[Android Apps and Games] ssrij:
Have you turned on the auto-rotate/brightness fix option in app Settings?
[Android Apps and Games] liver20:
Yes

Enviado desde mi Z1 mediante Tapatalk
[Android Apps and Games] darkwolf_99:
With 1.2.8, in the morning, it happened again that OS cannot enter doze. Please check the snapshot and logcat. And it seems to take much battery.
[Android Apps and Games] Devoct:
after you released v1.2.8 with xposed modules, ForceDoze seems to work even better, enter and exit doze worked as intended.

before, i usually get this one or two with device didn't exit doze, double enter-enter doze in stats, not a big deal, but maybe you could look further to xposed module support, as there are many people use xposed too. :)
[Android Apps and Games] HowJesNo:
since last update focre doze goes heavy on the battery.

charged it yesterday around 8PM and left it overnight, went from 100 to 77%.

imgur.com/a/rakIS
[Android Apps and Games] ssrij:
You are not supposed to use it with Greenify's aggressive doze
[Android Apps and Games] ssrij:
I don't know why that happens, you should re-install the app, restart the device, open the app and turn on ForceDoze and then check the logs (Menu > Settings > Debug logs) to see what's going on
[Android Apps and Games] Donnie Sins:
Perhaps you can add a feature that allows you to set up a certain time frame after which the app forces doze to turn on. For example, sometimes I have to answer, let's say, 5 messages in a couple of minutes, but everytime my phone enters and exits doze mode. Just an idea, you have to decide if you want to implement it.

By the way: the latest version of the app does fix the problem with auto brightness for me. Thanks! I'm using it again and it works great.

Sent from the Matrix
[Android Apps and Games] optimummind:
I've been using both together at the same time with no issues that I'm aware of. What are some negative things that can happen when both are activated?
[Android Apps and Games] ssrij:
Great to hear that. I am already working on a delay feature and a night mode feature (keeps forcedoze enabled only during night), it will be available in the next update

I am not aware of the issues, but since both apps implement Aggressive Doze the same way, it could cause the Doze mode to crash or hang or something else. You should only use ForceDoze, or Greenify Aggressive Doze but not both
[Android Apps and Games] PINki92:
I believe that I cannot grant SU permission, never been asked again after reinstalling the app. How to fix that?
[Android Apps and Games] ajeesh vijayan:
logs option is greyed
[Android Apps and Games] PINki92:
Nevermind, uninstalled and installed app again, granted permission.
[Android Apps and Games] ssrij:
Try executing adb shell pm grant com.suyashsrijan.forcedoze android.permission.READ_LOGS from ADB on your PC
[Android Apps and Games] ssrij:
You need root for that
[Android Apps and Games] ajeesh vijayan:
am rooted ... other apps detect root
[Android Apps and Games] ssrij:
Try reinstalling the app
[Android Apps and Games] JoeFCaputo113:
So if I have this app, and enable it, when I turn my screen back on, does doze "shut off" and then I get all my notifications (from say G+, etc.)?! Thanks!
[Android Apps and Games] ssrij:
Yes
[Android Apps and Games] rcherif38:
I use g3 d855 with custom rom fulmics 5.1 ( marshmallow 6.0)

And this app is not requesting root permition even if i tried to reinstall it and when i go to settings --> applications no permissions are required that i can enable just a blank page... Is tbere any solution for that ??

I really want to try it
[Android Apps and Games] ssrij:
The permissions it requires cannot be requested by third-party applications, that is why you can't see the permissions listed in Settings > Applications. Check your SU log to see if the SU request didn't get denied. Also, make sure you're on the latest version of ForceDoze (you can grab the latest APK from https://www.androidfilehost.com/?fid=24533103863140093). When you run the app, it will show a dialog saying "Requesting SU access..." and then you'll see a SU authorization prompt after a couple of seconds
[Android Apps and Games] rcherif38:
sorry but this is what i am saying to you :D the app do not request su permission at all and is not mentioned in su log either

this problem is facing me and ajeesh vijayan i think ( we are fully rooted )

:D

i use the version 1.0.9
[Android Apps and Games] ssrij:
Send me the logcat
[Android Apps and Games] rcherif38:
i dont know if i did it the right way

please tell me :D
[Android Apps and Games] milojoseph:
Just want to let you know that even after you turn off greenery aggressive mode the notification still come which is pretty cool.
[Android Apps and Games] ssrij:
What's the lockscreen timeout set to? Are you using SmartLock?
[Android Apps and Games] ssrij:
I see, the logcat says "ForceDozeService: Unable to go idle; stopped at ACTIVE`, but there's no further reason given by the system, so it's hard to tell why it didn't go into Doze mode. I'll look more into this
[Android Apps and Games] darkwolf_99:
[MENTION=5427507]ssrij[/MENTION] Does the xposed module of build 1.2.8 enhance Forcedoze's function?
[Android Apps and Games] HowJesNo:
i use swipe as lock screen type, so no ''Secure lock settings'' i switch to PIN and there it is timeout was 15second.

I switch timeout to immediately, and chage screen lock type to ''Swipe'' and ForceDoze no longer show warning about lockscree timeout.

will charge now to 100% ad post result later in evening. (it's 11:30AM now).
[Android Apps and Games] ssrij:
No, right now it's only to permanently enable Doze on devices which have Doze disabled by the OEM. I'll be adding more Xposed related features soon. I've already finished working on one as I explained in a post yesterday, but I am having some issues with Xposed and Shared Preferences, so once I fix it, I'll push a new build out.
[Android Apps and Games] darkwolf_99:
That's awesome! Looking forward to new built. Will it fix my issue that sometimes forcedoze cannot make OS enter doze? Or the issue isn't because of forcedoze?
[Android Apps and Games] ssrij:
No. And it's not related to ForceDoze, ForceDoze only calls a command to make the device enter/exit Doze, whether it succeeds or fails is depended on the system. I've had that issue on my device as well, so you're not alone, but it only happened once or twice at most, but I've done almost everything I can do ensure that the code responsible for making the device exit/enter Doze is executed properly, not sure if I can do something else to fix it, but I'll look into improving the reliability further.
[Android Apps and Games] darkwolf_99:
I got it. Thank you for what you've done in these days. I will re-install xposed for your new build:highfive:
[Android Apps and Games] Chinaboy5216:
Same here, loosing around 30% overnight.
[Android Apps and Games] erghetto:
[MENTION=5427507]ssrij[/MENTION]

That's it! Yesterday, when i asked you about how to set timeout to immediately, i told you i haven't that option in settings. This because me too use swipe as lockscreen.

I have done same thing of this user and have set it to immediately. I didn't know smart lock section appears only with a lockscreen different from swipe xD

Thanks guys ^^

Edit: i'm now reading about xposed.

What do i have more with xposed? And where do i download the module for this?
[Android Apps and Games] ssrij:
I have pushed a new update now (should be live in a couple of hours on Play Store, but feel free to grab the updated APK). I have updated the Xposed module with a feature that prevents Doze from using motion sensors, thus making your device stay into Doze,

without disabling device motion sensors

. This should fix all brightness, rotation, screen not turning on LG devices, etc issues faced by people on some devices. This is experimental, so let me know if this is working correctly and you notice the same improvements to battery life like before (without the module).

I have also made ForceDoze ignore lockscreen timeout by default, so no more wakelocks, unless you disable Ignore Lockscreen timeout option in Settings. Note: If you're updating the app, then you will have to manually enable Ignore lockscreen timeout. It's only turned on by default on new installations.
[Android Apps and Games] darkwolf_99:
I've updated, thank you! :highfive:
[Android Apps and Games] ssrij:
Can you let me know what the Xposed Log says? You can view the log by opening the Xposed Installer app -> Logs
[Android Apps and Games] darkwolf_99:
It's empty so far. I'll let you know if it's available.
[Android Apps and Games] ssrij:
Have you rebooted after enabling the module? You always have to reboot after enabling/disabling modules