yashsingh1/xdaforums huggingface dataset:
[Greenify] ccaparli:
I think iv found a solution for ad hibernating whatsapp even if it is in the whitelist.

Settings>application settings>whatsapp>notifications>high priority(on)

With this option i finally got messages from whatsapp after 5 mins which makes the phone in doze (idle)
[Greenify] mikeosu:
I've been experiencing frequent google play services wakelocks (and associated battery drain) lately. I've been able to narrow it down to only when I have AD enabled. Any reason this might happen? Or has this happened to anyone else? It happened to me on 2.8 beta and now still on 2.9 beta. It typically occurs at least once per day and never happens when I turn off AD.
[Greenify] ajeesh vijayan:
i think both hibernation engine can be used at same time

so this is what I have experienced

2.9beta2 with root

I choose "don't optimize" for what's app

shallow hibernation is on

every app except what's app hibernates using shallow hibernation engine..they are running but "inactive"

but what's app hibernates as like shallow hibernation is turned off

it's "active" but not running

(shallow hibernation always enabled)

"force stop" is greyed ,

so what's app uses old hibernation engine

sorry for my bad English

and again sorry if it's already discussed
[Greenify] JasonEddie:
[MENTION=4376588]oasisfeng[/MENTION] - I've granted the DUMP permissions as FAQ (1) requested, but I still get the issues quoted in this post.

Whenever I'm walking or in a moving car, My aggresive doze keeps going on and off and i'm notified of this via my moto 360 which keeps on vibrating every couple of seconds showing that doze has started. ("Doze 0:00")
[Greenify] Ajju^:
I have recently switched to MM. I am rooted and Aggressive Doze works fine when phone is kept in my desk i get doze duration notification. But when i am walking arround doze doesn't seem to work there is no notification about doze duration whats is the problem here...
[Greenify] ccaparli:
to use whatsapp until it is fixed, you can look at my post 404

---------- Post added at 11:03 AM ---------- Previous post was at 11:01 AM ----------

can we change Greenify AD timeout from 5 mins to lower? 3 mins would be nice.
[Greenify] ajeesh vijayan:
[MENTION=4376588]oasisfeng[/MENTION]

can you add tasker intent to enable aggressive doze?

will be easy to customize timing

thank you

---------- Post added at 02:57 PM ---------- Previous post was at 02:35 PM ----------

no I was saying that "not optimized"(battery optimization) "what's app" (it can be any app) uses old hibernation method even if shallow hibernation enabled

other "optimized" apps use shallow hibernation
[Greenify] ccaparli:
ok my mistake, i generally use "which" for situations like that:o

so you're saying that the apps which we select as "not optimize", greenify treats them as pre 6.0 app and uses the old standard hibernation method. This gives me the explanation of, why whatsapp(messaging one), not working even i optimize or not optimizing it.

So whitelisting does not affect anything if we use greenify. (for this version.)
[Greenify] ajeesh vijayan:
I think White listing works.. but when white listed app hibernates , next time Android need it to start from scratch
[Greenify] chadha:
Does Aggressive Doze mode also disable Google Fit? Lately I've found that the Fit doesn't count my steps and distance unless the screen is turned on before the any activity.
[Greenify] ccaparli:
you can try setting "high priority" in app settings, if doze hibernates it.
[Greenify] chadha:
Yeah, I've now white listed Fit in Greenify.
[Greenify] ccaparli:
Is it working when doze steps to idle?
[Greenify] ulxerker:
which version do you use? the feature of disabled motion sensor during doze you have in version 2.9 beta 1 onwards only ...
[Greenify] MBurns2:
guys betterbatterystat show me "sensor" wakelock during screen on ( i use aggressive doze).

Maybe it drains my battery ? any solutions ?

Thanks
[Greenify] Ajju^:
hey i got v 2.9 beta 2
[Greenify] ajeesh vijayan:
failed to get aggressive doze working

[MENTION=4376588]oasisfeng[/MENTION]

did my last attempt

clean flashed rom stock and cm13 (and tried without flashing gapps too)

installed greenify 2.9beta2

no other 3rd party apps

granted root

enabled aggressive doze and shallow hibernation

waited

no doze , no notification

but I can enable doze if I install tasker and run shell

no more workaround for me..

I think I should go on without aggressive doze

thank you

and sorry for bringing this again and again

if we have an intent or plug in to enable aggressive doze , I can use to activate by tasker

I don't know how hard that to be implemented
[Greenify] ulxerker:
aggressive doze is only active during screen off ...
[Greenify] chadha:
When I white listed Fit the battery drain got serious, 11% drop in 20-30 without using the phone except I was walking. Aggressive Doze is a difficult choice to make.
[Greenify] MBurns2:
i know :)

For this reason i'm asking why sensor is active during screen on..
[Greenify] TNSMANI:
I have seen your post on the BBS thread with the screenshot and made a comment also. Your sensor time and screen on time are different and there is no reason for you to presume that the two are related.

Further, some of the sensors like proximity will be active with screen on.
[Greenify] MBurns2:
I'm sure that sensor is active during screen on.

I tried multiple times, thanks to bbs custom ref i saw that sensor is triggered during screen on.

Without AD i don't have this problem.

Thanks for your help
[Greenify] dipro.tanvir:
I am facing some problems with aggressive doze on 2.9 beta 2 .while i am outside of my house and frequently using phone for receiving and doing phone calls, checking times with AD enabled, i get massive Android system wakelock!!! Once Android system kept my device awake for 9 hrs!!any explanation on this and how to stop this wakelock? Consider me as a noob.....
[Greenify] TNSMANI:
AD works only when screen is off. So it has no connection to your Wakelocks while you use your phone.

Install BBS and get an idle dump of atleast 6 hrs to find the culprit, if any.
[Greenify] dipro.tanvir:
Already done that in bbs thread. The thing is when it's idle for long time and stays uninterrupted its ok.... But when i am waking the device from doze frequently it causes the awake while screen off problem
[Greenify] TNSMANI:
AD is helpful only when the phone sleeps for longer. If you frequently unlock the screen, AD will force the idle state every time the screen is off.

So if your usage is frequent and high, you are better off with Google's Doze. You can disable AD during daytime and enable it during night.
[Greenify] echardcore:
Notification Explination

Can someone explain the notification please? I see a time stamp followed by a pipe symbol. What does that mean? I assume it is when I turned the screen off?

eg. 15:50 | 16:02 - 16:02=6s696ms

EDIT:

Sometimes I don't see that time stamp followed by the pipe.
[Greenify] tu3218:
So is everyone using the new shallow hibernation? Is there really any difference between the old and new way.
[Greenify] ulxerker:
at first the time the screen went off (i.e. 15:50), afer the pipe the duration of AD (i.e. 16:02 - 16:02=6s696ms).
[Greenify] chadha:
This is to inform that during Aggressive mode white listed apps are not dehibernated.
[Greenify] alwaysbelieve1:
What does that mean exactly?
[Greenify] chadha:
The white listed apps actually go in the Aggressive Doze mode.
[Greenify] deepu458:
+1 Me too. I have set few apps in whitelist but none of the notifications appear for those apps in aggressive doze mode. I tried setting the notifications as priority as well but no use. This is mainly observed in 2.9 Beta 2.

Plz fix this issue as i couldn't use the Aggressive Doze feature as im missing important email notifications.

Device: OPO(bacon)

ROM: RR MM(CM13 Based ROM)

Root & Xposed.

Working Mode: Boost
[Greenify] chadha:
Yes, white listing apps still go in the Aggressive Doze mode. For sure this needs a fix. I need to have Google Fit run in the background n monitoring my steps, today also my total distance was 3.5 n it showed only 0.5, I know the distance because that's the place where I do go for walk daily n have monitored it many times.
[Greenify] eemgee:
I have fit white listed and it works fine.
[Greenify] chadha:
And you're on v2.9 beta 2 while Aggressive Doze is enabled?
[Greenify] eemgee:
Yes, not rooted.
[Greenify] chadha:
Well, I'm. Okay since you're saying it doesn't put the white listed apps in the Aggressive Doze in non-root mode, I'll choose the non root mode, by I don't think it is as aggressive as it is on the root mode.

---------- Post added at 12:49 AM ---------- Previous post was at 12:41 AM ----------

One question though. How long n far did you walk for when you turned off the screen. I think it is possible that it only measured the time n distance for a limited period after the screen was off as the Aggressive takes some mins to kick in.
[Greenify] eduardito:
I have a Moto g Turbo edition with 32-bit ARMv7 i bought the donation version but would like to know which xposed version I have to install there are many options, could you please help me? there are 3 versions the difference is the SDK version

Thanks

File Type: zip	xposed-v80-sdk21-arm.zip - [Click for QR Code] (3.31 MB, 73386 views)

File Type: zip	xposed-v80-sdk22-arm.zip - [Click for QR Code] (3.38 MB, 106834 views)

File Type: zip	xposed-v80-sdk23-arm.zip - [Click for QR Code] (4.64 MB, 150498 views)
[Greenify] eemgee:
I'm doing around 8000 steps a day and I'm making point of minimum screen time.

I'll manually count some steps tomorrow to make double sure.

It's a moto g3
[Greenify] welder73:
Sdk21-5.0 Lollipop

Sdk22-5.1 Lollipop

Sdk23-6.0 Marshmallow
[Greenify] chadha:
My goal is also 8000 steps n have MG2. But in Aggressive Doze it stops counting steps n that's what I'm afraid of.
[Greenify] eemgee:
You are right, it's not counting, it was my watch syncing up.:(
[Greenify] chadha:
So glad I'm not alone.[emoji1]

Can you tag Oasis here? I just don't how to do that.
[Greenify] mikeosu:
I'm also getting the massive wake locks. It ONLY happens when AD is enabled. Every time I disable it, they stop. Every time I enable it, they start up again. I'm on 2.9 beta and the wake locks occur from Google play services.

Do you use the XDA smart lock app? I'm wondering if that could be conflicting with aggressive doze.....otherwise I'm out of ideas.
[Greenify] chadha:
What's wrong here? Aggressive Doze working even when it is disabled, maybe because of the conflict I see overnight drain about 8-9% on Wi-Fi.
[Greenify] ulxerker:
nothing wrong here as these notifications also show normal doze periods, don't worry about the confusing title "aggressive doze". the information regarding doze periods is provided by Greenify, not by the OS itself.
[Greenify] dipro.tanvir:
No smart lock
[Greenify] deepu458:
Hi [MENTION=4376588]oasisfeng[/MENTION], can u please try to look into this issue. I cant use Aggressive Doze mode as they stop receiving office Act Emails and Gmails and all whitelisted apps. Both these apps are not in the hibernated apps list as well.
[Greenify] Aaren11:
Hi Oasis, thanks for all the great work over the years.

Not sure if anyone else is experiencing similar, I have seen others post about issues with AD taking longer than expected to kick in, but on stock H10 MM 6.0,

I'm seeing nearly 1 hour delays before AD kicks in after the devices is locked and left stationary on a desk

.

I applied an RRU a few days back to wipe my system and reinstall everything, but ever since - I've had issues with AD being hideously delayed. I figured there must be a wakelock/alarm somewhere keeping the phone active - but GSAM and BBS conflict with the stock inbuilt power graph (please excuse the ghetto screencaps, I can't get my screenshot shortcut to work on MM):

GSAM reports the device as "active" during most of it's sleep, BBS shows very few wakelocks / alarms, but it's graph shows the phone nearly constantly wakelocked - and the in-built graph shows...normal sleep behaivour.

I do have Xposed and 3 modules (Amplify, Greenify (2.9.3) and MobileRadioActiveFix) but they've never given me issues like this. On the H9 build I was running a fortnight ago, I never had problems with AD activating in ~3min after screen off. I

have

been using the Doze Settings Editor app, but again, I had no conflicts with this on H9, and my understanding is it only changes the stock Doze values - it ought not to be conflicting with Greenify.

Any help would be most appreciated.
[Greenify] Sgace:
Hi,

I had the same issue as you with AD kicking in after an hour or so.

I got it working correctly after changing to stock doze settings and removing doze settings editor somehow.

Maybe try it?

Cheers
[Greenify] Aaren11:
I have tried without Doze Editor, but I'll give it another go now. Honestly I don't see how they'd conflict. AD should be overriding the normal Doze operation anyway.

EDIT: Nevermind, no dice. Restored defualt settings, wiped data and uninstalled Doze Editor, and still - I'ts been 90 minutes and my device isn't dozing. I don't really understand.
[Greenify] Sgace:
Hmmm, thats a bummer man.

Was worth the try though.

Good luck on your quest with this.

Cheers
[Greenify] ajeesh vijayan:
same problem here, even after clean flashing and without 3rd party apps .

I tried naptime , it has broadcast intent to enable disable doze using tasker and it works

but motion disables doze

if greenify had broadcast intent we could have used it to enable aggressive doze whenever we want and motion won't disable it

currently living with doze that kicks in after an hour stationary.. looking forward..

i hope [MENTION=4376588]oasisfeng[/MENTION] will come up with an idea
[Greenify] Aaren11:
Well I've made a little progress with my problem of AD being heavily delayed. I'm fairly certain it has something to do with supersu - and the systemless method of acheiving root. I reflashed 2.67 over my existing custom kernel - which was the opposite of the directions given by flar for rooting it - and found that AD suddenly started working within 6-7 minutes of sleep. Still not what I was used to back in H9 but better than an hour. I reflashed the H10 RRU hoping to install my custom kernel first, followed by Supersu second - and fix my issues permenantly, but I'm having trouble with getting AD, or any kind of doze to activate at all. That and GSAM seems to be constantly restarting now during sleep.

I'll post any more progress I have.
[Greenify] RogerSC:
I have a new stock Nexus 6P on Android 6.0.1, and am endeavoring to get aggressive doze going. Haven't rooted this phone yet, and don't want to do that at the moment. I have Greenify installed (2.9 Beta 2), and aggressive doze is "enabled". And I did the permission granting thing from early in the thread via adb using usb debugging. And then force stopped Greenify and restarted it to make sure that the new permissions were seen by it. However, after letting my phone just sit for an hour or so, and then picking it, no notifications from Greenify on aggressive doze, or evidence of doze in my battery usage.

So I don't believe that my phone is getting into aggressive doze mode.

Any advice for me from those that this is working for? I've read a lot of this thread, but not all of it. If the answer is here, I haven't found it.

And I was wondering how I could list the actual permissions that an app has to see if I correctly followed those instructions, although what I experienced was what is shown in the instructions. You never know, maybe I missed a step, so being able to check if the right permissions are installed would be helpful.

Thanks!

Update: using "adb shell dumpsys package com.oasisfeng.greenify" was able to verify that Greenify has DUMP and READ_LOGS permissions.

Update 2: Never mind, got it working. Getting doze notifications now. I'm liking the battery usage of my new phone so far *smile*, and the more aggressive dozing really does seem to help! And I like using a phone that's inherently clean, as opposed to having to root and flash ROM's and never quite getting there (Samsung Galaxy S3). I feel like Android is much more mature since I was last here.
[Greenify] dylanbos1996:
I don't know why everyone is having trouble, but here are my doze debug logs.

It works perfectly fine for me.

EDIT: by the way, if people want to know, I am running stock Android latest update rooted with xposed on a Nexus 6p. I do not have naptime or doze editor installed.

Verstuurd vanaf mijn Nexus 6P met Tapatalk
[Greenify] dylanbos1996:
Sorry for the double post, but I just figured out that the debug notification does not show in the status bar. It only shows when you pull down the notifications.

Verstuurd vanaf mijn Nexus 6P met Tapatalk
[Greenify] TNSMANI:
After reflashing my ROM, AD doesn't work. The normal Doze alone works. So tried the advice for non rooted phones to grant Dump permissions though my phone is rooted.

Granting dump and notification permissions via adb seems to work.
[Greenify] Aaren11:
Thanks for the tip, I'm actually having issues with my phone preforming stock dozing behaivour - I've reflashed my ROM, Kernel, Recovery and Firmware - but keep seeing:

W/Atfwd_Sendcmd( 844): AtCmdFwd service not published, waiting... retryCnt : 3
I/ServiceManager( 844): Waiting for service AtCmdFwd...
I/ServiceManager( 844): Waiting for service AtCmdFwd...

In adb when the phone is meant to be dozing, which suggests to me that it's keeping it from doing so. No clue how to address this though - google searches only show up very limited info.

I'm going to preform another RUU and see if that fixes it - but I don't have a lot of hope now that I've tried flashing just about everything I can.

EDIT: Reflashed RUU and removed "ATFWD-deamon" from /system/bin using root explorer. The few results I could find on google indicate this is part of quallcom's miracast (screen casting) service, which I have no use for. Phone is once again dozing and aggressive dozing.
[Greenify] Callliope:
How can i know if doze is working if i dont get the notifications? Granted dump and read logs permission and i checked that checkbox to notify me when it goes into dozing but still dont get any notifications
[Greenify] iankeung:
Whatsapp and Web whatsapp

Using aggressive doze (greenify v2.8 beta) on my nexus 6p- non-root with whatsapp included in whitelist.

However, seems when it goes into doze mode:

1. it will not receive whatsapp msg (no notification led light on and needa press the power button to receive the msg)

2. the webwhtsapp will be disconnected

Anyone have ideas? :(

Further, what the function "Don't Remove Notifications (limited)" means?
[Greenify] huzzam:
Did you check in Developer Settings whether Stay Awake -> while USB debugging is set?
[Greenify] ProudRed:
To ensure I keep receiving notis from whatsapp do I need to de greenify whatsapp ? And since my battery is crap, I have kept google play services under greenify as well.

In Battery optimisation I have whitelisted whatsapp though.
[Greenify] Aaren11:
There is no option for this on stock gpe 6.0 as far as I can see
[Greenify] RogerSC:
I've noticed that my unrooted phone will go into aggressive doze (AD) mode with no problem. But it will only stay in AD for about 2 hours, then it breaks out of AD mode, and goes back into AD for another two hours (after the usual timeout into AD occurs). I see this in the notifications that I get from Greenify. Today, I didn't use my phone for about 4 continuous hours, and it went in AD initially, then 2 hours later came out of AD, and then went back into AD for another 2 hours.

Is this normal, does it need to come out of doze mode to do some processing periodcially? Or is there something going on with my phone that I need to look into? I don't really have anything unusual apps on my phone, just popular ones that seem to get a lot of use, so I'm wondering about this.

Thanks!
[Greenify] ProudRed:
Even after granting dump permission my device is waking up at motion. If possible help me out.. Thanks.
[Greenify] TNSMANI:
Even during AD, the phone will periodically do some background work and so will be awake for some time. It is normal and you needn't worry.

---------- Post added at 01:39 PM ---------- Previous post was at 01:36 PM ----------

For me also the motion sensing happens despite AD. While in motion, the phone comes out of Doze/AD as per the notification as well as BBS.
[Greenify] ProudRed:
I see my lockscreen lighting up everytime there is a motion
[Greenify] RogerSC:
I really like the idea of aggressive doze (AD), and how it works. Except for one thing, when AD is in operation, neither text messages nor incoming phone calls will wake my phone if I have it set in Airplane mode with wi-fi on to force it to use wi-fi (I'm using Project Fi). I found that if I have both cellular and wi-fi on, I do get phone calls in AD mode. If I only have wi-fi on, I don't get text message notifications, and incoming phone calls go to voicemail in AD mode. I think that I can fix the text message issue by whitelisting the messenger app, that seems to allow text message notification when in AD mode with wi-fi only [ed: turns out it doesn't]. However, I haven't found the magic app to whitelist to get phone calls in AD mode. I've whitelisted all the apps that start with "phone" (including "phone" *smile*), but phone calls still go to voicemail.

Any ideas? Note that phone calls and texts in wi-fi only mode work fine if the phone isn't in AD mode, as I would expect.

I'm actually surprised by this, since I've read several times in this thread that text messages and incoming phone calls should work fine in AD mode, and I would hope that would apply to "wi-fi only" mode as well. Again, in case it helps, I have a Nexus 6P phone that's running Android 6.0.1. And I'm using the latest Greenify Beta (v2.9 beta 2). I have a very simple, non-rooted config for my phone, minimal apps, nothing fancy.

Would appreciate any thoughts about which app(s) I need to whitelist so that phone calls and text message notifications work in wi-fi only mode, if that's what needs to be done? Or what else I might be able to do to facilitate this working?

Thanks!

UPDATE: OMG, I forgot that I set wi-fi to "off when sleeping", which was my old setting before Project Fi and "wi-fi only"! Testing now to make sure that was the problem, but looks like it might be working. I feel like such a fool *smile*. So many settings, not so easy to get them all going in the same direction.

UPDATE 1: Well not so simple, still not getting text message notifications, though calls and call notifications are coming through finally (yes!). Seemed like it was fixed, but when I waited longer, like a couple of hours, text message notifications did not come through, even though I have received the text messages. Still have Messenger app whitelisted. Should be working!
[Greenify] razrab1755:
oh, no root. it's very good
[Greenify] infinion:
why AD is working only with wifi on ?
[Greenify] km8j:
Regarding this, if an app is set to "not optimize", it should be okay, no?
[Greenify] TNSMANI:
If the app was developed to be compatible with Doze, then yes (your quote of the OP itself says this). But if it is not, then you may have issues even if it is in 'not optimised for battery'.
[Greenify] duowing:
I opted in for the Beta and enabled Aggressive Doze, notifications, etc. I'm running a CM13 build on my Moto Maxx. Anyway I sometimes get the doze notifications, but usually I don't. I haven't read through the whole thread, but do I need to go into Doze and set Greenify to not optimize to see the notifications? I would also assume I'd want to set BBS to not optimize as well?

Weird, rebooted a couple times. Still no difference. Then I uninstalled, rebooted, activated the module, rebooted, and now it seems to be working.