yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] darkwolf_99:
Yes, I have. And after reading your past, I rebooted again and then turned off the screen for a while and turned on. But there's no log in Xposed as well.
[Android Apps and Games] ssrij:
Hmm, strange. You should see a log. What device is this? Also, try updating to this app: http://xdaforums.com/xposed/material-design-xposed-installer-t3137758 It's a better version of the Xposed Installer app with Material Design and other features
[Android Apps and Games] darkwolf_99:
Downloading it now, I'll try. Since build82, Xposed has been just compatible with my OS, Emui. But the latest, build 85, I cannot install a few hours ago.
[Android Apps and Games] ssrij:
You can install the latest version from http://dl-xda.xposed.info/framework/
[Android Apps and Games] darkwolf_99:
Thank you, I knew it. My build 85 was downloaded from there.
[Android Apps and Games] rcherif38:
It is awsome and flawless on my lg g3 d855 ... Um using it for 3 hours now and not facing any problem

Keep it up man !!

I will test more and tell you
[Android Apps and Games] ssrij:
If you can test the Xposed module and let me know what the results are then it would be great. Also provide a logcat with it
[Android Apps and Games] HowJesNo:
well here is result ater 8 hours of stand by. i really didn't use phone at all.
[Android Apps and Games] ssrij:
You should use a much more detailed battery stats app like GSAM to see whats using your battery during standby. Cell standby seems to be using some battery here, which means you're in an area where the signal changes a lot.
[Android Apps and Games] darkwolf_99:
[MENTION=5427507]ssrij[/MENTION] the same. And tried build 85 again, failed, too. There's no log as before, but modules work well. I'm outside today and can test the new module of forcedoze.
[Android Apps and Games] anuraag.neo:
This is the log i am getting with enabled xposed features

06-05 07:01:39.390 I/Xposed (13287): Loading modules from /data/app/com.suyashsrijan.forcedoze-1/base.apk 06-05 07:01:39.461 I/Xposed (13287): Loading class com.suyashsrijan.forcedoze.XposedModule 06-05 07:01:40.815 I/Xposed (13566): ForceDozeXposed: usePermanentDoze: false, useXposedSensorWorkaround: false, serviceEnabled: false06-05 07:01:39.390 I/Xposed (13287): Loading modules from /data/app/com.suyashsrijan.forcedoze-1/base.apk 06-05 07:01:39.461 I/Xposed (13287): Loading class com.suyashsrijan.forcedoze.XposedModule 06-05 07:01:40.815 I/Xposed (13566): ForceDozeXposed: usePermanentDoze: false, useXposedSensorWorkaround: false, serviceEnabled: false
[Android Apps and Games] Devoct:
little suggestion on Doze Stats.

simple font color for device exits and enters doze would be nice, for easier reading.
[Android Apps and Games] iluvxda:
Hi ssrij, thanks and great work on this app.

One feedback on the latest version (1.2.9), which my phone auto updated to this morning.

It seems that the auto brightness workaround is not functioning properly.

The earlier version 1.2.8 doesn't seems to have this issue. And i'll need to tap toggle the adaptive brightness under setting to make things normal again.

I'm not rooted, but had followed the adb instructions to get this app running previously.

Hope that there's a fix soon.
[Android Apps and Games] eldiablotmh:
I just wanted to add that I have the exact same issue, but I'm rooted though. LG G2 on Resurrection Remix 5.6.9 (CM13 based, 6.0.1).

Most times if I turn off and on my screen again after the workaround "fails", it seems to be fixing itself; but yeah, it was working fine in 1.2.8.

And while we're here - thank you ssrij for this app, as it has improved my idle battery life a lot. Hope you can look into this!
[Android Apps and Games] WiwiPouPou:
Yeah or even a timeline style for dozing periods (or one card by period), amazing app BTW..
[Android Apps and Games] ssrij:
Have you enabled ForceDoze and the Xposed option in the app's Settings? Can you try toggling the option off and on again in the app's Settings?
[Android Apps and Games] ssrij:
I'll look into this. I did make some changes there, guess I broke something by accident! Can you provide a logcat in the meantime?
[Android Apps and Games] darkwolf_99:
Just come back home. I've been outside for about ten hours today. I think Xposed module works ok. But sometimes OS went out from doze automatically as the screen didn't turn on.

BTW, every time when OS restarts, the time mode in log goes back to am/pm. I have to change time setting to am/pm, and then turn back to 24 hour. The time mode can be the same as OS setting. I know it's not a big deal, just feedback.
[Android Apps and Games] ssrij:
Can you provide a logcat?
[Android Apps and Games] darkwolf_99:
Sorry, just cleared log for the time mode issue. From my last snapshot, you can see the time mode is different.
[Android Apps and Games] darkwolf_99:
[MENTION=5427507]ssrij[/MENTION] Should Xposed be excluded in forcedoze? In whitelist?
[Android Apps and Games] ssrij:
No, Xposed modules aren't affected by Doze
[Android Apps and Games] rcherif38:
Um having no issues with rotation or brightness or unlocking my phone ..not anymore with xposed module activated and the brilliant experimental option

I will upload log a soon as i can
[Android Apps and Games] ssrij:
Post the Xposed log as well
[Android Apps and Games] JRapsky:
I would like to test ForceDoze, but I always get parsing error. Tryed different versions and sources.

My phone is Lenovo K3 Note running on CM12.1 and I have no Gapps installed. Would nice if you could advice me.

Gesendet von meinem Lenovo K3 Note
[Android Apps and Games] dzr:
Thanks again.! So far, so good with Smart Lock e enabled! SL works, FD works!
[Android Apps and Games] ssrij:
Here's the link to the latest APK: https://www.androidfilehost.com/?fid=24580943222145094
[Android Apps and Games] ssrij:
Translators needed

I just moved all the strings from the code to a seperate strings.xml file, thus making it easy to translate ForceDoze. If you would like to help translate ForceDoze into another language, you can grab the strings.xml file from here. Once you've correctly translated the strings, send them to me so I can review and add it to the app. Please don't attempt translation if you're not competent in the target language because I don't want the translation to be bad. Only attempt translation if you're very good.
[Android Apps and Games] JRapsky:
Same problem, parsing error when I try to install :banghead:

Gesendet von meinem Lenovo K3 Note
[Android Apps and Games] ssrij:
Let me upload it elsewhere I uploaded it to MEGA, try again: https://mega.nz/#!qBVEzQDK!HsT3ojjYsG5QU9bKnZWqr2gwVPmrWZRPYHLZwJo0Xf8
[Android Apps and Games] JRapsky:
Thanks for trying, but did not solved the problem. Still parsing error when I try to install :(

Gesendet von meinem Lenovo K3 Note
[Android Apps and Games] ssrij:
Guess it's due to no gApps
[Android Apps and Games] rcherif38:
here is my log

lg g3 d855 running marshmallow
[Android Apps and Games] darkwolf_99:
Thank you.

Updated to the latest build, rev24. After reboot, there's no time mode issue in my OS. I've updated Xposed to 85.1 by wanam, unofficial version, which revises 85 to be compatible with Emui. But there's still no log in Xposed. I cannot figure it out, have to leave it.
[Android Apps and Games] kryshnakishore:
Here is my logcat, force doze is not working at all, draining battery 78 to 74.. Pls do check & report me what's happening..... I am on RR ROM, oneplus one, MM
[Android Apps and Games] ps89:
Hello. If I enable the 'Disable motion sensing for Doze' option, do I need to enable the 'Don't disable sensors on screen off' option as well? Thanks.
[Android Apps and Games] ssrij:
No, even if you have it enabled, it will be ignored by ForceDoze
[Android Apps and Games] ianmacd:
I've been using ForceDoze for 24 hours now, hoping to find a reliable alternative implementation of Aggressive Doze. I've been using Greenify's for a while now, and that already works very well, but there are a couple of occasional quirks that pop up. These may not even be related to Greenify, but in trying ForceDoze, I hope to find that out.

Anyway, my reason for posting is that I think ForceDoze has a logical and consistent UI. However, the implementation of a second app whitelist, in addition to the standard MM Optimise Battery whitelist, is very confusing.

When I first saw this, I immediately wondered: What's the difference between this app's whitelist and the standard one? I had to come to this thread to find the answer, because it's not mentioned in the app. It turns out that the app's whitelist simply augments the standard one. The union of the two lists is used to exempt apps from Doze.

Whilst I'm happy that I now understand this implementation detail, I would strongly disagree that "it just makes it easier for you to add/remove apps from the Doze whitelist". Having the list spread over two places that are not bridged by the app, by its very nature reduces clarity.

Greenify takes the approach of hooking directly into the standard whitelist, which gives you all of the ease of being one tap away from adding/removing apps, without the hassle of wondering whether an app you've just deleted from FD's whitelist might somehow still be present in the standard whitelist.

Isn't that a better approach? I feel that it is. One list accessible from two places, rather than two separate lists.

This is really the only negative thought I have about the UI. Everything else seems well thought out and logically implemented.

I have a few observations on ForceDoze's behaviour from my first 24 hours of use and will post those later today.

Thank you for creating this great app.
[Android Apps and Games] ssrij:
Thanks. Let me explain it once again with more detail: The whitelist in ForceDoze is not a seperate whitelist. It simply allows you to add/remove apps from the actual Doze whitelist without digging through system settings to find the Battery optimization page and also to easily track the apps that you've whitelisted instead of searching through a list of apps. I added the whitelist because lots of people requested me to do so. I could've simply made it redirect the user to the Battery optimization settings page, but I decided to build a proper whitelisting UI instead. You don't have to worry about apps not being properly removed or added to the actual Doze whitelist, because ForceDoze directly modifies the whitelist that is used by the deviceidle process (responsible for Doze) i.e it calls deviceidle and instructs it to add/remove a package, so you can be 100% confident that the app you just added was actually added or the app you just removed was actually removed. It does not go through the system to add/remove packages, instead it directly does that by calling deviceidle.

Now, one thing that is missing is that the apps you add/remove via Battery optimization aren't visible in the whitelist so you don't see apps that were added/removed via Greenify or system settings, which is what you're talking about here, and that's something I'm going to be implementing in the upcoming update!
[Android Apps and Games] ssrij:
I don't see any logcat
[Android Apps and Games] ssrij:
Can you provide the Xposed log instead? Go to Xposed Installer -> Logs
[Android Apps and Games] ianmacd:
Yes, I did realise that it was fulfilling the same purpose as the standard whitelist. I just didn't like the fact that apps added to one whitelist weren't shown in the other. I feel that it reduces clarity..

That's good to know.

However, I just tried removing Tasker from FD's whitelist. It was correctly removed, but remained visible in the system whitelist.

If I correctly understand your previous paragraph, Tasker is now no longer whitelisted, even though it still appears in the system whitelist. Or has FD somehow failed to correctly remove it?

That's great news. The synchronisation of those lists will remove any ambiguity in what's whitelisted and what's not.
[Android Apps and Games] ssrij:
1) Try closing Settings from recents and open Settings again and go to Battery optimisation to check

2) Try restarting your phone

3) Run adb shell dumpsys deviceidle whitelist to see if the tasker package is still whitelisted

Also, are you rooted?
[Android Apps and Games] ianmacd:
Step 1 was enough to fix it. That's good to know.

I suppose the system caches the list of whitelisted apps and expects no other process to invalidate it.

Yes, I'm rooted. This is an S7 Edge, which I think is also your (main) development device.

Thank you for your lightning-fast responses.
[Android Apps and Games] ssrij:
I believe that's because the ForceDoze service was put to sleep or crashed when/before the screen turned on, hence it did not have the last screen off time and that led to the weird calculation error (24419976 mins). I'll have to look more into it, maybe I need to put ForceDoze into the Doze whitelist perhaps.

I didn't want to spam the notification, hence I only made it show the most recent session. If you want to look at other sessions data, then you can do that by going to Menu -> Doze Battery stats

Yes, if your phone has entered Doze mode and you put it to charging, it will stay in Doze. If you put it to charging before the screen turns off, then it won't. I'll add support for exiting Doze when a charger is connected

The new update scheduled for later today will fix it Fixed and pushed a new update (feel free to grab APK from post #1)

I'll take a look at it!

Thanks a lot!!
[Android Apps and Games] kryshnakishore:
Sorry I think it's not uploaded from lab, anyway I will try new version & send logcat

---------- Post added at 06:25 PM ---------- Previous post was at 05:57 PM ----------

Great app, good improvements dev, really want to donate but money matters evryone instead I am sharing this app to all my friends.. Thanks especially in bug fixes u r making... Wish u should be in Cyanogen team one day
[Android Apps and Games] milojoseph:
Feature request. If you can disable mobile data and WiFi while dozing if possible
[Android Apps and Games] darkwolf_99:
Awesome update, I don't have to excluded apps twice in FD's witelist and OS's any more. :svetius:
[Android Apps and Games] kryshnakishore:
+1 it should be included in settings enable/disable data so that for some people some white listed apps work in showing notifications which requires Internet
[Android Apps and Games] ianmacd:
Thanks for this update.

The new unified whitelist is nice, but displays quite a few system packages that the OS whitelist does not, and which cannot be removed. Obviously, you know this already. I'm just pointing out that the two lists are still not identical, but it's not a big issue as long as all of the user-removable packages are on both lists.

I do have one other remark on the whitelist: Removing a package by tapping the minus symbol currently triggers a scan for the full list of installed packages. Wouldn't it be much more efficient to simply show the list of already whitelisted packages?
[Android Apps and Games] ssrij:
What would be the advantage of disabling WiFi/mobile data during Doze? The system already prevents apps from accessing Internet while the device is Dozing
[Android Apps and Games] ssrij:
The OS whitelist doesn't display it because they're not supposed to be removed. I show it for transparency reasons, i.e so you can see all the packages that are exempt from Doze, even if you can't remove them.

You're correct, that would be more efficient. I'll change the behavior so tapping the remove button shows a list of apps already in whitelist instead of all the installed apps.
[Android Apps and Games] milojoseph:
Also can you add a check box function for both adding and removing in one click instead of going back and forth when adding.
[Android Apps and Games] ssrij:
Not sure how that would work.
[Android Apps and Games] milojoseph:
Like so
[Android Apps and Games] ianmacd:
Yes, you are more transparent than the OS itself in this regard. That lists only Play Services and Samsung Push Service on my device. :)
[Android Apps and Games] ssrij:
Thanks, I'll look into this
[Android Apps and Games] ianmacd:
[MENTION=5427507]ssrij[/MENTION]

A minor enhancement request:

Could you make it so that tapping the persistent notification opens the app? That would be a useful shortcut.
[Android Apps and Games] ssrij:
Will do
[Android Apps and Games] evisser4:
With "Ignore Lockscreen Timeout" enabled, it seems to only work when I have doze delay set to 0. Is this expected?

I'd like to have the following:

Lockscreen Timeout 30 minutes

Ignore Lockscreen Timeout: Enabled

Doze Delay 3 minutes

This does not appear to be possible for me. Anyone else have that? It would seem that with a doze delay greater than 0 means it will doze after Lockscreen Timeout + Doze Delay regardless of the "Ignore Lockscreen Timeout" flag.
[Android Apps and Games] ssrij:
Doze delay gets added to the lock screen timeout and that's how the total delay is calculated, however if you have Ignore lockscreen timeout enabled, then only Doze delay is taken into consideration and lockscreen timeout is ignored.

EDIT: Read your question wrong. It is indeed a bug, I'll fix it now. Thanks for reporting it
[Android Apps and Games] Ipse_Tase:
I don't want to turn this into a "me too" post, but I have to add my thanks to the dev for quick turnaround for fixes and suggestions. none of the "other" guys' attitude and condescension...kudos.

A few observations from my side:

- I agree that setting the delay to anything BUT zero does seem to block the app from kicking in

- latest version removed the useful "clear stats" from the actual stats screen...it was more handy than having to go to Settings and clear it

- I subscribe to the request of opening the app from the notification itself.

Keep up the good work and we'll keep the feedback coming.
[Android Apps and Games] ssrij:
That's a bug, I'll fix it now.

I removed it because if there's too many logs available then you won't be able to access the option (too many logs could freeze the UI), so I moved the option to Settings and I thought having the same options in two places made no sense. I'll restore it now.
[Android Apps and Games] kodayoda713:
Would be nice to see integration into the stock Settings menu. Otherwise, a wonderful app!
[Android Apps and Games] Devoct:
man, you are running Lollipop.

CM12.1 is Lollipop 5.1.
[Android Apps and Games] ianmacd:
Probably that he'd like access to these settings straight from the OS's settings menu.

If he's running Xposed, such functionality can basically be fudged using the Settings Editor.
[Android Apps and Games] ssrij:
It's not possible to do that (without the app you linked to), although I will add support for Android N QuickSettings Tiles when Google releases the official SDK.
[Android Apps and Games] okij:
It would save some more battery, since WiFi and mobile data consume power when they are enabled, even if they are just idle.

For comparison: Sony's Stamina mode in Android K and L used to do exactly this when the device was sleeping, just turning them on periodically to sync data.

Now in Android M there's just Doze, which doesn't turn them off anymore. Therefore Stamina used to save more battery and it would be nice to have this functionality back also on Doze. :)

BTW - also from me: Great app, great development and great support here in this forum! I installed ForceDoze just two days ago and am still testing, but I'm already considering to donate you a pint of beer or two. :good:
[Android Apps and Games] ssrij:
I see, that makes sense. I was about to push a new update, but I am going to implement this first and then push it.
[Android Apps and Games] okij:
That's great! :)

Could you implement it in a way that the on/off state of WiFi and mobile data is saved when entering Doze and restored when exiting Doze? I usually keep WiFi switched off when I'm not at home, so it then also shouldn't be turned on accidentally by ForceDoze.

One more question: Will the system still be able to sync data with such feature, i.e. will data be turned on in the Doze maintenance windows?
[Android Apps and Games] ssrij:
Yes and Yes
[Android Apps and Games] okij:
Thank you for your fast replies! :)
[Android Apps and Games] ssrij:
This has now been implemented and I've pushed a new update. Let me know if it works fine for you
[Android Apps and Games] okij:
Wow, that was fast! Did you push it via Play Store? For me, it's not arrived yet.

Sure! I'll try tomorrow if it has a positive effect on battery life. I hope that it will, since during night, on WiFi, I have a battery drain as low as about 0.3 % per hour, but during day, on LTE/4G but when idle, of about 2 to 3 % per hour. BTW, my phone is a Xperia Z3 compact.
[Android Apps and Games] ssrij:
Yes, it takes a few hours for it to become live, but you can always grab the latest APK from post #1

I used to own an Xperia Z3 before I upgraded to an S7 edge, didn't have a drain issue, but then the battery was also bigger so perhaps I never noticed it due to that
[Android Apps and Games] Arstoien:
it's great you implement new features like stopping data and wifi but I'd advise you to keep it disabled by default. Non careful people won't look in the app settings and will start missing chat notifications, etc. I'd say the people who would use that feautre are less than the rest ;)

Sent from my Nexus 5
[Android Apps and Games] ssrij:
Yeah I've already done that and pushed another quick update, it was never meant to be enabled by default but I messed up :silly:
[Android Apps and Games] ajeesh vijayan:
he said cm12.1... lollipop
[Android Apps and Games] ssrij:
Been ages since I used CM, so I wasn't up to date with the versions
[Android Apps and Games] darkwolf_99:
It can save much battery to control mobile data when people go outside. But after trial, new build of FD cannot control mine as well. I use the mode, 2G(CDMA1X), 3G(CDMA2000), 4G(TDD-LTE/FDD-LTE). In these years, I tried many apps and modules of xposed. All of them could not control it. So that's ok, I take it. Just feedback

Highly appreciate ssrij's great work on FD!
[Android Apps and Games] darkwolf_99:
[MENTION=5427507]ssrij[/MENTION]

A little suggestion, if FD can detect stream data, online music and broadcast apps can keep working with checked Disable Internet during Doze after screen turns off. Maybe it will add more service or wakelock. Alternatively, if it's not a good way, could you add a switch in mainpage of FD to make users convenient to open and close the function when using such apps. Thanks.
[Android Apps and Games] okij:
A first feedback from me [MENTION=5427507]ssrij[/MENTION]:

WiFi was turned off automatically this night and data still succesfully synced (i.e. emails were received).

However, as I can see on lockscreen directly after turning the device on, mobile data (LTE) was still running and not turned off, which also explains that data was synced. So I couldn't really test if data is turned on in maintenance windows.

Also, WiFi didn't turn on automatically again, but that was just on first try (after the device dozed for a couple of hours). On a second and third try this morning (after dozing for a few minutes), it turned on again as it should. So I'm not sure if it's a bug.

I have a suggestion: It would be great if you implemented two toggles, i.e. "Disable WiFi during Doze" and "Disable mobile data during Doze" instead just one for all Internet data, so users can choose.

And of course disabling mobile data during Doze needs some bug fixing.

On a side note: I did as [MENTION=7187684]ianmacd[/MENTION] suggested and turned on the notification of Greenify (of course without turning on Aggressive Doze in Greenify) to double-check the Doze times. For some reason, ForceDoze sometimes misses to display Doze times, so it shows either an older Doze time or "no data". I think this is just a cosmetical bug, so rather low priority.
[Android Apps and Games] optimummind:
On the Sprint GS7E where there is no toggle for Mobile Data, my data doesn't turn off automatically. Usually root is required for this function.
[Android Apps and Games] okij:
On my Xperia Z3c there is a toggle for Mobile Data, but still it doesn't turn off automatically yet.

And my device is also rooted, if that's needed to make this function work. :)