yashsingh1/xdaforums huggingface dataset:
[Greenify] pote2639:
So I'm kinda sort out of luck for any nougat battery optimization? Yes tbh I'm pretty greedy when it comes to the battery life. And my mi 5s plus despite having a 3800 mah battery it can barely made through 5.5 hours with 15% battery left, and almost a day (18 - 20 hrs) standby.

Am a medium usage user tho, plus have tried tweaking thing cpu governor still doesn't help me that much.
[Greenify] DB126:
Nougat already does most of the heavy lifting incorporating (in principle) some of the core capabilities in well regarded apps like Greenify. You can provide an idle dump for analysis in the main BBS thread if you suspect excess screen-off drain. Apps, browsing activity, environmental factors (eg: signal strength) and especially...especially panel brightness are the prime contributors to screen-on power consumption. Battery health can also be a factor if your device is older or has gone through 500+ full charge/discharge cycles. Good luck.
[Greenify] fashionbusiness:
HI,

I've a problem with aggressive doze: I don't receive WhatsApp notification until I wake up my phone.

I've obviously put WhatsApp, Google play services and Google play framework in the whitelist, installed pnf root with minimum heartbeats but I didn't fix this annoying problem.

Could you help me please?
[Greenify] DB126:
https://xdaforums.com/showpost.php?p=73695974&postcount=871
[Greenify] dejanxxxx:
I have error, I try again.
[Greenify] dejanxxxx:
I get error for agresive doze via ADB , eject me UNKNOWN PACKAGES com.oasisfeng.greenfy.

Phone don rooted , it is LG K8 LTE 350n .

Here picture .What now, I have Windows 10 Pro.
[Greenify] TNSMANI:
It is "greenify' not "greenfy'. The "i" is missing.
[Greenify] dejanxxxx:
:good:

Yes.Thanks.

I have one question, did is allowed to stay uncheked systemic applications for aggressive dose?, and how to get out of aggressive dose for non rooted phones?

Confused me which applications can check for agresive doze?

Thanks advanced.
[Greenify] TNSMANI:
Can you be a little more clear on what you want? I am not able to understand you.
[Greenify] dejanxxxx:
Did can stay uncheked system app when made white list for agresive doze or can check and system applications?

Not rooted device.
[Greenify] TNSMANI:
Without root, Greenify can't hibernate many system apps. So whether you use aggressive doze or not will not matter.
[Greenify] andrea0807:
Hi guys if I enable aggressive dozes then I will receive the notifications (whats up and tapatalk)?
[Greenify] DB126:
Likely not. Probably not much (if any) battery savings either as whatever was realized during doze/sleep will be largely offset by a burst of activity when the device wakes. Regular doze is fine; just make sure 'doze on the go' is enabled if running a Marshmallow based ROM.
[Greenify] andrea0807:
I will not receive notifications even if they include applications in the White List? i am in android 7, rooted device.

Inviato dal mio LEX820 utilizzando Tapatalk
[Greenify] DB126:
When properly implemented Aggressive Doze puts your device is a virtual comma. Depending how the app is coded it may or may not be allowed to perform certain actions during aggressive doze. See if notifications arrive properly using 'standard' doze (they should) then experiment with other variants to better understand benefits and potential side effects.
[Greenify] Barracuda79:
are 2GB of ram enough für shallow hibernation?
[Greenify] kotakpos:
hello devleoper

i have question

your option using island its same with manual Freeze ? if we open the app, then automatically unfreeze ? so it will modified my custom app drawer with folder...right ?

and what is the different between normal mode and default mode

thankyou
[Greenify] oasisfeng:
Almost the same as freeze, but Island provides shortcut to launch app instead of folder.
[Greenify] kotakpos:
so my folder will not empty ? ( have tried ser***ely, and my folder goes empty )
[Greenify] sivajithee:
command for "Background-free enforcement on Android 8+ (non-root)" is not working using oneplus 3 Oreo beta
[Greenify] x1ld3n:
I really don't get how to properly use Shallow Hibernation to get profit. I can't get Google Play and Chrome sleeping while using Shallow Hibernation, everytime I get "will hibernate soon after screen goes off" even if I enable Ignore running state. Did Shallow hibernation works when screen is on or only when it is off? And should I press Hibernate now shortcut everytime when I switch from one app to another? LineageOS 14.1
[Greenify] TNSMANI:
AFAIK, auto hibernation, whether Normal or Shallow, will happen only after the screen is off. Of course, you can manually hibernate the apps even when the screen is on.

Shallow hibernation is for apps that you use frequently, so that they don't drain battery each time they are opened. Normal hibernation is for apps that are used infrequently. It is better to use Hibernation only when apps misbehave. Indiscriminately hibernating all/most of the apps will result in further battery drain/issues.

Chrome can be hibernated if all wakeups are cut off, state ignored etc (it is easier to use an alternate browser) but Play Services will still run/try to run, draining battery further. Though there are apps to control Play Services, it is better not to touch it, especially if you are on N or O. Both N and O have better behaviour as far as Gapps are concerned.
[Greenify] x1ld3n:
Thanks for the answer! Btw i'm using MicroG instead of Google Play Services.
[Greenify] gayanperera:
Aggressive Doze

To get the aggressive doze working 100% do i need Xposed Module to be installed as well ? Or does the app's in-built Aggressive Doze mode works prefectly with Root enabled without needing the xposed module ?
[Greenify] DB126:
Xposed not required. Neither is aggressive doze (but it does sound cool). Good old normal/standard/stock/boring doze is fine when looking at overall power consumption. Have fun.
[Greenify] DB126:
FWIW - for the past several weeks I have experienced somewhat higher idle drain on one of my devices. Not outrageous (0.38%/hr avg) but greater than the well established baseline of ~0.25%/hr. A few apps also exhibited some different start-up behaviors which never peaked enough curiosity to pursue further.

Fast forward to two days ago when I discover aggressive doze was enabled, likely a remnant of trouble shooting done on behalf of another XDA member. Ticked that off and collected data through several idle cycles.

As you might have guessed (why else would I be posting this?) idle power consumption returned to previous norms. More importantly, it is the same behavior observed on numerous well behaved devices w/aggressive doze enabled. Seen this movie too many times.

Bottom line: doze variants (aggressive, shallow) can help in certain special circumstances, perhaps when the device is experiencing other issues. But they usually don't and can carry negative consequences.

As always, get a baseline and then test if changes (of any type) really help.
[Greenify] brockn1985:
The correct name of the permission isn't

'READ_APP_OPS_STATS',

like it is described on greenify.uservoice-website.

It has to be:

'GET_APP_OPS_STATS'

So, if u want to get 'Background-free enforcement on Android 8+' to work, you have to type in adb shell:

adb -d shell pm grant com.oasisfeng.greenify android.permission.GET_APP_OPS_STATS

Greetz, brockn
[Greenify] /d3viant/:
Thank you for that, brockn1985! You answered my question before I could even ask it. I thought maybe it was a permission that Galaxy S8's didn't have. Someone needs to tell oasisfeng so he can change the guide.
[Greenify] martyfender:
On my Android 6 and 7 devices, 'READ_APP_OPS_STATS', always gave me an error. I had assumed it was because they were not Android 8+.

Your command: 'GET_APP_OPS_STATS', does work on those devices and turns off both ignore working state and ignore background free on apps where I had it set, except on Firefox beta. It is turned off though, on Firefox release version.

Thanks

Update: On 4, rooted, Android 6 devices, the above is true. On my one Android 7 unrooted device, the above is not the case. Apparently, the apps I had set, are still turned on.
[Greenify] davidzam:
Can I use light hibernation and aggressive doze

Can I use light hibernation and aggressive doze at the same time? Can I set the two? And also automatic hibernation 4.1.+? I mean I can just activate all settings or just activate one of those 3. Thanks.
[Greenify] DB126:
Enable automatic hibernation and profit. Leave the other knobs and dials at their default values until additional actions are needed (which is unlikely).
[Greenify] davidzam:
Davey, thanks a lot... So I can activate aggressive doze, doze on demand, Doze, automatic hibermation, and timer coalescing and all the Xposed features (including timer coalescing), but no light hibernation? Also, about "grennifyng" the system apps the, App keeps telling me not to hibernate them, it's safebto do it? At least some you as a user know are not "that" important or just stick to the user apps. ¿?

Enviado desde mi SM-G550T1 mediante Tapatalk
[Greenify] DB126:
How about you just use the app for awhile and see if it helps.
[Greenify] davidzam:
[emoji4] I know, I can be tedious sometimes. Thanks for your input and help.

Enviado desde mi SM-G550T1 mediante Tapatalk
[Greenify] DB126:
Usually best to establish a baseline before turning all sorts of knobs and dials. Then twiddle one setting at a time and observe behavior over a reasonable period (usually several days) to see if it makes a meaningful difference.
[Greenify] Fahrilubis:
This guide for oreo too dude? Thats permession on adb i mean
[Greenify] TNSMANI:
The adb commands are the same for Oreo too.
[Greenify] zenbandit:
I've put in all the necessary adb commands but only Aggressive Doze is enabled on my Oreo 8.1 device. Doze on the Go is "Incompatible with your device or ROM".

Is DOTG really incompatible with my Asus Zenfone Max Pro M1's (ZB602KL) stock ROM or is it only compatible with rooted devices?
[Greenify] DB126:
Likely the latter; aggressive doze toggle has been available in AOSP since the earliest 6.0 builds.
[Greenify] zenbandit:
Thanks for the confirmation. I'll just stick with Naptime then.

It does the job well with the least amount of hassle and/or number of permissions/adb commands.
[Greenify] DB126:
Agreed on permissions perception. But it is perception as neither Naptime nor any other battery app/tool/hack can usurp Android's permissions model in the absence of root or an 'unclosed' vulnerability of which there are none on Oreo (at least widely published). Enjoy.
[Greenify] DB126:
Kinda funny. I allowed Naptime on my (rooted) device to see what might have changed since the last peek. Got distracted and forgot to uninstall. Came back a few hours later to find idle consumption had increased by 25%. Did a bit of digging and quickly identified Naptime's running services and self-exclusion from Android's battery optimization to be the culprit. No surprise.

Granted, my device is fairly well optimized with a curated portfolio of well behaved apps. If one has a couple bad actors on board the net benefit of Naptime may be positive. I'd rather dispense with the bad actors.
[Greenify] cesare78:
Hi, anyone who use a samsung can tell me if Gmail and Samsung Health (not health service) are in the Doze whitelist?
[Greenify] TNSMANI:
AFAIK, Greenify's whitelist doesn't have any apps by default.

If they are not there, what prevents you from whitelisting them?
[Greenify] DB126:
Huh? Greenify whitelist??
[Greenify] TNSMANI:
Under Settings>Aggressive Doze. Ofcourse it is the same as the Android Battery Optimisation (not optimised).
[Greenify] cesare78:
Whitelist under aggressive doze, i installed a magisk module that put all apps in doze mode, but it breaks a lot of apps and i uninstalled it (but apps didn't come back to not optimised state) , i remember that with the stock samsung rom, health service was excluded from doze, but i don't remember if other apps were excluded. Someone with stock samsung rom that didn't change this setting can upload a screenshot of greenify\settings\aggressive doze\white list?
[Greenify] DB126:
Thanks - misinterpreted as claim to an independent list. As you said, simply exposes Android's native Battery Optimization UI. Greenify exercises no control over this list.
[Greenify] TNSMANI:
I think that only after those earlier 'not optimised' apps are restarted will they get back to 'optimised'. I may be wrong. Are you not able to manually select these apps and choose optimised? If so, you may have to clean flash the ROM.
[Greenify] cesare78:
Yes, i can now manually select not optimised for all apps, but i don't remember in the stock samsung rom wich apps were in the not optimised state, do you use a Samsung stock rom? Can you check and tell me?
[Greenify] TNSMANI:
Sorry, I don't have a Samsung phone.
[Greenify] Alok Bajaj:
Hello, I've an issue with greenify. I use latest magisk 19.1 for root. For some reasons I'm not able to open magisk app after installing greenify. When I tap on Magisk app it gives me a toast message "Greenify has been granted superuser privilege" something like that and the magisk app just won't open.

OS: OmniPie 5.2 by openkirin. My device is Honor 8.
[Greenify] Oswald Boelcke:
And which version of Greenify do you excatly use? Is it Greenify4Magisk?
[Greenify] Alok Bajaj:
I downloaded Greenify 4.5.1 from PlayStore. I also have the donation package installed. I pretty much keep all of my apps updated. So always the latest version available.
[Greenify] Oswald Boelcke:
I just asked for Greenify4Magisk because it was deprecated about six month ago, and I'd personally not use it anylonger. Maybe it's even not compatible with Magisk v19.1.

And yes, Greenify v4.5.1 is the latest release. However, I joined the Greenify beta programme on Google Play Store quite a while ago and the version I'm currently using is v4.6.3 beta updated on 2019-02-24. You might want to consider to give it a try. Here, running on three devices without any issue.

By the way, and I think you'll find this remark already quite often in the Greenify forum (e.g. here), I think no need to run Greenify at all if on Pie (personally still on Nougat).
[Greenify] Thatuserguy:
I've recently started messing with this feature, but noticing some general oddities. I've enabled the notification for tracking when Doze is activated to try and investigate, and am seeing some strange results.

For some reason, it was consistently entering Doze after approximately 10 minutes, staying in it for 10 minutes, and then coming back out for another 10 before repeating the cycle. After expirmenting with this, I seem to have gotten rid of the 10 minute wait between dozes by disabling reliable alarms in Tasker, as well as turning off all of my Clock app's alarms.

However, even though there's now no 10 minute wait between the dozes, it's still separating them up into chunks as if it's still briefly exiting Doze before resuming (ex. 8:32 to 8:47, 8:47 to 9:02, 9:02 to 9:17)

Is this normal behavior? And if not, any ideas as to what's going on here? I'm using it without root and will all the ADB permissions granted.
[Greenify] TNSMANI:
Doze is meant to silence the alarms and wakelocks for a time and then allow everything for sometime. It is the intended behaviour. The interval is set by Doze and not Greenify. Greenify merely reports what is happening. If you wait longer you will see the silent time getting longer.
[Greenify] DB126:
Entering 'doze' (there are various modes) does not imply reduced power consumption on modern devices although it has the potential for quieting unwanted behaviors. Similar comments apply to "deep sleep". Attempting to tune doze is largely a fools errand. There are tools that permit tweaking parameters (how exciting!) but the resulting cocktail rarely yield meaningful improvements beyond the dashboard. Enjoy your device as-is unless something rises above the noise of routine housekeeping which Android 7+ does well.
[Greenify] ToXiTe:
Umm, is there a way to check whether Doze is working?
[Greenify] strongst:
With better battery stats for example. But why should it not work?
[Greenify] ToXiTe:
I only get Doze Interactive Mode logged in BetterBatteryStats which is why I asked. I have never seen any other type of Doze log in BBS.
[Greenify] strongst:
Ok, so your question is related to better battery stats. Please ask your question in BBS thread https://xdaforums.com/showthread.php?t=1179809

:highfive:
[Greenify] Lughnasadh:
GSAM Battery Monitor will give you both light idle and deep idle doze stats. Some apps will give you just a general doze stat without making the distinction. When I switched to a Pie rom late last year a few apps were reporting that my phone was entering doze just fine . When I installed GSAM I came to find that my device was only going into light idle doze, but never deep idle doze (actually a common problem on custom Pie roms for my device, as it turns out) . So that's why I prefer an app that makes that distinction.

I now use Greenify's aggressive doze and that forces it to go into deep idle doze, which GSAM bears out.
[Greenify] ToXiTe:
I have also noticed problem with deep doze using the app you mentioned. But, in my case Greenify isn't helping. Can you post your output of:

adb shell dumpsys deviceidle
[Greenify] Lughnasadh:
With Greenify Aggressive Doze enabled...
[Greenify] ToXiTe:
Thanks. I looked into it. It seems deep doze is broken my ROM. I tried forcing it using ADB and still it wouldn't go into deep doze.
[Greenify] pete101:
How do i get an app to force stop and not wake up by itself and restart during the night without root?

I have greenified twitter and instagram apps but they keep waking up and restarting.

Is this possible without root?

I can get greenify to force stop it but have no way to stop them restarting by themselves periodically.
[Greenify] zer0se7en:
Will this ever be updated this 2021? I love using this but with all the OS updates, it's starting to get issues. Compatibility issues. Sad.
[Greenify] badtlc:
Does aggressive doze work on Android 12?
[Greenify] shaggyskunk:
I'm not sure if it's even needed on Android 12 & probably depends on whether or not you're running a stock Rom or Custom Rom.

Certainly doesn't seem to be necessary on Stock UnRooted Samsung.
[Greenify] badtlc:
I'm on a Pixel 4a with stock Android 12. It has terrible standby battery life. It needs all the help it can get. Standard Android from 11+ has been a battery nightmare. The only thing I have found that was as good as pre-android 11 releases is GrapheneOS 12. Battery life is superb with that ROM.
[Greenify] Hitti2:
I am non root android 11, I cannot get aggressive doze to enable, it spits out This feature requires extra permission, which need to be granted first via adb shell, i click guide and takes be to a broken web page.

What can I do?
[Greenify] Hitti2:
I am on android 11, using greenify 4.7.5 + donation package play store, I had to uninstall greenify, install it, go through setup process, from the main screen select settings and leave it there, then issue these cmds through adb

adb -d shell pm grant com.oasisfeng.greenify android.permission.DUMP

adb -d shell pm grant com.oasisfeng.greenify android.permission.WRITE_SECURE_SETTINGS

adb -d shell pm grant com.oasisfeng.greenify android.permission.READ_LOGS

tap on doze setting and enable it, go back to settings and enable or disable what ever you want.

now make sure you have what you want because next time try go into settings is the black screen.

Hope this helps.

Let me know if it worked for you.
[Greenify] GeraldRudi:
thats right!

completely still - not really, it wake up when it recognize "significant motion" ;) ;) ;) :D

no! :(

i tested it one minute ago. "aggressive doze" only set the flag force-idle! (ok, when screen goes off it will set and when it goes on it will reset force-idle - but this is not necessary)

so if you move "significant" the phone, it is going to step into INACTIVE (IDLE = Doze)

here can your read the code (MOTION_INACTIVE_TIMEOUT -> trigger) - it is because the motion sensor can trigger an alarm.

[MENTION=1334806]italia0101[/MENTION] found it out first in the link posted from [MENTION=5656100]tnsmani[/MENTION]:
[Greenify] badbob001:
Maybe Note5's Ultra Power Saving Mode is what Doze should be?

Ultra Power Saving Mode

Conserve power and extend your phone’s battery life by using a minimal home screen layout, limiting the number of usable apps, turning off mobile data when the screen is off, and turning off connectivity features such as Wi-Fi and Bluetooth.​

Is this something that can be replicated by Greenify/AOSP?
[Greenify] badbob001:
Perhaps we need a way to set significant motion = spiking the phone to the ground as if one just made a touchdown.
[Greenify] lakyberry:
How can I check if my device is going into doze aggressively with this option enabled?

N5
[Greenify] venky716:
Use Catlog app and hit record, switch off the the screen wait for a minute and check the logs.

The other way is after a few minutes of your phone lying Idle with screen off send any message from whatsapp etc to yourself and see if you receive it. They shouldn't be coming through if not whitelisted manually.

Yes it does go into Doze's Idle state immediately with aggressive state.

Sent using XDA One
[Greenify] lakyberry:
I tried messaging test and it works so messages go through when I light the screen.

Keep in mind that even if one app is set to 'not optimize' it may brake aggressive doze process. That happen to me when I set Recently app to 'not optimize'.

N5
[Greenify] TNSMANI:
Google itself has set Google Play Services as not optimised which you can not change. So what do you do?

Aggressive Doze merely speeds up the process of taking the phone to idle. The rest is handled by Google and not by oasisfeng.
[Greenify] lakyberry:
It seems that Google play services is not affected by 'not optimize' in aggressive doze process...

N5
[Greenify] TNSMANI:
Do you mean to say that Play Services is blocked by Greenify in Aggressive Doze mode? It may be, if Play Services is already greenified. Aggressive Doze itself does not block anything. It merely speeds up the process of taking the phone to idle after which Google's Doze takes over.
[Greenify] oasisfeng:
Please give an example of the usage case for me to further understand your need, I'll consider adding that to the Tasker plug-in.
[Greenify] oasisfeng:
Probably due to 3rd-party "cleaning" tool keeps killing the doze service of Greenify?
[Greenify] oasisfeng:
In the next version, the start of doze mode will be postponed for a while (about 5 minutes or longer) after the screen goes off.
[Greenify] oasisfeng:
I don't think Aggressive Doze will survive the FDR. It's just a runtime state and will get reset after reboot.
[Greenify] oasisfeng:
What kind of customization are you expecting?
[Greenify] oasisfeng:
I'm afraid that alarm app may be using inappropriate Android API to schedule the alarm. As you may see, the stock Alarm clock of AOSP works flawlessly even in doze mode.
[Greenify] oasisfeng:
Aggressive Doze in Greenify takes control of the Doze mode entirely, which means all the settings in Doze Editor will be ignored. In my opinion, the two are actually incompatible. You may choose either one for your need.
[Greenify] oasisfeng:
No, whitelisted apps break doze only if they keep the wake-lock for a long time, or use battery-hungry hardware/software features.
[Greenify] TNSMANI:
Sorry for spreading wrong info about Aggressive Doze. Quite a few of us were under the impression that AD merely speeds up the reaching of idle state (which in Doze will be about one to one and a half hours) after which Doze takes over.

So in AD no periodic wakeups for maintenance and no wake up for motion till the screen is unlocked? If so, I will stick only with Greenify. My requirements demand no wakeups during sleep for whatever reason. Tonight I will test with AD only.

Please confirm or if different, please explain.