my wifi cant connect after flash kangaroo 3.5 cant save wifi network on aosip rom
failed to save network failed to connect to network
anyone help?D/WifiService( 1941): recentFailure: Association Rejection code: 0
D/WifiService( 1941): uid=1000 name=android.uid.system:1000
WifiConfigManager( 1941): Cannot add/update network before store is read!
is the kernel problem?
Related
I have also Galaxy Nexus, was having 4.02 and then upgraded to 4.04 through OTA, but I keep getting error while connecting to my company LEAP WIFI connection
05-07 12:37:06.185 I/wpa_supplicant(1872)wlan0: CTRL-EVENT-EAP-STARTED EAP authentication started
05-07 12:37:06.240 I/wpa_supplicant(1872)wlan0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=0 method=17
05-07 12:37:06.240 I/wpa_supplicant(1872)wlan0: CTRL-EVENT-EAP-METHOD EAP vendor 0 method 17 (LEAP) selected
05-07 12:37:06.303 I/wpa_supplicant(1872)wlan0: CTRL-EVENT-EAP-SUCCESS EAP authentication completed successfully
05-07 12:37:06.373 W/wpa_supplicant(1872)EAPOL: Failed to set WEP key to the driver.
while my friends here are having Galaxy SII Gingerbread and also HTC mobiles, and the same configuration works with them perfectly.
Hi guys,
I've got a rooted ARC S currently running on a nightly version of CyanogenMod 10 that will not connect to wifi points.
I've gone through tons of threads and forums for a solution and none of them work.
The wifi points are detected with decent to very strong signal but when I try to connect it either sits on "connecting...", switches between "saved" and "obtaining IP address" or in the case of WPA protected networks; between "authenticating" and "connecting..." and "obtaining IP address".
Most of the time it ends up with "Avoided poor connection".
I only currently have access to public wifi networks so cannot modify the router settings, but I have tried creating a virtual hosted network (rebroadcasting a network through my pc)(see below).
Here's what I've tried:
-Factory reset, wiping cache and Dalvik cache multiple times
-Virtual hosted network
***I've tried rebroadcasting a public wifi through my pc and it connected, but at the time the network wasn't connected to the internet. When I managed to connect the network to the internet it would no longer connect to the network***
-Changing ROM
Problem started on CyanogenMod 9 (stable release), I've tried stock Sony ICS ROM (Doomlord version), stock Xperia Gingerbread and tried rebooting CyanogenMod 10.
***One time after flashing CyanogenMod 9 the wifi started working again for about 3 hours, but then failed and hasn't worked since***
-Deleting data/misc/dhcp file
I didn't actually have a file in the data/misc/ directory but I tried deleting the folder in case the file was hidden but nothing changed.
-Debugging with ADB
I've connected to ADB debugging while trying to connect to a working wifi point and these are some of the (hopefully relevant) messages I got on Logcat.
WIFI OFF
WIFI ON AUTOCONNECT ON
(error) WifiStateMachine Failed to set country code fr (I live in France)
(error) WifiStateMachine Failed to set frequency band 2
(warn) wpa_supplicant wlan0: Failed to initiate AP scan
(info) wpa_supplicant wlan0: Associated with 66:6d:57:dd:50:f3
(info) wpa_supplicant wlan0: Key negotiation completed with 66:6d:57:dd:50:f3
(error) DhcpStateMachine DHCP failed on wlan0: Timed out waiting for dhcpcd to start
(error) WifiStateMachine IP configuration failed
(info) wpa_supplicant wlan0: CTRL-EVENT-DISCONNECTED bssid=00:00:00:00:00:00 reason=3
...
(debug) CommandListener Clearing all IP addresses on wlan0
(debug) ConnectivityService ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED
...
(info) wpa_supplicant wlan0: SME: Trying to authenticate with 66:6d...
(info) wpa_supplicant wlan0: Trying to associate with 66:6d...
(info) wpa_supplicant wlan0: Associated with 66:6d...
(info) wpa_supplicant wlan0: Key negotiation completed with 66:6d...
(info) wpa_supplicant wlan0: CTRL_EVENT_CONNECTED - Connection to 66:6d...
...
(debug) ConnectivityService handleInetConditionChange: no active default network - ignore
...
(info) UpdateCheckReciever Got connectivity change, has connection: false
...
(error) DhcpStateMachine DHCP failed on wlan0: Timed out waiting for dhcpcd to start
(error) WifiStateMachine IP configuration failed
I know that's probably way too much information but I've tried everything I can think of. Any help would be awesome.
Hasn't anybody got any ideas?
I've continued experimenting with various methods and I've noticed neither of the networks I've used have IPv6 enabled.
Could that be the source of the problem?
Because I've also got a HP touchpad running CM and WebOS and neither OS can connect either. But my 4th gen Ipod can.
Flash wifi modules
Sent from my LT15i using xda premium
TheHaso said:
Flash wifi modules
Sent from my LT15i using xda premium
Click to expand...
Click to collapse
WiFi modules wouldn't let the user get that far, FYI. Go try using WiFi without installing modules
OP: Does the issue occur on all WiFi networks or just one specific?
Logcat shows, like DHCP is failing, which is the router function to hand out IPs to every device connected to it.
Someguyfromhell said:
WiFi modules wouldn't let the user get that far, FYI. Go try using WiFi without installing modules
OP: Does the issue occur on all WiFi networks or just one specific?
Logcat shows, like DHCP is failing, which is the router function to hand out IPs to every device connected to it.
Click to expand...
Click to collapse
Some it can connect to, some it can't. The really annoying thing is that it has connected to my wifi network before. Twice.
Then it just stopped being able to connect to it.
Surely if the router was having problems my PC would have similar connecting issues? Which it doesn't.
When you say flash wifi modules do you mean you can get multiple modules for the same device?
I didn't realise you could change them.
Hello,
I have recently bought an Samsung Galaxy Nexus with SlimBean 4.2.2 installed by the previous owner. I tried switching on the data connection but I recieve no 3g signal. It worked on my previous android phone (so it shouldn't be a problem with the sim card). I am living in Europe (16GB version, yakju/maguro product name)
Using adb logcat I saw the following message when turning on the "data enabled" option.
Code:
D/GsmUmtsOptions( 646): preferenceTreeClick: return false
D/ConnectivityService( 440): setMobileDataEnabled(true)
W/BackupManagerService( 440): dataChanged but no participant pkg='com.android.providers.settings' uid=1001
When toggling the option "use only 2g networks", I see the following message (not sure the ConnectivityChange message is normal)
Code:
I/Use2GOnlyCheckBoxPreference( 646): set preferred network type=0
W/BackupManagerService( 440): dataChanged but no participant pkg='com.android.providers.settings' uid=1001
D/GsmUmtsOptions( 646): preferenceTreeClick: return true
I/Use2GOnlyCheckBoxPreference( 646): set preferred network type done
D/ConnectivityService( 440): ConnectivityChange for mobile: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 440): Attempting to switch to WIFI
D/ConnectivityService( 440): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 440): Attempting to switch to ETHERNET
Toggling airplane mode changes nothing.
In the status window, I see that I am disconnected from the mobile network (cf screenshot).
Is there issues known with the galaxy nexus ? Or with SlimBean ?
I started using the phone with a factory reset. I can install other ROM if needed but I would rather fix the problem on this one
Thank you
Edit: I installed CM10 instead and it works. So seems it was a problem with slimbean
It's fairly evident by the number of "wifi problem" threads posted all over xda that there seems to be a huge wifi problem with Android 4.0+. I've seen multiple reports of problems and several reports of methods for fixing user-specific scenarios. In my attempts to better understand what is going on at a system level and in hopes of finding a better solution, I've tried just about all methods I've come across to solve this issue. The only "fix" that works for me is turning off WIFI Power Save Mode via *#0011#. The problem with that fix is it does not work on AOSP ROMs! Hence, I'm trying to find another solution or another method of disabling WiFi Power Save Mode within AOSP ROMs.
Background Information/Description of problem: Turn on wifi and list of available networks will appear. Regardless of being able to connect to a network or not, after 8-10 seconds, the device will scan again, it will time out and the list of available networks will disappear and any connection will be lost. Available networks cannot be seen again until wifi is successfully toggled off and back on again (note - the device seems very picky about actually turning wifi off; it wants to keep it on for some reason - this could be an issue with the multiple reporting of the wifi state in various settings).
Known "Fixes": Some people seem to have luck with certain "fix methods" where others do not.
For most people having this issue or a similar issue, disabling WiFi Power Save Mode in the Service Menu seems to allow the phone to stay connected to networks. This is also true given that the user's wireless router is configured correctly. I've seen reports of several different router models being notorious for issues with Samsung phones, most notably the D-Link DIR-655. I have the DIR-655 and I've configured it to talk nice with my phone when WiFi Power Save Mode is turned off. (I have a new router being shipped to me this week to eliminate this factor altogether)
Some have performed a factory reset with successful wifi connectivity afterwards.
Some have re/flashed a radio and had success. I would like to try reflashing a radio via recovery but we currently do no have one posted on the forum - can someone help me out here?
Some have luck by manually setting the IP address on the router and/or phone.
For the sake of being able to flash an AOSP ROM and have working wifi, I'd like to try and find what's causing this issue and try to find a solution/workaround. I've been troubleshooting and trial-and-erroring most of the weekend.
My research so far:
While looking for the specific setting being toggled via the Service Menu (*#0011#), I found that the WIFI Power Save Mode setting is referenced in /system/app/serviceModeApp_RIL/res/values/strings.xml as
Code:
<string name="powersavemode">WIFI Power Save Mode</string>
which is referenced in /system/app/serviceModeApp_RIL/res/values/public.xml as
Code:
<public type="string" name="powersavemode" id="0x7f06006b" />
That's as far as I've gotten on that road - I haven't found the "0x7f06006b" constant referenced anywhere else yet - maybe someone else knows a quicker way to search for it?
I've attempted to modify settings in wpa_supplicant.conf found in /system/etc/wifi/ and /data/misc/wifi/ with no luck.
I've attempted to use bcm4335 drivers found on other variants of the S4 but I didn't get very far - some implementations are different!
I've gathered several Logcat files for reference:
WiFi Toggle On & Connect
WiFi Connects & Disconnects
CM10.1 WiFi Toggle On Only
Various lines that stand out to me:
Code:
E/wpa_supplicant( 3911): wpa_driver_nl80211_driver_cmd: failed to issue privatecommands
E/wpa_supplicant( 3934): Line 6: unknown global field 'okc=1'.
E/wpa_supplicant( 3934): Line 6: Invalid configuration line 'okc=1'.
I/wpa_supplicant( 3934): rfkill: Cannot open RFKILL control device
E/wpa_supplicant( 3934): Could not set interface wlan0 flags (UP): Operation not permitted
E/wpa_supplicant( 3934): nl80211: Could not set interface 'wlan0' UP
E/wpa_supplicant( 3934): wlan0: Failed to initialize driver interface
E/wpa_supplicant( 6961): Can't open default ap file
E/wpa_supplicant( 6961): Failed to open config file '/mnt/shell/emulated/0/cred.conf', error: No such file or directory
E/WifiHW ( 721): can't find ctrl_interface=
E/WifiHW ( 721): ctrl_interface != /data/misc/wifi/sockets
E/WifiHW ( 721): wifi_wpa_ctrl_cleanup is skiped.
E/WifiHW ( 721): Unable to open connection to supplicant on "/data/misc/wifi/sockets/p2p0": Connection refused
I'm no expert, but those lines seem to indicate some sort of underlying permissions and/or read/write issues? Some of the files those logs reference to as not existing actually do exist on the device. I saw in one thread where someone mentioned bad partitions? In that same thread someone mentioned flashing the radio/modem to correct their issue and it worked; this is why I want to try reflashing the radio on my phone.
Another thing I want to try is using Odin to reset the entire phone back to official stock, overwriting everything including the modem but we don't have an official tar for this yet.
What I would like to see from other T-Mobile S4 users:
Logcats of someone on stock who does not have wifi issues turning WiFi on from an off state and leaving it for at least 15 seconds. I'd like one where the device does not connect to a network and one where it does connect to a network.
Logcats of someone on CM10.1 doing the same mentioned above.
Someone who knows more about Android than I do to interpret these logcats and provide guidance
I can confirm that the service menu option to disable wifi Does work. Since I did the procedure wifi has been flawless.
im using a verizon dsl modem w router built in, jusy fyi.
Same here with the service code. Tmo s4 btw
Sent from my SGH-M919 using xda app-developers app
Hi
Company's wifi requires client certificate and TLS auth type to connect. On MIUI 8 and my old Galaxy Note 2 (both rooted) it all worked fine til I decided to unlock bootloader and install Resurrection Remix. Device is Mi Max Hydrogen 3Gb / 32Gb
Currently when I try to connect I see following in logcat of my phone (took screenshot so text has OCR errors)
16:52:34.896 2696 2696 I wpa_supplicant wlan0: Associated with 0c:68:03:ae:2a:b1
1652: 34.896 2696 2696 I wpa_supplicant: wlan0: CTRL-EVENTSUBNET-STATUS-UPDATE status 0
16:52:34,896 2696.2696 I wpa_supplicant: wlan0: CTRL-EVENT-EAP-STARTED EAP authentication started
16:52:34.902 1006 2695 I Wifi HAL : Unknown EAPOL message type
16:52:34.902 2696 2696 I wpa_supplicant: wlan0: CTRL-EWENT-EAP-PROPOSED-METHOD vendor=0 method=13
16:52:34.907 2696 2696 I wpa_supplicant: tls_connection_set params: Clearing pending, SSL error: error 0с000067:ASN.1 encoding routines: OPENSSL internal: BAD_OBJECT_HEADER
16:52:34.907 2696 2696 I wpa_supplicant: tls_сonnection_set_params: Clearing pending SSL error: error 0с00009c:ASN.1 encoding routines: OPENSSL internal: NESTED_ASN1_ERROR
16:52:34.920 412 412 E keymaster1_device: Len returned is < 0 len = 0
16:52:34.921 412 412 W export failed: -22
16:52:34.921 2696 2696 W cannot convert pubkey
16:52:34.921. 2696 2696 E wpa_supplicant: ENGINE: cannot load private key with id "USRPKEY_pdas" ASN.1 encoding routines OPENSSL internal:HEADER_TOO_LONG
16:52: 34.921. 2696 2696 I wpa_supplicant: TLS: Failed to initialize engine
Certificates are the same and get installed without any error, after installation files appear in /data/misc/keystore. Tried many attempts, different auth types, copying cert files manually, and so on and so on - this all didn't helped. Is there any workaround or where to look to resolve?
Our helpdesk said hey even can't see any auth attempt on their RADIUS server. This looks reasonable, in log it seems that process fails early, when openssl just tries to read key. Current keystore type is hardware-backed, maybe it fails because phone is unlocked? Is there any method to make it software-only?
I have the same problem (on several devices) . It seems this occurs on most (if not all) 7.1.x based ROMS (not only CM/Lineage based).
Reported that same network ok on LG G3 with RR 5.8.0. I guess it is some issue with hardware keystore. Thus device dependent. And I found no kernel tweak to store certs on file system
Finally I fixed it. Just created new WIFI connection using wpa_cli in command line (adb shell). Certificates could be placed anywhere in the system, and path to certificate files must be set in wpa_supplicant params using wpa_cli. Need to set read permission to these files (chmod) for all users, otherwise wpa_supplicant will not be able to read them. It is great that we have Linux under the green suite of our robot
DimaRUS said:
Finally I fixed it. Just created new WIFI connection using wpa_cli in command line (adb shell). Certificates could be placed anywhere in the system, and path to certificate files must be set in wpa_supplicant params using wpa_cli. Need to set read permission to these files (chmod) for all users, otherwise wpa_supplicant will not be able to read them. It is great that we have Linux under the green suite of our robot
Click to expand...
Click to collapse
May you please share detailed wpa_cli commands? I am facing the exact same problem (i think) with my OP2. As I am not into wpa_cli commands your help would be much appreciated.
DirtyHarrx said:
May you please share detailed wpa_cli commands? I am facing the exact same problem (i think) with my OP2. As I am not into wpa_cli commands your help would be much appreciated.
Click to expand...
Click to collapse
First use add_network command. It will create a new blank network. You can spot it's ID by typing list_networks.
Then use set_network <ID> <param> <value> commands to configure it. I used an example from FreeBSD man page on wpa_supplicant config.
https://www.freebsd.org/cgi/man.cgi...opos=0&manpath=FreeBSD+11.0-RELEASE+and+Ports
network={
ssid="work"
scan_ssid=1
key_mgmt=WPA-EAP
pairwise=CCMP TKIP
group=CCMP TKIP
eap=TLS
identity="[email protected]"
ca_cert="/etc/cert/ca.pem"
client_cert="/etc/cert/user.pem"
private_key="/etc/cert/user.prv"
private_key_passwd="password"
}
It is well documented and params for set_network are the same as in config file. For keys I used only private_key= param and specified .p12 container and it's password. Finally use save_config.
Don't know why but after a few reboots network disappeared. Need to configure again.