Battery saver 3g data manager

Share and discuss your flows and ideas with other users.

Moderator: Martin

toalettkukac
Posts: 4
Joined: 24 Nov 2014 13:19

Re: Battery saver 3g data manager

Post by toalettkukac » 24 Nov 2014 13:28

Hi,

Thank you for this wonderful flow. You have put much work into it.
I would like to request/suggest a feature.

As (According to you) 3G is the battery drainer. Why not simple disable 3G when connected to Wifi.

I have Wifi at home and 3G on the road (like most people). Your flow saves battery when on the road, but I see (in the android) toggle that when I am with Wifi then 3G (Mobile Network Data) is still enabled.
Only the other Flows are disabled.

Could you add and extra syntax to competently disable 3G/Moble Network Data altogether when the device is connected to Wifi, please?

I could make a separate flow to do this obviously, very simple, but I would prefer it integrated into your, so they don't conflict or whatnot.
You could make it optional, so anyone that doesn't want it can disable it.

Thank you very much

Cheers
Alex

User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

Re: Battery saver 3g data manager

Post by Bushmills » 24 Nov 2014 13:35

Are you sure about 3G draining the battery? I can see that within the same amount of time, 2G uses less power, but after that time, less data will have been transferred. Looking at power use from viewpoint of identical amounts of data transferred (which should be the more realistic scenario: same amount, but in less time), the balance may shift in the favour of 3G.
If it's the choice between either 2G/3G vs Wifi, then of course 2G/3G data connection shouldn't be necessary at all as long WiFi is up. But more often than not, there'll be a power socket nearby in this case.

User avatar
giovag7
Posts: 58
Joined: 05 Mar 2013 10:02

Re: Battery saver 3g data manager

Post by giovag7 » 24 Nov 2014 14:01

toalettkukac wrote:Hi,

Thank you for this wonderful flow. You have put much work into it.
I would like to request/suggest a feature.

As (According to you) 3G is the battery drainer. Why not simple disable 3G when connected to Wifi.

I have Wifi at home and 3G on the road (like most people). Your flow saves battery when on the road, but I see (in the android) toggle that when I am with Wifi then 3G (Mobile Network Data) is still enabled.
Only the other Flows are disabled.

Could you add and extra syntax to competently disable 3G/Moble Network Data altogether when the device is connected to Wifi, please?

I could make a separate flow to do this obviously, very simple, but I would prefer it integrated into your, so they don't conflict or whatnot.
You could make it optional, so anyone that doesn't want it can disable it.

Thank you very much

Cheers
Alex
When phone is under a wifi connection, android automatically disable 3g data connection (even if you see the toggle ON), so this modification is unnecessary.

User avatar
giovag7
Posts: 58
Joined: 05 Mar 2013 10:02

Re: Battery saver 3g data manager

Post by giovag7 » 24 Nov 2014 14:05

Bushmills wrote:Are you sure about 3G draining the battery? I can see that within the same amount of time, 2G uses less power, but after that time, less data will have been transferred. Looking at power use from viewpoint of identical amounts of data transferred (which should be the more realistic scenario: same amount, but in less time), the balance may shift in the favour of 3G.
If it's the choice between either 2G/3G vs Wifi, then of course 2G/3G data connection shouldn't be necessary at all as long WiFi is up. But more often than not, there'll be a power socket nearby in this case.
My flow doesn't put the phone in 2g, it totally disable data connection for determined time. In this way internal radio modem drain less battery especially in areas where phone signal is low/unstable.

User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

Re: Battery saver 3g data manager

Post by Bushmills » 24 Nov 2014 15:28

Yes. Smart decision, I think. Without having actually done any current measuring, I think that if there should be any gain at all, the necessary 2G/3G renegotian takes that away too.

toalettkukac
Posts: 4
Joined: 24 Nov 2014 13:19

Re: Battery saver 3g data manager

Post by toalettkukac » 24 Nov 2014 20:27

giovag7 wrote:
When phone is under a wifi connection, android automatically disable 3g data connection (even if you see the toggle ON), so this modification is unnecessary.

I had no idea. Thank you for the prompt reply.

nasedase
Posts: 3
Joined: 21 Aug 2014 06:18

Re: Battery saver 3g data manager

Post by nasedase » 04 Dec 2014 14:00

I keep getting an error ever since I updated to lollipop on my nexus 4. Flow Auto Connections Manager
Error: Could not enable mobile datanetwork

nasedase
Posts: 3
Joined: 21 Aug 2014 06:18

Re: Battery saver 3g data manager

Post by nasedase » 04 Dec 2014 14:04

Here's the latest logs.
04.12.2014 08:58:56.929 [Auto Connections Manager] Flow continues executing with the next step.
04.12.2014 08:58:56.930 [Auto Connections Manager] Start executing action 'Set Mobile Datanetwork State: On'
04.12.2014 08:58:56.931 [Auto Connections Manager] End executing action 'Set Mobile Datanetwork State: On' and exception Could not enable mobile datanetwork
04.12.2014 08:58:56.932 [Auto Connections Manager] Flow ends execution due to errors
04.12.2014 08:58:56.933 [Auto Connections Manager] Error:
ch.gridvision.ppam.androidautomagic.util.r: Could not enable mobile datanetwork

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Battery saver 3g data manager

Post by Martin » 05 Dec 2014 10:41

Unfortunately Android 5 requires a new permission to toggle mobile data that's only granted to system apps, for this reason action Set Mobile Datanetwork State only works with root on Lollipop.
The next version of Automagic will improve the error text when the action fails.

toalettkukac
Posts: 4
Joined: 24 Nov 2014 13:19

Re: Battery saver 3g data manager

Post by toalettkukac » 02 Feb 2015 10:56

Hi.

As of 3 days ago, I keep getting the following error.
The weired thing I have not changed anything since them, not was automagic updated. ALso my phone is Kit-kat (not lollipop).

Could you please help. Your flow really helps my phone with battery life. It saves a lot of juice for me. Especially over night. Please keep up the good work and the flow updated as much as possible.

I uninstalled and reinstalled your flow. I rebooted, but still the same. I am rooted permission is granted to automagic.
If I clear the error, then after phone goes to sleep. When I wake it after a few mins, then the error is there again.
I have been using your flow for months now, with absolutist no problem. Just till 3 days ago it started.

So the error... In Notification:
Flow Wifi/Power State ended
Error: Can not execute disable flow Auto Connection Manager

Log:
02.02.2015 11:46:28.045 [WiFi/Power State] Flow ended.
02.02.2015 11:46:55.926 [WiFi/Power State] Starting to execute flow 'WiFi/Power State' with Context{global{global_data_usage=275480
,global_ACM=[Enabled, Auto reconnect],global_connection_off=20m,global_ACM_periodic=1,global_datanetwork_state=1,global_connection_on=1m},local{flow_name=WiFi/Power State,trigger=WiFi Connected: All SSIDs,triggertime=1422874015923,bssid=90:e6:ba:2e:ec:77,ssid=tata}}
02.02.2015 11:46:55.928 [WiFi/Power State] Start executing action 'Sleep: 500ms (keep device awake)'
02.02.2015 11:46:55.929 [WiFi/Power State] Action 'Sleep: 500ms (keep device awake)' Sleeping for 500ms (keep device awake)
02.02.2015 11:46:56.433 [WiFi/Power State] End executing action 'Sleep: 500ms (keep device awake)'
02.02.2015 11:46:56.434 [WiFi/Power State] Flow continues executing with the next step.
02.02.2015 11:46:56.435 [WiFi/Power State] Start executing condition 'WiFi Connected: All SSIDs'
02.02.2015 11:46:56.437 [WiFi/Power State] Start executing condition 'Power Source: Connected'
02.02.2015 11:46:56.441 [WiFi/Power State] End executing condition 'Power Source: Connected' with return value false
02.02.2015 11:46:56.447 [WiFi/Power State] End executing condition 'WiFi Connected: All SSIDs' with return value true
02.02.2015 11:46:56.449 [WiFi/Power State] Flow continues executing with the next step.
02.02.2015 11:46:56.451 [WiFi/Power State] Start executing action 'Execute Flows: Auto Connections Manager'
02.02.2015 11:46:56.455 [WiFi/Power State] End executing action 'Execute Flows: Auto Connections Manager' and exception Can not execute disabled flow Auto Connections Manager
02.02.2015 11:46:56.457 [WiFi/Power State] Start executing action 'Stop Flows: Auto Connection Manager periodic,Auto Connections Manager'
02.02.2015 11:46:56.462 [WiFi/Power State] End executing action 'Stop Flows: Auto Connection Manager periodic,Auto Connections Manager'
02.02.2015 11:46:56.464 [WiFi/Power State] Flow ends execution due to errors
02.02.2015 11:46:56.465 [WiFi/Power State] Error:
ch.gridvision.ppam.androidautomagic.util.r: Can not execute disabled flow Auto Connections Manager
at ch.gridvision.ppam.androidautomagic.d.a.ao.a(SourceFile:216)
at ch.gridvision.ppam.androidautomagic.d.c.e.a(SourceFile:589)
at ch.gridvision.ppam.androidautomagic.d.c.e.b(SourceFile:914)
at ch.gridvision.ppam.androidautomagic.d.c.e.a(SourceFile:56)
at ch.gridvision.ppam.androidautomagic.d.c.e$1.run(SourceFile:731)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5602)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
at dalvik.system.NativeStart.main(Native Method)

02.02.2015 11:46:56.477 [WiFi/Power State] Flow ended.


Please help!
Thank you.

Post Reply