Android Enthusiasts
Q&A for enthusiasts and power users of the Android operating system
Latest Questions
0
votes
1
answers
2088
views
Export WiFi x509 client certificate
My Android (4.4) device has a WiFi configured which uses WPA2-TLS authentication with client certificates. I got my hands on the wpa_supplicant configuration and the relevant entry looks like this: network={ ssid="fobar" key_mgmt=WPA-EAP IEEE8021X eap=TLS identity="000123" password="000000" ca_cert=...
My Android (4.4) device has a WiFi configured which uses WPA2-TLS authentication with client certificates.
I got my hands on the wpa_supplicant configuration and the relevant entry looks like this:
network={ ssid="fobar" key_mgmt=WPA-EAP IEEE8021X eap=TLS identity="000123" password="000000" ca_cert="keystore://CACERT_fobar_WPA_EAPIEEE8021X_TLS_NULL" client_cert="keystore://USRCERT_fobar_WPA_EAPIEEE8021X_TLS_N" engine_id="keystore" key_id="USRPKEY_fobar_WPA_EAPIEEE8021X_TLS_NULL" engine=1 proactive_key_caching=1 }How can I get hold of the certificates and the key?
Frederick Nord
(243 rep)
Mar 25, 2015, 12:36 PM
• Last activity: Dec 21, 2021, 12:01 AM
11
votes
1
answers
23348
views
Connecting to WiFi via ADB Shell
I've tried all publicly discussed methods I could find to connect to WiFi via ADB on a phone with a broken screen (no display/no touch). The closest I have got is via `wpa_cli` using the method #1 described below. Other methods that I tried are also mentioned but with no success. My goal for this br...
I've tried all publicly discussed methods I could find to connect to WiFi via ADB on a phone with a broken screen (no display/no touch). The closest I have got is via
wpa_cli
using the method #1 described below.
Other methods that I tried are also mentioned but with no success. My goal for this broken phone is to use it as a headless server either via LinuxDeploy or native apps for Android, and for that I need to get VNC running and for that I need to connect to Wifi somehow.
Solutions for connecting to Wifi OR otherwise getting VNC access to the Android display (using ADB usb only) are welcome. I don't have a USB-C Network card so using that isn't an option at this stage.
### Method #1 - Using WPA_CLI
In this case I leave /data/misc/wifi/wpa_supplicant.conf and /data/misc/wifi/WifiConfigStore.xml untouched and just pop into wpa_cli
using adb shell
### wpa_cli Setup
> add_network
0
> set_network 0 scan_ssid 1
OK
> set_network 0 ssid "my_ssid"
OK
> set_network 0 key_mgmt WPA-PSK
OK
> set_network 0 psk "my_wifi_pass"
OK
> enable_network 0
OK
CTRL-EVENT-STATE-CHANGE id=-1 state=3 BSSID=00:00:00:00:00:00 SSID=
CTRL-EVENT-SCAN-STARTED
CTRL-EVENT-SCAN-RESULTS
WPS-AP-AVAILABLE
Trying to associate with SSID 'fy-huawei-m9'
CTRL-EVENT-STATE-CHANGE id=-1 state=5 BSSID=00:00:00:00:00:00 SSID=
CTRL-EVENT-STATE-CHANGE id=0 state=6 BSSID=00:00:00:00:00:00 SSID=fy-huawei-m9
Associated with 50:01:d9:41:d7:00
CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
CTRL-EVENT-STATE-CHANGE id=0 state=7 BSSID=50:01:d9:41:d7:00 SSID=fy-huawei-m9
CTRL-EVENT-STATE-CHANGE id=0 state=8 BSSID=50:01:d9:41:d7:00 SSID=fy-huawei-m9
WPA: Key negotiation completed with 50:01:d9:41:d7:00 [PTK=CCMP GTK=CCMP]
CTRL-EVENT-CONNECTED - Connection to 50:01:d9:41:d7:00 completed [id=0 id_str=]
CTRL-EVENT-STATE-CHANGE id=0 state=9 BSSID=50:01:d9:41:d7:00 SSID=fy-huawei-m9
CTRL-EVENT-DISCONNECTED bssid=50:01:d9:41:d7:00 reason=3 locally_generated=1
CTRL-EVENT-STATE-CHANGE id=0 state=0 BSSID=50:01:d9:41:d7:00 SSID=fy-huawei-m9
CTRL-EVENT-SCAN-STARTED
CTRL-EVENT-SCAN-RESULTS
Looks like the wifi interface associates momentarily with the SSID but then immediately disconnects.
#### Logcat Output
01-01 00:16:25.358 1074 1913 D WifiService: setWifiEnabled: true pid=2849, uid=0, package=com.android.shell
01-01 00:16:25.358 1074 1913 I WifiService: setWifiEnabled package=com.android.shell uid=0 enable=true
01-01 00:16:25.362 756 756 I android.hardware.wifi@1.0-service: Wifi HAL started
01-01 00:16:25.371 756 756 I android.hardware.wifi@1.0-service: Wifi driver is ready: Success
01-01 00:16:25.625 756 756 I WifiHAL : Initializing wifi
01-01 00:16:25.625 951 963 I LOWI-8.5.0.3.a: [LOWIController] isWifiEnabled: Wifi is now enabled
01-01 00:16:25.635 756 756 I WifiHAL : mpdu_size_threshold : 128, aggressive_statistics_gathering : 0
01-01 00:16:25.636 1074 1675 I WifiVendorHal: Vendor Hal started successfully
01-01 00:16:25.636 1074 1675 D WificondControl: Setting up driver for client mode
01-01 00:16:25.770 1074 1675 D WifiStateMachine: Setting OUI to DA-A1-19
01-01 00:16:25.772 756 756 E WifiHAL : wifi_set_scanning_mac_oui: requestResponse Error:-1
01-01 00:16:25.774 1074 1675 E WifiVendorHal: setScanningMacOui(l.1445) failed {.code = ERROR_UNKNOWN, .description = unknown}
01-01 00:16:25.784 1074 1675 I WifiVendorHal: Driver: 5.1.1.28U Firmware: FW:1.0.0.133.0 HW:WCN3990_V2.1
01-01 00:16:25.799 1074 1110 I WifiService: requestActivityInfo uid=1000
01-01 00:16:25.799 1074 1110 I WifiService: reportActivityInfo uid=1000
01-01 00:16:25.799 1074 1110 I WifiService: getSupportedFeatures uid=1000
01-01 00:16:25.835 1074 1675 D WifiConnectivityHelper: Firmware supported feature set: 48931bf
01-01 00:16:25.836 1074 1677 I WifiScanningService: wifi driver loaded with scan capabilities: max buckets=6
01-01 00:16:25.840 1074 1675 D WifiConnectivityHelper: Firmware roaming supported with capabilities: max num blacklist bssid=16 max num whitelist ssid=4
01-01 00:16:25.841 1074 1675 D WifiNative-wlan0: configureRoaming
01-01 00:16:25.842 1074 1675 I WifiStateMachine: disconnectedstate enter
01-01 00:16:25.844 1074 1675 D WifiStateMachine: resetting EAP-SIM/AKA/AKA' networks since SIM was changed
01-01 00:16:25.844 1074 1675 I chatty : uid=1000(system) WifiStateMachin identical 2 lines
01-01 00:16:25.845 1074 1675 D WifiStateMachine: resetting EAP-SIM/AKA/AKA' networks since SIM was changed
01-01 00:16:25.854 1074 1110 I WifiService: requestActivityInfo uid=1000
01-01 00:16:25.854 1074 1110 I WifiService: reportActivityInfo uid=1000
01-01 00:16:25.854 1074 1110 I WifiService: getSupportedFeatures uid=1000
01-01 00:16:25.939 1835 1973 I QCNEJ/CndHalConnector: -> SND notifyWifiP2pStateChanged(5)
01-01 00:16:55.456 1074 1913 D WifiService: setWifiEnabled: true pid=2876, uid=0, package=com.android.shell
01-01 00:16:55.456 1074 1913 I WifiService: setWifiEnabled package=com.android.shell uid=0 enable=true
01-01 00:17:35.524 1074 1110 I WifiService: requestActivityInfo uid=1000
01-01 00:17:35.524 1074 1110 I WifiService: reportActivityInfo uid=1000
01-01 00:17:35.525 1074 1110 I WifiService: getSupportedFeatures uid=1000
01-01 00:19:35.647 756 2865 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0x6a
01-01 00:19:36.272 756 2865 I WifiHAL : event received NL80211_CMD_VENDOR, vendor_id = 0x1374, subcmd = 0x6b
01-01 00:19:36.441 1074 1675 W WifiConfigManager: Looking up network with invalid networkId -1
01-01 00:19:36.442 1074 1675 W WifiStateMachine: Connected to unknown networkId -1, disconnecting...
01-01 00:19:37.260 756 2865 E WifiHAL : Few pkt stats messages missed: rcvd = 0, prev = 0
01-01 00:19:37.260 756 2865 I WifiHAL : Fate Tx-Rx: Packet fate stats stop received
01-01 00:19:58.058 1074 1110 I WifiService: requestActivityInfo uid=1000
01-01 00:19:58.058 1074 1110 I WifiService: reportActivityInfo uid=1000
01-01 00:19:58.059 1074 1110 I WifiService: getSupportedFeatures uid=1000
The key line here are:
01-01 00:19:36.441 1074 1675 W WifiConfigManager: Looking up network with invalid networkId -1
01-01 00:19:36.442 1074 1675 W WifiStateMachine: Connected to unknown networkId -1, disconnecting...
Looks like the WifiConfigManager won't let me connect to a network which isn't defined in /data/misc/wifi/WifiConfigStore.xml
## Method #2 - Naive definition in wpa_supplicant.conf
In this attempt I simply define the entwork in wpa_supplicant.conf and don't touch /data/misc/wifi/WifiConfigStore.xml
Here is what my wpa_supplicant.conf looks like:
### wpa_supplicant.conf
update_config=1
ctrl_interface=DIR=/data/system/wpa_supplicant GROUP=wifi
eapol_version=1
ap_scan=1
fast_reauth=1
network={
ssid="my_ssid"
psk="my_wifi_pass"
key_mgmt=WPA-PSK
priority=241
}
I then proceed to disable and re-enable the wifi service using svc wifi disable
and svc wifi enable
, and even reboot the phone but in both cases it doesn't seem to even attempt connecting to the network. The invalid networkId -1
message still pops up.
### Logcat Output:
01-01 00:00:06.649 1062 1062 D WifiService: resetting networks because SIM was removed
01-01 00:00:06.649 1062 1062 D WifiService: resetting country code because SIM is removed
01-01 00:00:06.649 1062 1062 D WifiService: resetting networks because SIM was removed
01-01 00:00:06.649 1062 1062 D WifiService: resetting country code because SIM is removed
01-01 00:00:06.649 1062 1670 D WifiStateMachine: resetting EAP-SIM/AKA/AKA' networks since SIM was changed
01-01 00:00:06.650 1062 1670 D WifiStateMachine: resetting EAP-SIM/AKA/AKA' networks since SIM was changed
01-01 00:00:07.055 1062 1073 D WificondControl: Scan result ready event
01-01 00:00:07.061 1062 1670 W WifiConfigManager: Looking up network with invalid networkId -1
## Method #3 - Copying WifiConfigStore.xml from a different phone connecting to this SSID
As a last ditch attempt, I restored the original wpa_supplicant.conf and copied over WifiConfigStore.xml from a phone running the same Android version that successfully connects to the WiFi network in question. Then I rebooted the phone
### WifiConfigStore.xml
"fy-huawei-m9"WPA_PSK
"fy-huawei-m9"
"THEFORTUNE"
02
0b
01
0f
06
android.uid.system:1000
time=08-02 08:39:20.369
android.uid.system:1000
NETWORK_SELECTION_ENABLED
NETWORK_SELECTION_ENABLE
"fy-net-ac"WPA_PSK
DHCP
NONE
### wpa_supplicant.conf
01-01 00:00:05.424 1073 1637 D WifiConfigStore: Reading from user store completed in 4 ms.
01-01 00:00:05.440 1073 1637 D WifiConfigStore: Writing to stores completed in 16 ms.
01-01 00:00:05.440 1073 1637 D WIFI : got request NetworkRequest [ TRACK_DEFAULT id=6, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ] with score 0
01-01 00:00:05.442 1073 1637 D WifiConnectivityHelper: Firmware supported feature set: 48931bf
01-01 00:00:05.442 1073 1637 D WifiConnectivityHelper: Firmware roaming supported with capabilities: max num blacklist bssid=16 max num whitelist ssid=4
01-01 00:00:05.443 1073 1637 D WifiNative-wlan0: configureRoaming
01-01 00:00:05.443 1073 1637 D WIFI : got request NetworkRequest [ TRACK_DEFAULT id=3, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ] with score 0
01-01 00:00:05.443 1073 1637 D WIFI : got request NetworkRequest [ TRACK_DEFAULT id=9, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ] with score 0
01-01 00:00:05.443 1073 1637 D WIFI : got request NetworkRequest [ REQUEST id=1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ] with score 0
01-01 00:00:05.443 1073 1637 D WIFI_UT : got request NetworkRequest [ TRACK_DEFAULT id=6, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ] with score 0
01-01 00:00:05.443 1073 1637 D WIFI_UT : got request NetworkRequest [ TRACK_DEFAULT id=3, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ] with score 0
01-01 00:00:05.443 1073 1637 D WIFI_UT : got request NetworkRequest [ TRACK_DEFAULT id=9, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ] with score 0
01-01 00:00:05.443 1073 1637 D WIFI_UT : got request NetworkRequest [ REQUEST id=1, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VPN] ] with score 0
01-01 00:00:05.445 1073 1676 I SupplicantP2pIfaceHal: Registering ISupplicant service ready callback.
01-01 00:00:05.447 1073 1689 I SupplicantP2pIfaceHal: IServiceNotification.onRegistration for: android.hardware.wifi.supplicant@1.0::ISupplicant, default preexisting=true
01-01 00:00:05.447 1073 1689 I zygote64: Looking for service android.hardware.wifi.supplicant@1.0::ISupplicant/default
01-01 00:00:05.449 1073 1689 D SupplicantP2pIfaceHal: entering getInterface()
01-01 00:00:05.449 1073 1689 D SupplicantP2pIfaceHal: getInterface() completed successfully.
01-01 00:00:05.449 1073 1689 D SupplicantP2pIfaceHal: leaving getInterface() with result = android.hardware.wifi.supplicant@1.0::ISupplicantP2pIface@Proxy
01-01 00:00:05.450 1073 1689 D SupplicantP2pIfaceHal: entering registerCallback()
01-01 00:00:05.450 1073 1689 D SupplicantP2pIfaceHal: registerCallback() completed successfully.
01-01 00:00:05.450 1073 1689 D SupplicantP2pIfaceHal: leaving registerCallback()
01-01 00:00:05.450 1073 1689 I SupplicantP2pIfaceHal: Completed initialization of ISupplicant interfaces.
01-01 00:00:05.484 1073 1632 I WifiService: getConfiguredNetworks uid=1000
01-01 00:00:05.543 1073 1073 D WifiService: resetting networks because SIM was removed
01-01 00:00:05.543 1073 1073 D WifiService: resetting country code because SIM is removed
01-01 00:00:05.543 1073 1637 D WifiStateMachine: resetting EAP-SIM/AKA/AKA' networks since SIM was changed
01-01 00:00:05.544 1073 1073 D WifiService: resetting networks because SIM was removed
01-01 00:00:05.544 1073 1073 D WifiService: resetting country code because SIM is removed
01-01 00:00:05.544 1073 1637 D WifiStateMachine: resetting EAP-SIM/AKA/AKA' networks since SIM was changed
01-01 00:00:05.556 1073 1676 D SupplicantP2pIfaceHal: entering setWpsDeviceName(Android_d3d3)
01-01 00:00:05.556 1073 1676 D SupplicantP2pIfaceHal: setWpsDeviceName(Android_d3d3) completed successfully.
01-01 00:00:05.556 1073 1676 D SupplicantP2pIfaceHal: leaving setWpsDeviceName(Android_d3d3)
01-01 00:00:05.556 1073 1676 D SupplicantP2pIfaceHal: entering setSsidPostfix(-Android_d3d3)
01-01 00:00:05.557 1073 1676 D SupplicantP2pIfaceHal: setSsidPostfix(-Android_d3d3) completed successfully.
01-01 00:00:05.557 1073 1676 D SupplicantP2pIfaceHal: leaving setSsidPostfix(-Android_d3d3)
01-01 00:00:05.557 1073 1676 D SupplicantP2pIfaceHal: entering setWpsDeviceType(10-0050F204-5)
01-01 00:00:05.557 1073 1676 D SupplicantP2pIfaceHal: setWpsDeviceType(10-0050F204-5) completed successfully.
01-01 00:00:05.558 1073 1676 D SupplicantP2pIfaceHal: leaving setWpsDeviceType(10-0050F204-5)
01-01 00:00:05.558 1073 1676 D SupplicantP2pIfaceHal: entering setWpsConfigMethods(virtual_push_button physical_display keypad)
01-01 00:00:05.558 1847 1956 I QCNEJ/CndHalConnector: -> SND notifyWifiP2pStateChanged(5)
01-01 00:00:05.559 1073 1676 D SupplicantP2pIfaceHal: setWpsConfigMethods(virtual_push_button physical_display keypad) completed successfully.
01-01 00:00:05.559 1073 1676 D SupplicantP2pIfaceHal: leaving setWpsConfigMethods(virtual_push_button physical_display keypad)
01-01 00:00:05.559 1073 1676 D SupplicantP2pIfaceHal: entering getDeviceAddress()
01-01 00:00:05.559 1073 1676 D SupplicantP2pIfaceHal: getDeviceAddress() completed successfully.
01-01 00:00:05.560 1073 1676 D SupplicantP2pIfaceHal: leaving getDeviceAddress() with result = 82:ad:16:7a:57:57
01-01 00:00:05.560 1073 1676 D SupplicantP2pIfaceHal: entering flush()
01-01 00:00:05.561 1073 1676 D SupplicantP2pIfaceHal: flush() completed successfully.
01-01 00:00:05.561 1073 1676 D SupplicantP2pIfaceHal: leaving flush()
01-01 00:00:05.561 1073 1676 D SupplicantP2pIfaceHal: entering serviceFlush()
01-01 00:00:05.561 1073 1676 D SupplicantP2pIfaceHal: serviceFlush() completed successfully.
01-01 00:00:05.561 1073 1676 D SupplicantP2pIfaceHal: leaving serviceFlush()
01-01 00:00:05.561 1073 1676 D SupplicantP2pIfaceHal: entering listNetworks()
01-01 00:00:05.562 1073 1676 D SupplicantP2pIfaceHal: listNetworks() completed successfully.
01-01 00:00:05.562 1073 1676 D SupplicantP2pIfaceHal: leaving listNetworks() with result = []
01-01 00:00:05.562 1073 1676 D SupplicantP2pIfaceHal: entering saveConfig()
01-01 00:00:05.569 1073 1676 D SupplicantP2pIfaceHal: saveConfig() completed successfully.
01-01 00:00:05.569 1073 1676 D SupplicantP2pIfaceHal: leaving saveConfig()
01-01 00:00:06.108 1073 1834 D WificondControl: Scan result ready event
01-01 00:00:06.113 1073 1637 W WifiConfigManager: Looking up network with invalid networkId -1
Still no luck. Don't know what else I can do at this point but not giving up just yet.
Fahad Yousuf
(221 rep)
Aug 13, 2018, 06:26 AM
• Last activity: Jun 7, 2020, 11:27 PM
0
votes
0
answers
1258
views
wpa_supplicant issues on android phone
**Disclaimer:** My knowledge of android as well as the inner workings of wifi connections are exceedingly limited. Additionally, I'm new to stackoverflow, so I might just be the worst customer you had... I'm having issues with my android phone (Fairphone 2). For some reason, I cannot connect to any...
**Disclaimer:** My knowledge of android as well as the inner workings of wifi connections are exceedingly limited. Additionally, I'm new to stackoverflow, so I might just be the worst customer you had...
I'm having issues with my android phone (Fairphone 2).
For some reason, I cannot connect to any new WiFi, i.e. ones I did not connect to before. The
logcat
shows the errors:
02-24 11:33:49.215 2221 3763 E WifiConfigStore: Failed to look-up a string: WPA_EAP
02-24 11:33:49.215 2221 3763 E WifiConfigStore: Failed to look-up a string: IEEE8021X
02-24 11:33:50.221 23048 7088 E WakeLock: GCM_HB_ALARM release without a matched acquire!
02-24 11:33:50.223 23048 7088 E WakeLock: GCM_CONN_ALARM release without a matched acquire!
02-24 11:33:50.857 25094 25094 E wpa_supplicant: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory
02-24 11:33:50.857 25094 25094 E wpa_supplicant: nl80211: Failed to set IPv4 unicast in multicast filter
02-24 11:33:50.858 25094 25094 E wpa_supplicant: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory
02-24 11:33:50.858 25094 25094 E wpa_supplicant: nl80211: Failed to set IPv4 unicast in multicast filter
02-24 11:33:50.860 25094 25094 E wpa_supplicant: nl80211: Failed to open /proc/sys/net/ipv4/conf/wlan0/drop_unicast_in_l2_multicast: No such file or directory
02-24 11:33:50.860 25094 25094 E wpa_supplicant: nl80211: Failed to set IPv4 unicast in multicast filter
So I was thinking: I'm missing a file. Googling
I found [this](https://sysctl-explorer.net/net/ipv4/drop_unicast_in_l2_multicast/) webpage, so I tried to push a file of that name to the /proc/sys/net/ipv4/conf/wlan0/
folder, but I cannot do that since my phone is not rooted.
Interestingly, I found out this morning that I can connect to the open (unencrypted) wifi at my university.
My Android version is 7.1.2
I have literally no idea what is going on, so any help would be much appreciated, especially since I reset all my network settings (before I knew the issue is related to new WiFi connections in general, not just the new one I got at home), so now ALL WiFi networks are new to my phone.
Thanks a bunch in advance
*Edit:* Added some more of the error log
TrueTobster
(1 rep)
Feb 24, 2020, 10:03 AM
• Last activity: Feb 24, 2020, 10:36 AM
4
votes
1
answers
1595
views
Does Android send Wi-Fi probe requests to saved hidden networks?
Let's put this scenario: I manually add an existing Wi-Fi network that does not broadcast SSID. For some reason the encryption passphrase doesn't match, so authentication is impossible. Previously hidden SSID is now shown in Wi-Fi networks list. Click on hidden SSID that is now shown and forget its...
Let's put this scenario:
I manually add an existing Wi-Fi network that does not broadcast SSID. For some reason the encryption passphrase doesn't match, so authentication is impossible. Previously hidden SSID is now shown in Wi-Fi networks list.
Click on hidden SSID that is now shown and forget its settings. Click on the same hidden SSID now presented on the list and set a correct passphrase. Authentication is done successfully.
My question is if the network is still considered a hidden network on
wpa_supplicant.conf
?
In the future if Android client does not send a direct probe request for a specific hidden SSID and instead sends a broadcast probe, will it be unable to detect the network?
roznav
(41 rep)
Feb 15, 2020, 02:57 PM
• Last activity: Feb 16, 2020, 09:50 PM
3
votes
2
answers
2730
views
How to recover stored wifi password?
My Android device (A Samsung Galaxy S7 SM-G930F, version 6.0.1) has different wi-fi networks saved. I would like to recover some of the password it has stored. Browsing through the web I searched possible solutions but none of it has worked for me. - Stored password in wpa_supplicant.conf are encryp...
My Android device (A Samsung Galaxy S7 SM-G930F, version 6.0.1) has different wi-fi networks saved. I would like to recover some of the password it has stored.
Browsing through the web I searched possible solutions but none of it has worked for me.
- Stored password in wpa_supplicant.conf are encrypted, and even if I change the build properties "ro.securestorage.support" to false, old password remain encrypted or get deleted, and I would like to recover those.
- I know that wi-fi password usually get backed-up on google drive, but I have no idea how to recover them from the backup online.
- I heard about an Xposed module "Wifi password" which supposedly should show the wifi password instead of the normal dots, but I have a TouchWiz device and if I install the Xposed Framework i'm afraid it would wipe my data, included my wifi password.
I understand that encryption is meant to keep safe your password, but as far as I know, every time I try to connect to a wifi network it uses the real password, so they have to be stored somewhere or decrypted on the go.
Can anyone help me?
EDIT: As I said, if I change
ro.securestorage.support
property on build.prop
file, my stored password either get deleted or they remain hashed.
If i delete .system.wpa_supplicant
>all saved WiFi hotspots will be lost for the first time.
Also as said in the comments, the password isn't encrypted so there's no "way" to decrypt it, but it's hashed and there should be a way to recover it
Iztooi
(43 rep)
Oct 15, 2019, 10:10 AM
• Last activity: Oct 16, 2019, 11:18 AM
0
votes
1
answers
8280
views
Recovering Wifi Password without Root on Galaxy Note 3
I am trying to recover WiFi password without rooting my phone. There are 2 ways I found online. One using a file explorer and the next is using ADB. I tried using ADB but I failed in doing so. I'm really not sure if I did it right but then I just followed the instructions here from [Quora](http://ww...
I am trying to recover WiFi password without rooting my phone. There are 2 ways I found online. One using a file explorer and the next is using ADB. I tried using ADB but I failed in doing so. I'm really not sure if I did it right but then I just followed the instructions here from [Quora](http://www.quora.com/How-do-you-see-a-saved-Wi-Fi-password-on-Android-without-root-privileges) . Anyway, I have pulled the
wpa_supplicant.conf
and this is the only thing I see:
update_config=1
eapol_version=1
ap_scan=1
fast_reauth=1
I should be seeing this instead of the one above:
network={
ssid="NETWORK_NAME_HERE"
psk="PASSWORD_HERE"
key_mgmt=WPA-PSK
priority=1
}
Is there something that I missed or it's just not really applicable? I have Samsung Galaxy Note 3 SM-N9005.
user3771102
(101 rep)
Jul 8, 2015, 03:12 AM
• Last activity: Aug 22, 2019, 10:01 PM
0
votes
0
answers
50
views
In which Android system file can I remove Wi-Fi password field?
If I would root my device based on Android (v4.0.4), which system file and how can I change to remove from the graphic interface the field where we manually type a password when connecting to new Wi-Fi hotspot? ps. This is an additional and separate question to https://android.stackexchange.com/q/21...
If I would root my device based on Android (v4.0.4), which system file and how can I change to remove from the graphic interface the field where we manually type a password when connecting to new Wi-Fi hotspot?
ps. This is an additional and separate question to https://android.stackexchange.com/q/215579/302598
stckvrw
(121 rep)
Aug 17, 2019, 11:23 AM
• Last activity: Aug 17, 2019, 11:41 AM
6
votes
3
answers
126379
views
Decrypting wpa_supplicant.conf on Samsung Galaxy mobiles
When I do `cat` on `wpa_supplicant.conf` file on Samsung mobiles, I see that the passwords are encrypted. But when I open the same file on LG mobiles, I can see the passwords in plain text. This is what I see on my Galaxy S5. The information below is for my network which has a WPA password `77807780...
When I do
cat
on wpa_supplicant.conf
file on Samsung mobiles, I see that the passwords are encrypted. But when I open the same file on LG mobiles, I can see the passwords in plain text.
This is what I see on my Galaxy S5. The information below is for my network which has a WPA password 77807780
(psk
is the encrypted passkey):
network={
ssid=""
psk=fce6c4f64304b00c5783199bbd2b1f91
key_mgmt=WPA-PSK
priority=10
frequency=2462
autojoin=1
usable_internet=0
skip_internet_check=0
}
Is this a feature on Samsung mobiles? What kind of encryption is used to encrypt the password and how to decrypt them?
MOHAMMAD RASIM
(171 rep)
Jan 15, 2015, 08:09 AM
• Last activity: Apr 11, 2018, 01:46 AM
0
votes
1
answers
914
views
How is it possible to export the wpa_supplicant.conf from tablet?
My tablet is connect to a wifi requiring EAP method, phase 2 authentification, login+password and proxy. and It works well. The thing is i want to do the same for a RPi, but I don't know how to provide it with these wifi infos. Thus, I'd need to export the wpa_supplicant.conf it use it on my RPi. No...
My tablet is connect to a wifi requiring EAP method, phase 2 authentification, login+password and proxy. and It works well.
The thing is i want to do the same for a RPi, but I don't know how to provide it with these wifi infos. Thus, I'd need to export the wpa_supplicant.conf it use it on my RPi.
Note : I can't root my tablet.
How would it be possible? Thank you (please be explicite, I don't master this field very well)
Jonathan Potier
(1 rep)
Aug 29, 2017, 02:45 PM
• Last activity: Aug 29, 2017, 03:41 PM
1
votes
1
answers
2421
views
wpa_supplicant.conf permission
So I'm facing this problem for a while now . What happens is that my phone reboots automatically sometimes and after the reboot I can't use my WiFi . The button is stuck at off: [![screenshot][1]][2] So after doing some research on this I wiped my `/data/misc/WiFi` folder to fix it (didn't create a...
So I'm facing this problem for a while now . What happens is that my phone reboots automatically sometimes and after the reboot I can't use my WiFi . The button is stuck at off:
So after doing some research on this I wiped my
Can anybody guide me how I can fix this ?

/data/misc/WiFi
folder to fix it (didn't create a backup though). So the problem got fixed but it came back again. So I wiped again and it didn't work this time.
In order to restore the folder I copied the WPA_supplicant files in the folder manually. But I don't know what permission to set it to . And even if I change the permissions it gets reverted back to 0660. Also I don't know whether the the .conf
file is even compatible for my phone as I got that one from an XDA post.

Tejus
(111 rep)
Apr 28, 2017, 01:56 PM
• Last activity: Aug 14, 2017, 08:31 PM
3
votes
1
answers
268
views
How does wpa_supplicant differ from the Linux (say Debian) version
**What are the major differences between `wpa_supplicant` found on a Debian Linux distribution and that `wpa_supplicant` found on android?** PS: please apology if the question is too generic
**What are the major differences between
wpa_supplicant
found on a Debian Linux distribution and that wpa_supplicant
found on android?**
PS: please apology if the question is too generic
j1088099.mvrht.com.
(156 rep)
Jan 5, 2017, 02:27 PM
• Last activity: Jan 5, 2017, 03:10 PM
0
votes
1
answers
6136
views
Sony Xperia L WiFi and Bluetooth not turning on
It happened a couple of months ago when I accidentally relocked my bootloader through the Flashtool instead of Backup TA , wifi and bluetooth became inconsistent and kept on crashing the phone. It sometimes starts to work for a short period of time , but then phone crashes and it doesn't work again...
It happened a couple of months ago when I accidentally relocked my bootloader through the Flashtool instead of Backup TA , wifi and bluetooth became inconsistent and kept on crashing the phone.
It sometimes starts to work for a short period of time , but then phone crashes and it doesn't work again for a long time and sometimes on a random reboot it starts again, only to crash the phone. It keeps on showing
Turning WiFi/Bluetooth on...
but it does not turn on.
Here's what all I have tried...
1. Going back to stock ROM and relocking bootloader through restoring TA. (But it didn't help , its worse on stock ROM my phone freezes and I have to go back to custom ROM)
2. I visited the service centre after doing a software repair and relocking it.(They told I might need to replace the motherboard to get it right , its 10 thousand rupees making it senseless option)
3. Tried to look into phone's important files related to wifi and bluetooth to see if something can be done( I don't have enough coding knowledge so I couldn't understand much)
I need help of anyone with knowledge on this topic to kindly help me. I have my TA backup with me. I am ready to provide you with any logs etc. you might need to diagnose the problem.
Also , I have seen some related questions like this but I want a specific solution for a Sony device.And for Android 4.4.4. After reading related questions I think it has to do something with wpa_supplicant files and other module files.
Here is a logcat output:-
--------- beginning of /dev/log/main
I/dalvikvm( 2960): Enabling JNI app bug workarounds for target SDK version 11...
E/Term ( 2960): onCreate
D/Term ( 2960): TermService started
I/TermService( 2960): Activity called onBind()
I/Adreno-EGL( 2960): : EGL 1.4 QUALCOMM build: (CL3869936)
I/Adreno-EGL( 2960): OpenGL ES Shader Compiler Version: 17.01.11.SPL
I/Adreno-EGL( 2960): Build Date: 03/28/14 Fri
I/Adreno-EGL( 2960): Local Branch:
I/Adreno-EGL( 2960): Remote Branch:
I/Adreno-EGL( 2960): Local Patches:
I/Adreno-EGL( 2960): Reconstruct Branch:
D/OpenGLRenderer( 2960): Enabling debug mode 0
I/Term ( 2960): Bound to TermService
I/TermService( 2960): Activity binding to service
D/dalvikvm( 2960): Trying to load lib /data/app-lib/jackpal.androidterm-1/libjackpal-androidterm4.so 0x41f95c48
D/dalvikvm( 2960): Added shared lib /data/app-lib/jackpal.androidterm-1/libjackpal-androidterm4.so 0x41f95c48
I/libjackpal-androidterm( 2960): JNI_OnLoad
I/Term ( 2960): waiting for: 2976
W/IInputConnectionWrapper( 2960): showStatusIcon on inactive InputConnection
I/Term ( 2960): waiting for: 3133
D/dalvikvm( 2960): GC_CONCURRENT freed 616K, 15% free 4143K/4836K, paused 9ms+4ms, total 35ms
W/InputEventReceiver( 2960): Attempted to finish an input event but the input event receiver has already been disposed.
I/Term ( 2960): Subprocess exited: 129
W/InputEventReceiver( 2960): Attempted to finish an input event but the input event receiver has already been disposed.
W/InputEventReceiver( 2960): Attempted to finish an input event but the input event receiver has already been disposed.
W/IInputConnectionWrapper( 2960): showStatusIcon on inactive InputConnection
W/IInputConnectionWrapper( 2960): showStatusIcon on inactive InputConnection
W/IInputConnectionWrapper( 2960): showStatusIcon on inactive InputConnection
W/IInputConnectionWrapper( 2960): showStatusIcon on inactive InputConnection
W/IInputConnectionWrapper( 2960): showStatusIcon on inactive InputConnection
D/dalvikvm( 2960): GC_CONCURRENT freed 1240K, 22% free 4823K/6140K, paused 3ms+29ms, total 68ms
W/InputEventReceiver( 2960): Attempted to finish an input event but the input event receiver has already been disposed.
I/Term ( 2960): waiting for: 5269
I/Term ( 2960): waiting for: 5284
I/Term ( 2960): Subprocess exited: 129
I/Term ( 2960): Subprocess exited: 129
W/InputEventReceiver( 2960): Attempted to finish an input event but the input event receiver has already been disposed.
W/IInputConnectionWrapper( 2960): showStatusIcon on inactive InputConnection
E/Term ( 2960): onCreate
D/dalvikvm( 2960): GC_CONCURRENT freed 2139K, 33% free 4669K/6880K, paused 1ms+9ms, total 76ms
I/Term ( 2960): Bound to TermService
I/TermService( 2960): Activity binding to service
W/InputEventReceiver( 2960): Attempted to finish an input event but the input event receiver has already been disposed.
coolhz
(128 rep)
Dec 18, 2014, 10:56 PM
• Last activity: Oct 18, 2016, 06:47 AM
0
votes
1
answers
1566
views
How to get back accidentally deleted `wpa_supplicant` file?
I was trying to get Ad-Hoc working on my Konka i127 Android Jelly Bean 4.2.2 phone, and I accidentally deleted my `wpa_supplicant` file. Now, I cannot turn on my Wi-Fi connection anymore. How do I get my `wpa_supplicant` file back?
I was trying to get Ad-Hoc working on my Konka i127 Android Jelly Bean 4.2.2 phone, and I accidentally deleted my
wpa_supplicant
file. Now, I cannot turn on my Wi-Fi connection anymore.
How do I get my wpa_supplicant
file back?
Aaron Hatfield
(1 rep)
Jul 28, 2015, 01:55 AM
• Last activity: Jul 30, 2015, 06:48 PM
0
votes
0
answers
867
views
WiFi not starting : accidentally deleted wpa_supplicant file
My device is **moto g xt1033 android 5.0.2** (rooted). During my experiments for enabling reverse tethering over USB, I accidentally replaced the original WPA_supplicant file from system/bin folder with the one downloaded from internet. Now my WiFi , Wi-Fi hotspot won't start.
My device is **moto g xt1033 android 5.0.2** (rooted). During my experiments for enabling reverse tethering over USB, I accidentally replaced the original WPA_supplicant file from system/bin folder with the one downloaded from internet.
Now my WiFi , Wi-Fi hotspot won't start.
Arun Tom
(131 rep)
Apr 9, 2015, 01:30 PM
• Last activity: Apr 13, 2015, 05:55 PM
0
votes
1
answers
725
views
How to force wpa_supplicant to connect to AP and skip scanning
I have been using wpa_supplicant to connect to an AP on an Android device running ICS. I have defined a few APs within the network block in the `wpa_suplicant.conf` file. The problem is every time the device restarts, it does a fresh scanning which takes up a lot of time. What I would like to do is...
I have been using wpa_supplicant to connect to an AP on an Android device running ICS. I have defined a few APs within the network block in the
wpa_suplicant.conf
file. The problem is every time the device restarts, it does a fresh scanning which takes up a lot of time. What I would like to do is to force wpa_supplicant to just try re-connecting to one of the APs present within the network block of config file and not undergo a full scan. Am I missing an option somewhere (either command line or in config file) to achieve this without making changes to wpa_supplicant code?
kpax
(1 rep)
Aug 19, 2014, 03:42 PM
• Last activity: Aug 29, 2014, 11:16 AM
Showing page 1 of 15 total questions