yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] okij:
Hi [MENTION=5427507]ssrij[/MENTION], could you have a look at this when you find the time? Thanks in advance! :)

Some feedback on 1.3.7 rev 44: I'm using it without reboot since its release on my Z3c with the "Disable motion sensing for Doze (root)" method and it's working very well, besides some small UI bugs that we already reported.

The battery drain during daytime when on mobile data improved by about factor 2 (it's now about 1%/h when the phone is not in use) and the drain during nighttime when on WiFi and the phone is not in use is as little as 0.2%/h, a little better than without ForceDoze. With these numbers I don't need to use the "Disable WiFi" and "Disable mobile data" options, even though I asked for them. :)

One question: Do you still need a German translation? There was one guy asking if he should do one some days ago, but I don't know if he did. I'm not on Github, so I just can offer you to edit the file and mail it to you or post it here as an attachment.
[Android Apps and Games] ianmacd:
Oh, I wasn't complaining. I'm perfectly happy with these figures.

Or did you mean the strange 1 hour maintenance window? Yeah, I will look into that if it becomes a recurring problem.
[Android Apps and Games] ssrij:
Sure, but you'll have to maintain it and submit updates whenever new strings are added/changed/removed
[Android Apps and Games] almoped:
Mobile data root

Lately I've been having problems getting the turnOffDataInDoze to stay available in preferences when I install an updated app. The app still successfully finds su to make use of xposed, read logs and so on. Sometimes it helps to reinstall the app, restart the app, restart the phone or reset the app. But not always.

However resetting the app via the option resetForceDozePref would sometimes result in the app crashing. ALWAYS after the app has crashed the turnOffDataInDoze would be available in preferences as it should.

The crash upon reset FD seems to be caused by two threads trying to check for su at the same time. Changing the ProcessPhoenix.triggerRebirth(getActivity()) call at the end of the reset with something like getActivity().finish() and Runtime.getRuntime().exit(0) made the app never crash upon reset. Mind you it does not seem to exit anyways, as I stay in the app.

But when the app never crashes it's difficult to have turnOffDataInDoze become available... for some reason isSuAvailable remains false.
[Android Apps and Games] guille31794:
It works together with greenefy donation and amplify pro?

Great work, and congrats for developer!
[Android Apps and Games] ianmacd:
Yes, it works with both, as long as you use them sensibly.

For example, don't try to use more than one Aggressive Doze implementation at the same time, and don't use Amplify to limit wakelocks that the other two apps need.
[Android Apps and Games] okij:
German translation

[MENTION=5427507]ssrij[/MENTION]: I made a German translation of the strings for 1.3.7 rev 44, see attachment.

I'll try to do my best. :)

Did you have a look at the code that I linked you to, for checking if the GPS sensor is in use?

I really don't want to bother you with my request for that feature, but IMHO it would make a lot of sense, since ForceDoze breaks the GPS recording functionality when the screen is off, so it's a kind of bug.

Therefore it would be consistent that ForceDoze handles this issue itself, rather than having the user too look for a workaround by e.g. using Tasker. I'm sure that quite a lot of the 10000+ users who installed your app from Play Store are just ordinary users and don't use Tasker and that some are wondering why their GPS tracking isn't working anymore.
[Android Apps and Games] ianmacd:
Don't disable the motion sensors if you want GPS to keep working while dozing.

Standard Doze behaviour is to disable GPS after the device has been dozing and stationary for a set period of time.

ForceDoze's Aggressive Doze goes a step further and disables motion detection, so that the device always appears to be stationary. That's why GPS turns off after a while.

This is a design decision of the app, which is why it also has the option to override the default behaviour and continue to detect motion.
[Android Apps and Games] okij:
But having "Don't disable sensors on screen off" turned on as default option renders ForceDoze quite useless, since device movement will wake up the device all the time. In this case my battery savings wouldn't be much better than with standard Doze mode.

With this I'm not saying that this functionality itself is useless, but it should be triggered inside ForceDoze itself, depending if the GPS sensor is in use or not. That's why I pointed [MENTION=5427507]ssrij[/MENTION] to some code to check this.

So when the GPS sensor is not in use, ForceDoze should work as normal (thus ignoring the the motion sensors for staying in Doze Mode as long as possible), but when the GPS sensor is in use, the GPS background recording should be possible as without ForceDoze. This could be achieved by turning off the ForceDoze service until the GPS sensor is not in use anymore, or by not disabling the motion sensors for that timespan, if it has the same effect.

IMHO it's rather a bug than a design decision, as I already wrote, because when you use ForceDoze's full functionality (i.e. disabling / ignoring the motion sensors for having the best battery saving effect), you have to care for yourself to turn ForceDoze off when you want to do GPS recording.

Disabling / ignoring the motion sensors is the key feature of ForceDoze, so I don't want to turn it off generally. The best way would be if it would be toggled by ForceDoze automatically when the GPS sensor is in use. And of course this should be an option, so users can turn it off when they think that they don't need it.
[Android Apps and Games] ianmacd:
Understood. If you carry your device around a lot without actually using it, disabling motion detection is essential.

Yes, but the same is true of all services to which Doze disables access. Syncs won't be performed, network access is disabled, etc.

If it were ForceDoze's job to keep the device from entering Doze while the GPS is in use, then logically it should also keep the device awake until all network interfaces go quiet. For example, I frequently experience aborted app updates and syncs, because the device enters Doze before the jobs can complete.

I just accept this behaviour as a consequence of disabling motion detection, but perhaps you're right in suggesting that certain services, such as GPS, should have the option of being tracked until they are idle, and Doze deferred until this is the case.

It would certainly be a very cool feature if such service dependence could be configured by the user. This would allow, for example, Doze to be deferred until wi-fi or mobile data falls below a certain traffic threshold, e.g. 100 kB in 60 seconds.

I have no idea how doable any of this might be from an Android API perspective.
[Android Apps and Games] okij:
The difference is that aborted app updates and syncs are picked up again automatically when the screen is turned on again or during a maintenance window, while a misrecorded GPS track cannot be recovered.

Quite a lot of people use GPS apps for recording their walks in nature or cycle tracks, to keep a history of their tracks or to share them with others, so a misrecorded GPS track can be pretty annoying.

Yes, that also would be a cool feature too, although - as I explained - I consider the GPS issue more important.

On a side note: We just reached the 1000th post in this thread! :D Thanks for all users involved and congrats to [MENTION=5427507]ssrij[/MENTION] for his successful app and thread! :victory::good:
[Android Apps and Games] eRPeeX:
I've reset force doze. Now it ain't do nothing. No system notification, no stats.

I'm not rooted. Should I do the adb stuff again?
[Android Apps and Games] ianmacd:
Actually, when I said "aborted", that's what I meant.

Maybe calendar syncs and similar operations simply resume when a maintenance window is entered or when the device is woken up, but back-ups and Play Store updates that were underway at the time that Force Doze pushed the device into idle state do not. They will be started anew, but not until the back-up's schedule calls for it to be run again, or the Play Store scheduler decides it's time to automatically update packages again.

Sooner or later, of course, the jobs will run and complete, so even though this can leave me without an up-to-date back-up, it's not catastrophic in the way that your failed GPS track is, because, as you point out, that lost data is simply irrecoverable.

Yes, I can see that. Let's hope Suyash can come up with a fix for you. If he can, I think it would be the first aggressive doze implementation to offer such an opt-out.

---------- Post added at 20:57 ---------- Previous post was at 20:56 ----------

The permissions should persist until you remove the app from the system, so if you haven't done that, you should be fine.
[Android Apps and Games] irony17:
Not really clear what settings i should use. Device is rooted.

I wish that it enters the doze mode and keeps it even if am moving around with the phone in my pocket.

What settings are appropriate ?
[Android Apps and Games] irony17:
Here are my settings.
[Android Apps and Games] ssrij:
That's what it does by default
[Android Apps and Games] ssrij:
Thank you, I'll add you in the language translation credits page.

I'll look into the GPS thing
[Android Apps and Games] kryshnakishore:
Any new update? Just asking
[Android Apps and Games] Ygor Cortes:
I don't think there's any update needed. The app is working flawlessly!
[Android Apps and Games] milojoseph:
Can someone share there settings plz
[Android Apps and Games] kryshnakishore:
Your app version.. Can u share ur settings?
[Android Apps and Games] Ygor Cortes:
I'm using the 1.3.7 version
[Android Apps and Games] sacredsoul:
Hmm why is the auto brightness fix isnt selectable for me?
[Android Apps and Games] Elpatii:
If you've the "Disable motion sensing for Doze" option activated, you can't select the "Auto-rotate/brightness fix" option.
[Android Apps and Games] sacredsoul:
I don't have the disable wifi/mobile data during Doze on. Also, I have enabled disable motion sensing for Doze. But my messages from whatsapp only come in after I switch on the display. Whatsapp is already whitelisted. Anything I am doing wrong?
[Android Apps and Games] beeshyams:
[MENTION=5427507]ssrij[/MENTION]

Good work . been using for a couple of days but like the feel-not yet analysed

Would have liked to donate but I discontinued my Paypal account on some issues

If your app goes donation, will buy
[Android Apps and Games] liver20:
Last night with Last version i lost 7%.

ForceDozetempwakelock is wake up my device

Enviado desde mi Z1 mediante Tapatalk
[Android Apps and Games] Durrz:
Question. Why is the disable motion sensing for root not available unless xposed is installed?
[Android Apps and Games] ianmacd:
Because this option is intended to leave motion detection enabled on the system, but masked from Doze.

By default, ForceDoze disables motion detection for the whole system during Doze.
[Android Apps and Games] okij:
Sorry that I can't help you, as I don't use Whatsapp. My emails get through without problems, I'm using AquaMail and have it whitelistet of course.

[MENTION=5427507]ssrij[/MENTION] explained to some other user that he set up the PayPal donation page in a way that you can also donate per credit card, so you don't need a PayPal account. Just click on the "Donate to me" button next to his posts to be directed to this page.
[Android Apps and Games] sacredsoul:
So should one enable it or leave it disabled?
[Android Apps and Games] kulguy:
I didn't have any problem with ForceDoze until the before yesterday. But Yesterday, it seems it stopped working properly.

ForceDoze seems to lose control of Doze, because my device doesn't get into Doze, and ForceDoze records nothing about Doze.

I tried uninstalling and reinstalling ForceDoze, which didn't pay..

It looked like it started to work again but after a while, it lost the control again!

I'm a non root user and I surely grant that DUMP permission
[Android Apps and Games] ianmacd:
If you have Xposed installed, you can try enabling it. If motion detection continues to wake the device, however, it means the module isn't working for you. It works on some devices, but not others.
[Android Apps and Games] Ygor Cortes:
Last night I lost 6% in 10h15min with WiFi, sync and location on. Is it OK?
[Android Apps and Games] ssrij:
If you reset or reinstall the app, you have to grant the permission again
[Android Apps and Games] Mosquito79:
I can't change my feedback in the playstore anymore. So I have to admit my recently experiences with forcedoze here:

"Don't disable sensors on screen off" and "Auto-rotate/brightness-fix" are greyed out in the settings,so I can't activate them. But I have to, because my screen keeps very dark after turning screen on. "Ignore lockscreen timeout" turning off kills the ability of forcedoze to force doze.

Gesendet von meinem E6653 mit Tapatalk
[Android Apps and Games] SixFourSix:
0,6% per hour. Well what do you think? It's good ofc.
[Android Apps and Games] ssrij:
That's probably because you have either Disable motion sensing for Doze or Disable motion sensing for Doze (root) turned on. If you have either of those options on, none of the sensors get disabled, so you shouldn't experience issues with brightness.
[Android Apps and Games] Mosquito79:
Okay, thank you!

Gesendet von meinem E6653 mit Tapatalk
[Android Apps and Games] ssrij:
Just wanted to add, if you disable Ignore Lockscreen timeout option, it doesn't kill the ability to force Doze. Turning it off will delay Doze by your lockscreen timeout value, so if it's set to 2 mins, your device will force Doze after 2 mins. If you reduce your lockscreen timeout value (in your phones Security Settings) to Immediately then it will force Doze immediately on screen off.
[Android Apps and Games] sohailss111:
Galaxy S6 (SM-G920I)

Hey guys. Going to give this new app a try. I have an Indian Galaxy S6 and wanted to know how much battery drain is to be accepted as normal for my device, at night and also during any time of the day. I have Wifi always on.
[Android Apps and Games] ssrij:
Your battery drain depends on usage.

At night on standby, I usually experience 1% drain per hour, but that's probably because I have Always-on Display enabled on my S7edge.
[Android Apps and Games] ssrij:
You can donate via the Donate To Me button next to my name, it will take you to a special PayPal page where PayPal gives an option to use a card.
[Android Apps and Games] sohailss111:
Okay. I don't know whether this is good or not..?

I have Twitter, Snapchat, WhatsApp and some other games installed. However, even while the phone was dozing ( using ForceDoze), I got notifications from the game Real Boxing 2.. Also, here is a screenshot of the app.
[Android Apps and Games] HowJesNo:
Quote:

Originally Posted by Mosquito79

I can't change my feedback in the playstore anymore. So I have to admit my recently experiences with forcedoze here:

"Don't disable sensors on screen off" and "Auto-rotate/brightness-fix" are greyed out in the settings,so I can't activate them. But I have to, because my screen keeps very dark after turning screen on. "Ignore lockscreen timeout" turning off kills the ability of forcedoze to force doze.

Gesendet von meinem E6653 mit Tapatalk

I am completely confused by this.

so if ''Disable motion sensing for Doze'' {Prevent device movement from turning off Doze (non-root, experimental)} is turned ON, sensors are NOT disabled during doze time? that's contrary to description'

I keep this turned ON because i thought it actually disables device (S6) sensors. "Don't disable sensors on screen off" and "Auto-rotate/brightness-fix" are also greyed out.

What are the settings of ForeDoze supposed to look like in order for it to: got to doze immediately after screen off, and device locked; turn OFF all sensors and keep them OFF (disabled) durin doze time.
[Android Apps and Games] beeshyams:
Planned to post this tomorrow- I have observed something that seems to be at odds with the purpose of app- WLD had reported that your app is giving the Highest wakelocks. Checked with 3C Tool box pro and Better battery stats. They confirmed. Took a snapshot of WLD (attaching failed being on XDA app?) and no access to PC

Ahh, link on drop box

https://www.dropbox.com/s/j21iptmwh0acivp/2016_06_20_07.56.18.png?dl=0

This was on rooted mode, doze to continue on motion option

This needs to be fixed. I have now switched over to Greenify
[Android Apps and Games] ianmacd:
ForceDoze won't use the wakelock if you configure it to put the device to sleep as soon as the screen turns off. In other words, remove any delay you have configured.

I agree, however, that it would be nice if the wakelock weren't needed when a delay is configured.
[Android Apps and Games] beeshyams:
Thank you for the clarification. I need a 5 minute gap as I often find myself remembering something just after screen is put off. But the wakelock time is 25 minutes, 5 times of delay !!! And this is when I was going to sleep and didn't restart the phone. There is something missing

Hope OP can clarify
[Android Apps and Games] ianmacd:
Is 25 minutes your lock-screen time-out? You can configure ForceDoze to ignore that.

If you don't have a long lock-screen time-out, something else is happening and I'm not sure what it is.
[Android Apps and Games] ssrij:
25 minutes, and the wakelock was created 9 times, which equals 2.7 mins per wake lock. It didn't spend 25 mins in one go. The app uses wake locks when you use Doze Delay or have a lockscreen timeout value other than Immediately and Ignore Lockscreen timeout is disabled in Settings. The app gives warnings about wake locks in both situations, so you shouldn't be surprised.
[Android Apps and Games] ssrij:
You will get notifications from any app during Doze if that app uses GCM high priority notifications
[Android Apps and Games] ssrij:
Yes. I don't think it's contrary to the description. If it says Disable motion sensing for Doze, it means motion sensing is only disabled for Doze, and not for the whole system. You don't have to turn on any setting in the app to make it disable sensors for the whole system, because the app does it by default.

The default settings take care of that.
[Android Apps and Games] Ygor Cortes:
Yeah, you're totally right... thanks.

This is awesome!
[Android Apps and Games] papete:
On this same line of thought: then the first option "Don't disable sensors on screen off" (pre-selected) will make the device exit doze on movement? (as all sensors are still active?) How is this different from having the app service turned off altogether? Isn't this the purpose of the app?
[Android Apps and Games] bitmappp:
bug on v7.5: adding b-day date with contract Force closed!
[Android Apps and Games] ianmacd:
If you turn that option on, aggressive doze becomes semi-aggressive: It will still kick in quickly (so long as you haven't configured a long delay), but it will exit again on motion. You can think of it as being halfway between standard doze and aggressive doze, because standard doze also exits on motion.
[Android Apps and Games] beeshyams:
You are absolutely right... My bad and sorry for that but what beats me is the warnings, which I never saw. Wouldn't have overlooked that. Anyway downloaded from PS, and activated xposed and tested for a few hours and negligible wakelocks :laugh:

On my mobile browser don't see the option of donating via credit card so will do so when next I have access to PC, whether I use your app or not (not likely to use, too many versions, too many changes and app needs to mature IMO), simply to encourage you
[Android Apps and Games] bitmappp:
im so sorry! wrong thread.
[Android Apps and Games] beeshyams:
Sorry dev , donation couldn't go through

[MENTION=5427507]ssrij[/MENTION]

> "On my mobile browser don't see the option of donating via credit card so will do so when next I have access to PC" is what I wrote a couple of posts ago

I just tried and failed using Citi bank credit and debit card- reason (they couldn't verify my card), which incidentally is the same card which i use for Google PS

And paypal deducted $1 for a failed transcation- it's precisely because of this kind of cr***y service, I discontinued PayPal

Sorry for the rant and more so that I couldn't donate- subscribed to this thread and if your app goes paid, will buy

Thanks for understanding and all the best
[Android Apps and Games] Ipse_Tase:
I think logs have taken a turn for the worse...I always find last entries missing unless i wipe stats clean. I'd rather have an option to disable logging (a la Greenify) and enable them as a debug method. otherwise I bet no one cares about logs if the app works fine.

Also, If the logs are displayed in short format ("old") the back key should not take me back to the extended log screen again. At least it didn't before.

Fortunately, all this is cosmetic, as the app works as it should...which is all I care about.
[Android Apps and Games] mrjimyjohn:
Does anyone use this app with a Chromecast? My apologies if this has been discussed but I couldn't find anything.

When doze mode begins, the device disconnects from the Chromecast. Any media playing will continue, but in order to regain control (eg. Pause, volume), you need to open the Google cast app and reconnect.

I've tried whitelisting the Google cast app and any used for casting (Netflix), but the problem persists. Is there some service that needs to be whitelisted as well? Or is this just a drawback of doze mode?

Thanks to anyone with input and thanks to the dev for saving our batteries! ��
[Android Apps and Games] gelocatronico:
the same here, but only tested with youtube, whitelisted youtube and fixed, i must try with netflix
[Android Apps and Games] asprin:
Hi,

i have S7Edge unrooted, stock firmware, ForceDoze installed and permission granted with adb, it works as it should, but with one exception, i do not get notification from gmail in doze mode, gmail is whitelisted, any suggestions?
[Android Apps and Games] ianmacd:
That's working as intended.

GMail notifications are normal priority. Only high priority notifications are delivered immediately when the device is dozing.

I'm not aware of anything you can do to alter this.
[Android Apps and Games] sohailss111:
Is WhatsApp high priority?
[Android Apps and Games] PINki92:
I'm not sure, maybe calls only. But you can always whitelist an app.
[Android Apps and Games] Joy Bangla:
[MENTION=5427507]ssrij[/MENTION] Can you please add option to have doze delay in seconds like 5 secs and 10 secs. Lowest now is 1 min. It will help trigger my security lock. right now with no doze delay my lock does not trigger. Thanks
[Android Apps and Games] kryshnakishore:
After getting back to back updates daily why update stopped at 1.3.7(44) #justasking
[Android Apps and Games] Broken303:
because the app itself is feature complete and mostly stable. experimental updates have been moved to a beta release channel. the quick daily updates served and helped to get the app to this stage by getting rid of most of its kinks and quirks. this is afaik.

TLDR; because it works

#justanswering
[Android Apps and Games] okij:
It's true that it's mostly stable, I too am happily using it every day.

However, there still have been feature requests that [MENTION=5427507]ssrij[/MENTION] wanted to look into.

Some days ago I provided a German translation that hasn't been put in the app yet.

And there are still some small bugs in the UI, e.g. the new detailed Doze Battery Stats show the oldest entries first (bottom of the list) instead the newest ones (top of the list).

... which also didn't receive an update for the past ten days.

I guess that [MENTION=5427507]ssrij[/MENTION] is just busy with other things at the moment, maybe he can give us some info on that.
[Android Apps and Games] optimummind:
Sadly, i had to stop using ForceDoze bc it deactivated my Samsung Pay. I guess one of the sensors or module being deactivated is the MST module. Only a factory reset revived Samsung Pay on my GS7E.