yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Mr.AFK:
With terminal emulator I got a file (1,6MB) but there isn't an extension (like .Log)

I will upload and post a link.

http://db.tt/tPRUk97V

Gesendet mit meinem S IV
[Android Apps and Games] chamonix:
Unfortunately this log contains data from 06:56 till 07:10 but does bot show any BWOF activity
[Android Apps and Games] Mr.AFK:
No problem,

If it works I will give you more.

Now I'm at home, coming from the town centre back. Hope the log is longer that the old with more useful data.

Log file 2: http://db.tt/HKPEdWji

Gesendet von meinem GT-I9505 mit Tapatalk 4
[Android Apps and Games] chamonix:
2.1 is up and rolling out to google play
[Android Apps and Games] chamonix:
That log shows a longer timespan but still no data. It looks like the log buffer gets filled with to much log info from other apps too fast to hold any valuable data
[Android Apps and Games] gaich:
I think you can use Russian description for Google Play in Russia:

Better Wifi on/off Russian description

Better Wifi on/off Russian what`s new

Better Wifi on/off Donate Russian description

Better Wifi on/off Donate Russian what`s new

:cowboy:
[Android Apps and Games] berek9999:
Apologies if I've missed this somewhere, but is there any way of backing up the settings, so that I don't lose tagged cells, whitelisted SSIDs, etc if I change ROMs?

Thanks,
[Android Apps and Games] chamonix:
You can use any backup tool that saves the database and settings from /data/data/com.asksven.betterbatterystats. Titanium e.g. does this but most other tools do as well (I haven't tested any except titanium)
[Android Apps and Games] berek9999:
I assume that was a typo and you meant /data/data/com.asksven.betterwifionoff but that's exactly what I was looking for. As long as it's backed up by Titanium I'm happy.

Many thanks.
[Android Apps and Games] chamonix:
Yew it was a typo, I have coded too many apps ;)
[Android Apps and Games] zeli9:
[MENTION=1330150]chamonix[/MENTION]

First of all I'd like to thank you for your excellent programs, I've purchased both BBS and BWOO to help with development. Just wondering if you could possibly implement a toggle for mobile data in the BWOO? Something like Better Radio/Data :)
[Android Apps and Games] chamonix:
What would be your scenario to toggling mobile data on/off?
[Android Apps and Games] zeli9:
Well, I'm currently testing BWOO in conjunction with Smart Data Switch, which has some very nice options e.g. "wifi preferred" whereby data is switched off when wifi is connected (very useful feature IMO). I just think it would be great to have one program instead of two - obviously different people require different scenarios, I'm mostly concerned with extending standard battery life. One has to take into account that switching both off means you cannot receive real time notifications, - there should be options for setting those, i.e. off completely and intervals like in SDS (switch on for 1 min switch off for 10 min as default smart mode setting), the Deep Sleep Battery Saver also offers similar configuration options.

I was just thinking it would be great to have the option to switch data off along wifi in one program, also scheduling for all radios to be switched off during the night (without having to use yet another profile switcher program for that).

btw, I'm on i9300 - CM 10.1 temasek ROM and kernel
[Android Apps and Games] Pkt_Lnt:
Android disables mobile data when wifi is connected. There is no need for an app to do that, since it is handled natively by the Andoid OS.
[Android Apps and Games] zeli9:
Are you sure about that? Obviously it's supposed to do so and it's logical, but I'm not quite sure it's always happening.. but OK, let's assume this is correct, but how does that work then in relation to BWOO - I mean when wifi gets disabled then android enables data, right? I'm just wondering if that does not create extra overhead if data connection fires up first before wifi gets connected? I hope I'm making sense now...
[Android Apps and Games] Pkt_Lnt:
Yes, certain, since so many reputable devs and power users of Tasker and Tasker plugins state that is how it works. People are continually asking how to set up a Tasker profile to disable data when wifi is connected and the wizards there tell them it is unnecessary. I see the same replies to similar requests from the ROM developers who I follow and trust their expertise.

My understanding is that wifi has to disconnect before data is enabled. From what I have read, you are overthinking the wifi/data interoperability and it is best to let Android handle it. BWOF does a great job in handling wifi, and Android can handle moble data when wifi is off ;)

If you want to control data separate from wifi, then there are ways to do that; I just leave my data on when not connected to wifi.
[Android Apps and Games] zeli9:
That makes perfect sense. Cheers, mate, for clarifying this! I guess this actually means SDS Settings and similar apps are in fact redundant and BWOF is the only app needed to control the radios. If I need to switch data off completely at night I can use profile switcher.:good:
[Android Apps and Games] chamonix:
That makes perfectly sense and is the reason why I asked for the use case. BBS will confirm that there is no data connection active while Wi-Fi is connected (time is accounted as no connection). Based on that and on the use case I don't see what should be implemented in bwof that makes sense and I will certainly not implement anything with a placebo effect
[Android Apps and Games] zeli9:
Thanks! That clarification does make perfect sense! So it appears there is really no need to use other data controlling apps besides BWOF. I'm certainly not interested in installing apps that produce placebo effect and I am grateful to Pkt_Lnt for clarifying the situation.
[Android Apps and Games] atua:
Timed checks isn't working as I expect on either my Samsung Galaxy S2 i9100 or my Nexus 7 and I'm not sure if I'm just misunderstanding what it's supposed to do or if it's a bug. On my S2, it's not making a successful wifi connection during the timed checks when the screen is off but connects normally when the screen is on. With the Nexus 7, if a connection is detected during any timed checks the wifi connection just stays on and won't turn off during subsequent checks even if there is no active connection. I'm running v2.1.0.0 on both devices. My S2 is on NeatROM Lite v4.7 XWLSS with a Dorimanx v8.24 kernel and my Nexus 7 is a rooted stock ROM running 4.2.2.

S2 Log: https://www.dropbox.com/s/1445fef6jg9q4zc/S2_betterwifionoff-2013-06-26_173033533.txt

Nexus 7 Log: https://www.dropbox.com/s/jyxp2xt14xapbb8/N7_betterwifionoff-2013-06-26_222744960.txt
[Android Apps and Games] leonardoporro:
I think he wants to turn both, wifi and 3g off when screen is off.
[Android Apps and Games] Pkt_Lnt:
No, you misunderstood, read the rest of our exchange, please.
[Android Apps and Games] jhuff83:
Seems when I open the app, it takes awhile to get to the main screen. Anyone else notice this. It's like the app is hanging for a bit.
[Android Apps and Games] chamonix:
Have you tried clearing the event log?
[Android Apps and Games] weaverinva:
Great app. I may purchase the donate version shortly but want to ask question first--may buy anyway because you are wonderful for developing. Already have betterybatterystats.

I would like to use this instead of tasker for several of my androids at home. They are wifi only and I want the wifi to come on when the screen is on, unless I turn it off. However, I would also like wifi to turn on periodically every 7-15 minute for 1 minute (or a duration) so that email/contacts and other network aware apps 'can do their business' for a few moments but not at will.

I saw a timer was added in 2.1. Will this accomplish what I want above? If not I would wish it. :)
[Android Apps and Games] Pkt_Lnt:
I use those features and more, except the period check, and it works perfectly. Why not try the free version and see? :confused:
[Android Apps and Games] weaverinva:
I have the free version loaded. The period check is very important to me. I have tasker too but have not invested the time. I could it that would work with better wifi but I am worried they will conflict. I'll perhaps have time to vet this next week. Was hoping someone would know quick answer before investing time..... you know how it is.

Great app though!
[Android Apps and Games] Pkt_Lnt:
I use Tasker, have about 15 profiles, but none use BWOF as a plugin; a few trigger when connected to my home SSID. I have no conflicts, but I do not use the wifi periodic check.

When home on wifi I stay connected with BWOF via whitelisted SSID as this is my VoIP phone, since even voice is poor at home, data pfffft. I only occasionally use wifi when not home, at a coffee shop perhaps, at most a couple times a week.
[Android Apps and Games] jhuff83:
That seems to have fixed it. Anyway to add a setting to maybe have it clear after so many days?
[Android Apps and Games] Number999:
Did you get this to work? As I'm having exactly the same problem, I'd like to know how to fix it.
[Android Apps and Games] rgs2:
I use "on if connected to whitelist ssid" and whitelist the ssids where I want it to stay on. That works fine.
[Android Apps and Games] weaverinva:
Okay, so I tested it and this is an amazing app. It does as advertised and very well with the timer for wake up. It will wake up every 15 minutes for 30 seconds or longer to get the latest information. Very handy indeed and battery saving with so many apps thinking they get free data reign when a wifi connection is active.

I was and still am a big fan of Greenify. However, this timing on the app makes that app's use different. I may allow more apps to request data since they can only get at it on intervals.

It is a divergence for this thread but Pkt_Lnt, would you be willing to share with me via private message or email what you use Tasker for with your 15 profiles. I really want to use that app since I paid for it and I am a techie detail guy but I have not found the right impetus to get me off my duff and learn it for a purpose.

Thank you for your prior comments.
[Android Apps and Games] coolpixs4:
thanks, I will try this app if it can make my battery much better

But I wonder if this app can turn off the wifi if I move out the coverage of whitelist wifi or not ?
[Android Apps and Games] weaverinva:
Yes it can do that. Very good developer and app.
[Android Apps and Games] Number999:
Yeah, that worked! Thanks! :thumbup:
[Android Apps and Games] chamonix:
#129
[Android Apps and Games] garshhh:
Nice app, small and simple. I can't find the way to switch wifi on only when i launch some app. e.g i'm at home where i have cell id, but i turn screen on just for call or sms, but at this moment wifi turns on. How can i tell the app that turn wifi on only when i open some app in list. :)
[Android Apps and Games] chamonix:
There is no way to do that. As android is a multitasking ecosystem it would be somehow unnatural to trigger a connection when an app is launched imho
[Android Apps and Games] gonzalobasterra:
I will try, thank you :good:
[Android Apps and Games] coolpixs4:
I have tried this app for 2days. But I realize that it doesn't auto turn off wifi when I move out of the SSID whitelist coverage. I may missed something wrong in the setting? - I use expert mode: And I want to keep wifi on even the screen off to keep track Viber calls. But I need it to auto handle to auto turn off if I move out of the coverage for sometime. (When I went out the coverage 1hour, I opened screen on and saw that wifi didn't off - It showed with an icon of no wifi coverage in notifications bar)

In expert mode: for turn off wifi policies, it has only two options:

- off if unpluged

- off if screen goes off

It is possible to add one more option for checking that if phone move out of the coverage for some time, it auto turns wifi off

Previously, I use Wifi batery saver widget, if I set ON => then if I'm move out of the coverage, it auto turn wifi off to save battery drains.
[Android Apps and Games] Number999:
Strange though, that it doesn't work as it's supposed to work with Tune-in. I just tried with the Spotify-app, and that works just perfect, without checking "on if connected to whitelisted ssid".

My Nexus 7 is always connected to the same ssid, and I'd like bwoo to shut down wifi when the screen is off. Except when listening to Tune-in of course :)
[Android Apps and Games] Pkt_Lnt:
Use the check of "only if connected to a whitelisted SSID" and it works fine. I do the same thing, as this is my VoIP phone at home using Google Voice -> voip.ms -> CSipSimple.

Here are screen shots of my settings in expert mode. 1-4 if 6, the other 2 in next post.
[Android Apps and Games] Pkt_Lnt:
Screenshots 5 & 6

As soon as I leave my home wifi, BWOF turns wifi off just fine.
[Android Apps and Games] coolpixs4:
What is BSOF ? Do you use other app similar wifi battery saver?

I do set as same as you, except that some mode policy for pluged and unpluged, I leave it blank.

But I don't know why it does not work for me in case of auto turn off
[Android Apps and Games] Pkt_Lnt:
A mistype, I meant BWOF, Better Wifi On Off, this app.
[Android Apps and Games] Mr.AFK:
Dear Sven,

I updated my GT-I9100 also to v2.1 (from b2) and on this Phone Wifi turns of if screen goes off. Same settings. But the Android Version is Jb 4.1.2 instead of Jb 4.2.2 on my Sgs4.

On my Sgs4 there was one situation where wifi was off, because of unknown Cid. But in the log is always written. Wifi leave on because there is a connection...

Gesendet mit meinem GT-I9505
[Android Apps and Games] chamonix:
If you want to keep Wifi on while streaming the best ways to proceed are (in that order):

- the app holds a wakelock: then the setting "if wakelock is held" under "rules for leaving wifi on when screen is off" is the best way to go

- the app streams continuously: then the setting "if network activity" under "rules for leaving wifi on when screen is off" is the best alternative (but most streaming apps buffer so the throughput is not constant

- if whitelisted app running (+ adding the app to the whitelist) is the easiest way to go
[Android Apps and Games] chamonix:
Can you please provide a logcat showing that situation? I have never encountered that but get the message that wifi won't be turned on because of a non whitelisted CID a log as I use that feature extensively
[Android Apps and Games] chamonix:
Thanks for the flowers ;)

I have never thought of using he timer feature that way but it may work. Why not giving it a try (the free version is fully featured) and let me know how it goes (with a logcat if possible so I can diagnose what may be wrong). I am willing to complete that feature to work as desired if it does not yet
[Android Apps and Games] chamonix:
Thanks for the feedback, it's good to know that BWOF works fine that way.

There is a problem with that (and it is a flaw in android) that I really would like to see fixed one day:

most apps use data based on so called alarms, to reglarly check (poll) or to keep connections alive. The problem is that despite the fact there there are so called "inexact" alarms most devs use precise alarms. This leads to connections not being bundeled and not being optmized to be processed in a window where a central authority would tell "hey apps, you know have 30 seconds to do your stuff".

There is a lot of litterature about that and many apps that try to control the data connection when the scren is off but the problem is that there is no way for all the apps that use data to know how data is managed (as there is no central instance of control). Of course there would be a possibility for devs to do this (data changed events notify when data goes on of off) but my work with BBS shows that this is too much for most devs to cope with.
[Android Apps and Games] Number999:
Thank you so much chamonix! That really works! Finally! I just bought the app to support your great work :o:good:
[Android Apps and Games] Mr.AFK:
Dear Sven,

May be you can remember my problem (wifi doesn't turn off because always connection detected) on my Sgs4. No problems with the same settings on my S2.

Now I found the setting, witch Is the reason for wifi don't turn of (think so)

Leave wifi on (scree off) if connection is detected and activ IP or something like that. Screenshot 1,

After unchecked the option,

It works

Screenshot 2

Hope this helps!

Gesendet mit meinem S IV
[Android Apps and Games] chamonix:
That' interesting because it confirmat this is a bug: there can be no IP assigned when there is no connection except f the S4 does not release the IP even when not connected anymore.

Does this reproduce indepedently from the Wifi sleep ploicy (advanced Wifi settings).

I remember having added some moew logging to track down that issue. Would you mind posting a logcat?
[Android Apps and Games] Mr.AFK:
I will try,

but you said some times ago, my logs are empty or to short.

can also try with Terminal Editor, if you show me the command again :)

[/hide] log is coming
[Android Apps and Games] chamonix:
logcat -v time -d > /sdcard/somefile

Should do.
[Android Apps and Games] Mr.AFK:
normal log

http://db.tt/MzqCsHFt

edit:

normal log this morning http://db.tt/MChj0pAS

the TE log, i will provide http://db.tt/jIjnaeHR

these logs are without the setting: leave wifi on when screen off if: there is a connection (activ IP) (take a look at the screenshot former posts)
[Android Apps and Games] p107r0:
Is there any way to hide the app from notifications panel?

Haven't found it anywhere in the settings.
[Android Apps and Games] chamonix:
Sure: under android settings - apps if you are running JB
[Android Apps and Games] p107r0:
I feel stupid. ..
[Android Apps and Games] chamonix:
No need. It s pretty unlogical that foreground services force a notification that can not be removed from within the app but can be turned off by the app settings
[Android Apps and Games] Mr.AFK:
Dear Sven, did you find something in my provided logfiles? (wifi doesn't turn off)? #953
[Android Apps and Games] Emre9110:
I am using this app but my english is not very good. I want to download a movie but when screen off (after 30 second) wifi will turning off. How can avoid of that ? I don't wanna have corrupt file.From section "Leave wifi on when screen is off" should i tick only if connected or if wakelock is held or if network activity ?
[Android Apps and Games] Thomas_BA:
Well folks i am happy user since quiet a time of the donate version, but lately i have a problem.

I had to change the name of my home router and named it "-Thomas_Home-".

I set BWO to leave Wifi on (in case the screen is off) when connected to a white-listed SSID. My home router is white listed but i get sometimes the message in the log that the access point is not white listed and so BWO disconnects Wifi.

Sometimes it works sometimes not. More sometimes it says Acces Point is whitelisted leaving Wifi on, but when i turn the screen on, no Wifi connection. Strange

Does BWO perhaps have problems with the the "_" and "-" in my routers name? Never had this before.
[Android Apps and Games] Thomas_BA:
There also some unlogical in the log, not a big deal but worth mentioning it.

- Acess point xxx is whitelisted: leaving wifi on

- Scheduling Wifi to be turned off in 900 sec.

- Screen was unlocked

- Turning Wifi on

But Wifi was still on before the screen was unlocked, so no need to turn it on ;)

Just a minor log bug nothing else, but perhaps some time you can fix that.
[Android Apps and Games] chamonix:
I checked the code but did not see anything that could explain a problem with _ or -

Could you please send me a log cat so I can look at the details of the whitelist check?

As a sidenote: sometimes my router need more than 30 seconds to grant my phone a DHCP token. In those cases I get the message logged, that no connection could be established.
[Android Apps and Games] chamonix:
Sorry but I had to cut down on my hobby due to a high workload after the vacations. I will look at the logs this week end
[Android Apps and Games] Thomas_BA:
I will do so when i am at home.
[Android Apps and Games] Thomas_BA:
Here we go. Log says my access point is white listed, but when waking up the screen wifi was of, at least I did not see the wifi symbol in the notification bar.

Log: http://db.tt/3R6lDRCi

Send from my Mars Rover! Don't know how to get back to earth!
[Android Apps and Games] ojessie:
Hi Sven,

how is your workload doing? Got time again for your hobby? ;)

Just having a question .. love this app ... will buy it ... and the question is to you intent to further develop this app in the way that it could become a kind of Sony's Stamina mod?

This would be great!

Best regards
[Android Apps and Games] chamonix:
My workload is still heavy but I am working on that.

Of course there are some ideas for improving bwof (see github) but my philosophy is to write apps that do one thing well. Stamina has many interesting aspects regarding to Alarms that I do not plan to implement in bwof because this app focuses on wifi. Greenify does a great job at suppressing Alarms already so ai suggest looking at that great app.
[Android Apps and Games] ImmortalTekkers:
Thanks for this, I'll give it a try, hopefully it saves battery.
[Android Apps and Games] chamonix:
Sorry, it took me a while but I was able to use the time that I had planned for making fixes in BBS due to 4.3 as there were no issues with the new android release.

From what the log says BWOF works as designed:

07-18 22:47:43.628 D/BetterWifiOnOff.WifiOffAlarmReceiver(14874): Alarm received: preparing to turn Wifi off
07-18 22:47:43.854 D/BetterWifiOnOff.WifiOffAlarmReceiver(14874): Checking if in call
07-18 22:47:43.854 D/BetterWifiOnOff.WifiOffAlarmReceiver(14874): Checking if tethering is active
07-18 22:47:43.862 I/BetterWifiOnOff.WifiOffAlarmReceiver(14874): No tethering detected
07-18 22:47:43.885 I/BetterWifiOnOff.WifiOffAlarmReceiver(14874): Checking against SSID whitelist: -Thomas_Home-,HG520s
07-18 22:47:43.885 I/BetterWifiOnOff.WifiControl(14874): Whitelist check: ssid: '-Thomas_Home-', whitelist: '-Thomas_Home-,HG520s', result: true
07-18 22:47:43.885 I/BetterWifiOnOff.WifiOffAlarmReceiver(14874): Access point is whitelisted, leave wifi on
[Android Apps and Games] Thomas_BA:
Well it happened again.

I attache you a screen-shot and the corresponding log. In the SS you see that BWO says after 900 sec that the access point is not white-listed. Before that it says it is white listed.
[Android Apps and Games] chamonix:
Unfortunately the interesting part of the log (23:15) is not part of the logcat (starts after 01:00)
[Android Apps and Games] Thomas_BA:
Ok lets try it again. Screenshot and log - Look at line 96

Here the interesting part:

07-28 18:09:39.827 I/BetterWifiOnOff.WifiControl(10869): Whitelist check: ssid: 'ThomasMartin', whitelist: 'HG520s,ThomasMartin', result: true
07-28 18:09:39.827 I/BetterWifiOnOff.WifiOffAlarmReceiver(10869): Access point is whitelisted, leave wifi on
07-28 18:09:39.851 I/BetterWifiOnOff.SetWifiStateService(10869): scheduleOffAlarm called
07-28 18:24:39.898 D/BetterWifiOnOff.WifiOffAlarmReceiver(10869): Alarm received: preparing to turn Wifi off
07-28 18:24:39.921 D/BetterWifiOnOff.WifiOffAlarmReceiver(10869): Checking if in call
07-28 18:24:39.921 D/BetterWifiOnOff.WifiOffAlarmReceiver(10869): Checking if tethering is active
07-28 18:24:39.929 I/BetterWifiOnOff.WifiOffAlarmReceiver(10869): No tethering detected
07-28 18:24:39.952 I/BetterWifiOnOff.WifiOffAlarmReceiver(10869): Checking against SSID whitelist: HG520s,ThomasMartin
07-28 18:24:39.952 I/BetterWifiOnOff.WifiControl(10869): Whitelist check: ssid: '', whitelist: 'HG520s,ThomasMartin', result: true
07-28 18:24:39.952 D/BetterWifiOnOff.WifiOffAlarmReceiver(10869): Access Point not whitelisted: turning Wifi off
[Android Apps and Games] chamonix:
Interesting and puzzling indeed. Time for some more code reading