yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] ssrij:
Can you try reinstalling the app?
[Android Apps and Games] turtle254:
No ... guess that's what it means, so no use trying to use that option.

Can't beat the support you give, Thanks
[Android Apps and Games] ssrij:
Nothing really useful in the logs since you've not been using the app, so there's no useful data logged. Anyhow, I still don't understand what issue you're facing. As far as I remember, you said something along the lines of the device staying "awake" even when charging, and I am not sure what you mean by that. By default, ForceDoze is not activated when your device is plugged in and charging, so obviously your phone will stay awake and not enter Doze, unless you disable that option.
[Android Apps and Games] ssrij:
Yeah, that explains the error. Turning off/on mobile data requires root, but it's not required when turning off/on WiFi, so you should ignore the error dialog and keep the setting on. It will still turn off/on your WiFi, if not mobile data. I will soon be separating the setting into two parts, so you can decide to disable WiFi, mobile data or both. This will offer more control and allow me to disable/hide the mobile data option if root is not available.
[Android Apps and Games] SixFourSix:
Any problems using FD with Greenify's shallow hibernation?

I'm assuming normal hibernation is fine, but shallow causes occasional wakeups, so it might break doze right? Or shallow hibernation might not work at all.

Any experiences?
[Android Apps and Games] ssrij:
I haven't tested it with that, guess you'll have to find it yourself. Most probably yeah, if there's a wake-up but whatever wakes up the device doesn't put the device back into Doze, then yeah it will break ForceDoze, but then device will go back into Doze on its own i.e like Doze does by default on a device (without ForceDoze) obviously, so your device will still enter Doze again. It's all theory since I haven't actually tested it with Greenify, so let me know what happens
[Android Apps and Games] ssrij:
Pushed a new update a few minutes ago. The previous setting Disable Internet during Doze is now split into two parts - Disable WiFi during Doze and Disable mobile data during Doze, giving you more control over the settings and allowing you to only disable WiFi or mobile data (or if you wish, both).

I will be adding a new setting soon, called Night mode which will disable all radios (WiFi, mobile data, BT, etc) during night when your phone is Dozing. Would you like to instead see this setting as Enable Airplane mode during Doze (i.e activated every time during Doze)? Or would you like to see it as Night mode only?
[Android Apps and Games] kryshnakishore:
Updated logs

Log : https://mega.nz/#!m8l3jb5K!dJv2pCPR6kJnu8MT8UBBDHt7TkHAIwN7fZJyWZzf0Vw

Logcat : https://mega.nz/#!f5NRVJbT!83aqZ62jyjRah21eFwwbDsmh8OhYKjXeFZs6FIc8ZD0

Regarding bars in mean battery here's screenshot :

https://mega.nz/#!WgMHFbyC!2sXvHS3mDfCgTZi_9usqTy0lQGiir2lwltWlLSRh38k
[Android Apps and Games] kumbangdesa:
More option is better. But at my opinion night mode is better priority. Thanks.

Currently I'm testing the latest build. Much better got saperate option for wifi and mobile data control. :)
[Android Apps and Games] kryshnakishore:
Night mode would be better, people might confuse with airplane mode which disables ph signal too.. So night mode would be fine... I dnt see this much important looks like commercial addon & adding more settings to app makes more crappy.

Simple Should be like "Force doze = battery freezer.

Just my thought & suggestion.
[Android Apps and Games] darkwolf_99:
With my opinion, I prefer Enable Airplane mode. It can be automatic to turn on and off on timing. Absolutely, more options would be better.

Thank you for your wonderful non-stop improvement. Build 35 can control my mobile data:good::good::good:

To everyone, after updating directly to Build 35, if FD works not well, please uninstall it totally, restart your OS and install it again.

Just now, I updated directly to the latest, but everything went bad, FD cannot force my OS into doze, couldn't turn on wifi automatically after screen turned on. I have tried many ways, checked/unchecked options in FD according to the log. I would have almost sent logcat to ssrij. But after doing as above, everything goes right.:laugh:
[Android Apps and Games] turtle254:
activated every time during Doze .... my choice

also I'm on galaxy s6(not rooted) and under Usage Manager I can turn mobile data off/on., but in the option FD it tell me I don't have SU permission?
[Android Apps and Games] darkwolf_99:
[MENTION=5427507]ssrij[/MENTION]

Could it be possible for me to adjust manually the delay time shorter than 60secs in some FD's file to make wakelock time shorter? I think 20 or 30 secs are better. Thanks.
[Android Apps and Games] zaibansari20:
I'm testing it now but the app also a xposed module that you've not mentioned

What does it work with xposed
[Android Apps and Games] Ygor Cortes:
I have a question... searched for it, but couldn't find it here, so I'll ask, sorry if you already answered it before. Well... Unfortunately Ambient Display stops working when the disable motion sensors feature is enabled (as I already expected). So if I disable this feature, will my device stop dozing when movement is detected? Thank you a lot for the app and for the attention!
[Android Apps and Games] android_htc:
Thanks again for this app.

I would prefer night mode and keeping the other settings for WiFi and data as they are. I think the night mode would be a great addition as I would need my WhatsApp messages and calls to come through during the day time only.
[Android Apps and Games] ssrij:
You haven't used the app, so there's no useful logs. Just mentions of the app starting up or the service being enabled/disabled. Send me the log after you've used actually used ForceDoze for a while
[Android Apps and Games] rcherif38:
sorry for bothering you a lot but my only intention is that i wat it to work because i like your work :D

and still the app is not mentioned in su log
[Android Apps and Games] Gzubik:
Me have the same problem :(

Wysłane z mojego SM-G920F przy użyciu Tapatalka
[Android Apps and Games] NickosD:
Ambient display isn't working while installed. Unistall ed and it works again.
[Android Apps and Games] optimummind:
For now, I had to turn off forcedoze on all of my phones. Too many issues making it not reliable.

On the N910C Note 4, the screen doesn't turn on right away. Takes 3 to 4 power button presses. Also, even with the fix applied, autorotation is broken. And WiFi doesn't work for a while & I have to toggle it on & off several times or sometimes have to reboot the phone.

On the GS6E, only issue is with Google app store saying no background sync. To fix this I have to open Recent Apps, close the app store, and reopen it.

On the GS7E, I have issue with Google app store (same as GS6E) and the screen being initially very dark when I first unlock the phone.
[Android Apps and Games] liver20:
For me in my zuk z1 with cm 13. Wonderful. In fact, i un installed greenify and doze settings editor and super b

Enviado desde mi Z1 mediante Tapatalk
[Android Apps and Games] ssrij:
Try turning on 'Enable motion sensor for all apps' in app settings and restart the ForceDoze service
[Android Apps and Games] ssrij:
Are you on the latest version?
[Android Apps and Games] ssrij:
It seems to be working for you, don't worry about root. It's working already, I don't know why, but it is
[Android Apps and Games] gonzalocav01:
Hi! Does it make sense to use ForceDoze with PowerNap?

Sent from Nexusfied Mi4C + Tapatalk
[Android Apps and Games] ssrij:
I haven't tested it with that, but if you have added ForceDoze to the PowerNap whitelist, then you should be fine
[Android Apps and Games] YYvo:
Hi! Does anyone have background data issues with Playstore?
[Android Apps and Games] Ashray_Vk:
Hey,

User of Xperia Z5 Premium Dual device.

The problem in facing is that the doze mode is still switched on even after i have unlocked the device.

For Eg: My clock doesnt get updated till i forcefully turn the screen off and turn it on again
[Android Apps and Games] ssrij:
What version of the app are you using?
[Android Apps and Games] Ashray_Vk:
The latest one :)

Things seem okay now again. Will let you know if anything happens soon.

Thanks again for the app man :)
[Android Apps and Games] ssrij:
Good to hear that. Usually it happens when you turn off your screen and then turn it on quickly and the device doesn't exit Doze properly. If you experience the issue again, send me a logcat please
[Android Apps and Games] Ashray_Vk:
I am experiencing that issue again though. And once that happens, the whole cycle gets reversed. The phone apparently goes into doze mode once the screen is turned on. Ill help you with a logcat shortly

EDIT : Too long CATLOG, but still, here it is. Not sure if its perfect :

https://docs.google.com/document/d/1-JWNYhe7RBsgc1vcxbPXxBzS3aKrYRothetfYR5XFPM/edit?usp=sharing

Ive reproduced the problem and in the end, ive done the same thing again to reverse the reversed cycle , thus making it proper.

Let me know if this helps
[Android Apps and Games] optimummind:
Yes, always. Even if the Play store says there are no updates, I check your apk link & download the newest from there.
[Android Apps and Games] expiredd:
Anyone else having issue with time being freezed and not updated? Tried adding clock to whitelist but not working.
[Android Apps and Games] mata77:
Yes, it's happened to me

Inviato dal mio SM-G935F utilizzando Tapatalk
[Android Apps and Games] okij:
I'm now on Version 1.3.3 rev 35, but I still have the problem that Doze mode isn't reliably entered and exited.

When you look at the attached screenshot, you can see that Doze mode has been successfully entered at 07:28, but then after turning on the phone again, ForceDoze doesn't show Doze mode to be exited again, therefore also mobile data still being disabled (= top left symbol in the status line).

I took an app log and a full logcat, which I both added to this post. I really hope that you can find some hints in them, why it's not working reliably. :fingers-crossed:

For last night (being still on rev 34) the Doze battery stats showed the beginning of a Doze maintenance window, but (even some hours later) not the end of it, so ForceDoze obviously missed it. Therefore WiFi (which had been automatically turned on for the maintenance window) hadn't been turned off again at the end of the maintenance window. I didn't gets log of this, since decided to directly update to rev 35 this morning.

I think that Airplane mode would be great, but together with a time slot that the user can set himself.
[Android Apps and Games] SixFourSix:
Days cuts off when listening and streaming music with screen off. I have checked disable mobile data during doze. And my player app is whitelisted.

Is this intended behavior?
[Android Apps and Games] noisyriver:
Maybe you should wait a little, and give us time for testing... ;)

That night my device entered doze but did not leave it anymore until my wake-up alarm. Which means my apps (mail and file sync) did not sync at all. But I can imagine, that this is an intended behavior of doze. Why should it wake up to sync if all internet is of... Will test this a little, but I also did not recognize an improvement in battery drain.

Correct me if I'm wrong but I think we discussed this two pages before... ;)
[Android Apps and Games] colonel_lp:
Hi, I tried as you said and then plugged in phone with screen on and battery at 50% and it dozed all night.

More configuration options are better, I wouldn't want to disable radio(airplane) at night in case of an emergency. I currently use an app called leandroid alongside FD to do all those things with great configuration options. The only way I wish I could combine the two would be to synchronise the maintenance window with leandroid's periodic data/WiFi on/off. (Will system doze turn on data itself in a maintenance window if it's turned off initially by another app?) Unless you want to go in that direction eventually, you could contact/collaborate with [MENTION=2584205]Flyview[/MENTION] he's a great friendly dev too.

http://xdaforums.com/showthread.php?t=2743316

xperia Z3 d6603 | RSXW mm
[Android Apps and Games] SixFourSix:
Oh my, sorry. My memory, she's not so good nowadays. I forgot you answered this. I remember asking something like this in another thread. :silly:
[Android Apps and Games] darkwolf_99:
Try to uninstall FD, restart your phone, and install rev35 again.
[Android Apps and Games] ianmacd:
A night mode seems problematic with an app like this. When exactly is nighttime?

Most apps with a night mode just alter their own appearance or do something like apply a blue light filter to the screen, so they are logically linked to sunset and sunrise, but ForceDoze is a different kettle of fish. Ideally, it needs to be linked to sleep patterns. I don't see an easy way to implement this, other than allowing on and off times to be manually configured.

Ideally, the two suggested options would be combined. If I were building this, I might have two checkboxes, Enter Airplane mode during Doze and a greyed out Restrict Airplane Mode dozing's hours. Ticking the first box would turn on 24 hour airplane mode dozing and ungrey the second box. Ticking the second box would enter a configuration screen where a start and end time could be configured, which would then restrict airplane mode dozing to those hours and be displayed next to the ticked option.

Alternatively, you could tie Airplane Mode dozing to any Do Not Disturb period that the user has configured. That seems like a logical pairing.

My phone is charging when I'm sleeping. At all other times, I want to be reachable, so this is not an feature I imagine I would ever use, but these are my thoughts on how to design it.
[Android Apps and Games] PeterImmel:
I don't get the sense of all this discussion.

Why don't you just switch to airplane mode if you don't want Internet access in dozing.

Switching from LTE to edge while dozing would make sense. But I guess its only possible with installed xposed framework (?).
[Android Apps and Games] HowJesNo:
disable mobile data during doze requires SU permission, my S6 is not rooted can i add permission through ADB command?
[Android Apps and Games] noisyriver:
There was an idea that it may safe even more battery if Wi-Fi and Network is switched of during doze. But my first test last night did not show any difference at all to the more or less standard behaviour before (force doze, but network still running). I also think, that this idea may foil the idea behind doze - to safe as much battery as possible but to be still reachable. At the end, when we disable network the app becomes like all the other ones which only turn network on after a defined period of time, making you not reachable by Whats-App etc. I had a tasker profile doing this. But also this profile showed no battery improvements over a forced and stable doze - but combined with the disadvantage of a cutted connection. So actually I also doubt that this makes big sense.

To switch from LTE to 3G or 2G there is already an app from Wanam, Smart Network, doing this when you turn off the screen. But at least my phone has to disconnect and reconnect every time to change prefered network. This made the whole thing very slow and unreliable and I disabled this after a short test. At the end it gave no benefits to me.
[Android Apps and Games] Broken303:
i'd suggest an option to add timeframes, similar to the adjustable stock automatic DND rules
[Android Apps and Games] okij:
Thanks for your suggestion. I tried it, but unfortunately it doesn't help. :(

I hope that [MENTION=5427507]ssrij[/MENTION] can make something out of my logs,

IMHO that would be a good additional option.
[Android Apps and Games] tiodie:
Great app, donation coming :good:

First of all, sorry if this is an obvious question. When you Disable Wifi and mobile data in FD, does it mean that you are not going to receive anything (Whatsapp, email, etc.) until you pick the phone and turn on the screen? Or are you going to receive the notifications normally because they arrive in the maintenance windows not affected by this setting? In this case, does it really safe battery significantly?

The answer to the questions above will make me find the "Night mode" useful or useless, because I don't want to be disconnected the whole night.

Regarding the Night mode, I would only call it "Airplane mode" if you are planning to disable also the phone service, because it could be confusing. Whatever the name is, it would be useful if you could configure the start/stop hour and even the days of the week in which this mode is triggered.
[Android Apps and Games] ssrij:
Third party apps need root access to toggle mobile data on/off, that's why you're asked for SU permission.
[Android Apps and Games] ssrij:
I'm not sure if there would be any benefit by delaying it for under 1 minute compared to just 1 minutes, especially if you turn on/off the screen within 1 minute. That's the main reason for a min 1 min requirement. If you happen turn on/off your screen a few times during that 1 min then it would waste battery (due to the wake lock being created and destroyed a few times). This will also apply to any delay time value, but it's more noticeable on shorter delays.
[Android Apps and Games] ssrij:
It's used to (1) Enable Doze permanently on devices which have Doze disabled by the OEM (2) Enable an experimental option to disable motion sensors for Doze only

You can activate/deactivate settings that are based on Xposed in the app's settings
[Android Apps and Games] ssrij:
Yes, but if you have Xposed installed, perhaps you can enable the Disable motion sensing for Doze option (and restart your device), that should prevent Doze from deactivating. It's an experimental option, so let me know what happens
[Android Apps and Games] ssrij:
I think I've found a solution for this, I will push out a new beta build in the app's beta channel shortly. I'll post the links here so people can test it and then I can push it to the stable channel
[Android Apps and Games] zaibansari20:
I'm using the app and its pretty amazing.

It's working like a charm.

Great work keep it up
[Android Apps and Games] ssrij:
That could be because once your battery level reaches 100%, it's no longer considered "Charging". Do check the behaviour when your battery level is less than 100 and charging for a few hours
[Android Apps and Games] ssrij:
Yeah that's what I was planning to do, but your idea of having two options sounds better. I think you make a good point, people want their phones reachable at all times usually, I think rather than turning off all radios, simply disabling WiFi, mobile data and Bluetooth can also do the trick and this way you will still be able to receive calls.
[Android Apps and Games] noisyriver:
[MENTION=5427507]ssrij[/MENTION]

I tried the whole morning, but no, if I check disable Internet during doze, my device is not doing any hourly scheduled syncs anymore. Also the FD Battery Stats are completely stopping. Had to clear them in order to run again.

Disabled this option the last hour and now I have the normal doze behaviour again: Scheduled syncs were shifted a little until the next maintanance window but beside this everything else is fine. Don't see any change with battery drain though so I don't care.

Beside this I created a simple Tasker profile. When I enable GPS - which I only do if I need it for navigation and tracking - FD is deactivated. Works great, so don't care that much anymore about the Xposed module.

I am happy with the app. Please don't make it too bloated. As I already said, for disabling internet periodically there are enough apps around.

Enjoy your beer... ;)
[Android Apps and Games] ssrij:
No, root is still needed, but if you want, you can go ahead and execute the following command via ADB:

adb shell -d pm grant com.suyashsrijan.forcedoze android.permission.READ_PHONE_STATE

and see if it makes a difference
[Android Apps and Games] ssrij:
I believe it will make a difference when you leave your phone for long hours. Also, I'm doing to add Tasker support to modify ForceDoze settings so you can perhaps disable that feature during the day and enable it during the night (when your phone is going to be on standby for long hours). This would still provide you with all notifications but give more standby life during night.
[Android Apps and Games] ssrij:
If you disable WiFi and/or mobile data then obviously you will not get any online notifications, but ForceDoze enables WiFi and/or mobile data during maintenance windows so apps can sync, since apps are only allowed to sync during a maintenance window, it made more sense to disable WiFi and/or mobile data during Doze (because apps won't be able to access Internet anyway). So yeah, you will get your online notifications, but during a maintenance window or when you turn on the screen.

The same would apply with Night mode, except that it would only be applicable at night.
[Android Apps and Games] irony17:
I use fingerprint lockscreen.

When using the option ignore lockscreen timeout (I did set up my lockscreen at 5 seconds) : as soon as the screen turns of FD enters doze mode BUT my phone is no longer protected by fingerprint.

(hope that's clear)
[Android Apps and Games] ssrij:
Yes, that's one of the reasons why I kept that option disabled by default, but people didn't like wake locks so I made it enabled by default instead. If your phone enters Doze mode before the phone locks itself, it can have weird effects.

If you're having issues with fingerprint, consider turning off the option, OR try setting the lockscreen timeout to Immediately.
[Android Apps and Games] noisyriver:
I have the same issue with PIN lockscreen. And it makes sense, because you send the device to sleep before it could activate the protection. Only chance would be to whitelist the lockscreen app. But I don't mind, I have only a 15 sec delay for the lockscreen to kick in, I doubt that I will feel any difference in battery life when FD waits those 15 seconds. I let this option unchecked.
[Android Apps and Games] Milan34119:
How often the phone enters in a maintenance window to Sync?
[Android Apps and Games] Ygor Cortes:
I don't have Xposed, so I can't really test.

I made some tests and according to the logs Doze keeps activated till I turn the screen on, even if my device is moved. Is it something wrong with the logs?
[Android Apps and Games] ssrij:
First window occurs an hour after last activity, the next after two, the next after four and so on.
[Android Apps and Games] ssrij:
Most likely. If you can use your phone normally without any issues, then your phone actually exited doze, just the logs didn't reflect it.
[Android Apps and Games] Ygor Cortes:
Do you think there will ever be a way of using ForceDoze without Doze being deactivated with movement and keeping Ambient Display working too without Xposed?
[Android Apps and Games] ssrij:
Nope, unless Google makes the necessary changes required to support such a scenario
[Android Apps and Games] turtle254:
I get this

Microsoft Windows [Version 10.0.10586]

(c) 2015 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>adb shell -d pm grant com.suyashsrijan.forcedoze android.permission.READ_PHONE_STATE

* daemon not running. starting it now on port 5037 *

* daemon started successfully *

/system/bin/sh: /system/bin/sh: -d: unknown option

C:\WINDOWS\system32>

and disable data still gives error SU permission denied
[Android Apps and Games] ssrij:
Oops, I meant adb -d shell pm grant com.suyashsrijan.forcedoze android.permission.READ_PHONE_STATE. It will give you the error regardless of whether the permission is granted or not because it checks for root and not the permission, you just have to ignore it.