yashsingh1/xdaforums huggingface dataset:
[Greenify] eddi3x3x3:
I have a feature request if you think it's possible, can you add a timer to adjust how long the device goes into doze? like I want it to check every 30 minutes or every hour at least instead of just being in doze all the time with no sync window. Does anyone know how to possibly combine greenify with another app to achieve this effect? I also would like to mention I do not have root.
[Greenify] strongst:
Nap time, there you can tweak the values of doze. That's only possible with root, as doze is part of the Android system
[Greenify] eddi3x3x3:
The problem with this is it requires root and greenify can activate doze without root by giving it some permissons through adb. Nap time in my experience also wastes battery by using the gryoscope still to see if the device is in motion and I never found a way to disable that. Are you saying use greenify with aggressive mode to disable the sensors and use naptime to change the windows of the sync? Cause in my experience with greenify and it's aggresive doze, I don't see any windows of sync happening on my device. Don't know if it's a bug or something but I wake up and I get all the notifications that I should have gotten through the night if it actually follows doze's maintenance windows.
[Greenify] picklu:
In my OnePlus 3 just updated to latest version of Greenify, my device is rooted but the app can't get root access!
[Greenify] Sir Mohd:
What the ?!

Im rooted!
[Greenify] sskywalker:
Already working app is broken after update to 3.0

The app tried to set itself again with a (new) quick set-up screen but it cannot ask for a grant from SuperSU app and stuck there. When I skip that screen, I saw that my hibernated app list is gone. I could not understand why anyone should set everything up again when it is just an update for some new features?
[Greenify] DB126:
Seriously doubt that was the intended behavior. Bugs (if confirmed) happen in betas. Stick to mainstream builds if stability is a priority.
[Greenify] sskywalker:
I thought this was a stable update since it was from play store and I did not sign for betas. But anyway, I think you are right. :good:

So, this shall stay here for warning people not to update until the issue has been handled.
[Greenify] DB126:
Works fine for some (in my case in issues with three very different devices/roms). Update with caution; backup first if concerned.

As for requesting root I have remained w/SuperSU 2.76 (last build by original developer) as 2.78+ has proven problematic on more than one occasion. Drove me nuts trying to track it down. All issues disappeared with 2.76. Few weeks later accepted 2.78 update and problems returned (loss of root; apps not being given root permissions, etc). Enough of that game.
[Greenify] neosinan:
I have android studio on my PC installed. But I never used neither adb nor cmd. When I try to run "adb devises" it didn't work. And I know there is no connection problem since I can debug apps. What should I try next?

Ps; when I open cmd it say "c/users/xxx". But that's not how it does in adb guides?
[Greenify] DB126:
- adb devices (not "devises")

- adb commands must be issued from the subdirectory (folder) where adb resides unless path is modified

- further questions on adb and cmd (windows command environment) should be posted in the appropriate threads
[Greenify] PlugaruT:
Screen unlocking

Hi, I have enabled all premissions on my nexus 5x non-rooted, via adb. I have a small question, on my phone I have fingerprint and pattern enabled and every time my phone goes to doze, when I unlock it via fingerprint it asks for pattern, and this happened always. Can I make it unlock as normal, only fingerprint or pattern, not both of them?
[Greenify] inchvbeam:
hi guys, im using sleep for android, and even using native clock in CM13, i couldnt get my alarm to ring over night. If i set it now for testing, (perhaps to ring after 1hr), it will work. Any reasons?

I have AD on.
[Greenify] DB126:
Disable aggressive doze and see if that fixes it. Disclaimer clearly states AD can break cross app functionality.
[Greenify] inchvbeam:
Sorry, may i know what's "cross-app functionality".. yupp it will work, as i onli recently enable AD. I have to try whitelisting clocks etc under AD mode, if I wish to retain that?
[Greenify] DB126:
Apps don't live in isolation; they need to communicate with the operating system (kernel/ROM) and sometimes other apps. AD can break that. Yes, whitelist clocks.
[Greenify] inchvbeam:
thank you Davey126, I have to whitelist 2 clocks, one is clock, another is cLocK - not sure what''s the difference but exempting both helps :)
[Greenify] DB126:
Glad you got is sorted. cLocK is used on the lock screen with CM based ROMs; other is the general purpose clock typically sourced from Google.
[Greenify] dimm0k:
I've got two apps that I'm not hibernating at all, but when I turn on Aggressive Doze I no longer get any notifications from either app anymore. I have even added them to the whitelist for Doze itself, but still no notifications unless I turn off Aggressive Doze. one of them is the Coffee Meets Bagel app and the other is the MyTransit app where the latter is a scheduled notification that should always occur at 8am and 5pm while the former can notify any time. any ideas? other apps seem to notify with no problems.
[Greenify] quincho54:
Actually it's just a question. Can I put Skype, WhatsApp, Gmail in deep sleep. Will they wake up when there us a incoming message. Thanks for helping, and I apologise if this question was ask already.
[Greenify] DB126:
Try it and see what happens. Sometimes yes, sometimes no. Device, ROM and/or config specific.
[Greenify] quincho54:
Note 4 sixperience Rom
[Greenify] dimm0k:
I've got two apps that I'm not Greenifying at all, but when I turn on Aggressive Doze I no longer get any notifications from either app. I have even added them to the whitelist for Doze itself, but still no notifications unless I turn off Aggressive Doze. one of them is the Coffee Meets Bagel app and the other is the MyTransit app where the latter is a scheduled notification that should always occur at 8am and 5pm while the former can notify any time. any ideas? other apps seem to notify with no problems.
[Greenify] quincho54:
Yes, that's what I mean. Because I tried it already and had the impression that there are no notification at all. I'm using some applications which are work related and where I have to respond almost instantly. I hope these guys have a solution for this. Because I really like thus application.
[Greenify] DB126:
Solution: turn off aggressive doze. Rest of Greenify works fine.
[Greenify] bstylz911:
aggressive doze with doze on the go doesnt work until hours later....

i have xposed and permissions applied.

any suggestions?
[Greenify] zsandras:
Hi mate, try out Doze Editor apk https://xdaforums.com/android/apps-games/root-doze-settings-editor-android-t3235130 to find the best doze mod. Inside you'l find saved three preset values check them. I'm not remember the name of the best settings but I know it's previous the last one.
[Greenify] axxel6307:
I've been using Aggressive doze for a year or so now on my Gs7 and it's been great. I'm about to get the update to nougat. Just wanted to ask a couple things that I didn't find in the thread.

1. For non rooted gs7, manual dump permissions are required still?

2. Do the dump permissions survive OS updates or a dalvik cache wipe?

Thanks for the great app and aggressive doze feature.
[Greenify] mrgigabyte2002:
I am on beta on a S7 edge if I remember right I had to do the permissions over but otherwise it runs great
[Greenify] TNSMANI:
Updates or reflashing of OS or reinstall of Greenify requires the permissions again. Dalvik cache wipe is no issue.
[Greenify] axxel6307:
Complete OS upgrade or even minor updates will require new permissions? I'm trying to figure out how you can tell those permissions are still granted in a device? Anyway I can tell?
[Greenify] axxel6307:
I'm getting great battery life during doze on stock nougat. Only losing about 1 or 2% overnight in 8hrs with everything turned on. I'm wondering if I would see any benefit by just giving dump permissions for doze on the go only and not use aggressive doze. My understanding is this will completely shut off the low power motion sensors that doze uses. I read that even in Nougat, the sensors are used to a slight degree. Does this sound like it could help my battery further, and would I still need greenify installed to use the doze on the go dump command?
[Greenify] DB126:
My idle losses are minimal (0.10-0.15% per hour) on stock Marshmallow with doze-on-the-go enabled and 'normal' doze functionality. Radios, full sync, push mail, etc all on with no loss of functionality or wake 'hangover'. Only 3-4 apps in Greenify list; everything else is handled by stock. Greenify itself takes little juice and offers easy access to toggles. I wouldn't change anything.
[Greenify] axxel6307:
Interesting but not sure what that has to do with my question. I'm not rooted and using greenify to hibernate apps is pointless without root. I did love greenify for aggressive doze and doze on the go though on MM. However, I'm on Nougat now.

My question is will I likely benefit from using doze on the go only, which disables the doze motion sensors? Someone please correct me if I'm wrong, but, I've read that the motion sensors are still lightly used in Nougat to control doze on the go. When I disabled the sensors in MM, using the dump command and enabling doze on the go, it gave me about an hour extra sot.

I'd love to squeeze out some more juice from my Nougat :laugh:
[Greenify] DB126:
Yeah, I wasn't clear stating my MM experiences were meant as comparitive to what stock Nougat brings to the table (I run both). If interested in eeking out a few extra min of idle juice (not sure about SoT) then the tweaks you propose may prove beneficial. Unfortunately, I can't immediately answer your question about force disabling motion sensors on Nougat (with or without Greenify) as 1) all my devices are rooted; 2) stock behavior is acceptable. Good luck.
[Greenify] axxel6307:
I just installed greenify and enabled aggressive doze on my nonrooted s7 nougat. It tells me doze on the go is not compatible with my device. Any chances of it getting fixed?
[Greenify] DB126:
I do not believe 'Doze on the Go' can be enabled on unrooted devices (and possibly Nougat due to Xposed framework dependencies). Not sure 'fix' is the right word given the underlying restrictions.
[Greenify] Phil_Smith:
Hey, I'm using greenify's aggressive doze mode on a rooted mi5 running a 7.1.1 los rom.

In the aggressive doze menu I selected the debugging feature "notification (show notification for recent doze durations)", but no notifications are ever displayed. This however did work another device running a couple of different android 6 and 7 roms.

Does this mean aggressive doze isn't working or that the notifications aren't?

How can I find this out?
[Greenify] Phil_Smith:
Still need a hint here. Anyone?
[Greenify] Phil_Smith:
Problem is gone in the latest version of the ROM I use.
[Greenify] auburn2eugene:
OK, I've never used Greenify but was told I should. I was also told I needed xposed... I have Xposed and greenify isn't on there... should I find the old xposed module, or use this?
[Greenify] Phil_Smith:
You need to install greenify, flash the xposed module in recovery and install xposed separately - all in the latest versions.

You can generally use greenify without xposed, but when you got it, you can check greenify in the xposed installer, reboot and then activate xposed-based features in greenify.
[Greenify] rohitdave:
Isn't Privileged mode the same as using Xposed
[Greenify] Phil_Smith:
No, xposed-based features are only available via xposed. It's a functionality thing, not a greenify version one.
[Greenify] DB126:
What's "this"? Greenify does not come with Xposed; it is a module (extension) that gets added after Xposed framework has been sucessfully installed. What ROM are you running and how did you install Xposed?

---------- Post added at 01:37 PM ---------- Previous post was at 01:32 PM ----------

Privilaged mode permits some Greenify operations to be performed more efficiently when Xposed is not available. However, it does not enable the full feature set available w/Xposed.
[Greenify] TNSMANI:
You can not find Greenify module in Xposed Download section. Greenify is available through Play Store. So download it, enable it in Xposed Modules section, reboot and set it up.
[Greenify] auburn2eugene:
Yeah, I figured out the installation last night and how it works with the modules.

And to answer someone's question, I am on a S6 Edge, running a debloated stock that's permissive and deodex. And as far as what xposed I'm running, it's called exactly "xposed-v86.0-sdk23-arm64-custom-build-by-wanam-20160709."

I wouldn't be running a TouchWiz ROM if I didn't have too... I am blown away by the lack of development for this phone, but it is what it is.
[Greenify] DB126:
Sounds like you're all set. Couple quick notes:

- verify Greenify is operating in "Root + Boost (Xposed)" mode

- update Xposed Framework to v87 and app to v3.1 (here)
[Greenify] wordlessecho:
Useful!
[Greenify] eddi3x3x3:
Is there a way to disable light doze in android nougat and just have deep doze with aggresive mode without root? Currently on nougat on moto z and the doze on the go option is greyed out with "Not compatible with current ROM" message. Any way to disable through adb or something?
[Greenify] xman099:
Does aggressive doze (Greenify or L Speed) or "stock" doze mode really delay Gmail notification? I has been looking for the answer for hours over the forum, but got different results. Someone confirmed that Gmail's notification was not "highest priority", so it does not work under doze mode. Someone claimed that they did receive notifications after hours of doze. I am really confused.
[Greenify] DB126:
Gmail notifications are not high priority so will only be presented during Doze maintenance windows. Google that if you want to more about those windows and their timings.
[Greenify] xman099:
Thanks a lot. So some people actually received the notification during the "maintenance windows" before doze. That does make sense.

Is this changed in nougat? or the same as marshmallow?
[Greenify] DB126:
I believe the behavior or maintenance windows was tuned in Nougat with fewer/shorter occurrences the longer the device sleeps. Google is your friend here as tech pubs wrote extensively about MM/Nougat differences when released last year.
[Greenify] seblefb:
About Aggressive doze mode, should i need to whitelist application like system phone and mesagging, whatsap , bbm, or other application like that?

I try Aggressive doze mode without whitelist, sometime wshap and BBM pending when i try to sent mssge, and smtime i cant call my phone ( need redial 2 or 3 times).

Sorry for my bad english, hope smbdy can gimme answer. thanks :)
[Greenify] DB126:
Aggressive Doze will not save much over stock doze assuming doze on the go is enabled on Marshmallow based ROMs (default on Nougat). Whitelisting is a maintenance headache given limited benefit; better to disable aggressive doze if some apps aren't working right.
[Greenify] seblefb:
Sure, i was disable it. Thanks :)
[Greenify] SuperSkyHawk:
I don't know, just guess when run Greenify, that option (aggressive doze) becomes Grey again if not turn on?
[Greenify] rohitdave:
Hi

I have been using Greenify over couple years now, started with Kitkat and now on Nougat using RR rom

Nougat and Greenify give me great doze on Resurrection Rom, I get the doze notification showing how many minutes the phone has been in doze.

Couple of days back I re flashed RR rom but did not install Play Store / Play Services in fact non of the google gapps, I have installed Greenify latest version thru the apk pure app.

Now my problem is that i do not get any doze notification, is this related to the absence of Google Play Services on my phone ?

Any ideas ?
[Greenify] ACardAttack:
I can't get doze on the go to work. I'm on 7.1.2,doze seems to work unless phone is in my pocket when I'm walking. Then looking at battery phone is awake entire walk , only thing I'm doing is listening to podcast that is stored on device. I can play the same podcasts through my speakers, and my phone will doze if the phone is stationary and I look at battery stats, the phone won't be awake the entire time

I am rooted
[Greenify] DB126:
'Doze on the go' functionality (disregard motion sensors) is baked into Android 7.x; no need to enable via app. If it is not working properly likely a ROM, kernel or device issue. Test if the device device sleeps while in motion without media (podcast) activity. I would also disable aggressive doze as it has been known to have the opposite effect on some devices/ROMs.
[Greenify] ACardAttack:
So android 7 automatically should ignore motion and go into doze even if movement?
[Greenify] DB126:
Much improved over Android 6.x. There may be a slight delay entering doze if device is in motion but nothing that will take a significant toll on battery life.
[Greenify] luws:
in my device, doze always take 5 minutes to kick in. is it normal?
[Greenify] DB126:
Yes. There are ways to accelerate that (eg: aggressive doze) but you'll pay the price when the device wakes as it completes the duties that were previously queued or fired during doze. Also greater potential for app/device/sensor issue with aggressive doze. Most devices idle very efficiently with the screen off; don't sweat it.
[Greenify] luws:
thx for your answer.

the problem is that aggressive doze is already on, but the phone still take 5 mins to start dozing...

actually, that's not exacly the problem. the problem is that my phone is draining much battery with screen off (around 2% per hour), even in doze mode, and there's NO wakelocks or other issues (i've been watching it with wakelock detector, betterbatterystatus and accubattery). i've already reflashed my rom 2 or 3 times CLEAN, with different gapps, optimized play services to hibernate and i've made greenify a system app (with magisk) but the problem persists!

so, according to accubattery, my phone stays in "deep sleep" for only ~70~75% of the time the screen is off, what is pretty bad, in my opinion, and i think that, maybe, this is the problem.
[Greenify] DB126:
Again, don't worry about the brief interval before doze kicks in. However, ~2% per hour (average) is problematic. Snag a 6+ hour idle log (dump) for analysis per these instructions and post in the same BBS thread. Without seeing your log I'm going to take a few educated guesses:

- running an Android 6.x (Marshmallow) ROM

- Greenify set to aggressive hibernation (you've already confirmed that)

- doze on the go *not* enabled

- lots of items in Greenify's hibernation list

- not a member of the canine family (hey, I have to get at least one right!)

Will wait for dump.
[Greenify] luws:
thanks a lot for your time, but i gave up, because i've changed to another rom and noticed it was really rom-related (something related to doze triggers maybe, i don't really know). i'm sorry for the inconvenience - as i took your time, the least i can do is to answer your questions:

- it was Android 7.1.1 (now 7.1.2) - jaguar rom for zuk z2 (now AEX)

- Yes, i was using aggressive hibernation, but i'm not anymore and, sincerly, the doze is more effective now... (still using greenify for apps, as always)

- It was enabled

- Yeap, around 7 apps

- wrong, i'm a poodle :P

Regards
[Greenify] chrissss91:
Hi guys,

Does Tasker plugin function "Agressive Doze" Enable/Disable is supposed to enable/disable "Agressive Doze" option in

Greenify interface

?

What about shell commands ?

am stopservice com.oasisfeng.greenify/.DozeService
pm disable com.oasisfeng.greenify/.DozeService

pm enable com.oasisfeng.greenify/.DozeService
am startservice com.oasisfeng.greenify/.DozeService

I'm asking that because nor plugin nor shell changes the option in Greenify app so I'm wondering if plugin/shell command are working.

I've got a One+ 5 on OOS 4.5.8 (Android 7.1.1) and Greenify 3.4.3

Regards.
[Greenify] DB126:
Current Greenify build (as of this post) is 3.6.1. While I doubt updating will address your concern there is no reason to hover on an outdated build.
[Greenify] chrissss91:
Oups, my bad. I'll update asap.

[Edit] And indeed, with the upgrade tasker plugin works well.
[Greenify] realista87:
just a question, is it useless or important to add GREENIFY app to the whitelist? the "not optimized" list... i mean.

idk if is ok or a stupid thing but i've always made so.... but i also suppose that even if "optimized" greenify should work... because if it would be forceclosed by itseld, entering doze, it will not be possible to come out of doze to do the job of constantly see the wake up tracker
[Greenify] DB126:
For best results Greenify should not be battery optimized (Android 6+). I believe it is automatically whitelisted on installation.
[Greenify] realista87:
no... it is not automatically putted in the not optimized list, and this is a strange thing because there are apps that automatically AUTO PUT THEMSELVES in the list.

ok... so i always made the right and optimal decison, manually inserting greenify into the "not optimized"
[Greenify] DB126:
I don't recall manually adding Greenify but may have long ago and far away. My device sleeps well so rarely return to Greenify or check its configuration. That said, there is no reason Greenify should be included in Android's battery optimization and (arguably) several reasons why it shouldn't.
[Greenify] TNSMANI:
+1 to Davey126.

The dev advises to add Greenify to the "not optimized" list only if it doesn't behave properly.

It doesn't need to be added normally because it has a service running which will restart Greenify, if killed.

EDIT: BTW, I have stopped using Greenify, Amplify etc since moving to PureFusion ROM as I am getting 0.5% or less per hour of idle drain even without any of them.
[Greenify] DB126:
Active power management independence is the goal IMO. Far too much effort has been expended managing the symptoms (wakelocks, alarms, hibernating poorly designed apps, etc) vs. identifying root causes and taking action at that level. Threads that promote power management extremes have yielded many positive learnings but no longer reflect the ideal end state or methodologies.

Tools like Greenify have adapted and continue to offer useful functionality on Android 6/7/8 ROMs when needed. Increasingly that is not the case as apps, devices and supporting layers have become more power aware and efficient.

Congrats to [MENTION=5656100]tnsmani[/MENTION] for moving to a (power management) app free state! :)
[Greenify] TNSMANI:
I agree. But still in two minds about Greenify since as you mentioned, it may still be relevant. May be when I have some time to experiment, I will install it and watch.

And thank you.
[Greenify] pote2639:
Anyone are having problem with facebook and aggressive doze? Sometime my facebook app wont connect after I woke my device (literally saying can't connect right now) and I have reinstall the app and it's working again.

Pretty annoying

Am using mi 5s plus, nougat RR btw.
[Greenify] DB126:
There is little to be gained from Aggressive Doze especially on Android 6+ based ROMs. Suggest you disable it. Overall battery life will likely be unchanged. You may see modest reduction in screen-off wake time but any savings acheived during sleep will be offset by a burst of activity when the device wakes. Better yet, the annoying side effects of aggressive doze will be gone.
[Greenify] pote2639:
Alrighty, guess I'll stick to shadow hibernate then.

Thanks!
[Greenify] DB126:
Actually, just let your device doze naturally. Skip shallow hibernation, deep hibernation and aggressive doze unless there is a specific reason to use those features. Each carry side effects and generally do not improve battery life. In some cases shallow hibernation improves app behavior while sleeping but those situations have become few and far between as standard doze functionality matured.

On Nougat Greenify really becomes a special case tool. Don't get me wrong - it is an excellent app! Just not needed to the degree it was on earlier versions of Android.