yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] chamonix:
OK the log shows that the app does right : android reports that ssid to be connected. That is obviously wrong from your description.

Now as I had some discussions with some guys from Sony at droidcon and this may be a discovery of a potential bug. Are you using sony's stamina mode?
[Android Apps and Games] chamonix:
Let me try to reproduce that.
[Android Apps and Games] chamonix:
We may have a pattern here. Is your phone from Sony and do you have the stamina mode on?
[Android Apps and Games] chrone:
Thanks, dude! :)

I'll take a look at the git later tonight. Hehe

Sent from my Nexus 4
[Android Apps and Games] turvytopsy:
Thanks for replying :)

Stamina mode is only on the new Xperia Z at the moment, on my phone it's a slightly different mode called Extended Standby.

But no, it wasn't turned on at the time of that log. I do use it occasionally if I'm going to be away from a charger but I haven't had it turned on at all this week
[Android Apps and Games] inFECT:
Allright, checking in for a quick report.

I can't reproduce the force close while switching from 2g to 3g anymore. (with non of the last 2 RC and the latest stable version) Maybe it was just my crappy system and not really a bug.

Apart from this, i still have the annyoing "bug" that wifi don't turn off when i use the cell location function. In the screenshot you will see that at 11:32 the phone is using the AP. At 11:38 the phone is not in wifi range anymore (but still in the same cell id) and won't disable wifi. 10 Minutes later even out of the white listed CID, the wifi still wont turn off. Also the alarm:null error is still there.

link to the screenshot.

link to the debug log.

Hope it helps!
[Android Apps and Games] Thomas_BA:
Did you found the time to look into the log I sent you by email?

Send from my Mars Rover! Don't know how to get back to earth!
[Android Apps and Games] chamonix:
Unfortunately I had a busy week at work so I had to cut back on coding. But the week end is there and you are on my list ;)
[Android Apps and Games] Thomas_BA:
Kein Problem, no problem...app is working and doing his job
[Android Apps and Games] mettleh3d:
Pardon, where may I find the latest RCs?
[Android Apps and Games] Pkt_Lnt:
edit

Oops, removed for final release, my bad.
[Android Apps and Games] mettleh3d:
Is it the attached 2.0.0.0?
[Android Apps and Games] Christiancs1969:
Been using this for 2weeks ..cant fault it paid .....worth every penny. ;)

s2rootbox......
[Android Apps and Games] chamonix:
Yes, thanks you! I have a fix attempt and will release 2.1RC1 during the week end and hopefully fix the problem
[Android Apps and Games] TopoDroid:
useful

useful
[Android Apps and Games] Thomas_BA:
Thanks for the fast response and fix. ;)
[Android Apps and Games] jhuff83:
Will this address connecting to the strongest ap issue I was having? I posted a log a couple pages back.
[Android Apps and Games] chrone:
Would be nice to have wifi off if the wifi signal goes down to below 4 out of 10 where there is no more better signal ap in saved ssid list. :)

Sent from my Nexus 4
[Android Apps and Games] MichunB:
I have the same issue (first stated in #652)

I have checked it with two additional AP in different locations during work trip

logs:

AP Netgera

https://www.dropbox.com/s/2yon4o331rnutz5/betterwifionoff-2013-04-09_113715718.txt

AP Guest

https://www.dropbox.com/s/e2x5xits524g0bj/betterwifionoff-2013-04-09_165942927.txt

my rom is stock I9300XXEMB5

chamonix mentioned metod for checking wifi connection status

WifiManager.getConnectionInfo().getSSID()

but I do not see any of this in logs
[Android Apps and Games] chamonix:
I hope so and the reason why I didn't release straight away: I want to have as much as possible fixed
[Android Apps and Games] chamonix:
Maybe you overlooked my question: is your phone by chance a Sony and if yes are you using the stamina mode?
[Android Apps and Games] MichunB:
You asked turvytopsy about it - his phone is Xperia T

mine is Samsung Galaxy S3 stock rom
[Android Apps and Games] chamonix:
Well that is weird: both phones seem to have the symptom, that the android app returns the last connected a/p long after that connection is gone. Are you using samsung powersave mode and what is you wifi setting when sleeping?
[Android Apps and Games] todivefor:
Is cell ID processing for GSM only? I am on CDMA and cell ID is inconsistent.
[Android Apps and Games] jhuff83:
Working for me on Sprint.
[Android Apps and Games] MichunB:
I do not use powersave mode on my samsung
[Android Apps and Games] Hunter1987:
Thanks, nice app!
[Android Apps and Games] inFECT:
any thoughts on the alarm:null error?
[Android Apps and Games] chamonix:
For GSM CID is processed, for CDMA NID but I can not exclude a bug as I can't test. What inconsistencies have you determined?
[Android Apps and Games] chamonix:
Again, cell id is only used to turn wifi on not off. Next version will hopefull give us more details about the "null" error.
[Android Apps and Games] chamonix:
Release 2.1B1

New release is up with a few fixes
[Android Apps and Games] inFECT:
Yes, i get it. But when i use the "standard" function like turn wifi on when screen is unlocked, the wifi will turn off as soon as it has no connection to the AP anymore. As soon as i use the cell id funtion to turn wifi on, the app will not turn wifi off when i leave the cell id area (which will be of course also out of range from the white listed ap). Am i complety wrong when i think BWOF should turn off wifi in that case?
[Android Apps and Games] chamonix:
I have checked the log and could not find any trace of a decision between multiple access points. Now I understand you have installed a repeater at your place. Does the repeater have the same SSID as any other access point at your place?
[Android Apps and Games] todivefor:
At home, I got the cell ID. I tagged it. When I returned, I got a completely different ID. I have seen this change several times. I only have 1 cell tower at home.
[Android Apps and Games] chamonix:
Can you please attach a logcat. I would be pretty rare to have only one cid/nid reachable for one specific location (my phone sees 6 cids).
[Android Apps and Games] Thomas_BA:
Installed and recognition of donate plugin is solved.

Thanks
[Android Apps and Games] jhuff83:
Main ssid is dpleo and the repeater ssid is dpleo extended. They are both working on channel 9
[Android Apps and Games] todivefor:
I have attached both a logcat and bwof log.
[Android Apps and Games] chamonix:
Ok then that's the reason. The Android API I use does not allow to distinguish between multple access points having the same SSID and will let android do that: this does not lead to the right result.

I definitely understand the request and also the need but this will require some more research as the current algorithm, deciding between mutiple SSID can not be changed but must be re-written.
[Android Apps and Games] chamonix:
Unfortunately that log does not show any cell collection log info
[Android Apps and Games] todivefor:
Anything I can/should do to try and capture this for you?
[Android Apps and Games] chamonix:
Turn on the cell logging feature, turn your phone off/on a few times at different locations at your place for BWOF to collect the cell info and save a logcat after that
[Android Apps and Games] chrone:
Just noticed wifi won't turned off after almost 20 minutes and half mile away for from wifi ap.

Here's the debugging log:

http://db.tt/d6CDHrob

Is my settings too loose so it didn't work?

Thanks in advanced. :)

Sent from my Nexus 4
[Android Apps and Games] boobiestar:
I have also different ID's. I discovered that when I am on 2g I have other cell ID's as with 3g on the same location. So I added the ID's for both types.

Sent from my GT-I9300 with Tapatalk

Sotmax Ultimate V17 - Yank555.lu-V3.3h - JKay 14.93.1
[Android Apps and Games] shadrmg:
is there any pre-defined profiles inside an app?
[Android Apps and Games] chamonix:
Sure, these are the default preferences.
[Android Apps and Games] jhuff83:
So, if I was to change the entire SSID to something like extended wifi for one of them, this would fix that issue?
[Android Apps and Games] chamonix:
At least that would allow the current decision algorithm to connect to the SSID with the stongest signal
[Android Apps and Games] yomiguy:
Hi chamonix! Wonderful app this one! :thumbup: However I noticed today the animation of my wifi icon is not working. It shows but I can see the arrows' colours nor the strength of the signal, if one, two, three or the four bars of the icon :confused:

I remember I read something about it some days ago, but I can't find it now.

It's not very important but I would like to know if it's a bug or I can't fix it myself :)

I thought about rebooting but I'm still testing battery consumption with better battery stats and I prefer waiting for the reboot option.

Can you help me? Thanks!

Enviado desde mi GT-I9300 usando Tapatalk 2
[Android Apps and Games] jhuff83:
Just changed the SSID to something different and it did not connect to the strongest AP. I tested this by being in the same room as the router and the wifi repeater is on the other side of the house. So not sure what's going on here.
[Android Apps and Games] yomiguy:
It's strange but wifi animation has started working again! :)

I don't know why this happened but the important thing now everything is ok! ;)

Enviado desde mi GT-I9300 usando Tapatalk 2
[Android Apps and Games] gaich:
@chamonix, I updated the Russian translation , please do not forget to merge it!:cyclops:
[Android Apps and Games] chamonix:
Now that you have different SSIDs we can start debugging. Can you please send a logcat?
[Android Apps and Games] tramp20:
Hi chamonix,

I have this problem every time WiFi comes back from sleeping with your app. The only solution (and I tried all) is rebooting my phone :(

The app WiFi Analyzer shows in this case the correct level but Network Signal Info shows -1 and WiFi is not connecting to my router.

But I must say too the XDA app CleverConnectivity has the exact same behavior.

I can switch WiFi on and off and on with the Android settings, with different widgets and never have this behavior. So I cannot use yours and CleverConnectivity.

Do you use some "bad" procedures on 4.0.4?
[Android Apps and Games] chamonix:
It is a known issue, that the default wifi indicator does not always update properly (sometimes it does not even show even if wifi is on). This is a problem in the android framework that I can unfortunately fix as there is no API like "force statusbar update"
[Android Apps and Games] chamonix:
The fact that the statusbar wifi icon does not shows should not mean that wifi does not connect. You can check this from settings. AFAIK only the display in the satusbar may be wrong but I have not heard of any case where the connection itself was affected. Please correct me if I am wrong
[Android Apps and Games] jhuff83:
Here is the logcat: https://www.dropbox.com/s/lyba84k8ywe2c9o/betterwifionoff-2013-04-15_090718088.txt
[Android Apps and Games] cm5:
Thanks for adding this.

However, I am not getting any status or activity in the log for it on the new version, old version showed activity, not sure why.

[✔] Only if connected
[ ] If connected check for cage
[ ] If connected to whistlisted SSID

logcat -t 1000 * | grep Better
I/BetterWifiOnOff.SetWifiStateService( 7602): Called with extra true, false
D/BetterWifiOnOff.WifiControl( 7602): Turning Wifi on
I/BetterWifiOnOff.SetWifiStateService( 7602): scheduleWifiConnectedAlarm called
D/BetterWifiOnOff.ConnectionStatusHandler( 7602): Wifi was turned on
I/BetterWifiOnOff.ConnectionStatusHandler( 7602): Connected to null
D/BetterWifiOnOff.WifiConnectedAlarmReceiver(16816): Alarm received: checking connection
D/BetterWifiOnOff.WifiControl(16816): A connection was detected, testing if an IP was assigned
D/BetterWifiOnOff.WifiControl(16816): IP address assigned: 570599616. Wifi is connected
D/BetterWifiOnOff.WifiControl(16816): Wifilock status: false
D/BetterWifiOnOff.WifiConnectedAlarmReceiver(16816): Connection active: leaving Wifi on

[ ] Only if connected
[✔] If connected check for cage
[ ] If connected to whistlisted SSID

logcat -t 1000 * | grep Better
I/BetterWifiOnOff.SetWifiStateService( 7602): Called with extra true, false
D/BetterWifiOnOff.WifiControl( 7602): Turning Wifi on
D/BetterWifiOnOff.ConnectionStatusHandler( 7602): Wifi was turned on
I/BetterWifiOnOff.ConnectionStatusHandler( 7602): Connected to null
[Android Apps and Games] todivefor:
I will be the first to admit this cell ID stuff is greek to me. I think your processing is working fine. I only have one cell tower I access from my home. I think based on BWOF and another app I have OpenSignal this tower generates multiple cell IDs. I was assuming each tower would only generate 1 cell ID. Attachment 1 and 2 are from yesterday and show cell ID 369. Attachment 3 shows BWOF log showing cell ID 369 and 1633 from today. Attachment 4 shows OpenSignal showing cell ID 1633. So 2 apps agree on the cell ID and towers do not have 1 unique ID.
[Android Apps and Games] chamonix:
Got it! I get a nice callstack for doing networking stuff in the main thread...... I will re-implement asynchrously
[Android Apps and Games] yomiguy:
Ok! Thx! Chamonix! You're right! Wifi keeps working. It's just the animation that stops sometimes. I think you don't have to reboot to see it working again. Today when I saw it wasn't working properly I locked the screen and unlocked it and it started working again! The colour arrows and the bars of the wifi strength :)

Maybe it was just luck but now I can't check it because it's working fine. However you can try friend.

Enviado desde mi GT-P3110 usando Tapatalk 2
[Android Apps and Games] chamonix:
This log shows one time that Wifi handling was disabled because you had turned Wifi off and the other time connection was null (not connected). Can you please proide a log where I can see a connection being established (and what decision was made)?
[Android Apps and Games] chamonix:
I saw another place where the handling was not right and have fixed it to be more chatty. Coming in the next release
[Android Apps and Games] chamonix:
That is not the wayy it should be. Wifi should go off whenever you leave the reach of the A/P in both cases, whether the cell is home or not. If that does not happen as described there is a bug and I would happy to fixe it after having analysed a log
[Android Apps and Games] chamonix:
Thsi log show that a Wifi connection was kept on as the ssid "Chronic Inc." was connected to. Unfortunately there is no time indication (I will add that to next release) but from that log with no additional information I can't see anything wrong
[Android Apps and Games] boobiestar:
Here a screen pic of the event log. You can see that after power unplugged /disconnected there is now following action to scheduling wifi off. I have checked both rules for turning Wifi off. But screen off works as expected, only power unplug doesn't turn off the wifi. If you need more info let me know.

Sent from my GT-I9300 with Tapatalk

Sotmax Ultimate V17 - Yank555.lu-V3.3h - JKay 14.93.1
[Android Apps and Games] boobiestar:
Bug is fixed, tested. Thx.

Sent from my GT-I9300 with Tapatalk

Sotmax Ultimate V17 - Yank555.lu-V3.3h - JKay 14.93.1
[Android Apps and Games] chamonix:
I checked my phone and noticed that the screen goes on when power is disconnected. As this is checked (wifi should not be turned off when scren is on even upon disconnecting the plug) the power off event itself does not trigger and wifi off activity. First when the screen turns off afterwards the normal cycle for turning wifi off is triggered
[Android Apps and Games] chamonix:
New beta is up with a few fixes
[Android Apps and Games] boobiestar:
You are right. I tested unplugging without screen goes on. It works as expected.

When I am plugged and turn off the screen, I get an event "Leaving wifi on because charger is connected". Just a suggestion to add after unplugging event "Leaving wifi on because screen is on"?

I came on this issue this week that my wifi wasn't turned off after unplugged my phone, so I thought that there was a bug, but can't reproduce it.

Sent from my GT-I9300 with Tapatalk

Sotmax Ultimate V17 - Yank555.lu-V3.3h - JKay 14.93.1
[Android Apps and Games] Pkt_Lnt:
Each radio needs as unique id, and there can be many voice and data radios on each cell site to accommodate the digital traffic, depending on population density around each site. (I was as cell tech for 16 years.)

kindle fire / jb 4.2.2 / tapatalk hd
[Android Apps and Games] MichunB:
It would be good to have result of WifiManager.getConnectionInfo().getSSID() logged for debugging issues, when phone thinks it is connected to whitelisted AP but it is not
[Android Apps and Games] yomiguy:
Hi tramp! I don't know if you saw what I wrote to chamonix s comment related to our problem. I've realised we can fix it and watch our wifi animation working again just locking and unlocking the screen! ;)

Yesterday I tried and it worked! But as it happened only once I couldn't tell it could be a real solution. So this morning when I woke up and unlocked my s3 wifi connected but the animation wasn't working again, so I tried to lock and unlock the screen and... It worked! I had again my colour arrows and strength bars going up and down depending on how good is the signal! ;)

You can try with this lock and unlock thing. It's easier than rebooting and for me it worked! ;)

Chamonix if you read this post, it seems I found a solution! :) now everything is ok mate!

Good job with this app! No more worries to turn wifi on/ off, because better wifi now do it for me where I want to have wifi access! :)

Enviado desde mi GT-P3110 usando Tapatalk 2
[Android Apps and Games] chamonix:
WifiControl log the ssid when checking it against the whitelist
[Android Apps and Games] chamonix:
Next version will feature timed checks to optionally turn on wifi when screen is off at regular intervals (testing right now)
[Android Apps and Games] tramp20:
Thank you, I will try it.

---------- Post added at 10:42 AM ---------- Previous post was at 10:20 AM ----------

Thank you again, yes this tip helps.

So perhaps chamonix can build in a simple software solution :)
[Android Apps and Games] inFECT:
Using now the latest B2 and the alarm:null error appeared again. Right after i left the range of the AP and BWOF tried to disable wifi. Logfile below.

Yep, you will see my settings in the debug file and unfortunately they are not working as intended. I deleted everything BWOF unrelated and think that i catched the error. Log -> Click me!
[Android Apps and Games] chamonix:
This is rather a bug in the android framework (refresh not being done on every state change). The framework does not AFAIK have a public api so a hack, even if possible, would not be the right way to solve the problem imho
[Android Apps and Games] cm5:
Ok, got some log data now. My caged connection is detected if I use the standard 30 second delay.

However, if I use the 10 second delay it doesn't catch it. "Check for cage returned false BUT Thread status was true"

If wifi was already running then it catches on 10 second delay.

Can you make it assume the connection is caged when the thread starts and then test to see if it is not caged.

197+ m_WifiCaged = true;

/BetterWifiOnOff.ConnectionStatusHandler( 7538): Wifi was turned on
/BetterWifiOnOff.ConnectionStatusHandler( 7538): Connected to null
/BetterWifiOnOff.WifiConnectedAlarmReceiver( 8347): Alarm received: checking connection
/BetterWifiOnOff.WifiControl( 8347): A connection was detected, testing if an IP was assigned
/BetterWifiOnOff.WifiControl( 8347): IP address assigned: 570599616. Wifi is connected
/BetterWifiOnOff.WifiControl( 8347): Wifilock status: false
/BetterWifiOnOff.WifiConnectedAlarmReceiver( 8347): Connection active: leaving Wifi on
/BetterWifiOnOff.WifiControl( 8347): Check for cage returned false. Thread status was true
/BetterWifiOnOff.WifiConnectedAlarmReceiver( 8347): Connection not caged: leaving Wifi on
/BetterWifiOnOff.WifiControl( 8347): Caged connection check retuned: 302
[Android Apps and Games] yomiguy:
OK! No problem Chamonix! Knowing that locking and unlocking the screen is solved for me is enough ;) so thanks for your interest anyway!

You made a great app! :thumbup:

Enviado desde mi GT-P3110 usando Tapatalk 2
[Android Apps and Games] gxg10:
Hello. I installed this app, due to recomandation that my wifi was engaging in wakelocks. But, it has so many settings, it overwhelms me. I have wifi at home, wifi at work. I just want the wifi to always stay ON, when i m at home or work, but avoid those annoying wakelocks. Some advices for me? Thanks !
[Android Apps and Games] jhuff83:
Whitelist your ssid and then check the box that says keep wifi connected to whitelisted ssid. Might be under advanced settings. You might still have wakelocks though depending on your router. I was having huge wakelock issues with wifi which was pissing me off.
[Android Apps and Games] jhuff83:
Here is the updated log w/the issue of not connecting to the strongest AP. https://www.dropbox.com/s/ipoghcwzv1rt07q/betterwifionoff-2013-04-17_105440257.txt
[Android Apps and Games] slicetwo:
I keep getting a hangup where the app says there is network activity so it won't shut off the wifi when I lock the phone. Is there a way to disable that so that it turns off no matter what?
[Android Apps and Games] Mr.AFK:
look in the Options (may be advanced Option enabled), there is a part: leave wifi on (e.g. if Screen off) if there is Network activity >1kB. untagg These Option and your wifi will turn off!
[Android Apps and Games] slicetwo:
they were untagged.
[Android Apps and Games] chamonix:
Please attach a logcat so we can have a look at your settings. There are multiple options that detect network activity to prevent Wifi to be shut off and all can be disabled
[Android Apps and Games] chamonix:
Ok I see the problem and will need to rethink that. The problem is that the cage check as implemented for the alternate method need to be asynchronous. Depending on how long it takes to check the result of the thread checking for cage is not finished at the moment the alarm goes on and that explains the "Thread status was true" (mean still running). I will move th cache check to an earlier point in time to make sure that the thread did run when the time comes to check whether Wifi shoud stay on or not (issue for tracking is #120)
[Android Apps and Games] slicetwo:
I tried figuring out how to create a logcat and had no success...

EDIT: I download CATLOG and will use that to create a log when I'm at home with my wifi and we can see what's going on.
[Android Apps and Games] chamonix:
There is an option "save debugging log" in the app for that.
[Android Apps and Games] slicetwo:
Ok. If I run into another issue I'll get it and post it here.
[Android Apps and Games] Mr.AFK:
This morning, my wifi also dont turned off.

Tasker turn flightmod off at 5.20 and enabled data. As everyday.

But this morning wifi dont turned off.

Log: http://db.tt/pFMA5u8S

Gesendet von meinem GT-I9100 mit Tapatalk 2
[Android Apps and Games] chamonix:
The log is empty. Are you maybe using a kernel the suppresses location?
[Android Apps and Games] Mr.AFK:
Damn.

I don't take a look into the log before upload.

Opend bwof, Left Menue key, save log. Share the log with Dropbox and Post the link here.

To the kernel question :

I dont know these feature that you mentioned. But also i dont changed the kernel at least for 4 days. The kernel was the apolo v4.5 regular.

Now I'm back to the latest philZ.

Gesendet von meinem GT-I9100 mit Tapatalk 2

Update: log 2,4Mb

http://db.tt/QjNxD7PG

Yesterday i flashed the latest philZ Kernel.

This morning the same: Wlan dont turned off.

May i delete the app data and config new?