yashsingh1/xdaforums huggingface dataset:
[Greenify] oasisfeng:
Aggressive Doze no longer requires the complicated one-time permission granting procedure on non-rooted device, since version 2.8 beta 8.

Simply enable it in settings is all you need.

The overall compatibility and stability is also improved.
[Greenify] oasisfeng:
As requested by many members, the doze monitor notification can now be enabled in settings, independently.

Even if Aggressive Doze is disabled, you can also use it to monitor the normal doze behavior of stock Android.

Doze duration shown in the notification is in this format: "<screen off time>|<doze start time>-<doze stop time>".

If you have an Android wear watch (or maybe other smartwatch supporting notifications), you can receive a time-counting notification when the doze started.

Disclaimer: This feature is solely for debug purpose, and never guaranteed to exist in future versions.
[Greenify] oasisfeng:
What's the detailed trouble are you experiencing on Moto X Pure w/ Android 6.0? I don't have such device in my hand.
[Greenify] Smultie:
You mean "can now be enabled"? :)
[Greenify] TNSMANI:
Thank you for responding to our request. That the monitoring function can be used for normal Doze also, is an added and unexpected bonus.

The explanations in the Settings are now crisp and devoid of ambiguity.

Thank you once again.
[Greenify] oasisfeng:
Doze mode have many adjustable parameters, which could be overwhelming for most users. If you use Doze Editor or similar tool, you should understand that.

Tools should relief not increase the complication in the digital life. That's the spirit of Greenify - "forget and enjoy". Leave the complication of suitable solution to the developers behind.
[Greenify] oasisfeng:
Yes, my typo. Thanks for reminding.
[Greenify] TNSMANI:
Notification not showing up

[MENTION=4376588]oasisfeng[/MENTION]

The notification is not being shown for me.

I have enabled it and let the phone sleep for about 15 minutes but no notifications are showing up. In 2.8.beta4 I had notifications. I had not made any changes except updating Greenify.

I rebooted the phone also but still no notifications.
[Greenify] ulxerker:
same here, no notifications although the AD-notifications process is running in the backgroud (6.0.1, non-root).

also, someone said that according to supersu beta 8 isn't working. so, is beta 8 working or went something wrong with this release?
[Greenify] matteus198701:
In latest beta8 there is no "aggressive doze" option? I can't see it. Why? It's enable by default? I'm on the latest nightly of Cm13

Nexus 4
[Greenify] TNSMANI:
It is available under Settings in Greenify even without root and Xposed and even in the free version.

If you don't get it, it may be due to CM13.
[Greenify] jshamoon:
Not getting notifications as well...Nexus 5x here, non-rooted and stock. Thanks for all that you do!!
[Greenify] suku_patel_22:
Same here. No notifications on N6, running Cataclysm and ElementalX without root.

Are we supposed to see the notification only on Android wear or on phone as well?
[Greenify] ahac85:
Went back to beta 7 due to same problem with no notifications. All good now, HTC One m8

Sent from my HTC One_M8
[Greenify] ulxerker:
... but beta 7 doesn't have notifications either, so far only beta 4 has.
[Greenify] TNSMANI:
You are supposed to get it on both the phone and wear.
[Greenify] Ranguvar:
Thanks for the very helpful tool!

I have two questions.

1. I have a 6.0 Nexus 6P. How does the new shallow hibernation work with the deep hibernation? Do they work together?

2. Is aggressive Doze compatible with modified Doze settings in another app, or is it just tweaking those values itself? Is having both counterproductive?

Thanks again!
[Greenify] TNSMANI:
I have no idea on your first question.

On the second, my personal experience is both complement each other, atleast with my settings. The Dev said earlier that AD is sufficient.
[Greenify] Rohandd:
aggressive doze not working

I became the beta tester and I installed the latest version and my phone is rooted.. but in settings I can't seem to find aggressive doze at all, nor shallow hibernation. Moto G 2014
[Greenify] tailslol:
you need marshmallow and you need to wait the beta update to be downloaded,can take up to 7 hour to get the notification.
[Greenify] Rohandd:
I do have marshmallow... XT1069
[Greenify] ahac85:
Working fine for me :)

Sent from my HTC One_M8
[Greenify] ajeesh vijayan:
no notification

no notification on beta 8.. how to get doze notification? thanks
[Greenify] tylerdurden83:
Why is doze being triggered while the phone is charging? I receive whatsapp notifications as I lift my phone from the desk (behavour expected while under doze), but that also happens when it's plugged to a charger! Doze shouldn't trigger while charging, no point in it!
[Greenify] tailslol:
faster charging and nothing to do probably.
[Greenify] Rohandd:
No, I'm not getting it either. I'm running stock moto G 2014 runing marshmallow. It isn't available in settings at all.. not that, not shallow hibernation.
[Greenify] carl_oak:
I'm not getting the aggressive doze mode either. Not anymore. I'm currently running cm13 in my Moto x play. I believe it's a cm issue, since I had it when I used stock rom.
[Greenify] tylerdurden83:
I'd rather have whatsapp Web working than charge a minute or two faster tho...
[Greenify] TNSMANI:
What version of Greenify? With or without Xposed? And in which mode?
[Greenify] Rohandd:
I'm running 2.8beta 8.. On moto g 2014 and on marshmallow rooted stock with xposed and also with donation package..
[Greenify] TNSMANI:
Can you post a screenshot of the Settings page of Greenify?
[Greenify] Tillsats:
Nexus 6p, stock FW, greenify 2.8beta 8, no notification although doze is active.
[Greenify] Rohandd:
I installed nxrom 10.0.4, now it's working along with shallow hibernation, but yes I can't see the notification in the version 2.8 beta 8 on moto G 2014.
[Greenify] TNSMANI:
That is a known issue and has already been reported. That is why I have gone back to 2.8beta4.

---------- Post added at 06:31 PM ---------- Previous post was at 06:31 PM ----------

See above
[Greenify] bandario:
Just to clarify, I believe everything is working because my battery life is very very good IF I don't take the phone out of my pocket.

Clarification: I am rooted, have xposed installed and have opened greenifty, gone to settings and ticked enable aggressive doze.

Would people suggest setting up anything else or is that enough? Phone function seems beautifully unaffected at the moment but I am getting a boost so I'm already happy - should I do anything else?

Champion effort.
[Greenify] tailslol:
Doze is a marshmallow function .it is used by default. This tweak is just to make it trigger sooner.it is not a must have.
[Greenify] TNSMANI:
You mean even when you walk, run, jog etc? Doze/Aggressive doze will stop working when the phone detects movement. So you may just have a placebo effect. If the phone is not moved, then yes, Doze/AD will work.

On further tweaking, it depends on your requirement. If you are satisfied with what you are getting, then why meddle with it?
[Greenify] bandario:
That would explain why I was far less impressed whilst I was riding my motorbike all day today compared to having my phone sit on my desk all day. Time to figure out how to use the hibernate stuff I guess. Thanks.
[Greenify] km8j:
Hi. I'm trying to understand these new features of more aggressive doze on a non-rooted device. Doze out of the box simply works when the device is laying flat and not in use. Does this new feature mean it will work regardless of that, as long as the screen is off?
[Greenify] Rohandd:
No, it requires the same conditions.. but it does set your phone into doze right away if the conditions are met, Doze out of the box requires the device to be idle like that for sometime ( 30 mins if I'm not mistaken) .
[Greenify] km8j:
Hmmm... But Greenify also cannot auto-hibernate on non-root on phones with a keyguard. So does it still activate Doze earlier? What is the advantage of Greenify on non-root? I'm fuzzy on that. Is this new aggressive doze supposed to show up in Greenify after I grant the ADB permissions? I don't see anything after force stopping the app.
[Greenify] ulxerker:
Yes, it still activates doze earlier and this has nothing to do with auto-hibernating apps as hibernation and doze are 2 different behaviours. Also, on 2.8 beta 8 you don't need adb permnissions for aggressive doze to be enabled in the settings. After enabled, it runs as kinda background thread and does the rest for you.
[Greenify] oasisfeng:
The significant movement detection which turns off Doze when it triggers, cannot be disabled easily at present. I'm afraid the currently only viable way is Xposed module. But that's far beyond the reach for non-root users.
[Greenify] ajeesh vijayan:
will you be adding 'disable motion for doze' in greenify xposed feature list?

those who have root and xposed could take advantage

thank you
[Greenify] dipro.tanvir:
2.8 beta 9 aggressive doze seems not working on cm 13......only beta 7 did
[Greenify] youkeshrbs:
Not interested
[Greenify] ulxerker:
pardon?
[Greenify] oasisfeng:
I've received many reports that the pure rootless implementation since beta 8 does not work for CM13. I need to check what CM has modified on the stock AOSP...
[Greenify] dipro.tanvir:
Ok thanks. Looking forward for a solution!! [emoji4] [emoji4]

---------- Post added at 05:54 AM ---------- Previous post was at 05:43 AM ----------

Btw my device is rooted with xposed enabled boost mode!!!!
[Greenify] Rohandd:
Which xposed module?
[Greenify] TNSMANI:
I think he meant Xposed framework.
[Greenify] suku_patel_22:
You can use Amplify to disable anymotion. search for anymotion in wakelocks and set it to 99999.
[Greenify] bandario:
Any feedback on this? Does it work?
[Greenify] venky716:
I've blocked both anymotion and nlpcollector wakelocks through amplify for 99999 secs.

It still goes into doze.

Either use BBS or Greenify beta to check how much time device dozed.
[Greenify] oasisfeng:
In my test on a Nexus 4 with latest CM13 nightly, aggressive doze works as expected. I'm afraid the issue you mentioned might not be caused by CM itself.
[Greenify] TNSMANI:
If you mean does Amplify stop motion detection in Doze, then the answer is no. Even after Anymotion is limited for however long, any movement of the phone stops Doze.

As the Dev said, as of now there is no way to stop motion detection but in future, an Xposed module may be developed by someone.

We have to wait till then.
[Greenify] joe1blue:
Sorry for the dumb question, but how do you tell how much Doze you have used throughout the day? Just looking at the battery life?
[Greenify] ulxerker:
Just enable the aggressive doze notification feature in version 2.8beta9, this will list all doze periods in notifications area.
[Greenify] liver20:
On my zuk z1 cm13 not works.

I come back to beta 7

Enviado desde mi Z1 mediante Tapatalk
[Greenify] vsr625:
Some questions to be answered

Hello everyone, thanks [MENTION=4376588]oasisfeng[/MENTION] for the great app its really useful..

I just switched to marshmallow yesterday...right now im running pure aosp rom in my xt1033 and using the beta 9 version...

Im using in xposed mode with shallow hibernation off and AD on

I have a few questions....

1)I collected BBS stats during the night, i attached the image, it says that my device was in doze mode only for 1.5 hours(correct me if im wrong).that shouldnt be the case if AD is turned on right....it should be in doze mode immediately after my screen turns off....and yes my device was not subjected to any motion....

2)Is this normal to you guys or is it only me ?I mean, in the description for AD it says that device moves to doze immediately

3)Can anyone explain me the three new Doze statistics in the BBS app?

4)How much time does your device be in doze mode overnight?

5)Do you guys get a notification from greenify everytime your device is idle for a short period like 30 min, I dont get cause my device never enters doze so early..

I will test one more time with AD turned on and then try again with that disabled....

for those of you thinking that my BBS stats are already good and i dont need to worry about doze, i say otherwise, i just want to know how much more i could squeeze out of my device thats it....

thank in advance for answers
[Greenify] TNSMANI:
1 & 2) There is something wrong with your AD. For an idle dump of 7+ hrs. the idling time is very low. Your sensors also were active for quite sometime.

3) I am also waiting for answer. Still not 100% sure what they are.

4) For me, for an idle dump of 6+ hrs. the Doze idling time will be about 5 to 5.5 hrs.

5) The notification shows even a couple of minutes of idling time for me.

Try uninstalling and reinstalling both BBS and Greenify.
[Greenify] vsr625:
Thanks for your answer but after trying older versions of greenify AD works correctly as expected.....

hoping that this would get fixed in the next version...
[Greenify] ap1618:
Some apps always stay in "awoken temporarily" area... actually most of the apps. Is this normal?
[Greenify] TNSMANI:
If you enabled shallow hibernation, then yes.
[Greenify] iamnotkurtcobain:
Why can't I see shallow hibernation and aggressive doze on my moto g 2015 with cm13?
[Greenify] venky716:
You've to get into the beta program since they're beta features.

https://plus.google.com/communities...4/stream/aab0f541-e6e7-44d4-8bc1-af7a9b03c4c0
[Greenify] iamnotkurtcobain:
I'm using beta 9.

Gesendet von meinem SM-G900F mit Tapatalk
[Greenify] venky716:
Beta 9 here as well.
[Greenify] itista7:
[MENTION=4376588]oasisfeng[/MENTION], thank you! i haven't logged into the forum for quite sometime but i logged in specially to thank you for the Agressive Doze feature... it seemed to me like Doze was not working on my Nexus 6P as i was losing around 6% overnight but now its only 2% (and of course since AD kicks in during the day i save more battery).

I am curious though as to how it works on non rooted devices... i know root is needed to change Doze settings so how does this work without root? Is it activating the same Doze that comes with Marshmallow or it's something new?

Mohamed
[Greenify] oasisfeng:
The same Doze. Android provides internal API to control the doze mode. Since it's the internal API, it may or may not work in the future Android version.
[Greenify] itista7:
[MENTION=4376588]oasisfeng[/MENTION], thanks again for the explanation, i certainly hope they don't modify anything in this API... also the debug feature is very useful!

Will there be a way in future versions for non rooted devices to control when AD kicks in?

Mohamed
[Greenify] oasisfeng:
Can you describe the desired "when" in your scenario? I will consider a proper solution for that.
[Greenify] itista7:
[MENTION=4376588]oasisfeng[/MENTION], Nothing specific on my mind, just thought it would be a great feature to be able to control when depending on need, anyways all is good for me now.

From what i noticed AD kicks in after 5-15 minutes correct?

I really appreciate your work oasisfeng, Now i go into Doze mode, save more battery power during the day and even better i get a notification to know exactly when the phone was dozing... Google should have done that or at least should have been clear about default settings for Doze.

I am getting the donate version.

EDIT : The donation package does not have AD?

Mohamed
[Greenify] Shepguessed:
I also do not have the aggressive doze or shallow hibernation options on cm 13. On aosp I have them but not on cm. Same version, beta 2.8 beta 11. Anyone know why/how to fix or is it just a bug?

Sent from my Nexus 6
[Greenify] TNSMANI:
The donation pack contains only the donation details. The main app gets that info and allows you to operate the donation settings. So if you had AD before, it will continue to be available. Further, AD is available in the free version itself. So you should have it, in any case.
[Greenify] Shepguessed:
You would think so, right? But for some reason I do not have those options when running cm 13, and someone else has also posted this problem.

Sent from my Nexus 6
[Greenify] zzzZZtz:
same problem here with a Galaxy S4mini running always latest cm13 nightlies (serranoltexx).

AD ist not available in settings.
[Greenify] achimg2:
I've the same problem on a just fresh install CM13 on a Moto X Play. But remove of 2.8 beta 11 and install of beta 5 bring back the menu options.

It seems a bug.
[Greenify] zzzZZtz:
The command "adb shell dumpsys deviceidle" returned -> "mEnabled=false".

So I guess AD is disabled for my device and I have to contact the device maintainer.
[Greenify] oasisfeng:
That's the exact answer.

I'm planning to add an experimental option to override the feature state disabled by ROM (root is required), after 2.8 stable is released.
[Greenify] srtsjs:
+Please also return the feature of greenifying system apps my phone has been charging very slow since then ﻿
[Greenify] davidmlondon:
Same here, S4 mini, CM13, latest nightlies, no AD settings.
[Greenify] ubcjack:
My N5X is not rooted and I hasn't granted permission yet to

"pm grant com.oasisfeng.greenfiy android.permission.DUMP"

"pm grant com.oasisfeng.greenify android.permission.READ_LOGS"

but I can already see doze tracker running and background process shows doze tracker and aggressive doze process.

Is this expected? And does it mean it's working already without granting permission?

Jack
[Greenify] garyngkt:
I just installed v2.8 from Play Store but can't seem to find this experimental feature, do I need to add in the donation package for this?. Thanks.
[Greenify] chadha:
Using v2.8 on Android 6.0 and I also can't find experimental features there. Was too excited for Aggressive Doze. ?
[Greenify] Rohandd:
Yup, same here.. on rooted stock moto G 2014. If I use 2.8 beta 6 or beta 4, then and then only I can see aggressive doze option. If I use custom rom then I can get those options but not on stock rooted.
[Greenify] oasisfeng:
Probably the Doze mode is disabled in the ROM, see FAQ in the first post.
[Greenify] chadha:
People using stock or custom Rom no matter what, most of them can't find the Aggressive Doze, not even Experimental features.
[Greenify] oasisfeng:
I'll add a workaround for this situation in the coming beta. Hope it will work then.
[Greenify] cssoz:
I don't even have the " Experimental feature" button under 3 dot menu. I have had this during 2.8 beta and now stable.

I also have donation package installed and restarted the phone

Thanks
[Greenify] ulxerker:
From version 2.8 beta 8 onwards you don't need to grant permissions anymore in order to make AD work ... the app does it internally via API.
[Greenify] chadha:
One request, please make the Aggressive Mode available for non root users without using ADB, just by Accessibility.
[Greenify] jackson_c:
Greenify Agressive Doze work like naptime?
[Greenify] Hitti2:
I am finding with Aggressive Doze enabled, my moto display on my moto x pure does not work.

Anyone else finding this as well?
[Greenify] ulxerker:
Its already working without granting permissions via ADB from version 2.8 beta 8 onwards ;)
[Greenify] chadha:
Which device you've? Thank you, I'll check v2.8 beta8. But in the release notes Oasis mentioned it would work on v2.8 stable on non-rooted devices.
[Greenify] oasisfeng:
I just managed to completely disabled the significant motion sensor during doze on my Nexus 5X, without root.

Still there's a minor side effect I'm working on to eliminate. I'll update a new beta version when it's ready.
[Greenify] chadha:
Thanks. More than a million are counting on you.[emoji2]
[Greenify] davidmlondon:
Just received 2.8.1 update but still no aggressive doze option.
[Greenify] ajeesh vijayan:
that's awesome...
[Greenify] chadha:
Yeah, when I saw the update I also thought Aggressive Doze might have added but it wasn't there. Hopefully Oasis, will bring it soon.
[Greenify] Techguy18:
Could you add an option to monitor doze? Like a battery graph with a doze bar and time it has been enabled for?

I'm running the latest version, and the notification keeps disappearing after I wake up the phone.

---------- Post added at 08:11 PM ---------- Previous post was at 08:09 PM ----------

Does Doze work without the SMD?

Doze doesn't seem to work on the Moto G 2015 running MM, it has no gyroscope, and the SMD sensor isn't exposed to apps.
[Greenify] hassanmahmood:
Can I activate aggressive doze in both Greenify and Naptime? Or should I use just one?
[Greenify] oasisfeng:
2.9 beta 1 is pushed to beta channel with improved Aggressive Doze:

* Prevent Aggressive Doze from being interrupted by significant motion. (only tested on Nexus 5X, not sure whether it works on other devices)

* Activate Aggressive Doze even if doze is disabled in ROM. (may break things since the ROM is not made to be compatible with Doze).

Both require DUMP permission to work. That means you need either root or manual granting DUMP permission (for non-root).
[Greenify] ulxerker:
[/COLOR]

Nexus 5X all stock, but this should't matter ... did you give it a try?
[Greenify] chadha:
I tried using 2.8 beta 6 and it also required to activate the Aggressive Doze using ADB.

---------- Post added at 09:28 PM ---------- Previous post was at 09:26 PM ----------

I've gone through the link. Is it possible to have Aggressive Doze activated without using ADB on non root devices in the future betas?
[Greenify] ulxerker:
as mentioned, try 2.8 beta 8 or onwards. or even better 2.9 beta 1, released 1 hour ago.
[Greenify] chadha:
What? 2.9 beta 1 is out? I only received 2.8.1 stable today?
[Greenify] ulxerker:
Great! And thanks god we have the same phone ^^

It seems to run even without DUMP permission on non-root Nexus 5X ... its aktivated and running. should I grant it, though?

---------- Post added at 17:07 ---------- Previous post was at 17:05 ----------

download beta versions here: https://www.dropbox.com/sh/mspso6yvv1wbvju/p0AK2l3vmZ
[Greenify] oasisfeng:
If the DUMP permission is not granted, I'm afraid the doze WILL be interrupted by significant motion.
[Greenify] ulxerker:
yeah, most likely ... anyhow, I just hacked it in via ADB, takes 2 seconds.
[Greenify] chadha:
The Aggressive Mode or experimental features still not accessible.
[Greenify] suku_patel_22:
You mentioned that it causes some the issues. What are those issues?
[Greenify] oasisfeng:
You mean the "side effect" I have mentioned earlier? It has been eliminated fortunately. For any other issues I'm not aware, I need your feedback. :D
[Greenify] oasisfeng:
Have you granted the DUMP permission manually?
[Greenify] chadha:
Nope, I haven't given DUMP permission manually. I'm not comfortable with this ADB stuff.

Is it Rom(irrespective of custom or stock) specific to have Aggressive Doze on non root devices without having to dump permission?
[Greenify] italia0101:
I posted this on the beta thread, but may as well here too,

Tried the aggressive doze ( latest beta ) on my Nexus 6 ,,

Had it plugged into my PC with a logcat running . i used the " battery unplug " command .

I can see it go into Doze on screen off . a new notification says " entered doze mode" , but with a bit of shaking a movement it wakes up , so on the Nexus 6 at least it still gets awoken with motion

EDIT- Oasisfeng suggestion works! it does stay dozing after motion!
[Greenify] oasisfeng:
See the FAQ in the first post. Either custom or stock ROM (besides Nexus) may disable doze, thus Aggressive Doze cannot work without the DUMP permission.
[Greenify] oasisfeng:
Is your Nexus 6 running stock Android 6.0.1? Have you enabled Ambient Display?

You can use Ambient Display with Doze notification enabled to test it in real situation without USB cable.
[Greenify] italia0101:
It's currently running 6.0 , i have a 6P as my daily but just grabbed my Nexus 6 from the draw to test this

Ambient display wasn't enabled no, but good suggestion, i didn't think of that !

So i just tried your suggestion and boom! even when shaking it immensely the notification still says " dozing " !! so i guess it is working! my bad, i wonder why having the cable connected kicked it out. strange!