yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] tisazalay:
Hi, I'm trying 2.1 on temaseks cm10.2, and found two issues, first is that the disable bwof when user turns off wifi doesn't seem to work because when I manually toggle it off, bwof turns it back on.

The second issue is (probably cm fault) that when I run it as service, and go to manage apps and disable notifications for bwof, the icon is still shown...

Another thing but that happened in stock also is that turning wifi on won't catch until the screen is turned on, so for example I turn on wifi on a schedule with the screen off, it won't connect until the screen is switched on and I won't receive notifications during that period, that's regardless of the advanced wifi settings (which I have to keep on with screen off)

My dream scenario would be able to turn on wifi for a minute and then 10 off with screen off and leaving data off during that period but only at a certain place. Then when not in that place turn wifi off completely and switch data on for a minute and off for ten with screen off. And leave wifi or data running all the time with screen on. Still need to find that app ;)
[Android Apps and Games] munkeeman:
Add Process?

I have BWOF set to not turn WiFi off if a whitelisted app is running. I can confirm that BWOF does not turn WiFi off if Feedly, for example, is running. However, I am unable to keep BWOF from turning WiFi off if Google Play Music is running.

I have tried to investigate why this may happen and I think it has something to do with the process name(s) BWOF uses to determine whether a certain process is running, for example, when Feedly is running, BWOF indicates that "app is whitelisted (com.devhd.feedly): leaving WiFi on" whereas Google Play Music is not interrupting the WiFi off process - I think this is because the process that is actually running is com.google.android.music:main - I think the "main" part of the process name may be causing BWOF to not function properly.

Is there a solution to this?
[Android Apps and Games] chamonix:
Process names and states are indeed part of the detection. Could you please post a logcat showing the part where gmusic was running and wifi was turned off? Based on that I can try to tune the algorithm
[Android Apps and Games] munkeeman:
Here is my logcat - hopefully it helps. This is an awesome app, by the way.
[Android Apps and Games] mbze430:
Ok, so I been trying this app for a day. I originally was using app like GreenPower Premium.... but it manages BOTH WIFI and Mobile Data .....so here is my question.

This app supposed to save battery, correct? Now wouldn't I get more battery saved if the Mobile Data is also turned off during screen off? (ie WIFI OFF + Mobile Data off) As you said in the OP. WIFI uses less power than 3G/LTE. But during screen off, WIFI is off, but isn't Mobile Data LTE/4G/3G still on? In return, apps looking for data connection will now be using LTE/4G/3G route?

Or the user of this app is expected to manually turn on/off Mobile Data?
[Android Apps and Games] chamonix:
Well it is a matter of how you use your phone and about your expectations of a smartphone I guess.

I may consider this together with another request to turn data to 2G when phone is off or in another app to control data. Personally I want my phone to stay always on but a use case for me would be turn off data when the connection becomes really bad, eg in a fast train.
[Android Apps and Games] mbze430:
Oh +2 to 2G Data. That would be awesome. Specially since you don't need super fast data doing Sync. And it uses less power.
[Android Apps and Games] patsmike:
Hi Chamonix,

With a fresh install of bwof (and all app data cleared), the option to "enable/disable processing when turning WiFi on/off" is not working in android 4.3

Bwof does not recognize that WiFi state is changing.

Edit: maybe because of the changes to WiFi in 4.3? Eg. There is an option for WiFi to stay on all the time for location services. I tries turning this setting off but "processing on/off with WiFi on/off" still doesn't work
[Android Apps and Games] Edwrib:
Keep WiFi always on just let the WiFi on, but they go to low power state when screen is of. If a service hold the WiFilock, they keep running at full speed.

I use FolderSync while I sleep, if I turn off screen, they drop transfer speed to 300kbps, If I let any app that hold a wifilock, they transfer at 2mbps.

That difference is clearly seen from the router WiFi led, right after I turn screen off, the led blink slowly, when I turn on they speed up again, I open unified remote, hit home button and turn off the screen, the led keep blinking fast and transfer don't speed down.
[Android Apps and Games] chamonix:
I have sorted out the inconsistencies that I had found (for the java/android devs in the room, the difference between the context and the application context) and am now able to consitently hold Wifilocks, as well full as pull power.

I still have a few things to do in terms of automation but this should be streight forward. I'm looking forward to seing your conclusions/observation of those two types of Wifilocks in terms of throughput.
[Android Apps and Games] chamonix:
Whitelist will be my next. My job is killing me but I hope to find some spare time over the week end to make some progress (basics are already implemented, I just need to build a custom preference dialog to edit the whitelist)
[Android Apps and Games] chamonix:
https://github.com/asksven/BetterWifiOnOff/issues/15

Thanks for the constructive feedback. The options "screen on" and "screen unlocked" are implemented as a toggle but I'll try to be clearer about their meaning. "On screen unlocked" is the better choice (if you have a lockscreen) as e.g. wakeup notifications would not lead Wifi to be turned on.

I will try a different grouping and some more precise explanations for the next version to make the prefs more self explanatory.

I don't have any problems with my TF101 but I guess if the features are all right the function should be too

https://github.com/asksven/BetterWifiOnOff/issues/16

See the details above, I recon the prefs need to be more self speaking and I will make some changes in the next discussion for further discussion

Thanks for the flowers.

Well I deliberately chose not to add anything to my sig like other projects, devices, ROMs etc. because I like minimalism. It is not important for me to let people know that I am the author of X or Y, either the tools are appreciated because they are good or not. The same I prefer that people judge what I write because of the content and not because I am the author of any tool. Maybe a little old school: that suits my age ;)
[Android Apps and Games] mamouton:
I want to chime and say that it is working great for me. Battery life is great I notice when playing Pandora it stop playing when screen went off but Jango kept playing with screen on or off. Interesting when I have a weak connection and using the phone it the app will shut down my wifi.

2012-08-07 17:44:48 cancelWifiConnectedAlarm

2012-08-07 18:03:52 Received Broadcast ACTION_SCREEN_ON

2012-08-07 18:03:52 cancelAlarm

2012-08-07 18:03:52 scheduleWifiConnectedAlarm called

2012-08-07 18:04:02 Received Broadcast ACTION_USER_PRESENT

2012-08-07 18:04:02 cancelAlarm

2012-08-07 18:04:02 scheduleWifiConnectedAlarm called

2012-08-07 18:04:33 Received Broadcast ACTION_SCREEN_OFF

2012-08-07 18:04:33 scheduleOffAlarm called

2012-08-07 18:04:33 cancelAlarm

2012-08-07 18:05:03 cancelWifiConnectedAlarm

2012-08-07 18:05:45 Received Broadcast ACTION_SCREEN_ON

2012-08-07 18:05:45 cancelAlarm

2012-08-07 18:05:45 scheduleWifiConnectedAlarm called

2012-08-07 18:06:00 Received Broadcast ACTION_SCREEN_OFF

2012-08-07 18:06:00 scheduleOffAlarm called

2012-08-07 18:06:00 cancelAlarm

2012-08-07 18:06:30 cancelWifiConnectedAlarm

2012-08-07 18:07:23 Received Broadcast ACTION_SCREEN_ON

2012-08-07 18:07:23 cancelAlarm

2012-08-07 18:07:23 scheduleWifiConnectedAlarm called

2012-08-07 18:07:35 Received Broadcast ACTION_USER_PRESENT

2012-08-07 18:07:35 cancelAlarm

2012-08-07 18:07:35 scheduleWifiConnectedAlarm called

2012-08-07 18:08:02 Received Broadcast ACTION_SCREEN_OFF

2012-08-07 18:08:02 scheduleOffAlarm called

2012-08-07 18:08:02 cancelAlarm

2012-08-07 18:08:04 Received Broadcast ACTION_SCREEN_ON

2012-08-07 18:08:19 Received Broadcast ACTION_SCREEN_OFF

2012-08-07 18:08:19 scheduleOffAlarm called

2012-08-07 18:08:19 cancelAlarm

2012-08-07 18:08:49 cancelWifiConnectedAlarm

2012-08-07 18:09:03 Received Broadcast ACTION_SCREEN_ON

2012-08-07 18:09:03 cancelAlarm

2012-08-07 18:09:03 scheduleWifiConnectedAlarm called

2012-08-07 18:09:10 Received Broadcast ACTION_USER_PRESENT

2012-08-07 18:09:10 cancelAlarm

2012-08-07 18:09:10 scheduleWifiConnectedAlarm called

2012-08-07 18:09:36 Received Broadcast ACTION_SCREEN_OFF

2012-08-07 18:09:36 scheduleOffAlarm called

2012-08-07 18:09:36 cancelAlarm

2012-08-07 18:09:41 Received Broadcast ACTION_SCREEN_ON

2012-08-07 18:10:06 cancelWifiConnectedAlarm

2012-08-07 18:11:00 Received Broadcast ACTION_SCREEN_OFF

2012-08-07 18:11:00 scheduleOffAlarm called

2012-08-07 18:11:00 cancelAlarm

2012-08-07 18:11:01 Received Broadcast ACTION_SCREEN_ON

2012-08-07 18:11:31 cancelWifiConnectedAlarm
[Android Apps and Games] MrElvey:
What app is that? For my needs it sounds very useful!:cool:

(I did look, and found WiSync (Wifi Monitor is the relevant feature) but reviews suggest it's so buggy I thought I'd ask.)
[Android Apps and Games] chamonix:
That's pretty OT but an intersting feature: https://github.com/asksven/BetterWifiOnOff/issues/18
[Android Apps and Games] chamonix:
Testing v0.4 with Wifilock (permanent and when plugged) and whitelisted access points. Stay tuned
[Android Apps and Games] Impulses:
https://play.google.com/store/apps/details?id=com.schwimmer.android.wifistatus&hl=en

---------- Post added at 03:19 PM ---------- Previous post was at 03:17 PM ----------

I've had one force close of Better Wifi and one or two instances where it kept turning Wifi off the second I turned it on manually... Has worked well overall but it seems a touch unstable on my tablet.
[Android Apps and Games] chamonix:
Could you please grab a logcat next time it happens?
[Android Apps and Games] urthling:
Don't think this was covered in any previous post. Is there a way, if WiFi is Off, to turn it on periodically to check for a known WiFi network to connect to?
[Android Apps and Games] patsmike:
I am so excited for this release. Exactly the feature I was hoping you would implement a while back :)
[Android Apps and Games] patsmike:
Oops I think I've got a bug on 0.3.1. I manually turned the screen off, and then turned back on in a few seconds, before wifi had shut off. Wifi was still on immediately after turning the screen on, but it turned off completely after a few seconds. I can replicate this easily. Log attached.

---------- Post added at 10:29 PM ---------- Previous post was at 10:24 PM ----------

Having trouble attaching a log. Here are the last few lines:

2012-08-09 22:16:53 Received Broadcast ACTION_SCREEN_ON

2012-08-09 22:16:53 cancelAlarm

2012-08-09 22:17:02 Received Broadcast ACTION_USER_PRESENT

2012-08-09 22:17:08 Received Broadcast ACTION_SCREEN_OFF

2012-08-09 22:17:08 scheduleOffAlarm called

2012-08-09 22:17:08 cancelAlarm

2012-08-09 22:17:16 Received Broadcast ACTION_SCREEN_ON

2012-08-09 22:17:17 Received Broadcast ACTION_USER_PRESENT

2012-08-09 22:17:19 cancelWifiConnectedAlarm

Update: this only happens when the "wifi on when screen on" option is used, but everything works when the "wifi on after unlock" option is chosen
[Android Apps and Games] cricketAC:
I know it's only wifi on off app but can you implement if screen on and white listEd AP connection fail, it turn on 3g data. Would save a hassle by turning it on/off manually

Sent from my LG-P999
[Android Apps and Games] chamonix:
Why would you turn off 3g when you turn on Wifi?
[Android Apps and Games] chamonix:
It would be cool if you could try to reproduce that in upcoming 0.4. I have tried after switching to "wifi on screen on" and couldn't reproduce.
[Android Apps and Games] jazzboyrules:
I use Llama for mobile data and wifi management. You can set wifi status based conditions in Llama to control mobile data as you need. It works flawlessly without any extra battery drain.
[Android Apps and Games] patsmike:
Yup, it still happens. Here is the log that the app is giving me:

16:07:37 U/Screen was turned off

16:07:37 C/Scheduling Wifi to be turned off in 10 seconds

16:07:38 U/Screen was turned on

16:07:38 S/Wifi is already on: nothing to do

16:07:40 U/Screen was unlocked

16:07:47 C/Timeout to turn Wifi off reached, turning Wifi off

It looks like the timer for the wifi to turn off is not stopping even if the screen is turned back on. Maybe you didn't notice it if you had a 30 sec timeout since that is quite long and you probably turned the phone off before it even reached the end?
[Android Apps and Games] chamonix:
Edit: nvm, I found it. Fix will be up soon

Could you provide a logcat. The log looks like the alarm set when turning screen off is the problem (16:07:47 C/Timeout to turn Wifi off reached, turning Wifi off). Now that is of course not supposed to happen (this alarm should be canceled when screen goes on/is unlocked.

I will check the code in between and let you know if I find something
[Android Apps and Games] chamonix:
Sorry I missed that before, hotfix 0.4.0.1 is up fixing bug #20
[Android Apps and Games] Bovsh2:
BWOF

Work perfect on Nexus 7 2013 (Android 4.3), thank You. Little request - make please option to enable / disable app icon in systemtray.
[Android Apps and Games] chamonix:
That's on my list. You can follow the progress by tracking issue #131 on github
[Android Apps and Games] chamonix:
I will try to reproduce on my old n7 as I have not got the 2013 yet. Could you possibly send me a logcat?
[Android Apps and Games] patsmike:
Awesome thanks! That was a great feature and I didn't realize how useful it was until it wasn't working :)
[Android Apps and Games] chamonix:
Now this is interesting:

07-28 18:24:39.952 I/BetterWifiOnOff.WifiControl(10869): Whitelist check: ssid: '', whitelist: 'HG520s,ThomasMartin', result: true

At that point the connected SSID is blank (value returned by WifiManager.getConnectionInfo().getSSID()). How is your Wifi policy configured?
[Android Apps and Games] Yank555:
I've been experiencing an odd behaviour...

My WiFis at home have the following SSIDs :

YankeeHomeSD (2.4GHz AP)

YankeeHomeSD+ (2.4GHz Repeater)

YankeeHomeHD (5GHz AP)

All of those are whitelisted.

At my parent's I set WiFis up wi5h these SSIDs :

YankeeHome (2.4GHz AP)

YankeeHome+ (2.4GHz Repeater)

None of those is whitelisted.

Still, when at my parent's, connected to YankHome , it is handled as whitelisted ?!

I've attached a few screenshots and log.

JP.

Sent from my SlimBean 8 / Yank555.lu CM10.1 kernel v1.6f-beta9 (Linux 3.0.94) powered Galaxy S3 i9300
[Android Apps and Games] chamonix:
Good catch!

09-13 13:28:46.680 I/BetterWifiOnOff.WifiOffAlarmReceiver( 7499): Checking against SSID whitelist: YankeeHomeSD,YankeeHomeHD,YankeeHomeSD+
09-13 13:28:46.695 I/BetterWifiOnOff.WifiControl( 7499): Whitelist check: ssid: 'YankeeHome', whitelist: 'YankeeHomeSD,YankeeHomeHD,YankeeHomeSD+', result: true

caused by:

WifiManager wifiManager = (WifiManager) ctx.getSystemService(Context.WIFI_SERVICE);
String ssid = StringUtils.stripLeadingAndTrailingQuotes(wifiManager.getConnectionInfo().getSSID());
Log.i(TAG, "Whitelist check: ssid: '" + ssid + "', whitelist: '" + whiteList + "', result: " + (whiteList.indexOf(ssid) != -1));
return ((whiteList.indexOf(ssid) != -1) && (!ssid.equals("")));

For the non java reader: the check is positive if the current SSID is _contained_ in one of the whitelisted ones instead of _being_ one of the whitelisted ones.

Issue #133 created and comitted: https://github.com/asksven/BetterWifiOnOff/commit/534931422cc66f1a7518bf686deb7f49d5aec9df

I will group a few other issues and make a release soon
[Android Apps and Games] JeremyNSL:
I've recently upgraded my HTC One XL to Sense 5 via Viper XL 4.1. This is Android 4.2.2.

Now when I run this app, I just see a blank window when listing whitelisted SSIDs - there are no SSIDs listed and no checkboxes. Is this a known bug? I'm running the latest version on Google Play.
[Android Apps and Games] chamonix:
Is WLAN turned on when you open the whitelist? If yes please post a logcat as this would be a bug
[Android Apps and Games] JeremyNSL:
Yes, it's enabled. But I installed a different kernel, and the problem disappeared. So I can't get a logcat right now. If I reinstall that kernel later I will.

FYI the kernel with the issue is here:

http://xdaforums.com/showthread.php?t=2061577
[Android Apps and Games] Rashiel:
Good App ;)

May I have a question?

If the display is off.. How the messages will come in?

Gesendet von meinem Nexus 4 mit Tapatalk 2
[Android Apps and Games] chamonix:
What messages are you talking about?
[Android Apps and Games] Rashiel:
Every.. Like WhatsApp, Maildroid.. Or no chance that the wifi will check, even if the display is of?

Gesendet von meinem Nexus 4 mit Tapatalk 2
[Android Apps and Games] p107r0:
on Wi-Fi only devices (e.g. N5110) they won't, on the rest it depends on the data connection state: you keep it on - it works, you keep it off - it doesn't
[Android Apps and Games] chamonix:
if you tell BWOF to leave wifi off when screen is off then you can not expect wifi to be used. When Wifi is off you still have data though, or you can configure BWOF to wake up regularly and turn Wifi on for a while (that's all in the preferences)
[Android Apps and Games] Szczepanik:
BWOF should presumably will likely provide better protection against the issue that allows an attacker to execute arbitrary code on Android devices, mentioned here:

https://labs.mwrinfosecurity.com/bl...addjavascriptinterface-remote-code-execution/

Cheers

Tom

My Note 2 to you
[Android Apps and Games] chamonix:
The website is only used for showing files from the apk's asset directory (files I put there) so I don't see any risk as there is no attack vector by drive-by.

Still, thanks or the hint
[Android Apps and Games] Szczepanik:
Sven

Sorry if my post was misunderstood. BWOF does NOT have any risk from this sort of attack. What I said <http://en.wiktionary.org/wiki/should> is that BWOF should presumably will likely provide better protection.

BWOF provides better protection against the sort of attack because settings are when device is turned on Wifi stays on if: "network is connected" AND "the access point is whitelisted". By turning off connection to sites that are not whitelisted you reduce the risk. Apps that connect to any open access are riskier.

Hope this clarifies my comments. Let me know if you want me to edit them further.

Congratulations on reaching 100 pages for BWOF and keep up the great work.

Cheers

Tom
[Android Apps and Games] myszonokr:
Very good app, using it for long time already. I have a question can I set up it to switch off Wi-Fi when I am using certain apps? When I am watching movie on Mxplayer

I do not need Wi-Fi. I think it should have positive effect on battery. What do you think?

wytapatalkowane
[Android Apps and Games] chamonix:
Got it! Thanks for clarifying
[Android Apps and Games] mamouton:
nice app is there a way to make the icon transparent or hide it altogether?
[Android Apps and Games] Christiancs1969:
Untick in preferences keep app in for ground or go to app settings and Untick notifications
[Android Apps and Games] todivefor:
I have been running BWOF for sometime on my GS4 and it works just great. I was having battery problems on my Nexus 7 and thought maybe I could extend my battery life by installing BWOF. I am having problems with it as wifi never turns off. I think I have BWOF setup just like my GS4. I must be missing something simple. Ant ideas?
[Android Apps and Games] boobiestar:
Maybe because you whitelisted your AP. I think that is the reason for not turning wifi off.
[Android Apps and Games] todivefor:
I don't think so. I have to turn wifi off when screen is off.
[Android Apps and Games] boobiestar:
Look at 05.21.00 then you see I am right.

You also set turn wifi off when screen turns off (05.20.30), but whitelisting of AP override that. So give it a try and remove your AP from whitelist.
[Android Apps and Games] chamonix:
The log (screen) shows that Wifi is turned off when screen goes off so that is as it supposed to be. Could you please check your wifi and location advanced settings to make sure that the option to allow wifi to scan even when wifi is off is not turned on. That would be an explanation for wifi being shown as "on" all the time.
[Android Apps and Games] todivefor:
That was it. Thank you.
[Android Apps and Games] RovG:
Hi [MENTION=1330150]chamonix[/MENTION],

I recently upgraded to 2.1.0.0 from 2.1.0.0B2 and I have noticed that with my configuration, when I shutdown by using the power button and then selecting power off, BWOO is disabled and it is made to look like the user disabled BWOO. I, the user solemnly swear that I did not disable BWOO :D
[Android Apps and Games] AllSeeyinEye:
I think you downgraded by installing the beta...
[Android Apps and Games] chamonix:
I see the problem: when your device is shut down it turns off wifi before booting. As you have set bwof to react of wifi on/off actions from outside of the app bwof believes you did that and disables as designed. This behavior can not be reproduced on all devices as the reboot sequence is not always the same. Normally apps (bwof) would be turned off before the lower layers (wifi) are shut down so bwof wouldn't notice). I will need to think about how to detect that. In the meantime the only workaround I can think off is to disable enabling/Disabling bwof on user actions
[Android Apps and Games] interloperz:
Thanks :good:
[Android Apps and Games] Jolest:
If the on/off occurs close enough to phone/tablet shutdown, you should be able to simply ignore it...
[Android Apps and Games] chamonix:
That would be my plan assuming I find a way to detect that the phone is rebooting. I have found this that may help: http://stackoverflow.com/questions/10448304/handling-phone-shutdown-event-in-android

Issue #135
[Android Apps and Games] testrider:
Sorry for the dumb question: how do I enter SSID for the whilelist? I click on 'SSID Whitelist' and the entry was 'Whitelist' and I couldn't enter anything?

---------- Post added at 10:29 AM ---------- Previous post was at 10:27 AM ----------

Nevermind. Now when I click on it, my home SSID showed up. Not sure why it didn't before...
[Android Apps and Games] RovG:
How do I:

1. reset the cell ID locations to factory defaults. Purging the location log or deleting the tags does not dissassociate the remembered CID/tags.

2. see a list of CIDS and associated tags. I.e not the log. I want to see what tags I have associated to what CID's.

Observations:

1. If BWOO is blocked with a firewall (AFWALL+) there is a CONN REFUSED in the logcat but it is not reflected in BWOO's on screen log.

2. If Wifi disconnects or disappears for some reason (wlan ctrl reset) BWOO does not detect or respond to those broadcast messages.
[Android Apps and Games] testrider:
I like to have BWOO turned on Wifi every 15 minutes, then turn it off, when my phone is unplugged and screen off.

I set everything up and I saw that it turned it on after 15 minutes, but it never turned it off again. It just kept

turning it on every 15 minutes.

What do I need to set to have BWOO turn off Wifi after turning it on?

Thanks.

---------- Post added at 05:39 PM ---------- Previous post was at 04:55 PM ----------

weaverinva, how do you use BWOO to wake up every 15 min for 30 sec then turn wifi off?

I like to do the same, I had it turn on every 15 min but it never turn it off again.
[Android Apps and Games] chamonix:
Could you please post a logcat? We need to look into what decision to lead to wifi staying on