Battery saver 3g data manager

Share and discuss your flows and ideas with other users.

Moderator: Martin

User avatar
zaini47
Posts: 18
Joined: 30 Jul 2014 01:14

Re: Battery saver 3g data manager

Post by zaini47 » 20 Aug 2014 23:44

By far this is the best flow to encounter the battery drain by Automagic use.
If any other flows suck the battery this one saves it! :o
You the man giovag7 :D

doctagreat@gmx.de
Posts: 8
Joined: 19 Aug 2014 11:55

Re: Battery saver 3g data manager

Post by doctagreat@gmx.de » 21 Aug 2014 06:05

Hello,

will the flow also work on a DUAl SIM Device?
I got one and I become an Error Message (Flow stopped).

THX

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

Re: Battery saver 3g data manager

Post by giovag7 » 21 Aug 2014 06:52

doctagreat@gmx.de wrote:Hello,

will the flow also work on a DUAl SIM Device?
I got one and I become an Error Message (Flow stopped).

THX
I don't know, I don't have a dual sim to try this. Could you be more precise (which flow is stopped and why, log of this flow)?

User avatar
zaini47
Posts: 18
Joined: 30 Jul 2014 01:14

Re: Battery saver 3g data manager

Post by zaini47 » 22 Aug 2014 00:20

mine dual SIM, and nothing is wrong. Working Great.
make sure to run the latest version of the flows.

Horschte
Posts: 56
Joined: 03 Nov 2014 18:00

Re: Battery saver 3g data manager

Post by Horschte » 03 Nov 2014 18:11

Hi guys,

I'm using this fantastic flow and it's working great most of the time.

But now and then it throws an error. The error goes like this:

Code: Select all

03.11.2014 15:04:18.157 [Auto Connections Manager] Start executing action 'Init Variable Text File: /sys/class/net/rmnet0/statistics/rx_bytes to data_usage'
03.11.2014 15:04:18.160 [Auto Connections Manager] End executing action 'Init Variable Text File: /sys/class/net/rmnet0/statistics/rx_bytes to data_usage' and exception /sys/class/net/rmnet0/statistics/rx_bytes: open failed: ENOENT (No such file or directory)
03.11.2014 15:04:18.162 [Auto Connections Manager] Flow ends execution due to errors
03.11.2014 15:04:18.163 [Auto Connections Manager] Error:
ch.gridvision.ppam.androidautomagic.util.r: /sys/class/net/rmnet0/statistics/rx_bytes: open failed: ENOENT (No such file or directory)
	at ch.gridvision.ppam.androidautomagic.d.a.bu$1.b(SourceFile:183)
	at ch.gridvision.ppam.androidautomagic.util.gz$1$1.run(SourceFile:51)
	at android.os.Handler.handleCallback(Handler.java:615)
	at android.os.Handler.dispatchMessage(Handler.java:92)
	at android.os.Looper.loop(Looper.java:137)
	at android.app.ActivityThread.main(ActivityThread.java:5031)
	at java.lang.reflect.Method.invokeNative(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:511)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:555)
	at dalvik.system.NativeStart.main(Native Method)
Caused by: java.io.FileNotFoundException: /sys/class/net/rmnet0/statistics/rx_bytes: open failed: ENOENT (No such file or directory)
	at libcore.io.IoBridge.open(IoBridge.java:416)
	at java.io.FileInputStream.<init>(FileInputStream.java:78)
	at ch.gridvision.ppam.androidautomagic.d.a.bu$1.c(SourceFile:158)
	at ch.gridvision.ppam.androidautomagic.d.a.bu$1.a(SourceFile:146)
	at ch.gridvision.ppam.androidautomagic.util.gz$1.run(SourceFile:39)
	at java.lang.Thread.run(Thread.java:856)
Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
	at libcore.io.Posix.open(Native Method)
	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
	at libcore.io.IoBridge.open(IoBridge.java:400)
	... 5 more
More details are in the error log which I attached.

What I don't understand is the fact that 4 seconds before the error message, the flow worked fine calling the exact same action. Can anybody help, please? Btw, I don't have root access on my phone.

Thanks alot!
Attachments
log.txt
(18.02 KiB) Downloaded 1009 times

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

Re: Battery saver 3g data manager

Post by Bushmills » 03 Nov 2014 19:30

files under /sys are pseudo files. They don't physically exist on your storage device, but represent kernel data structures. As such, they are dynamically created and updated.
You may want to try to modify the flow such, that the file, causing the error on open attempt, ist tested for existence first.

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

Re: Battery saver 3g data manager

Post by giovag7 » 03 Nov 2014 21:24

Horschte wrote:Hi guys,

I'm using this fantastic flow and it's working great most of the time.

But now and then it throws an error. The error goes like this:
Try to run this flow to verify if the modem interface is correct (rmnet).
flow_Traffic_Data_Text_20141103_220928.xml
(1.32 KiB) Downloaded 1119 times
1) run the flow
2) click on stdout in the dialog that will open
3) click on show value in text editor
4) look if interface with data traffic reported is rmnet0 or another rmnet.
5) if interface with data traffic is rmnet1 for example, you have to replace it in my flows.
Screenshot_2014-11-03-22-23-46.png
Screenshot_2014-11-03-22-23-46.png (65.85 KiB) Viewed 27943 times

Horschte
Posts: 56
Joined: 03 Nov 2014 18:00

Re: Battery saver 3g data manager

Post by Horschte » 03 Nov 2014 23:17

Thank you for trying to solve the problem.

It shows rmnet0. So everything seems to be ok - at least for now.

Since most of the time there is no error, the problem must be elsewhere. I will keep watching it and report back when the error shows again.

Thanks so far.

User avatar
zaini47
Posts: 18
Joined: 30 Jul 2014 01:14

Re: Battery saver 3g data manager

Post by zaini47 » 12 Nov 2014 21:01

How to change the disconnect after 5 minutes screen off?

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

Re: Battery saver 3g data manager

Post by giovag7 » 15 Nov 2014 21:26

zaini47 wrote:How to change the disconnect after 5 minutes screen off?
When i will have the time to do this i will implement this feature in the next release.

Post Reply