yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] testrider:
Hi, thanks for the reply. Attached is the log. The test was run by turning off the phone and let it do its things.

This is a Galaxy Note 2, rooted, running stock JB 4.1.2.

- I set it to check every 5 min. What I expected was for it to turn on Wifi every 5 min then turned it off after 30 sec, as I did not set anything in "on when screen off". But here, you can see that:

@13.45.13: scheduled to turn off in 30 sec (as expected)

@13.45.44: access point motobird is whitelisted: leaving wifi on (not expected. I expected it to turn it off as I did not ask it to leave it on)

During all this time, the screen was off.

thank you for any advise.

-mike-
[Android Apps and Games] testrider:
Can anybody help please?
[Android Apps and Games] chamonix:
I seems indeed that when screen is off BWOF still uses the rule to leave wifi on when connected to a whitelisted wifi, using the settings:

2013-11-19 13:59:42 wifi_on_if_whitelisted = true (Boolean)

instead of respecting the settings

2013-11-19 13:59:42 wifi_on_when_screen_off_but_whitelisted = false (Boolean)

I have added an issue so that you can track the progress.
[Android Apps and Games] jhuff83:
I'm getting the Cid being -1 now. Did you ever find out what causes this?
[Android Apps and Games] testrider:
Thank you so much. I thought it was something I didn't set right. Appreciate it.
[Android Apps and Games] chamonix:
Yes, CID can be -1 if the tower/network does not return proper info. In that case BWOF should behave optimistically instead of pessimistically. I added issue #137 for that to be fixed
[Android Apps and Games] vsa:
autostart

Hi Chamonix,

great app. :good: thanks for that. It works fine, but it never starts as a service after a reboot. Settings for foreground and Boot are enabled. :crying:

(Galaxy Note 2, 4.1.2 Stock Rom rooted)

vsa
[Android Apps and Games] chamonix:
COuld you please send me a logcat of the boot sequence. Mine starts all fine so I can't reporduce but based on your logcat I should be able to tell what's wrong
[Android Apps and Games] jhuff83:
OK, I know I didn't have this problem until recently and even before I was connecting to 4g. The issue I have is that cid always says -1. When I tagged -1 as home and use location based, wife always turns on. Kind of defeats the purpose of having the app right now. Only thing I did recently was flash an updated version of my rom. I have done the prl update and profile update but it still does not fix my issue. I even reverted back to an older version but still having same issue with cid throwing up -1
[Android Apps and Games] chamonix:
Your problem seems to be related to a broken radio as it seems that your cell location is completely broken. I recommend that you check your device thread for separate available radio modules
[Android Apps and Games] vsa:
Autostart

Hello Chamonix,

thank you for your quick replay.

I ziped the logcat, because I think it is a little long...

Thanks, vsa
[Android Apps and Games] jhuff83:
I reflashed radio and I get cell service and 4G just fine. I also powered phone down, pulled battery, updated profile, and updated prl. All still reporting -1 for cell ID. I don't think the radio is broken though.
[Android Apps and Games] jhuff83:
Am I missing the setting where you can leave wifi off if connected as a hotspot. Could have swore that was an option in the program.
[Android Apps and Games] chamonix:
if tethering bwof will never control wifi. It used to be a setting UT it was removed because it made no sense.
[Android Apps and Games] jhuff83:
Ah, ok. Reason I ask is because when I turn hotspot on and screen goes off, I get a popup saying hotspot will be disabled if I unlock the screen due to wifi trying to turn on. I have to cancel it to keep hotspot running.
[Android Apps and Games] RovG:
[MENTION=1330150]chamonix[/MENTION], log files for point 2 above may be found here https://www.dropbox.com/s/4ihfaobnphhp442/BWOOF.zip
[Android Apps and Games] jhuff83:
I think there should be an application blacklist for rules for leaving wifi off.
[Android Apps and Games] chamonix:
Could you elaborate on that? how should bwof behave depending on phone state and that blacklist?
[Android Apps and Games] jhuff83:
If an application is active, then bwof would remain off. Basically same as the white list to leave wifi on. So I can prevent pop-ups like this from happening after screen is unlocked with hotspot on.
[Android Apps and Games] patsmike:
Anyone who has 4.4.2 running notice that now it takes a while for WiFi to connect after waking? Like WiFi turns on but doesn't connect.
[Android Apps and Games] rogers11:
No, anything is as fine as before.
[Android Apps and Games] patsmike:
Thanks, must be something with my router, etc then. The phone just sits there after turning WiFi on and takes maybe 10 seconds to connect
[Android Apps and Games] ogilviea:
I've been using BWOF successfully for several months on Jelly Bean, but am seeing a problem since I moved to KitKat, where it sometimes seems to stop responding to screen actions, SSID changes, etc. The latest log is here:

https://www.dropbox.com/s/auqut7r14hpf1gy/betterwifionoff-2013-12-18_153850518.txt.zip

Edit: Found the problem! KitKat's location settings were keeping wifi on. Switching to "Device only" (i.e. GPS) fixes the problem.
[Android Apps and Games] Hi_Hat:
Hi!

I think that there is a bug in BWOF processing logic after unrealized WiFi off due to active connection detected. After that WiFi never be switched off.
[Android Apps and Games] chamonix:
Can you please post a log with some info about the times, actions and what you would expect that does not happen?
[Android Apps and Games] Hi_Hat:
Please see at the attached screenshot.

WiFi not switched off number of times after network activity was detected once.
[Android Apps and Games] chamonix:
Thanks. Now I just need to know your settings. Without that info I can not analyse
[Android Apps and Games] Hi_Hat:
Settings
[Android Apps and Games] patsmike:
delete
[Android Apps and Games] patsmike:
Just like the poster above (ogilviea), I'm also having issues with bwof not responding to screen actions in 4.4.2. For example, I will turn off the screen and turn the phone back on, but bwof will have no log of it and just keeps WiFi on. For example, in the dropbox screenshot, it shows that my phone's screen was on from 21:00, up until 22:45, but that was definitely not the case, it was off until i turned it on around 22:40. This happens sporadically.

https://www.dropbox.com/s/hfl9s3yl1wtcoax/2014-01-16 03.50.59.png

Running 4.4.2 stock on N5
[Android Apps and Games] poo706:
All of a sudden, it seems that BWOF often can't see the name of the wifi network I'm connected to. It's reporting "Access point is not whitelisted". This is while it's connected to a whitelisted network, so it's turning off wifi when it shouldn't. Don't believe I've ever seen this behavior out of it before. Running Vanir 4.4.2 on a Sprint Galaxy Nexus.

[poo]

Edit: Nevermind, looks like it was a conflict with another app. I had that app set to not control wifi, but its settings got reset somehow.
[Android Apps and Games] Kocane:
Does the service really need to use ~71mb ram :/?

EDIT: Uhm, yeah, nvm... after a reboot it stays on 4,2mb even if having done the "switching off/on" process. What happened before, with the 71MB ram usage?

EDIT2: After a day use, the process now idles at 31mb....
[Android Apps and Games] TheGovernment:
Hello chamonix!

Great app and i bought the full version because i used it daily. I have one feature request though - Blacklist app feature, where i (and the other users ofcourse) can choose to shut down wifi while chosen applications are running in foreground.

Eg. When i play a game, i dont want wifi on because along with my game my battery will most certainly decrease more. So that's why i ask for blacklist feature.

Hope you will take this into consideration

Thanks for a wonderful app!
[Android Apps and Games] chamonix:
That is an interesting use case and I will definitely look into how to detect foreground apps and act accordingly. added issue #138
[Android Apps and Games] TheGovernment:
That's all i wanted.

Thank you!
[Android Apps and Games] htc_touch_cruise:
SSID Whitelist

At Expert mode I have SSID Whitelist - few SSIDs.

I checked some of them and click OK.

After exiting then entering the list again, sometimes chosen, checked SSIDs are still checked, sometimes not.

Is there any hidden save button or something similar, to have checked options saved?

Have to say that this is the most complete WiFi manager for Android existing.

ZTE Grand X In

Android ICS 4.0.4

Better WiFi 2.1
[Android Apps and Games] chamonix:
This shouldn't happen and I guess that's a bug. Do you remember if you hit home or back when this happened?
[Android Apps and Games] htc_touch_cruise:
Thanks for reply.

On the screen where is the list of remembered SSIDs (names) I did choose some by checking boxes, and then click OK (in that dialog box there are Cancel and OK buttons). After that - I was automatically back at the Expert mode. Then I clicked SSID Whitelist option again - chosen / checked options are toggled. Now, after few attempts I can see that:

- sometimes everything is okay - it looks it remembers checked SSIDs;

- sometimes all checkboxes are off - unchecked;

- sometimes checkboxes were toggled so those which I checked are after opening SSID Whitelist again, those areoff, and others, which were unchecked are on.

Looks like some random behaviour.

So I am not exiting the application, not going to home screen or back.
[Android Apps and Games] htc_touch_cruise:
More details:

When I press OK in SSID Whitelist dialog box, then I returned to Expert mode, then when I press back, to Android OS. It seems that the application saves the new SSID Whitelist.

The problem seems to be related to checkbox issue when checking different SSIDs checkboxes, pressing OK, going to Expert mode than immediately (without going back to Android OS) start SSID Whitelist option from Expert options again.
[Android Apps and Games] mookan:
chamonix, please make it so that if a tag (in cell log) is removed all tagged cell towers for that tag are cleared.

Right now it still remembers them and turns wifi on even if there is no such in the tag list and you have to open the cell log and tap every tagged cell tower id and tap "Save" without having any other tag checked.
[Android Apps and Games] promeneur:
[enhancement] near special wifi network,wifi activated permanently

my isp offers to use its rtc network via sip , wifi and internet

this simplifies how i call a person .

with my smartphone android i activate sip call

then

when i want to call a person i select the person in the address book

then i tap on the phone icon

then android asks for me if i want to use mobile (gsm) network or internet (then rtc) network

this simplifies also the devices : one smartphone instead of 1 smartphone and 2 dect phones

there is no more pb to synchronize address books

i need for this that if i am at home smartphone wifi is permanently activate to receive calls

and when i am far from my home betterwifionoff does its job to save energy

+

same feature if in the street i am near or far from wifi network of my isp (my isp supplies wifi network in the street)

ssid of wifi network at home and ssid of wifi network in the street are not the same .

thanks for all
[Android Apps and Games] htc_touch_cruise:
Really not easy. It looks that there are lot of issues.

I have ZTE Grand X In (ICS 4.0.4) and Huawei Ascend Y300 (Jelly Bean 4.1).

Problems with battery drain related to ZTE Grand X In. Very interesting, the Huawei Ascend Y300 is much, much better compared to ZTE Grand X In. In fact, if WiFi is turned on in any occasion it will not drain battery on Y300, even if there will be Access Point with "access" but no proper connection to the network, for example Google DNS service.

On ZTE Grand X In, if WiFi is on, on the exactly same locations, with same position of the phone, same basic configuration (screen autorotate, sound off, GPS off, minimal screen light, phone mostly off, screen locked), it has battery drain five (!) times more than Huawei.

Simply it seems that the Huawei Y300 has much better configuration, or JB is much better organized / optimized than ICSfor different situations.

Checked build.prop, Y300 has ~12KB and Grand X In has ~3KB. It simply is not comparable.

I cannot be sure if all build.prop settings may be used from JB for ICS.

I am emphasizing that the Y300 is few weeks older than Grand X In, so that may not be the issue. Different processors inside, but that also may not be huge issue - again, under same circumstances, 5 times faster battery drain on the ZTE Grand X In. With screen off 95%+ and mostly - 95%+ on sleep mode.

The application Better WiFi on / off seems to be good, it slows down battery drain, but in this case the difference in battery drain is simply too big. I tried more possible tweaks using Better WiFi on / off, many combinations. Manage to get some success and this was good.

This simply is not an easy issue, it may be really complicated and - big challenge.
[Android Apps and Games] jhuff83:
What if cid is showing 0? This is on a Galaxy s 5. I had my buddy try it out on his galaxy s 5 and he is showing a zero too
[Android Apps and Games] chamonix:
If I believe this article cid 0 is not for phones to connect to

http://en.m.wikipedia.org/wiki/Cell_ID

Even if this is a potential implementation fault of the ril I will handle it the same as cid -1 (issue #137)
[Android Apps and Games] jhuff83:
Maybe since the phone is on the new triband for Sprint, that is why it's reporting a 0. However, when I downloaded a cell id application from google play, it does not give a 0.
[Android Apps and Games] Thomas_BA:
Still under development?
[Android Apps and Games] Christiancs1969:
Of course ..why wouldnt it be....
[Android Apps and Games] chamonix:
Sure it is. I am focusing on BBS right now but will make a release once done
[Android Apps and Games] ojessie:
Thanks appreciate running the bought version and happy with it
[Android Apps and Games] RovG:
Hi [MENTION=1330150]chamonix[/MENTION], you may have missed my previous posts, please will you give it some consideration.
[Android Apps and Games] chamonix:
I indeed missed it, thanks for drawing my attention to it.

to your questions:

1. right now the only way to dissociate the cell ids from the tags would be to delete the database (/data/data/com.asksven.betterwifionoff/databases/betterwifionoff_cellinfo)

2. there is no in-app way but you could try to select the database (above) and reading the table "cells" (see here for the structure: https://github.com/asksven/BetterWi...sksven/betterwifionoff/data/CellDBHelper.java)

3. added issues #140 and #141
[Android Apps and Games] baxtex:
Is there a way to make the phone connect to wifi for, let's say 3 minutes at an specified value (let's say once every hour or something) to receive mail and stuff?
[Android Apps and Games] Pkt_Lnt:
Yes, the "Timed Checks", you might have to enable Expert Mode to see it.
[Android Apps and Games] baxtex:
Yeah but: "WEake-up the phone at a given freq to check if a wifi connection could be established"

So if the phone is sleeping it will check let's say every 30 minute if there is a connection. If there is, will it connect and then disconnect again? Beacuse the whole purpose with the app is to keep wifi off when screen is off. If it finds a wifi network and connect, it will stay connected all the time?...
[Android Apps and Games] Pkt_Lnt:
You control it with the other settings, based on the conditions you choose. The Timed Checks give a wakeup based on time rather than the other options. I use BWOF for far more than keeping wifi off when my screen is off since I need it to keep alive at home since this becomes my voip phone, and some wifi I want to stay connected and some I want never to connect. This app is way more powerful than you know.
[Android Apps and Games] RovG:
Caged Detection/Walled Garden/captive Portal

[MENTION=1330150]chamonix[/MENTION]

Just some info that I wanted to share with you:

http://stackoverflow.com/questions/...ted-internet-access-captive-portal-detection

http://wifiweblogin.syslynx.co.uk/2013/12/samsung-43-compatibility.html?m=1

http://xdaforums.com/showthread.php?p=45896624

http://xdaforums.com/showthread.php?t=2862509

If people block access to clients3.google.com, how will caged detection be affected?
[Android Apps and Games] chamonix:
as bwof uses the generate_204 trick it will cause the detection to believe that wifi is caged. I understand this is a problem and will have a look at alternatives. Re-implementing generate_204 on my own more neutral domain may be a valid option in that case as it is run at a highly available hoster.

#143 added
[Android Apps and Games] Lotus 7even:
Ram fluctuation

Phone: Moto G (2nd gen)

Android: 4.4.4

App: 2.1.0.0

Hi, i would first like to sincerely thank you for developing this excellent app. I have found no other wifi app that even comes close in terms of functionality and wifi control. My wifi is now on when i want it on and off when I want it off. Brilliant.

I have found no issues but I do have a query regarding ram usage. With the app screen closed, If I check ram usage in android settings, bwfoo displays around 3.7 MB ram usage. However if I open the app then ram usage shoots up to around 40 - 44 MB. When i remove the app from the multi-tasking list the ram returns to around 3.7 MB.

Is this normal?

Thanks
[Android Apps and Games] chamonix:
the cause could be a large event log. does clearing it (from the menu on the main screen) reduce the ram usage? It's known issue that large logs are not trimmed and completely loaded to memory at start

edit: #129
[Android Apps and Games] Lotus 7even:
That was the first thing I tried. It did reduce ram initially by about 4 MB but that still puts it at 40 MB plus when the app is open. Just checked its at 46 MB now. I installed bwfoo about a week ago and up until today I had never noticed this behaviour. I had never seen the ram over 3 MB. It only started today after a reboot.

I thought about re installing but was a little reluctant as I presume it would mean entering all my settings, whitelists etc again. However if if this is necessary I really dont mind.

Anymore advice would be most appreciated.
[Android Apps and Games] uiuiuiui:
Does it work with Lollipop? It has not been updated since june and I wouldn't want to lose this amazing app when the OTA rollout begins for my device.
[Android Apps and Games] chamonix:
It does for me
[Android Apps and Games] uiuiuiui:
Awesome! :)
[Android Apps and Games] cm5:
#125: added a pref for leaving wfi on when screen goes off but a connection is active.

I've never had this feature working.

It will think a connection is always active, even if there is no hotspot to connect to.

Great if we can have this feature working , instead of having to whitelist all SSID which technically will achieve the same result.
[Android Apps and Games] Kucher:
БIs it possible to shift icon on the wiget little bit up? Because it looks not in row with another icons.
[Android Apps and Games] nalott:
unreliable wifi on

I'm very happy with BWOF on SGII. Absolutely no problem.

However, on Nexus 7 2012 I face quite consistent problems with wifi not switching on after screen unlocked/on. I'm on slimrom based kitkat rom (also on SGII) and a Timur based kernel.

Wifi is On in system settings but no wifi icon is displayed, no connection is active. BWOF's log looks like it has normally switched wifi on. A workaround is to manually switch wifi off and on.

The problem may be kernel related but I'm asking here if there's a general way to debug this problem.
[Android Apps and Games] paul_d:
hide icon from status bar

I'm asking the developer. Could you please make the app icon in status bar invisible, like it does SwipePad: it has its own item in notification area, but it's invisible in the status bar. See attachment about SwipePad appearance.

And also my observation is: subject app has time label in the notification area, but SwipePad - doesn't have time label, like for example audio player doesn't have. It means that item of SwipePad in notification area is assumed as a service, but the subject app is assumed just as message. Could you please make the subject app to appear as a service in notification area, without time label. It will be more professionally I think )

Thanks!
[Android Apps and Games] Pkt_Lnt:
Settings, Apps, uncheck Show Notifications.
[Android Apps and Games] paul_d:
no-no, that is wrong way. The app must present in notification are to prevent killing by Android low memory taskkiller (LMK). I'm just asking to hide its icon from status bar, i.e. to make it invisible. And second - to make item in notification area without time stamp.
[Android Apps and Games] Pkt_Lnt:
I do that on four apps. They are not killed, just the notification is invisible.
[Android Apps and Games] paul_d:
If you have lots of memory and you don't run memory-consuming apps, you don't meet such problem.

are you sure that notifications are exactly invisible but present? I guess in your case the notifications are completely absent. Btw: in Russian translation of this app your suggested setting is called "prevent killing by Android". So I need exactly that: prevent killing by Android. I just want to hide the icon in status bar
[Android Apps and Games] Christiancs1969:
Also working perfectly here on Lollipop tw s5 ..
[Android Apps and Games] deadman3000:
Since changing my phone to a Moto X Force and updating to Marshmallow Better wifi on/off eats my CPU so I have had to uninstall it.
[Android Apps and Games] Semihal:
Hello. I have this problem: in the advanced settings put - "Disable processing, if WiFi off manually"... But if you turn off the WiFi, then as soon as off and on screen - it again looking for a WiFi network. As it overcome? Nexus 5.
[Android Apps and Games] primaleph:
Feature request

I'm wondering if it might be possible to add a whitelisting feature for apps when the screen is on. It would be helpful to be able to specify that I want it to automatically enable wifi when I have my browser or email or an online game connected, but otherwise (like if I'm using my tablet for Kindle) I'd like the wifi off to save battery.

Is this a feature you think might be feasible at some point?

I'm also curious if it would be possible to remember the wifi state from before the screen was turned off. So on turning the screen on, wifi might enable only if it was enabled before.
[Android Apps and Games] Banayat:
So sad the developer seemed to abandon this project. I still appreciate your hard work chamonix! Thank you!

Is there a similar project to this one?
[Android Apps and Games] Pkt_Lnt:
I still use it on a Pixel 2 XL with Android v.9 / Pie with no issues or lack of function. It has been used on every phone I have owned.
[Android Apps and Games] Banayat:
I couldn't find any other app that works more reliable than this one. However, I still would like to suggest few more important features:

Add ability to set specific data on network activity option.

Adjust App List Permission for App Whitelist (does not work on Android Nougat).

Improve translations or add ability to set original language.
[Android Apps and Games] :
Couldn't agree more! I'm using it since ages on every phone I have owned too. No issues too.

Great and useful app!
[Android Apps and Games] Pkt_Lnt:
You should ping chamonix and ask him.
[Android Apps and Games] hyborian:
I use Leandroid, pro version, it's on Google Play.
[Android Apps and Games] elkinm:
Not working normally with S10e One UI 2.0.

I just bought an S10e and installed Better On/Off to control wiFi. I have latest software for phone and app.

It turns it off as expected, but when I unlock the phone I see wifi turn on and then turn off almost immediately.

The log says could not establish a connection, but I know it does not give it enough time to make a connection.

If I turn wifi on manually it does connect, but it does take a few seconds.

I cannot find any setting that controls how long it waits to establish a connection and would rather not keep wifi on constantly if not connected.

Thanks you.