yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] edupraca1:
Go to Apps > press top right points > Configure Apps > Ignore Optimizations > System Ui Mark

Then open the application doze Force , enters the application options and reset force doze .

you re-enable it and go.

Sorry, google traslate

---------- Post added at 03:28 PM ---------- Previous post was at 03:25 PM ----------

Go to Apps > press top right points > Configure Apps > Ignore Optimizations > System Ui Mark

Then open the application doze Force , enters the application options and reset force doze .

you re-enable it and go.

Sorry, google traslate
[Android Apps and Games] ssrij:
It's false because (obviously) your phone won't be in Doze mode when the screen is on. It changes to true when your phone goes into Doze mode when the screen is off, but you (obviously) can't see it because the screen is off
[Android Apps and Games] rcherif38:
I will give it a try ...nice idea :D
[Android Apps and Games] ssrij:
Wow, that's really strange. Can you send me a logcat?
[Android Apps and Games] edupraca1:
For LG G3 users who can not unlock the phone after using force doze .

Go to Settings> Apps > press top right points> Configure Apps > Ignore Optimizations > System Ui Mark

Then open the application doze Force Enters the application options and reset force doze .

you re -enable it and go .

Sorry , google Traslate
[Android Apps and Games] ssrij:
You can turn off the persistent notification in the app's Settings and then turn off/on ForceDoze to apply
[Android Apps and Games] ssrij:
No, it says false because the phone is not in Doze mode when the screen is on (obviously). It will turn to true when your phone goes into Doze mode when you turn off the screen, but you obviously won't be able to see it because the screen would be off
[Android Apps and Games] ssrij:
Could you send me a full logcat? I've tried every possible way to make sure it doesn't turn on when the screen is on. Now, if it turns on when the screen is on, then it's probably an OS issue.
[Android Apps and Games] rcherif38:
Sorry edupraca1 but your solution didn't work for me ... After leaving my phone for a while i cant turn it on by using double tap or the button

So i connect it to charger to turn on the screen instead of removing the battery
[Android Apps and Games] Intellectua1:
Creating a per app logcat now or do you need a system logcat? And since I can't do a logcat of what happened in the past I will have this one to you by tomorrow.
[Android Apps and Games] ssrij:
System logcat
[Android Apps and Games] edupraca1:
I have a modified rom based on 6.0.1 and doing what I suggested works well .

I happened the same and i resolved the problem as i said.

Sorry for my terrible english.
[Android Apps and Games] rcherif38:
I am using a stock based rom 6.0 (fulmics 5.1)
[Android Apps and Games] petr232:
Any idea why Doze activates only 4-5 minutes after I turn off my screen (with powerbutton)? ForceDoze delay is default 0, lock screen timeout set to immediately yet when I turned my phone off at 19:28 and checked logs few minutes later, Doze activated only around 19:35. Not sure if it's my phone, I also noticed that for some reason Wi-Fi doesn't also turn off even if "Keep Wi-Fi On During Sleep" is set to "Never" :(

Anyway thanks a lot for this app, now I don't have to care about not having Stamina on my Z3C :)
[Android Apps and Games] ssrij:
Could you send me a logcat?
[Android Apps and Games] petr232:
Well it seems it suddenly works now (takes only few seconds to enter Doze), however I found something else - when I set the Lock screen timeout to "immediately", ForceDoze won't activate, it reports that the screen is on:

http://pastebin.com/c0jNgNzs
[Android Apps and Games] ssrij:
Yeah I saw that in the logcat, I see a 13ms delay between "Waiting for 0ms and then entering Doze" and "Screen is on, skip entering Doze", I think the screen wasn't off fully after enterDoze() was called, thus preventing the service from activating Doze.
[Android Apps and Games] kryshnakishore:
125 is really awsome, back to this app from greenify.
[Android Apps and Games] rotras:
Sensors

First of all nice and helpful app.

It would be great to add a feature for choosing the sensors that stay active when the screen goes of.

On my OnePlus X with CM 13 and DT2W the phone is sometimes activated in my pocket.

This doesn't happen if the proximity sensor is active. On the other hand the motion sensor shouldn't be active when the phone is off and in my pocket because every movement would stop doze mode.
[Android Apps and Games] ssrij:
There's no way to specifically disable certain sensors. Disabling sensors actually prevents that from happening, if sensors are active while your phone is moving, it will prevent the phone from properly entering Doze, disabling sensors stops that from happening. Anyway, you can stop the app from disabling sensors by turning on 'Don't disable sensors on screen off' in the app's Settings
[Android Apps and Games] expiredd:
Persistent notification never showing correct information, anyone else?
[Android Apps and Games] ssrij:
You should check the logcat, it could be because the phone isn't entering/exiting Doze
[Android Apps and Games] keijikage:
Tried the latest version on the N Preview, still seems to be having issues. Looks like I keep getting an error "Security exception: Neither user 10086 nor current process has android.permission.DEVICE_POWER.", so it seems like the dumpsys permission is not enough anymore.
[Android Apps and Games] ssrij:
EDIT: Pushed a new update to Play Store which should fix this now. You can also grab the latest APK from post #1 and try it out. If you're rooted, then this permission will now be automatically granted. Otherwise, you'll have to manually grant it via ADB, just like you granted the DUMP permission.

Thanks, I'll add the permission now. I don't have a N compatible device so unfortunately can't test anything on it.
[Android Apps and Games] keijikage:
Unfortunately, it looks like I can't even grant the DEVICE_POWER permission via ADB as it is a special class of permissions. I thought DUMP was in the same class, but DUMP seems to have an unknown protectionlevel which allows you to grant via ADB when it is declared in the manifest. I'm not 100% sure that it is something you can grant even with root, as the things I have read aren't very encouraging.

https://developer.android.com/reference/android/R.attr.html#protectionLevel
[Android Apps and Games] ssrij:
Hmm, seems like that permission is of type signature, app needs to be signed with the same certificate as system apps. It may be possible to grant it via root perhaps, but I'm not sure, I don't have a N device to test.

You could try moving it to system/priv-app folder and then try the ADB command, but I'm not sure if that's possible without root or putting the app's APK into the ROM file and flashing it
[Android Apps and Games] VinciusG:
Hi, do I have to disable stock Android doze before using this app?
[Android Apps and Games] kryshnakishore:
Yes for me too... Doze time set to 0, lock screen set to immediately when I press power button, it not entering doze some times & some times notification is incorrect wrt to logcat.. Pls fix it & do I need to change anything?
[Android Apps and Games] expiredd:
I've reseted app, reinstalled and re-granted permissions via ADB (I've not root on my device). Seems to be working now.
[Android Apps and Games] PeterImmel:
Suggestion: remove the first line('currently dozing: false/true') from persistent notification.

So the notification hasn't to be maximized to see the data. Also, it's on false always if it can be seen anyways.
[Android Apps and Games] expiredd:
Do you guys know what's the Doze time window to let notifications flow in?
[Android Apps and Games] papete:
Not working?

First of all, great app. thanks you very much for sharing your effort with us...

Now down to things, I think the app is not working on my rooted LG G5, the debug log looks weird and the battery log shows entering doze mode but never leaving. Could you take a look at the attached log please?

New feature idea: It would be great to have the option to disable doze. When I'm at home I can plug my device at any moment so it is not a priority to conserve battery and I would prefer my notifications to come in right away....

Thanks again
[Android Apps and Games] mrfrantastic:
You can disable force doze with just flicking the switch off on the main screen... Or did I misunderstand you?

Edit: yeah, I misread your post. You were talking about doze in general, not force doze. My bad.
[Android Apps and Games] PeterImmel:
The feature is already included
[Android Apps and Games] papete:
No, it disables force doze not doze. Doze is disabled by default while charging anyway, but I would like to disable it altogether. I think I can use a shell command for that, I'll look it up and implement it with Tasker.
[Android Apps and Games] hanleysiu:
When the app is updated, it doesnt ask for root permissions again even though it doesnt have any? Is there any ways apart from having to reinstall for each update. Anyways, great app! It has been great so far apart from that !
[Android Apps and Games] Arstoien:
"dumpsys deviceidle disable" to disable doze. Same with "enable" in the end to re-enable it. And you've got to check "use root" in Tasker.

Sent from my Nexus 5
[Android Apps and Games] jordirpz:
can you add whitelist directly with settings/apps/applications optimized?

Thank you

(Becasue, is necessary check the same apps in whitelist forcmode app that whitelist by default in stock rom?)
[Android Apps and Games] mrfrantastic:
Does it make sense to use Greenify (with donation package and Xposed) with FD to greenify Gapps or Whatsapp? I prefer FD for aggressive dozing and I wondered if I should add Greenify to the whitelist and only add system apps/Gapps to Greenify (everything else should be blocked by FD).

My idea is to reduce battery drain of the remaining services that are not affected by FD, for example Play Services.
[Android Apps and Games] ssrij:
Why would you want to disable Doze? Also, when charging it's disabled anyway, and ForceDoze is also disabled by default when charging. Are you looking to disable it while the phone is not charging?
[Android Apps and Games] ssrij:
What do you mean?
[Android Apps and Games] ssrij:
I'll see if I can replace it with another datapoint. It can sometimes show true if the device incorrectly enters Doze during screen on it doesn't properly exit Doze after screen on, which can be helpful.
[Android Apps and Games] ssrij:
No
[Android Apps and Games] jordirpz:
In stock 6.0.1 rom ,go to settings/apps/optimize battery, and i select apps what i want have in whitelist.

Why not your whitelist redirect directly with this whitelist and i need rewrite the same apps that i had in stock whitelist?

Doesnt the same?
[Android Apps and Games] ssrij:
You don't have to. The app's whitelist does the same things as the Optimize Battery option, but it just makes it easier for you to add/remove apps from the Doze whitelist.
[Android Apps and Games] ely105:
Really a nicely done app! And I am thankful that you made it functional on non-rooted devices.

I was able to get forcedoze to work after i enabled lockscreen. Initially i had no lockscreen and just turned off the screen. It didn't seem to go into doze until i enabled basic lockscreen at least.

I was trying to use this with apps like Smart Wifi Toggler or WiFi Automatic but have some questions:

I was turning off wifi before forceDoze enabled doze. But is that necessary or even not recommended?

Does Doze shutdown wifi radio or keep it active?

And if you have Cell radio active is it better to let doze manage radios or would it be better to turn off wifi so that both radios are not active?

And if it is advantageous to turn off wifi before entering doze, will doze activate wifi radio or leave it turned off?

On a wifi only tablet, again, is it better to let doze manage data traffic and radios or to whitelist the app so it can wake up every 15/30min or so?

Thanks,

Mark
[Android Apps and Games] HowJesNo:
nice app, just installed it, will see if any improvement over the night. my s6 non rooted (took me a while to figure out how to use ADB) uses around 8% overnight (10PM-7AM).

is it normal for the notification clock of the ForceDoze to be stuck at the time it was turned on??

imgur /fd37hXa
[Android Apps and Games] ssrij:
Its not necessary. If you want to know how Doze/ForceDoze works, there's a little information button on the main screen of the app, try tapping that.
[Android Apps and Games] ssrij:
You mean the lockscreen clock? It doesn't get stuck on mine, but it can get stuck on some other devices. The clock would usually update itself in seconds after turning on the screen anyway
[Android Apps and Games] David_D36:
With this app, my phone seems to be in doze all the time when the screen is off. However, my battery drain is still very high with about 8% drain in 3 hours in a low signal zone. Cell Standby, Android OS, Phone Idle, and Android System drain the battery. Since doze is supposed to prevent apps from accessing the network, why am I still losing so much battery?
[Android Apps and Games] optimummind:
Is cell standby the highest drainer? If so, there is nothing you can do except turn on airplane mode in bad signal areas & complain to your carrier.
[Android Apps and Games] David_D36:
Yes, cell standby is the highest drainer. I recently switched from an iphone so I'm not used to such high standby battery drain. I wish I could make the standby battery life better without disabling radios....
[Android Apps and Games] Mgssidley:
The notification hasn't worked for me since it was released. It always shows that doze is off, and that there is no data of the last screen off or time spent dozing. I've reset and reinstalled ForceDoze, but still the same.
[Android Apps and Games] milojoseph:
Thank you so much
[Android Apps and Games] V4lve:
What app are you using show that?
[Android Apps and Games] milojoseph:
gsam

https://play.google.com/store/apps/details?id=com.gsamlabs.bbm&hl=en
[Android Apps and Games] ssrij:
Maybe because your phone isn't entering Doze correctly. Can you post a logcat?
[Android Apps and Games] Mgssidley:
Here it is, thanks
[Android Apps and Games] ssrij:
This logcat doesn't help much. From the entry: Waiting for 1800000ms and then entering Doze It seems like you have a lockscreen timeout value set to 30 mins, and you're turning your screen on

before the 30 mins passes

. Either lower the lockscreen timeout value from Security Settings on your phone or leave the phone for 35-40 mins and then check the logcat
[Android Apps and Games] Mgssidley:
I've actually always had it set to 0, so maybe I just need to bump it up a few...

Edit: Oh lockscreen timeout, yeah that's set to 30. I'll lower it and see what happens.
[Android Apps and Games] dzr:
I use Smart Lock to have my smart watch keep my phone unlocked, when it's near me. I guess I can't use this app. That's unfortunate. Any workarounds? Thanks
[Android Apps and Games] ssrij:
Does Doze prevent you from unlocking your device anytime it's connected to your watch? Just stock Doze, not ForceDoze. So for example if your watch is connected to your phone for 8 hours, are you able to unlock your device in between those 8 hours anytime you want?
[Android Apps and Games] dzr:
It's the opposite problem. Smart Lock keeps the phone unlocked all day, so, Force Doze doesnt work. Once I allowed my phone to lock (turned off Smart Lock) FD worked.

For now, I changed to fingerprint lock.

Thanks
[Android Apps and Games] ssrij:
I could bypass that, but then that could prevent Smart Lock from working
[Android Apps and Games] turtle254:
Thanks for this apps ... looks like this will replace Greenify App, I see no use for both?
[Android Apps and Games] dzr:
Thanks. So please just document the issue. It took me a while to figure out what was going on.
[Android Apps and Games] dzr:
Thanks again for this app!

So, the Force Doze delay should always be longer than the screen lock?

Regarding the white list- does the FD or Android take priority? Can FD just go to the system screen of they are indentical?

Does the FD white list also impact power saving mode (like the OS version does)?

If the system plays catchup to all the missed items after exiting doze - does that mean that the FD timer should be tweaked to get a sweet spot between dozing and triggering events? Or- since there won't be any or many events during a short doze, it doesn't make a difference? Any other reasons for non-immediate doze, other than nor wanting immediate screen lock?

Thanks!
[Android Apps and Games] ivanchin99:
Using forcedoze for a day and instantly notice a better battery drain than greenify aggressive doze. One issue is the GPS for my running app isnt working correctly. Timer works fine but distance (GPS) goes off as soon as the screen is off. Any suggestion on what to whitelist other than the running app? :)
[Android Apps and Games] turtle254:
Any reason to hold on to Greenify if we are using ForceDoze?
[Android Apps and Games] ssrij:
Not necessarily, in the last few versions, I tweaked the delay so if your screen lock timeout is set to Immediately (0ms), there will be a delay of 1 second before the phone enters Doze, so that issue shouldn't happen again.

Any app you add/remove from the FD whitelist gets added/removed from the Doze whitelist, so Android's list takes priority. FD doesn't maintain its own whitelist, just makes it easier for you to add/remove apps.

FD Doze Delay is only to delay the FD from forcing the phone into Doze mode. The delay is added on top of the lockscreen timeout delay. You can use it if you don't want FD to put the phone into Doze immediately or to temporarily add a delay because you want certain apps (like Runkeeper) to run while the screen is off.
[Android Apps and Games] ssrij:
That's because GPS is suspended in Doze mode, whitelisting will not help. The best way to avoid it is to either turn off ForceDoze when you're running Runkeeper and turn it on after you're done or add a delay to ForceDoze by going to the app's Settings -> Doze Delay and selecting a delay (30 mins max). You can then remove the delay after you're done using Runkeeper.
[Android Apps and Games] ssrij:
Hibernate apps, etc. Stuff that Greenify is mainly used for. If you're just using it for Aggressive Doze then No.
[Android Apps and Games] ditosetiawan:
I have a question, if i turn on "Don't disable sensors on screen off" in app Settings and restart the ForceDoze service to fix My device doesn't turn on. Is that mean the ForceDoze doesn't running optimally??
[Android Apps and Games] ssrij:
That setting is only to prevent ForceDoze from turning off device sensors on screen off (and then turning it back on during screen on). By default ForceDoze disables sensors on screen off and re-enables them on screen on, but on some devices, there are issues when this is done, so that setting helps prevent those issues. ForceDoze will still work as expected, just that your battery savings won't be as high as with the setting not enabled.
[Android Apps and Games] wilpang:
Hi ssrij,

Just some quick question regarding the app and the notifications side of it, when ForceDoze activates when my screen is off, I will only receive text notifications when ForceDoze next does it periodical system check, is that right?

What happens to the notification led? Does ForceDoze switch that off when it enters Doze again?
[Android Apps and Games] ssrij:
Not ForceDoze, but Doze. ForceDoze is only responsible for making the device enter Doze mode on screen off and exit Doze mode on screen on, everything else is handled by Doze itself.

Yes, you'll get notifications during a Doze maintenance window, or if those notifications are of high-priority, then they will be delivered during Doze, i.e those high-priority notifications won't be prevented from being pushed to the device until a maintenance window, they will be delivered right away.

The notification LED would be active, but would obviously blink when you get a notification.
[Android Apps and Games] wilpang:
Thank you for your reply

Does the app auto start when I restart the device? Can't seem to see anything in the settings?

I've gone for the non root way and seems to be working alright so far but I suppose I will have to wait until I can check the battery stats in a couple of days ?
[Android Apps and Games] ssrij:
Yes, the ForceDoze service auto starts on bootup if you've enabled it.
[Android Apps and Games] ps89:
First, thanks for making this great app!

I noticed that my non-rooted Nexus 5 sometimes has the auto-brightness and auto-rotate bug even though I have turned on the setting in the app. This problem didn't happen when I was using Greenify's aggressive doze. Any idea why?
[Android Apps and Games] creeve4:
When setting a delay greater than 0 minutes, my device does not enter doze. See attached log.

Nexus 5, stock 6.0.1
[Android Apps and Games] ssrij:
Because Greenify's AD will not disable sensors for extra boost to battery life. If you have issues with Auto-rotate and brightness even after fix, you can disable the fix and enable "Don't disable sensors on screen off" in the app's Settings.
[Android Apps and Games] ssrij:
It obviously won't enter Doze until the delay. You seem to be turning on the screen before the delay has passed. If you set the delay to 30 mins, ForceDoze will only make the device enter Doze mode after 30 mins. I don't see a problem here
[Android Apps and Games] darkwolf_99:
sometimes system exits doze automatically and cannot enter it again

At 11:39 today, the screen was off. And till 12:02, system hasn't entered doze for about half of hour when the screen was on again. Please help me with it, thanks.
[Android Apps and Games] ssrij:
Please provide a logcat
[Android Apps and Games] darkwolf_99:
https://www.dropbox.com/s/3cbf592ndft26om/Screenshot_2016-05-30-12-05-19.jpg?dl=0

https://www.dropbox.com/s/926y9in7bpc7i8c/Screenshot_2016-05-30-12-06-07.png?dl=0

Hope they are helpful. Thanks!
[Android Apps and Games] NOSTALGIA:
i also experience this earlier today..
[Android Apps and Games] littleshiro:
Facing the same problem in Moto g 3rd CM 13 [emoji24] [emoji24] [emoji24]

Enviat des del meu MotoG3 usant Tapatalk
[Android Apps and Games] wilpang:
Does the setting Don't disable sensors just disable double tap to wake and other motion sensor?

I ask because the phone will never go to doze if it's in my pocket for example or will it?
[Android Apps and Games] ssrij:
I am looking into it, will push a fix soon
[Android Apps and Games] ssrij:
It doesn't disable anything. It only prevents ForceDoze from disabling motion sensors on screen off (and re-enabling on screen on), which it does by default. You should only turn on the option if you're having issues with motion sensor.
[Android Apps and Games] darkwolf_99:
Thank you very much!

Just now I found a little bug on log about am and pm. I think maybe it's better to use 24-hour system. Thanks.
[Android Apps and Games] ssrij:
I have pushed a new update that should fix the issue and make sure your device correctly enters Doze mode on screen off.

You can change the time to 24-hours in Date/Time settings on your phone and that should fix this.
[Android Apps and Games] darkwolf_99:
Many thanks. I've updated.

But all the times, I use 24-hours in system setting. If it happens again in v1.2.6, I will let you know:)
[Android Apps and Games] ssrij:
I haven't changed anything related to time format in 1.2.6, so you wouldn't notice any difference (yet). That's strange, I use 24 hours as well and I don't see AM/PM in Doze stats. What country/timezone are you in?
[Android Apps and Games] darkwolf_99:
I'm in China, +8.

I just made a snapshot. In Doze stats, it's am/pm, but it's 24 hour in my system time.
[Android Apps and Games] hhuimie:
when I enable doze on unsupported device, and turn off the screen, it works.

But everytime I reboot my device, I need to click the "enable doze on unsupported device" button again.

Is it a bug?
[Android Apps and Games] ssrij:
What happens when you clear the Doze stats (from Settings) and turn off 24 hour option in Date/Time settings on your phone, does the app still log the time with AM/PM?