For FROYO (2.2), refer to http://waipeng.blogspot.com/2010/07/nus-wireless-on-android-froyo.htmlFor ECLAIR (2.1 and below), follow the below instructionsYou need adb to be working. Please refer to
http://developer.android.com/sdk/index.htmlTo confirm that it is working, issue "adb device". Your device should show up.
- Copy the wpa_supplicant file to your computer
adb pull /data/misc/wifi/wpa_supplicant.conf wpa_supplicant.conf
- Edit the wpa_supplicant.conf to reflect the below
ap_scan=2
network={
ssid="NUS"
key_mgmt=IEEE8021X
group=WEP104 WEP40
auth_alg=OPEN SHARED
eap=PEAP
identity="<nusnetid>"
anonymous_identity="<nusnetid>"
password="<password>"
ca_cert="/data/misc/wifi/cert.pem"
phase2="auth=MSCHAPV2"
}
- Download the attached cert.pem.
- Push both cert.pem and wpa_supplicant.conf to the device.
adb push wpa_supplicant.conf /data/misc/wifi/wpa_supplicant.conf
adb push cert.pem /data/misc/wifi/cert.pem
- Change the permissions of the file
chown wifi.wifi /data/misc/wifi/wpa_supplicant.conf
chown wifi.wifi /data/misc/wifi/cert.pem