yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] colonel_lp:
Grant ForceDoze Root

For those of you, like me, that cant get ForceDoze to ask for Root access so you can see the debug logs, I've found a way to get it to ask.

it seems that ForceDoze checks root access by seeing if it has access to the android.permission.DUMP permission (dev correct me if i'm wrong), which it has without root request on my phone.

so connect phone to a computer via adb, and do the following:

type in terminal:
adb -d shell pm revoke com.suyashsrijan.forcedoze android.permission.DUMP

-go into settings>apps>forcedoze> and hit 'force close'

-open forcedoze and enable the service (if its already on toggle it off/on) and you should get an SU request. Grant It...

type in terminal:
adb -d shell pm grant com.suyashsrijan.forcedoze android.permission.DUMP

-go into settings>apps>forcedoze> and hit 'force close'

-open app and you will be able to open the debug logs...

WIN!!
[Android Apps and Games] optimummind:
[MENTION=5427507]ssrij[/MENTION] On the latest version, still getting app store "check your connection" issue. But easily fixed so far by backing out, opening Recents, swiping away app store, & reopening. At least I don't have to restart phone, which is good.
[Android Apps and Games] ssrij:
The app does check for DUMP permission, if it's not granted then it checks for root and grants it on behalf of the user. On subsequent app runs, if the permission is granted, then the app doesn't check for root
[Android Apps and Games] V4lve:
Like the app a lot but the screen rotate and brightness fix doesn't work. Moto G2015 on Marshmallow
[Android Apps and Games] ssrij:
Did you happen to manually grant it the permission via ADB?
[Android Apps and Games] ssrij:
Is it greyed out for you? and no, you can't use it with Greenify AD
[Android Apps and Games] ssrij:
Did you by chance turn on Doze Delay or Disable motion sensing for Doze in the app's Settings?
[Android Apps and Games] johno4444:
Hi

I can tell you that when I was testing the beta I did not have the experimental feature ticked, just the default settings The phone would not go into deep sleep, so i am now back on version 44
[Android Apps and Games] okij:
[MENTION=5427507]ssrij[/MENTION]: I can confirm this, please see attached screenshots of the current Beta.

Disabling sensors on screen off doesn't work with rev 46 (not even with the standard, non-workaround implementation) and I'm back to rev 34 for now.

I really hope that you get this fixed the remaining bugs soon, but please take your time when looking at the code and don't rush things. First of all, good luck for your exam on July 7th! :fingers-crossed:
[Android Apps and Games] u7Xz:
Which battery app is the orange one? Thanks.
[Android Apps and Games] liver20:
For me 1.37 non beta works like a charm, 1.37 beta not works, at the night loses 8%. Non beta loses 2%.

Enviado desde mi ONEPLUS A3003 mediante Tapatalk
[Android Apps and Games] okij:
GSam Battery Monitor
[Android Apps and Games] sohailss111:
This is my Doze stats after uninstalling all the extra doze apps like ForceDoze and Greenify
[Android Apps and Games] sohailss111:
This is the stock doze.
[Android Apps and Games] theronlas:
Is there a way to allow Gmail email notifications to still work, I have whitelisted the gmail app and still nothing?
[Android Apps and Games] ianmacd:
No. Whitelisting the app doesn't whitelist incoming notifications for it. If those are sent with normal priority, as are GMail's, then they won't be passed to the app while the device is dozing. And that's the behaviour you've observed.
[Android Apps and Games] koboltzz:
Guys, there is a really easy way to test if the app work:

Download something with chrome and inbetween turn the display off. Expected Result: Download gets paused or aborted (if the server do not allow download resume).

On my nexus 6, every app version of 'Force Doze' even the latest beta works that way therefore doze is working. You don't need GSAM. Some of these battery stats apps show faulty stats.
[Android Apps and Games] unknvvn:
When using Force Doze the stock stopwatch timer doesn't ring. Any suggestions if this can be fixed?

Also for some reason option to disable mobile data during Doze is greyed out despite having root access. Any tips?
[Android Apps and Games] usvimal:
For the first issue, you can disable battery optimization for the Clock app in settings.

For the second one im not sure..
[Android Apps and Games] unknvvn:
I have tried to exclude Clock app but no luck.
[Android Apps and Games] sohailss111:
Okay guys. How do i allow my phone to doze even when i'm moving. It keeps entering and exiting doze mode. Please suggest a proper working method for my galaxy s6 (not rooted). Confirmed and working method.

Thanks a lot
[Android Apps and Games] williamlaw:
empty stat showed,pls advice

Thanks
[Android Apps and Games] SaggyAfiq:
Yes it does work when the phone is stationary. It still doesn't work when you walk around or by just having it in your pocket.

Sent from my rooted OnePlus Two A2003
[Android Apps and Games] softsorter:
Strange I charged my Moto G 2014 LTE at 11.30am this morning and now at 19.30 after reading your comment mines still showing 100% battery and been in my pocket since 12.00 midday.
[Android Apps and Games] ssrij:
Use the Google Clock app instead of the one supplied by your device OEM
[Android Apps and Games] ssrij:
By default it will not exit even if youre moving. If it's exiting when moving then you may have changed a setting (most likely 'Disable motion sensing for Doze')
[Android Apps and Games] neu - smurph:
The Google Clock app still needs to be whitelisted for Timer Alarms to work whilst dozing. Regular wake me up in the morning alarms work fine without whitelisting.
[Android Apps and Games] zsandras:
Hi guys, i'm using ForceDoze v 1.3.7_rev 46 beta (...+disabling motion sensor in doze) with Greenify v 2.9 beta (boost mode + aggressive doze.. nearly all third party apps and some system files greenifyed) and Xposed framework actually doze mod works perfect here.
[Android Apps and Games] silentvisitor:
Why use two apps that do the same thing?
[Android Apps and Games] zsandras:
I tested both and separately and the best result obtained using together. For a lower battery consumption, it could be an explication because by the wake up a lot of apps are greenifyed.
[Android Apps and Games] williamlaw:
Is it mean not work ?

How to make it active ?

Thanks
[Android Apps and Games] sohailss111:
If it doesn't exit doze while default when the device is moving, then why there's no doze actually, but it's showing in the notifications. I was moving during the 2 minutes from 17.58 to 18.00.
[Android Apps and Games] Hawgfan486:
I made a similar post about this a few pages back, and others have reported the same. Forcedoze's logs aren't always accurate. In my experience, it just logs the screen time off as a Doze session even if your phone doesn't actually "Doze".

I see you're already using GSam, that's a good way to track. But if you want notifications that accurately track Doze sessions, install Greenify and enable it's Doze Notifications. Don't enable the actual Aggressive Doze mode, just turn on the Notifications settings. I ended up just turning off Forcedoze's persistent notification and turned on Greenify's instead.

It's very accurate and always shows exactly what GSam does. I personally really like the real-time "Dozing" notification it shows for like 2 seconds right after you turn your screen on, that way you immediately know if your phone was Dozing or not.

Edit: Actually here for the past few days I've completely turned off all Doze notifications because Forcedoze has been working flawlessly. I'll go into GSam and check every once in awhile to make sure, but for the most part I don't have that need for constant notifications to show me that my phone is Dozing because Forcedoze has been working practically 100% of the time.
[Android Apps and Games] sohailss111:
Okay. Thanks. Currently using both Greenify and Force Doze. Got the Greenify 2.9 beta 2 update from the play store and the Aggressive Doze seems to working (STILL HAVE TO TEST PROPERLY) even when I'm moving. Will confirm later .
[Android Apps and Games] ianmacd:
There's not much point in using the aggressive doze mode of both apps. Whichever one is configured to be the more aggressive will take precedence.
[Android Apps and Games] sohailss111:
By the way, nothing is working for me properly. As in, in regards to Doze while movement , both Greenify and Force Doze stop on movement as per GSAM
[Android Apps and Games] ianmacd:
Have you granted DUMP permission with adb? Or are you rooted?
[Android Apps and Games] sohailss111:
Granted DUMP permission via Adb.
[Android Apps and Games] davidmejiam7:
Hey Man,

Great app thanks for doing this, I did have a question. I have searched everywhere in this forum and also including reddit and have not been able to find the answer, is there anyway for non root users to remove whitelist apps? Even though I remove the packagename it is still there. I tried multiple times. There are some packages there like google play store and some verizon stuff that are there and are not letting my phone fully enter doze mode, having me drop 14-16% overnight. I would appreciate any help that I can get from the developer or any member in the forum. I don't have root I have a Verizon S7 Edge, most of the samsung crap is disabled and although battery life is better than before it is not where I would like it to be.
[Android Apps and Games] kryshnakishore:
All the best [MENTION=5427507]ssrij[/MENTION] for tomorrow exam! Meanwhile any one tested new greenify beta 3 app?

---------- Post added at 09:35 PM ---------- Previous post was at 09:33 PM ----------

U should not remove playstore & playservices app.. Thy should run always
[Android Apps and Games] davidmejiam7:
These are all of the apps/services that are whitelisted by default and can't seem to get rid of a couple that I think are unnecessary. I would appreciate your input
[Android Apps and Games] Hawgfan486:
^I don't think it's even possible to remove them. Is it?

Have you tried going into the Battery Optimization settings in your phone's settings and turning them off there? Instead of using Forcedoze's whitelist? They're the same list. You could try that, but there's some things that you cannot turn off. The battery optimization list in your settings might show a bit better what exactly you can't toggle.

Anyway, I had a strange occurrence last night, my phone entered a Doze session while I had the screen on and was using it. I guess it didn't turn off when I turned my screen on. I didn't even realize it for a good 20 minutes, and when I did, I ended the Doze session. That's actually happened to me before, but this is something I've never had happen: apparently it started up again after a few minutes and went into another Doze session (without ever turning off my screen) and Dozed for another good 40 minutes while I was using my phone, again without even realizing it was doing it.

Anyone else experienced anything similar? I didn't notice any negative effects. Both GSam and Greenify's Notifications logged the sessions.

[IMG="Screenshot"]https://s31.postimg.org/c08g0jd0r/Screenshot_20160706_110947.png[/IMG]
[Android Apps and Games] Broken303:
the whitelist feature in ForceDoze is the exact same as the systems battery optimization whitelist, only that (depending on the version you're using) some otherwise hidden system apps are also shown. these aren't meant to be disabled, especially without root, by default.
[Android Apps and Games] ssrij:
They are just visible for transparency purposes because they're hidden from the system battery optimisation page. You cannot disable them unfortunately, at least not without access to the source code for the ROM on your device. Also, disabling some of those packages would hinder device functionality during Doze.
[Android Apps and Games] ¿Will-it-Blend?:
Been a while since I used this app mainly because of the GPS cutting off while navigating with the screen off. Was just wondering if there was a workaround for this that doesn't involve completely disabling motion sensors.
[Android Apps and Games] ssrij:
GPS isn't a motion sensor. And that is because Doze suspends GPS. You can use Tasker to disable ForceDoze when you use a mapping app like Google Maps
[Android Apps and Games] okij:
[MENTION=5427507]ssrij[/MENTION]: I hope that your exam went well! :)

How does the development of ForceDoze go on now? Will you tackle the reported bugs soon?

On my phone (Z3 compact), ForceDoze doesn't work reliably in any of the modes (normal / experimental non-root / experimental root with Xposed), also including the older builds like rev 34 and rev 38. After a while, the device simply doesn't enter (Force) Doze mode anymore. It seems to me that the service stops for some reason. This even happens when I have the notification enabled, so I'm sure that FD isn't kicked out of memory or something like that.

For now I'm using Greenify 2.9 beta 3, which enters its Aggressive Doze mode very reliably, even after a couple of days uptime, and now also has an option to disable the motion sensors during doze.

However, I'd really like to use a fixed version of ForceDoze, because 1. its Xposed option to keep the motion sensors active is a great option as long as it works (e.g. I use Double Tap To Wake in conjunction with a check of the proximity sensor, so it doesn't turn on accidentally when in pocket, and this doesn't work when the sensors are completely disabled) and 2. Greenify doesn't use Tasker intents yet, so I can't turn its Aggressive Doze mode off when using a GPS tracking app.
[Android Apps and Games] kryshnakishore:
Greenify 2.9 beta 4 works too good
[Android Apps and Games] hdfranklin:
Doze Mode Ending Prematurely

I am having a problem with ForceDoze. It seems similar what has been mentioned in other posts but I am not certain.

I am trying to keep my phone in Doze mode for 8 hours while I sleep. Wifi is turned off and the phone is in Airplane mode. Tasker is not using reliable alarms and there are no other apps that I know of with time contexts. The pone is not being moved and nothing is turning the screen on.

Looking at GSam after 8 hours it appears that my phone entered Doze mode as soon as the screen turned off. During the the 1-2 hours it may or may not leave Doze mode for a short period of time, then re-enter it. After 2 hours or less the phone leaves Doze mode and never re-enters it. This can be verified by the battery consumption of about 7% for the 8 hours. ForceDoze thinks that it has been on the entire time but notes that the battery consumption was high.

I am using an un-rooted Samsung Galaxy S5 running Android 6.0.1 and the PlayStore version of ForceDoze. All ForceDoze settings have been left at their original default values.

Any help anyone can give me with this would be greatly appreciated.

Thanks in advance,

Howard Franklin
[Android Apps and Games] cssoz:
btw why aren't we executing the above bold command line on top of "adb -d shell pm grant com.suyashsrijan.forcedoze android.permission.DUMP" as greenify needs both ?
[Android Apps and Games] hdfranklin:
Partial Workaround Found

I got Wakelock Detector (WLD) to work on my non-rooted phone. It pointed out some Whitelisted apps with wakelocks of which I was not aware. When I removed these apps from the Whitelist I stayed in Doze for just about the entire 8 hours.

[MENTION=5427507]ssrij[/MENTION]: It is very difficult to completely remove all wakelocks. Is there any way that ForceDoze can detect that doze mode has ended and then restart it?

Thanks,

Howard Franklin
[Android Apps and Games] ssrij:
Yes, I am looking into the issues. I'm thinking to remove those experimental options and only keep the Xposed one and also remove Doze Delay as its not being used much, just remove useless code and that may remove some unwanted bugs
[Android Apps and Games] cssoz:
[MENTION=5427507]ssrij[/MENTION] hey

non-root with DUMP permission. Default settings does NOT prevent movement from waking up doze correct? I must use the experimental feature under Doze enhancement for disabling motion sensors?

Thanks!

https://www.reddit.com/r/AndroidQuestions/comments/4olpuf/help_me_figure_out_forcedoze_settings/ = answer to my question.

DR;TR = Default configure = best for all around due even during walking around.
[Android Apps and Games] gelocatronico:
Im a little confuse, is not better disable motion sensing? with motion sensing disabled it must enters in doze the most of the time, or im wrong?
[Android Apps and Games] ianmacd:
The app does this by default.

The option called Disable motion sensing for Doze is confusingly named, because what it really means is 'disable motion sensing only for Doze', i.e. not for the whole system. By default, motion sensing is disabled system-wide.

This isn't clear to new users of the app, who think that motion sensing won't be disabled if they don't use that option. To make matters worse, the option is buggy for a lot of people, and for these people motion sensing actually becomes enabled when that option is activated.
[Android Apps and Games] cssoz:
simply reset the app to default = all the time doze. it is confusing with the option saying disable motion sensing (prevent movement) BUT from the reddit = everything default = best.
[Android Apps and Games] gelocatronico:
Thanks a lot, im very happy with the app and the difference in battery is clear, now untap the option to see if exist any improvement.

The weird is in p8 lite dozes even screen on ¿¿???

And the s7 exits from doze overnight even flight mode.

For more info, samsung pay works fine, using simple pay in screen off okkk

Greets
[Android Apps and Games] cssoz:
[MENTION=5427507]ssrij[/MENTION] hey!

& everyeone else

anyone know how to switch to the new Doze stats page instead of the less informative (old) one ?

Thanks
[Android Apps and Games] ssrij:
You cant manually switch, the app automatically switches to the old format if your logs get messed up, to reset you should clear your logs
[Android Apps and Games] SupaKid:
Hey, guys!

This app has been pretty awesome for me so far, kudos to you,Ssrij!

Just a question.

Does Doze disable MMS as it's trying to be sent?

I can get MMS from others, but to send my own, I have to leave the screen on, til it sends.

If the screen goes off, the MMS will never send.

It's not just this app, but other Doze controllers as well.

Is there a workaround for this?

It'd be nice if Doze could activate after the MMS was sent.
[Android Apps and Games] xtools:
[MENTION=5427507]ssrij[/MENTION] I'm glad I found this thread, planned to start working on more or less the same app, nice it already exists :)
[Android Apps and Games] hhuimie:
issue:

In some rom, idle mode is disable.I got a log:"Unable to go idle; not enabled"

I must "dumpsys deviceidle enable" every boot to enable idle mode
[Android Apps and Games] medes22:
How can i tell if it works on phronesis rom mm v1.2

I was on Resurrection remix mm and the result was promising

But on the Tw mm rom i can't see much difference

Is it. Only working on asop roms?
[Android Apps and Games] Alfie_Hodges:
Great idea!

My device has a rather low battery life, this would most certainly come in useful!
[Android Apps and Games] kryshnakishore:
Working on any app? Link
[Android Apps and Games] -n0cturne-:
Can't install, says 'parse error'.. x\

Moto E 2015 LTE, v5.1
[Android Apps and Games] moriel5:
Try to download again.

Sometimes downloads get disconnected at 99.999%, hereby corrupting the files.
[Android Apps and Games] skyred5:
So I suppose I should not use this app together with greenify aggressive doze? Will it conflict?
[Android Apps and Games] -n0cturne-:
Tried several different versions from different mirrors, with av disabled on pc, and directly on phone..
[Android Apps and Games] skyred5:
You can download this from play store too.
[Android Apps and Games] Melonius Games:
Looks cool! Nice!
[Android Apps and Games] dimuthu7:
downloading and will give feedback

small request can you add hide app icon from launcher
[Android Apps and Games] usvimal:
How else would you launch the app? Some launchers do support hiding app icon though
[Android Apps and Games] dimuthu7:
working pretty good but same like aggressive doze in grenify(same time save).i am on cm 13 with trebuchet so its have not that 'hidden app' feature.
[Android Apps and Games] iArvee:
I can't enable "disable mobile data during doze" since it says root required. Though I'm already rooted. I tried reinstalling, but still the same thing appears. I checked the debug log and it says "android.permission.dump already granted. skipping SU check".

any thoughts on how to resolve this?
[Android Apps and Games] cssoz:
adb read_logs permission for forcedoze.
[Android Apps and Games] iArvee:
Still doesn't fix it..
[Android Apps and Games] cssoz:
well will need [MENTION=5427507]ssrij[/MENTION]
[Android Apps and Games] ssrij:
Because youre on Lollipop, Doze is available on Marshmallow only
[Android Apps and Games] milojoseph:
Are you going to fix the problem on the s7e. It won't go in deep sleep
[Android Apps and Games] ssrij:
Can you explain the issue in more detail?
[Android Apps and Games] htc_6800_alltel:
If your s7e is on Verizon try an older version of the app. I'm on 1.3.4 rev 38. The newest build doesn't work well on my Verizon S7. It will exit doze on motion, after a factory reset and disabling just about every app and feature on the phone and it still not working. I found the 1.3.4 rev 38 apk and now it will stay in doze with movement now. Like it used to...
[Android Apps and Games] ggkameleon:
Hi ! I have your App in my op3 and work fine ?

I just install Xposed and the app are install in mod but I don't check it because I use with root before Install Xposed.

I Can check the module or no and use it just with SuperSu previlege ?

Thank's
[Android Apps and Games] SaggyAfiq:
Can we expect an update in the future ? Or is this the end of the development ?

Sent from my rooted OnePlus Two A2003
[Android Apps and Games] Hawgfan486:
Exact same thing here. I have an S7 on Verizon and the newer versions don't work for me. Doesn't stay in Doze during motion. A week or two ago I factory reset my phone for other reasons, and when I did I thought I would try the latest build again. Even after factory resetting and setting the phone up as a new device and not installing any app other than ForceDoze and GSam (to track Doze), neither the latest stable or beta version worked right. So I went back to 1.3.2 Rev 34, which is one that works practically 100% of the time for me.
[Android Apps and Games] turtle254:
Do you have a copy of 1.3.2 rev 34 handy? Lost mine.

Thanks
[Android Apps and Games] htc_6800_alltel:
1.3.4 rev 38 can be found on post 816 on page 82.
[Android Apps and Games] turtle254:
Have that , looking for 1.3.2 Rev 34

thanks
[Android Apps and Games] Chinaboy5216:
Here you go: https://yadi.sk/d/xC40tTt2tof5C

Direct link to 1.3.2 Rev 34

Direct link to my ForceDoze Share: https://yadi.sk/d/Izp0wtuGtof38

This one contains other versions too
[Android Apps and Games] raidflex:
Is there a way to prevent the app from updating even with automatic app updates on? I have the deep sleep issue on my S7E, so I was going to load the older version.

---------- Post added at 03:04 PM ---------- Previous post was at 02:54 PM ----------

Forgot there was an option on per app basis, nvm.
[Android Apps and Games] shayraz:
1.3.7 not working to remove motion sensing

Confirmed 1.3.7 doesn't stop constant motion sensing:

Used ADB dumpsys deviceide step

Once the device is idle, the status goes to IDLE or IDLE_MAINT. But when I pick up the phone and move it around, suddenly it wakes up to SENSING status and then LOCATING.

Installed 1.3.2 but cannot check the same as when I turn thephone off, I lose ADB completely and cannot confirm whether the phone is still doing sensing/motion/location checks when you move it around.
[Android Apps and Games] raidflex:
I can confirm that on both my wife's and my S7E version 1.3.4 V38 deep sleep is again working properly.
[Android Apps and Games] ggkameleon:
I do run with Xposed or no ?

I do this because I have install ForceDoze before install Xposed framwork.

That work same !?