[Q] Wish Greenify Had Profile Options - Greenify

Hi guys,
No doubt that Greenify is a wonderful app to save the battery. Once we use it, we cannot step back. With root access it even hibernates the system apps which is fantastic.
But I seriously wish to have profile or sleep time options to hibernate specified apps only during a period of time or for a duration of time. I do not use hangouts, facebook, messenger in the office time but they are my means of contact at home. But to save battery, I hibernate them in the morning time and forget to remove from the hibernate list in the evening. Seriously who would want to do that. With profiles we can fix the duration or time of the say which an app should be hibernated. I hope Dev considers this.
Thanks in advance.

kandalamv said:
Hi guys,
No doubt that Greenify is a wonderful app to save the battery. Once we use it, we cannot step back. With root access it even hibernates the system apps which is fantastic.
But I seriously wish to have profile or sleep time options to hibernate specified apps only during a period of time or for a duration of time. I do not use hangouts, facebook, messenger in the office time but they are my means of contact at home. But to save battery, I hibernate them in the morning time and forget to remove from the hibernate list in the evening. Seriously who would want to do that. With profiles we can fix the duration or time of the say which an app should be hibernated. I hope Dev considers this.
Thanks in advance.
Click to expand...
Click to collapse
There's no plan yet to add that complexity of settings to Greenify. Still you can use Tasker to achieve that, since Greenify exposes two Tasker plug-in for hibernation and wake-up.

IMO, a Tasker plugin is all that's needed.
BTW, if you're on a ROM with profiles (e.g. CM11) there's also a Tasker plugin for profiles - so you can call the Greenify plugins when in a particular profile (and only deal with managing profile-change events in one place).

Related

GCM Push Notification behaviour..

Hi there,
I purchased full version of Greenfy and now I can take advantage of those extra experimental features...
For example, maybe there's someone that could explain what "GCM push for greenfied apps does?"...The only result I can see is like this:
I greenfied Facebook Messenger, Facebook, S Health, Maps, HERE Maps...because I don't want these apps be woken again only if there are some received notifications because at the same time I don't want any missed notifications from these apps...does this experimental feature " GCM push for greenfied apps" helps me to obtain what I need?
Well, I've seen while I'm not connected to Internet neither via WiFi nor Data, these apps are hibernated and further wakeups no longer occur but when I connect to the Internet, Messenger is set like this: It's automatically placed into "Not hibernating automatically" with this status:
Working
20:56 ago content provided: Messenger Logged!
And the other one, Facebook is placed automatically under "Will hibernate in minutes after screen is OFF"...what do all these mean??
These 2 apps are woken up automatically by the system although there were no notifications in either case...
I've just connected to the internet and these apps woken up...is it a normal behaviour?
Maybe someone more experimented could explain me the whole process...Thanks in advance!!
Now I see both apps are under the same category: "Will hibernate in minutes after screen is OFF"...how many minutes is all about???
last1left91 said:
Hi there,
I purchased full version of Greenfy and now I can take advantage of those extra experimental features...
For example, maybe there's someone that could explain what "GCM push for greenfied apps does?"...The only result I can see is like this:
I greenfied Facebook Messenger, Facebook, S Health, Maps, HERE Maps...because I don't want these apps be woken again only if there are some received notifications because at the same time I don't want any missed notifications from these apps...does this experimental feature " GCM push for greenfied apps" helps me to obtain what I need?
Well, I've seen while I'm not connected to Internet neither via WiFi nor Data, these apps are hibernated and further wakeups no longer occur but when I connect to the Internet, Messenger is set like this: It's automatically placed into "Not hibernating automatically" with this status:
Working
20:56 ago content provided: Messenger Logged!
And the other one, Facebook is placed automatically under "Will hibernate in minutes after screen is OFF"...what do all these mean??
These 2 apps are woken up automatically by the system although there were no notifications in either case...
I've just connected to the internet and these apps woken up...is it a normal behaviour?
Maybe someone more experimented could explain me the whole process...Thanks in advance!!
Now I see both apps are under the same category: "Will hibernate in minutes after screen is OFF"...how many minutes is all about???
Click to expand...
Click to collapse
Your understanding of GCM push is correct. It is meant to ensure that you don't miss any notifications from greenified Apps.
Facebook and Messenger are always in a different category. They will behave in their own fashion even if you greenify them.
"Working" means that the process is running. After it completes what it has to do, it will go back to 'will hibernate after screen is off'. That hibernation takes place anywhere from 2 minutes to 5 minutes after the screen is off.
Hope you are clear.
tnsmani said:
Your understanding of GCM push is correct. It is meant to ensure that you don't miss any notifications from greenified Apps.
Facebook and Messenger are always in a different category. They will behave in their own fashion even if you greenify them.
"Working" means that the process is running. After it completes what it has to do, it will go back to 'will hibernate after screen is off'. That hibernation takes place anywhere from 2 minutes to 5 minutes after the screen is off.
Hope you are clear.
Click to expand...
Click to collapse
Thanks..you were very clear with your explanation but this morning something strange happened!
I connected to the Internet and played a bit with messenger app on my mobile data...then I disconnected my mobile data and closed the process associated to the Messenger App...I had to close it manually from Active Apps screan...it seems there's no other way...
And after 2-3 minutes or even more I checked my Active Apps...I did a shortcut with Quick Shorcut Maker and launching it through a swipe gesture from anywhere using GMD Gesture Control...I'm such disperate to close all the apps's processes when they(the apps) are no longer in use...Well, deep sleep has to stay deep sleep and I don't want any apps to run in background unless they are related to notifications...but when I'm not connected to the Internet I want all my apps's processes closed except apps like : Swapps, Internet SpeedMeter , GMD Gesture Control, My Data Manager, Greenfy, Tasker, Samsung Keyboard and System UI whose associated processes MUST stay there, under Active Apps Category List...
Well, I've seen Greenfy provides me a shortcut for the greenfied apps...but I don't know what this shortcut does..
Well....let's say at the moment X I have these 2 apps, Messenger and Facebook under Active apps, which means their processes are running...
Well, when I'm greenfying them which means when I press on that shortcut button shouldn't those apps be eliminated from Active Apps List..because this doesn't happen...I still have to enter myself and close the processes manually...then what's the shorcut's point? )...The apps were already greenfied through Greenfy App...weeks ago...do you get my point?..
I wanted that shortcut to automatically eliminate those 2(or any) running processes when I press on it!! Do you know any ways to obtain this behaviour so I weren't under the necessity to press explicitly on the "Stop" button?? Thanks in advance!!
@last1left91
I think that by manually killing a running process, you lose more battery. It may also affect the stability of the Apps concerned.
The best way to do it is using Greenify. But I don't know why these two are not hibernated when you use the shortcut.
Let us wait for @oasisfeng
First of all, let me explain the state words. "Working" means the app is reporting it self actively working to Android system thus should avoid being killed. Greenify respects this state unless it is black-listed (check "always ignore its state" when manual hibernating a "working" app). "content provided" means its content is accessed by some other app in a cross-app-interaction way (usually via APIs). In your case, its most probably accessed by Facebook app. Then the Facebook app itself is usually woken by other apps with Facebook feature integration (login, "like" and etc.) In most cases, they do hibernate, but usually woken when you launch other apps (with Facebook integration). You can let it go since Greenify should automatically hibernate them again after screen goes off next time.
The shortcut of "Hibernate" will only put apps in "pending" section into hibernation. If an app is shown as "Working", it will not be hibernated by the shortcut too. To override that, manually hibernate it once and check "always ignore its state" there.

Enable and disable GPS every time app asks for location from background

Hi,
I want to use an app that tracks my location every one hour. The app runs in background and I wanted to ask if there is a way to make the GPS to be turned on every time the app asks for location from background and after it gets the location, it makes the GPS turned off in order to save battery life.
I tried to use tasker but it works only when I open and close the app. It doesn't function when the app asks for location from the background.
Thanks in advance!

No gmail notification in aggressive doze mode

After enabling aggressive doze mode, my battery life improves greatly. However, the price is that I only receive gmail notification after screen on. I have whitelisted gmail app and google play services of course, even all other apps related to Google. Other apps I whitelist work just fine, like Whatsapp and WeChat. So is there any other apps I need to add to whitelist to make gcm work? Or the aggressive doze mode has something wrong with it?
I'm using samsung s6 edge, marshmallow with xposed, and greenify in boost mode. Before updating to version 2.9, everything was fine.
zhjn921224 said:
After enabling aggressive doze mode, my battery life improves greatly. However, the price is that I only receive gmail notification after screen on. I have whitelisted gmail app and google play services of course, even all other apps related to Google. Other apps I whitelist work just fine, like Whatsapp and WeChat. So is there any other apps I need to add to whitelist to make gcm work? Or the aggressive doze mode has something wrong with it?
I'm using samsung s6 edge, marshmallow with xposed, and greenify in boost mode. Before updating to version 2.9, everything was fine.
Click to expand...
Click to collapse
Have you found the other apps to whitelist? I am having the same issue.
price31 said:
Have you found the other apps to whitelist? I am having the same issue.
Click to expand...
Click to collapse
I'm afraid not. I disabled aggressive doze mode now?
zhjn921224 said:
After enabling aggressive doze mode, my battery life improves greatly. However, the price is that I only receive gmail notification after screen on. I have whitelisted gmail app and google play services of course, even all other apps related to Google. Other apps I whitelist work just fine, like Whatsapp and WeChat. So is there any other apps I need to add to whitelist to make gcm work? Or the aggressive doze mode has something wrong with it?
I'm using samsung s6 edge, marshmallow with xposed, and greenify in boost mode. Before updating to version 2.9, everything was fine.
Click to expand...
Click to collapse
and @price31
Google has not set the notifications from the Gmail app as priority, the logic being that instant messaging has more urgency than emails. Whether you like it or not, I think that you will not get Gmail notifications during Doze.
It may be true, but this issue only happens when I enable "aggressive doze" mode in Greenify. I can still receive gmail notification even if I leave my phone there for hours (when it is in doze).
tnsmani said:
and @price31
Google has not set the notifications from the Gmail app as priority, the logic being that instant messaging has more urgency than emails. Whether you like it or not, I think that you will not get Gmail notifications during Doze.
Click to expand...
Click to collapse
zhjn921224 said:
It may be true, but this issue only happens when I enable "aggressive doze" mode in Greenify. I can still receive gmail notification even if I leave my phone there for hours (when it is in doze).
Click to expand...
Click to collapse
May be the maintenance windows in Doze are only a few minutes apart whereas in AD, they are a few hours apart.
tnsmani said:
May be the maintenance windows in Doze are only a few minutes apart whereas in AD, they are a few hours apart.
Click to expand...
Click to collapse
Aggressive Doze effectively doubles the starting interval between maintenance windows, which should be one hour (in AD) if I remember correctly.
---------- Post added at 09:31 PM ---------- Previous post was at 09:22 PM ----------
As always, you can enable the doze debug notification to figure the correlation between doze and the unexpected behaviors. It works for both stock doze and Aggressive Doze.
Very similar configuration (Samsung s6, stock marshmallow with root, xposed, and greenify beta in boost mode) and same issue as TE here:
Gmail notifications are coming in only approximately once per hour with "aggressive doze" on after the device falls in "doze idling"/ "doze idle mode", so the time frame mentioned by @oasisfeng in post #7 appears to be correct. As soon as I completely disabele aggressive doze, all mails come in immediately as expected (stock doze not tested). What I did to resolve the issue (to no avail):
Gmail ist whitelisted in the battery section
Gmail is not set up for greenifying
Even GCM push for greenified apps is enabled
Mobile/wifi heartbeat is set to 6/5 minutes with PNF
Is there really nothing else we could do? Is it really as mentioned by @tnsmani, that Google mails will come in never (or only once per hour) during doze? I am asking because not too many other people appear to report this issue so the issue might also be related to some particularities of Samsung phones.
killerm said:
Very similar configuration (Samsung s6, stock marshmallow with root, xposed, and greenify beta in boost mode) and same issue as TE here:
Gmail notifications are coming in only approximately once per hour with "aggressive doze" on after the device falls in "doze idling"/ "doze idle mode", so the time frame mentioned by @oasisfeng in post #7 appears to be correct. As soon as I completely disabele aggressive doze, all mails come in immediately as expected (stock doze not tested). What I did to resolve the issue (to no avail):
Gmail ist whitelisted in the battery section
Gmail is not set up for greenifying
Even GCM push for greenified apps is enabled
Mobile/wifi heartbeat is set to 6/5 minutes with PNF
Is there really nothing else we could do? Is it really as mentioned by @tnsmani, that Google mails will come in never (or only once per hour) during doze? I am asking because not too many other people appear to report this issue so the issue might also be related to some particularities of Samsung phones.
Click to expand...
Click to collapse
What I said comes from here: https://developers.google.com/cloud-messaging/concept-options
It says
"High priority. GCM attempts to deliver high priority messages immediately, allowing the GCM service to wake a sleeping device when possible and open a network connection to your app server. Apps with instant messaging, chat, or voice call alerts, for example, generally need to open a network connection and make sure GCM delivers the message to the device without delay. Set high priority only if the message is time-critical and requires the user’s immediate interaction, and beware that setting your messages to high priority contributes more to battery drain compared to normal priority messages.
Normal priority. This is the default priority for message delivery. Normal priority messages won't open network connections on a sleeping device, and their delivery may be delayed to conserve battery. For less time-sensitive messages, such as notifications of new email or other data to sync, choose normal delivery priority."
@tnsmani
Darn. Then, of course, we must expect that GMail will stick to Google's own GCM/priority policy. And it is obvious that stock doze will lead to the same GMail issue as Greenify's aggressive doze
New idea: It would already help if I could wake up the device when it has been idling for 20 minutes or so. I would then receive all e-mail notifications at least every 20 minutes. Greenify provides an action to wake up the device for Tasker. Is there any chance to identify the device's current doze state with tasker so that I could start a timer or set a calendar event (less energy intensive) when the device goes into doze mode? Unfortunately, even Tasker appears not to be realiable if the device is idling, unless Tasker's option "reliable alarms" is turned on (http://bit.ly/2cfvAaZ, http://bit.ly/2cfx4lo). This option, however, apparently prevents the device from entering any kind of doze state and thus makes all efforts to save battery with doze mode quite useless.
So if I need reliable notifications when E-Mails are coming in, I could (simply) set tasker to "reliable alarms". But in this case, the device will never enter any kind of doze mode. :-/
Is there any other option you can think of?
Best regards
Mick
Ok, I am not the first one with the idea to abuse tasker's "reliable alarm" option in order to disable doze...
https://www.reddit.com/r/Android/co...g_tasker_on_marshmallow_its_reliable/.compact
Gesendet von meinem SM-G920F mit Tapatalk
Hi!
after some research i realised that SolMail is an email client with gcm feature (i use it with yahoo)
is there any other mail apk able to notify over GCM?
i'm testing SolMail in this days and notifications are a bit random (i set to 3 mins the update time and put the app in white list of aggressive doze)
can be useful to reduce heartbeat?
thanks in advance.
maserati1972 said:
Hi!
after some research i realised that SolMail is an email client with gcm feature (i use it with yahoo)
is there any other mail apk able to notify over GCM?
i'm testing SolMail in this days and notifications are a bit random (i set to 3 mins the update time and put the app in white list of aggressive doze)
can be useful to reduce heartbeat?
thanks in advance.
Click to expand...
Click to collapse
Aquamail supports GCM. Mature, robust client with excellent support via user forum. Free and paid variants. Find it in the Play Store.
Believe K9 also supports GCM along with Google's native app. Also take a look at the free Microsoft Outlook client.
Thanks Davey126
this afternoon i tried many mail clients...i found this:
Outlook works on latest versions (previous don't connect), same for CloudMagic (now Newton Mail);
Both in last releases are super heavy for my little Droid4 (CM13);
so i'm experimenting now "myMail" that spit instant inbox notifications even greenifying the app...i'm very impressed!
on the other hand is over 90MB which wiredly figures on cached process and never on running ones...
is in your opinion Aquamail lighter and efficient with Greenify and notifications?
maybe i could try an older release?
Thanks!!!
maserati1972 said:
Thanks Davey126
this afternoon i tried many mail clients...i found this:
Outlook works on latest versions (previous don't connect), same for CloudMagic (now Newton Mail);
Both in last releases are super heavy for my little Droid4 (CM13);
so i'm experimenting now "myMail" that spit instant inbox notifications even greenifying the app...i'm very impressed!
on the other hand is over 90MB which wiredly figures on cached process and never on running ones...
is in your opinion Aquamail lighter and efficient with Greenify and notifications?
maybe i could try an older release?
Thanks!!!
Click to expand...
Click to collapse
Aquamail satisfied all my needs and runs well on lower end devices. That said mail clients are like a box of chocolates. What is beautiful to one is distasteful to another. Try and profit (or not).

Questions on Doze and apps not working properly

I have a dual sim Sony Z5 running Android 6.0.1, but I am posting here because my question should be generic and not Sony-specific.
I have been doing lots of reading online, but cannot find the answer to these very basic questions:
When exactly does Doze kick in? Some sites say after 1 hour, some say after 3 or more, and Android’s website only says “after a period of time” (https://developer.android.com/training/monitoring-device-state/doze-standby.html ). Isn’t there any official documentation on this?
After a device enters Doze mode, how often does the system exit Doze and for how long? The previous link only says: Periodically, the system exits Doze for a brief time to let apps complete their deferred activities. During this maintenance window, the system runs all pending syncs, jobs, and alarms, and lets apps access the network. Again, isn’t there any official documentation on this?
Is there a way to monitor when the phone was in Doze and when in a maintenance windows
I want 3 apps to continue functioning normally even in Doze mode: whatsapp, k9 mail (on which I use imap idle for push email to my private email address), and Good Work (now owned by Blackberry) to connect to my company’s Exchange server and retrieve work emails etc. How can I achieve this? Is it documented anywhere if these apps issue the high priority GCM messages that Doze expects? I have excluded these apps from the battery optimization settings, yet I have been experiencing erratic behaviour (sometimes they sync, sometimes they don’t) when I leave the phone on a desk, connected to wifi (with keep wifi on during sleep set to always).
I am open to considering another email client which supports imap idle (as long as it doesn’t store my data and passwords on its servers (like Type App / Blue mail do), but I cannot replace Good Work with anything else as that is the only app which my employer allows to connect to its network.
Incidentally, I didn’t want Marshmallows on my phone, also because I believe Sony’s Stamina is more transparent and efficient (http://www.xda-developers.com/sonys-stamina-mode-did-it-first/ ); I was hoping my phone would ship with Lollipop, but unfortunately it came with Marshamllows. Ah, I cannot root because otherwise Good Work wouldn’t work.
This lack of transparency is a step in the wrong direction; Google is behaving like Apple in telling us not to worry our pretty little heads, but Google doesn't always know best! Apps which rely on push notifications may not work unless developers rewrite them, and there is no way to disable doze. it's crazy!
cdl2 said:
I
Is there a way to monitor when the phone was in Doze and when in a maintenance windows [...] ?
Click to expand...
Click to collapse
I have found that the GSAM battery app tracks it: https://play.google.com/store/apps/details?id=com.gsamlabs.bbm&hl=en_GB ( charts --> other).
I haven't found a way to monitor it from Android's system - not on my sony Z5, at least.
No one knows?
Anyway, this partial solution works for me: http://androidforums.com/threads/ma...x-is-preventing-doze-with-macrodroid.1058445/
It's about using MacroDroid to wake up the phone every 45 minutes, thus prveenting Doze mode from kicking in at all. Battery usage is acceptable (1% /hour with two push emails on)
No updates? Am I the only one who cares about push email not working?
cdl2 said:
No updates? Am I the only one who cares about push email not working?
Click to expand...
Click to collapse
Go to settings then go to power manager(in my phone) and click on battery optimization and select apps that you want to run in doze mode and select don't optimized.
I hope it solved your problem.
No, it does not. Android's official documentation explains that whitelisting is effectively useless, because 'other restrictions still apply' :
https://developer.android.com/train...doze-standby.html#support_for_other_use_cases
I have tried, and imap idle with k9 mail does not work when my Sony z5 is in doze, despite the whitelisting

Get thoughts on some interesting attributes within Developer mode

I was looking through the developer options in my Xperia 1, and I was curious about the following attributes. So was wondering if anyone had any thoughts on these:
Under Networking: "Mobile data always active" was enabled. Will disabling this lead to better battery life? Not sure if it's necessary to use mobile data while connected to WiFi.
Under Apps, what does the "Background Check" option actually show? Are these application that are running in the background?
Under Standby Apps, it's a list of all apps on the phone with "App Standby State" option either "RARE, FREQUENT, WORKING_SET and ACTIVE". For example, if the Amazon app says "FREQUENT" and I toggle it to "RARE", will that mean the app will stay in standby state and save battery? Or am I misinterpreting this?
On a side note, under Setting--> Apps, toggling the following options individually for most user apps improved my standby/idle drain significantly.
Data Usage - Toggle "Background Data" off
Battery - Toggle "Background Restriction" to "Restricted"
I probably won't recommend this for any apps that need to send notifications like WhatsApp since toggling these 2 options seems to stop any messages from coming in unless I open WhatsApp manually.
That setting might help with battery life, but kills smartphone functionality.
nurav666 said:
Data Usage - Toggle "Background Data" off
Battery - Toggle "Background Restriction" to "Restricted"
I probably won't recommend this for any apps that need to send notifications like WhatsApp since toggling these 2 options seems to stop any messages from coming in unless I open WhatsApp manually.
Click to expand...
Click to collapse
Interesting question @nurav666
The standby apps is a feature of Android 9 that divides apps in 4 buckets based on how much you use them. Apps that you rarely use will have fewer rights to send you notifications for example. Apps you use frequently will have full rights.
App developers need to make sure their app works properly in any of the states.
You can find more detailed information in the Google developer documentation. https://developer.android.com/topic/performance/appstandby
This is an interesting read for advanced users and not necessarily only for developers.

Categories

Resources