[Q] Manual WPA Supplicant configuration: - HD2 Android Q&A, Help & Troubleshooting and Genera

I see this here: http://htc-linux.org/wiki/index.php?title=LeoWifi#Ad_Hoc_Mode
Manually setting up WiFi in Android (not needed)
Manual WPA Supplicant configuration:
add the following to the file /data/misc/wifi/wpa_supplicant.conf This will enable you to connect automatically to any open AP.
Code:
network={
# ssid="AP-NAME"
key_mgmt=NONE
}
Does this mean, if i add that into that file, when ever i turn on wifi it will try to connect to anything that it finds open automaticly? BUT still be able to select select manualy any wifi that is locked down?

Related

Editing wpa_supplicant without root access?

Hey guys,
Since there's no way back from rooting the N1 at the moment I'm a little reluctant to do so. The main reason I want it is to be able to manually edit the wpa_supplicant file, as my work network is supported by Android, but not by the wireless settings GUI, so I have to enter the settings manually.
Is anyone aware of any tricks or apps that will allow me to edit this file without root access?
Thanks!
Editing wpa_supplicant.conf
snoopstah said:
Hey guys,
Since there's no way back from rooting the N1 at the moment I'm a little reluctant to do so. The main reason I want it is to be able to manually edit the wpa_supplicant file, as my work network is supported by Android, but not by the wireless settings GUI, so I have to enter the settings manually.
Is anyone aware of any tricks or apps that will allow me to edit this file without root access?
Thanks!
Click to expand...
Click to collapse
Looking at the this file in /etc/wifi and the fact that it commences with a # I'd say not. Like other Linux systems files, you need to be root to edit and save the file.
I guess you are on a 801.1x authenticated wifi network and want it to look like the following (or similar):
##### wpa_supplicant configuration file template #####
update_config=1
ctrl_interface=eth0
eapol_version=1
ap_scan=1
fast_reauth=1
network={
ssid="SSID NAME"
scan_ssid=1
key_mgmt=IEEE8021X
eap=PEAP
phase2="auth=MSCHAPV2"
identity="usuallyfullemailaddress"
password="MY_PASSWORD"
ca_cert="PATH_TO_USER_CERTIFICATE.cer"
priority=1
}
Pity this cannot be done with the SDK.

[FIXED] WPA-EAP working?

Anyone tried WPA-EAP access points?
I cannot connect with my Archos 70 IT 8GB
I put the following on my /data/misc/wifi/wpa_supplicant.conf
network={
ssid="myCorp"
key_mgmt=WPA-EAP
eap=PEAP
identity="xxxx"
password="yyyyy"
ca_cert="keystore://CACERT_my"
phase2="auth=MSCHAPV2"
priority=1
disable_pm=1
}
i've enabled secure store and imported ca.cert file
all Windows laptops are able to connect with this cert only
i doubt that this is not supported by current Archos firmware, but if someone could try...
bobybc said:
Anyone tried WPA-EAP access points?
I cannot connect with my Archos 70 IT 8GB
I put the following on my /data/misc/wifi/wpa_supplicant.conf
i've enabled secure store and imported ca.cert file
all Windows laptops are able to connect with this cert only
i doubt that this is not supported by current Archos firmware, but if someone could try...
Click to expand...
Click to collapse
I use peap at home and leap at work. No certs though. Get yourself WIFI Advanced Configuration Editor from the market. It has all those options. That's how I got leap to work.
I've used this editor too
but it seems that there is a bug with certificates :
code.google.com/p/android/issues/detail?id=8804
Click to expand...
Click to collapse
if someone can build wpa_supplicant with proposed patch ...
Anyone obtain the following files from Eclair 2.1 ?
/system/bin/wpa_supplicant
/system/bin/wlan_loader
/system/bin/wlan_cu
i can`t
i can`t! anydon try?
10x 2 Steve , we have fixed version, but unfortunately it doesn't work on my Archos
http://code.google.com/p/android/issues/detail?id=8804
Let someone else try and confirm pls :
download
just unzip and copy to /system/bin
Anyone tried?
Sent from my A70S using Tapatalk
finally i managed to get it working
with wpa_supplicant module from CyanogenMod for Motorola Droid - see it attached
just unzip and copy to /system/bin and delete /data/misc/wifi/tiwlan.ini
of cource you need root access
you need to delete tiwlan.ini on every restart, because it's been always recovered
wpa_supplicant.conf file looks like :
ctrl_interface=tiwlan0
update_config=1
network={
ssid="MYCorporate"
key_mgmt=WPA-EAP IEEE8021X
eap=PEAP
identity="XXXX"
password="YYYY"
priority=1
}
Click to expand...
Click to collapse

adhoc "not in range" issue

Hi all
I am facing a problem with HyperDroid-CM7-v2.0.1 build. Its when I try to connect to wifi adhoc connection it says "not in range".
I reinstalled the ROM but no gain. Someone suggested to use correct recovery size and I did use 150Mb only and its fresh installed ROM there are no other programs in phone right now. So please guide me how to solve this issue. Any solution will be appreciated.
Thanks
I have the same issue in HyperDroid-CM7-v2.0.1 & TyphooN CyanogenMod 7 Nightly v3.2.9, with HyperDroidGBX-v12 everything works fine
Try installing the latest SuperUser app from the Android Market, maybe that will help. It fixed my none working HotSpot on HyperDroid-CM7-v2.0.1.
not working
I had to install a specific adhoc fix using clockwork, called: wpa_supplicant_adhocfix_v0.6.10ah_update.zip
There may be a new version but i don't know, do a search for the file above and install. This allowed my phone to connect to adhoc networks
Thanks for all of the answers, now I have already installed GBX ROM and its working fine with it.
Though I could not locate this wpa_supplicant_adhocfix_v0.6.10ah_update.zip file anywhere.
I found a way to solve this problem
1) ADD your ad-hoc connection (it will appear at the end of the list)
2) go to data/misc/wifi and edit the wpa_supplicant.conf file like this
ctrl_interface=eth0
update_config=1
ap_scan=2
network={
ssid="Ad Hoc name"
mode=1
scan_ssid=1
key_mgmt=your_password
priority=41
}
3) turn on your wifi
sorry for my bad English
WiFi error after changing the wpa_supplicant.conf file
Just in case anyone who goes through the same grief as I did with a wifi error after changing the wpa_supplicant.conf file as detailed above here is what my problem was and the solution:
Problem: I used droid explorer to copy the original wpa_supplicant.conf to my desktop as a backup and then edit it with notepad. I then copied it back to the device with droid explorer.
In doing this process I changed the group and the ownership of the file to 'root' rather than 'wifi'. The startup process 'wifi' couldn't do what it needed with the file because it was now owned by 'root' (which droid explorer uses)
Solution: To check if this is the problem go to a terminal and type:
su
cd /data/misc/wifi
ls -l
it should come out with something like
-rw-rw-rw- 1 root root *size* *date/time* wpa_supplicant.conf
to change it type:
chown wifi wpa_supplicant.conf
chgrp wifi wpa_supplicant.conf
it should come out with something like
-rw-rw-rw- 1 wifi wifi*size* *date/time* wpa_supplicant.conf
I hope this helps. It might be becuase I am a complete noob to android but if this post had of been here it would have saved me a lot of grief.
I'm trying to set up ad-hoc networking with a new Casio Commando. I have another embedded Linux box with a working ad-hoc network.
The Casio is rooted. I've "adb push'd" the wpa_supplicant.conf to the Casio. I added these lines to the beginning of the /data/misc/wifi/wpa_supplicant.conf on the Casio as follows:
ctrl_interface=DIR=/data/misc/wifi/wpa_supplicant
update_config=1
ap_scan=2
network={
ssid="Ad Hoc"
mode=1
scan_ssid=1
key_mgmt=NONE
priority=41
}
When I restart WiFi on the Casio, the "Ad Hoc" network appears in the list, but it also says "Not In Range".
I know the "Ad Hoc" network in my embedded Linux device is in range - its right next to the phone. What am I missing?
Permissions and ownership of the wpa_supplicant.conf is
rw-rw-rw system root
thx.

[Q] Allow device to be pinged

Hi,
i need to ping my phone while on wifi. But it doesn't answer icmp requests since /proc/sys/net/ipv4/icmp_echo_ignore_all is always set to 1 after reboot.
I tried to set it through sysctl.conf
Code:
net.ipv4.icmp_echo_ignore_all=0
and also with a custom script in /data/local/userinit.d/99userinit containing :
Code:
echo "0" > /proc/sys/net/ipv4/icmp_echo_ignore_all
None worked. However i tried to put logs in my script to check wether it was actually run at startup or not, but i couldn't find my entries in logcat.
Can anyone help ?

Modifying the wpa_supplicant.conf file on TB-X304F

Hello. I have 285 different networks between the different campus apartments for which I am trying to add network profile information to a series of Lenovo Tab4 10 TB-X304F so they may connect without having our Apartment Managers carry around a list of wifi passwords.
So far, I have created a custom wpa_supplicant.conf file with all of the network blocks for each of the networks across the campus. I have rooted the device. I have pushed this custom file to /sdcard/TWRP. I then copied the file from /sdcard/TWRP to /data/misc/wifi.
Now we run into my issue, it appears that this file is stored in at least 3 locations which I have currently found, /etc/wifi, /system/etc/wifi and /data/misc/wifi. The other part of the problem is that these files appear to be rewritten/overwritten on boot. I have been trying to do my own research but everything I find is related to Raspbian or refers to a file structure which is different from this device's file structure.
Which of these file locations should I be updating with my custom wpa_supplicant.conf file? How do I stop the file from being rebuilt on boot? Or, how do I make the process, which builds the file on boot, build it with the networks I want added?
Am I missing any other steps?
I have also tried running " wpa_supplicant -iwlan0 -c/sdcard/TWRP/wpa_supplicant.conf -B " as a command in the adb shell with super user permissions and didn't receive any output or confirmation. What am I misunderstanding about the wpa_supplicant command?
Just in case here are the settings currently in /data/misc/wifi/wpa_supplicant.conf which I have copied into my custom file:
Code:
ctrl_interface=/data/misc/wifi/sockets
disable_scan_offload=1
driver_param=use_p2p_group_interface=1
update_config=1
device_name=LenovoTB-X304F
manufacturer=LENOVO
model_name=Lenovo TB-X304F
model_number=Lenovo TB-X304F
serial_number=<SerialNumber>
device_type=10-0050F204-5
config_methods=physical_display virtual_push_button
p2p_disabled=1
pmf=1
external_sim=1
tdls_external_control=1

Categories

Resources