[Q] NJ4 WiFi Issues - AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin

I manually upgraded my i337 from NB1 (4.4.2) to NJ4 (4.4.4), and then I re-rooted it. While I noted minor differences between the versions (I now had the "Custom Unlocked" logo on the splash screen, for example, and the notification "shade" did not scroll off and on as quickly), the most problematic issue was WiFi connectivity, which caused me to reinstall NB1 (pending a solution).
With NB1, my WiFi worked as I thought it should. It would automatically re-connect to hot spots and, if there is a password, it would automatically handle it for those sites I had logged into previously. Thus, for example, my phone would automatically log into my home WiFi router as soon as I walked through the door.
It appears that NJ4 is broken. I have found that under NJ4, the WiFi will only *automatically* re-connect to the most recently-used hotspot (whether or not passworded). This is not affected by restarting either the phone or the router. Thus, if I connect to my home router, the phone will re-connect effortlessly PROVIDED I don't connect to any other hotspot. If I have connected to another hotspot, once I return home, I find that there is no longer an automatic connection (I receive a "WiFi Hotspots are Available" notification), and once I initiate the connection manually, I am asked for my password EVERY TIME. At least I know my home password; I don't know the passwords of the many other hotspots I have connected to.
The collected WiFi credentials are maintained in the file data/misc/wifi/wpa_supplicant.conf. I looked at that file to see whether the passwords had been deleted. No, they were all still there (albeit encrypted). Here is an entry like the one for my home router:
network={
ssid="SqueekyNet"
psk=[the encrypted p/w is located here]
key_mgmt=WPA-PSK
priority=657
frequency=2462
disabled=1
autojoin=1
usable_internet=0
skip_internet_check=0
}
Note the line that says "disabled". The system inserts this line once you log into a *different* hotspot. It does this for *every* entry, so the only entry without this line will be the one for the current hotspot (or for the most recent one, if you aren't logged in to any WiFi hotspot).
I have found that if I edit the wpa_supplicant.conf file on-the-fly ... changing "disabled=1" to "disabled=0", then my home WiFi is instantly recognized, and I am immediately logged in (the "forgotten" password isn't really forgotten). Further, if I then re-examine the wpa_supplicant.conf file, I will see that the "disabled" line has been deleted from the current hotspot, and will only be re-inserted once I log into a *different* hotspot. BTW, while I am using the home hotspot as a test, the same behavior applies to ANY hotspot. Thus, under 4.4.4, NO hotspot is logged into automatically (unless it is the most recent hotspot), and unless you are attempting to log into the most recent hotspot, you ALWAYS receive a request to enter the password for a protected hotspot (even though the password is actually still in the file). I use WiFi heavily, and this isn't viable for me.
The problem apparently isn't limited to the i337 (AT&T) build of NJ4. I noticed this discussion in the T-Mobile forum: https://support.t-mobile.com/thread/84926 (I tried to comment on it, but I can't register for the forum since I'm not a T-Mobile customer).
I am now comfortably back on NB1.
Does anyone have a solution for this?

UPDATE: I found that after I reinstalled 4.4.2 (NB1), using ODIN and then Titanium Backup, as soon as I activated WiFi, my device would strip all of the entries from wpa_supplicant.conf that contained a password (psk). I tried a number of different techniques to reload my original wpa_supplicant.conf file, and was never successful. All of the entries without a psk remained, however (there are hundreds).
I also found that after reinstalling NB1 (including the restore via Titanium Backup) once I re-entered the password for a particular WiFi hotspot, then the re-entered password would stay in the wpa_supplicant.conf file (and the phone would again login to WiFi automatically, without ever/always asking for a password re-prompt as was happening with 4.4.4 NJ4).
While I don't really know for sure, it is my guess that the psk entries were stripped from the wpa_supplicant.conf file by the Google server. Not sure why, but since I am able to totally restore the device with all of the pre-backup data files (including the original wpa_supplicant.conf file), this is my only explanation.
For me, NB1 works to remember passwords and log-in automatically to WiFi hotspots; 4.4.4 NJ4 does not.

Related

[Q] S4 i9505 CM10.1 - wifi won't turn on, has no MAC

Hello,
To start off, I have a USCellular S4 w/ CM10.1, currently the 7/9 nightly. I am running baseband version R970VXUAMDL and have not modified the kernel.
I am unable to enable WiFi at all on CM10.1 and haven't been able to since initially flashing CM10.1.
Under the Settings menu, I am unable to enable WiFi - it's greyed out.
Under the WiFi menu, I can enable the toggle but it does nothing.
Under the Advanced menu, MAC address shows 'unavailable' and the Wi-Fi region code is set to 'Europe' and will not remember changes.
sylvisj said:
Hello,
To start off, I have a USCellular S4 w/ CM10.1, currently the 7/9 nightly. I am running baseband version R970VXUAMDL and have not modified the kernel.
I am unable to enable WiFi at all on CM10.1 and haven't been able to since initially flashing CM10.1.
Under the Settings menu, I am unable to enable WiFi - it's greyed out.
Under the WiFi menu, I can enable the toggle but it does nothing.
Under the Advanced menu, MAC address shows 'unavailable' and the Wi-Fi region code is set to 'Europe' and will not remember changes.
Click to expand...
Click to collapse
Have you tried removing the .cid.info file ?
Using a terminal app type the following:
Code:
su
rm /data/.cid.info
On some ROM's have have to do this after every time I have rebooted the phone, not quite sure why but it works for me.
TrallaP said:
Have you tried removing the .cid.info file ?
Using a terminal app type the following:
Code:
su
rm /data/.cid.info
On some ROM's have have to do this after every time I have rebooted the phone, not quite sure why but it works for me.
Click to expand...
Click to collapse
Hello,
Thanks for the suggestion. I fired up Terminal Emulator, su'd, and it doesn't look like there is a .cid.info in /data/. There is a .psm.info, though, and .npswifi_stream - I don't know if they're related at all.
sylvisj said:
Hello,
Thanks for the suggestion. I fired up Terminal Emulator, su'd, and it doesn't look like there is a .cid.info in /data/. There is a .psm.info, though, and .npswifi_stream - I don't know if they're related at all.
Click to expand...
Click to collapse
Here's the 'ls -a' output for /data:
Code:
[email protected]:/data # ls -a
.container_1
.container_2
.container_3
.layout_version
.mtp_stream
.npswifi_stream
.pcsync_stream
.psm.info
.socket_stream
.ssh
anr
app
app-asec
app-lib
app-private
audio
backup
bcmnfc
bluetooth
cam_socket0
cam_socket1
container
dalvik-cache
data
dontpanic
drm
fota
hostapd
local
log
lost+found
media
misc
nfc
property
qcks
radio
resource-cache
security
shared
ssh
system
time
tombstones
user
wiper
wpstiles
Bump.
I have the same problem......
ninne1 said:
I have the same problem......
Click to expand...
Click to collapse
Bump again.
i think it's missing IMEI and EFS. Try this http://forum.xda-developers.com/showthread.php?t=1264021
r47z said:
i think it's missing IMEI and EFS. Try this http://forum.xda-developers.com/showthread.php?t=1264021
Click to expand...
Click to collapse
I dunno about EFS, but I know the IMEI is already correct - *#06* is showing the same IMEI as the label on the back of my phone.
My phone is work well after flashing CM, but no WIFI.
No /data/.cid.info file!
*#06# - show IMEI.
Did we ever get to the bottom of this?
Im having exactly the same problem, so bump. Its been like that for 6 months, my workaround so far was getting a bigger data subscribtion since 4g is working fine
sylvisj said:
Hello,
To start off, I have a USCellular S4 w/ CM10.1, currently the 7/9 nightly. I am running baseband version R970VXUAMDL and have not modified the kernel.
I am unable to enable WiFi at all on CM10.1 and haven't been able to since initially flashing CM10.1.
Under the Settings menu, I am unable to enable WiFi - it's greyed out.
Under the WiFi menu, I can enable the toggle but it does nothing.
Under the Advanced menu, MAC address shows 'unavailable' and the Wi-Fi region code is set to 'Europe' and will not remember changes.
Click to expand...
Click to collapse
Hi sylvis,
I realize that this is an old post. However. perhaps this thread will help someone else:
I flashed a Samsung Galaxy S4 (T-mobile SGH-M919) to CyanogenMod (CM11) this weekend. It worked ok for a couple days. The owner then said that they can't get any WI-FI. I found your post here and read with optimism that I might be able to fix this problem. Our problem was exactly "word for word" the same problem as you described in your original post. (Well almost exactly; we couldn't get "USA" to stick as the region code)
Before flashing the phone, I did install Philz ClockworkMod and did do a backup of the OEM ROM before flashing to CM11. That said, I found that I did not have to go down the road of restoring a missing IMEI file (as other threaders here describe). Here's what worked for me:
I dialed *#06# on the phone to see if there was an IMEI number present, and there was. I wrote down that number. So I decide to see if that number matched the printed number on the phone, that we can find under the battery.
Before I do a power off of the phone, I recall that I had turned OFF both Bluetooth and Mobile Networks. WI-FI was still turned ON, but in it's non-functional "greyed out" state like you and I both experienced.
Now I power off the phone, take off the back cover, and take out the battery to have a look at the printed IMEI number. Yes, it does march the number that I saw via *#06#.
I had to get up to do something, then returned a couple minutes later. I popped in the battery and restarted the phone. To my utter surprise, WI-FI was back up! In "Advanced" I now see the MAC address and the region is locked on USA
I turn on Mobile Networks, and WI-FI's still working. Being the fool that I am, I have to test this further. So I power off the phone again and just let it sit there for a couple minutes. I power back on and there is still JOY. Problem resolved and happy customer.
In closing: I don't think that the removal and reinsertion of the battery was the total solution, because the owner had already tried that. However, the owner did not let the phone sit with the battery removed for very long. They just popped it out, waited a couple seconds, then popped it back in. I think the total solution was having WI-FI enabled, Bluetooth and Mobile disabled, then doing a power off, with an extended wait time before reinserting the battery.
Hope that helps.
Regards,
Brcobrem

[Q] G900F HOSTS FILE is normal but couldn't add a Google account

Hi,
Dear All,
Ok, the problem is very famous i.e. i factory reset my device and when powered one like a fresh piece, i cannot add google account on my G900F (can't establish a reliable connection to the server).
i have searched a lot over the internet. Read about the HOSTS files description as well. All i found was the modification of the "etc/hosts" with the clients.google.... following "#" so that 127.0.0.1 localhost is only the operational entity.
My device is un-rooted and just for the confirmation of the above mentioned, i opened the hosts file via HTML Viewer (just readonly) and found that the etc/hosts file on my S5 has 127.0.0.1 localhost only and no any other information, which i think should be available for your device to work normal and google accounts can be added. See attached screenshot.
Need your kind help in resolving my issue please.
Try clearing caches from recovery
Still same issue...
Might be worth factory resetting again
How did you access the HOSTS files without being rooted?
did the factory reset 3 times but nothing, issue stands unresolved.
i opened the HOSTS file through RARLAB. Actually it allows you to view the root folder and all of its contents even if your phone is un-rooted.
Could try removing the device from Google Play
https://support.google.com/googleplay/answer/2407656?hl=en-GB
Create a new Google account as a test to see if the issue is the phone or the account
If that doesn't help, Id flash a stock ROM through ODIN, this will NOT trip KNOX if you are still 0x0
Are you sure all your data connections are working properly, WiFi/3/4G ?
*Detection* said:
Could try removing the device from Google Play
https://support.google.com/googleplay/answer/2407656?hl=en-GB
Create a new Google account as a test to see if the issue is the phone or the account
If that doesn't help, Id flash a stock ROM through ODIN, this will NOT trip KNOX if you are still 0x0
Are you sure all your data connections are working properly, WiFi/3/4G ?
Click to expand...
Click to collapse
ok here are some interesting occurrences:
Worth mentioning that i was operating over Wi-Fi.
1) - i flashed a stock Kitkat ANG2 ROM via odin and the problem still persists.
2) - Then i flashed stock Lollipop BOB7 and still the same.
3) - Then i created a new account via the first sign in page on the phone (after flashing the new ROM), and i was able make a new account(through my phone) but still it was unable to login on the phone.
4) - Then i installed a Proxy/VPN betternet and then i was able add an account successfully and also Play store is working fine.
5) - Means there is some issue with my wi-fi adapter routing (may be inside the phone or the carrier) etc.
6) - Then i switched off the wi-fi and enabled LTE (of my SIM card provider) and connected my phone through it, say what! its working fine.
7) - again i tried over the wi-fi and the issue started to happen again
Well, one important thing, i am using wi-fi which is also a LTE carrier (having the google issues) and the second LTE (which worked fine) is by the SIM card operator.
So , is there any problem with my wi-fi (inside the phone) or may be with the operator from which i am getting my services??
its quite confusing at the moment. well i am going to try the whole thing over the Wi-Fi of another operator and will feedback the results.
Mean while any suggestions ??
Reboot the router you are connected to WiFi from?
Doesn't sound like the phones fault, unless you have a proxy enabled in WiFI settings or something, sounds like the issue is with your ISP/Router

[Q] VERY Strange WIFI Issue

OK i seem to have this extremely bizzare wifi issue.
I can connect to wifi access points fine, if i turn off wifi and turn it back on i am unable to auto connect and have to re-enter credentials for it to connect. Before doing so i checked my wifi ap to see if my ap were listed and they were not.
If i re-enter everything is fine but having to do this to wifi ap is annoying. After i have entered and check the wifi ap files i can see the credentials are saved etc.
If i do not re-enter the credentials and restart the phone with wifi enabled it connects to AP fine.
If i leave wifi connected and connect to to wifi aps that require certs its fine also without the need to re-enter creds.
At first i thought maybe i had a corruption in the wifi config files but i dont see any, no duplicate aps at all, no fancy characters i can see.
Does anyone have any thoughts as my wifi config with aps is many years old and has a massive amount of APs listed.
It doesnt matter what ROM i try as soon as i restore all my APs the issues start, is there a way to bulk export, wipe wifi aps and re-import them all again?
Do wifi aps with spaces in or length cause issues with 5.1.1?
1 root ur phone if you are unrooted 2 download any build prop editor from playstore 3 change this line ro.securestorage.support=true to false in /system/build.prop 4 if it doesnt work try a different build prop editor cz the changes might not be sticking 5) hit the thanks button if it helped
dork997 said:
1 root ur phone if you are unrooted 2 download any build prop editor from playstore 3 change this line ro.securestorage.support=true to false in /system/build.prop 4 if it doesnt work try a different build prop editor cz the changes might not be sticking 5) hit the thanks button if it helped
Click to expand...
Click to collapse
ro.securestorage.support=false
already

Cannot Access WLAN via a DHCP connection , only by using a Static IP

Hey everyone, long time reader- first time poster- hopefully someone can help me!
really frustrating issue, after over 2 years of near flawless use with my n9005 yesterday i noticed i was no longer connected to my saved home wlan, every time i tried i would receive the message: AP currently not in use......, i proceeded to restart phone/router, forget network- and re enter details without any success. after googling the issue i tried all the basic suggested fixes, toggling various wifi settings, toggling date and time, toggling wifi power saving mode via *#0011# all without avail. I researched further and attempted to access the dhcp_list to delete it via root explorer (also viewed the permissions using x-plore and its all ticked for read and write accordingly) etc, however i was never able to do this- always being told i didn't have the file permissions, same story when trying to use terminal with the input: rm /data/misc/dhcp/*. I have checked and do have root access and always granted access before attempting these through the configs of the file explorer and super user or by typing su first in the terminal. Whenever i enter a static IP it connects and works immediately, however when i was out the house yesterday i noticed it was doing the same issue with 2 other saved WLAN networks which being public i cannot use a static ip/ and ultimately cannot join/use. So last night i factory reset my phone/cleared cache this did not work as im still receiving the same Obtaining IP Address loop and AP not in use error message and once again the Static IP work round is my only way to gain access. Im now at a loss what to do next, considering to flash a different ROM/Modem/Boot Loader but dont know if this would be any help?. My system details are listed below any help would be much appreciated
BOOTLOADER: N9005XXUGBOA5
RADIO: N9005XXUGBOA1
home wifi router is the, EE brightbox
Solved installed new ROM all good!

Password for already saved WiFi networks are shown encrypted in Wps Wpa Tester app!

Hi all
I have the 935F Model, and it's rooted. Have any of you tried an app called "WPS WPA Tester" on it?, I used to use it on my old Grand 2 and it worked well, but now when I hack a WiFi with it the Password of that WiFi is encrypted and some times it deosn't show at all.
So what is your experience in this domain?
PS: there are two solutions on the web for this (adding a line to build.prop Or deleting a file in the system folder) and both didn't work.

Categories

Resources