Configuración.
Para la configuración del terminal dentro de un entorno de red con WPA2 empresarial + EAP será precisa la modificación para su posterior invocación del fichero wpa_supplicant que se encuentra bajo el directorio /etc/wifi
La configuración del mismo deberá incluir la información de seguridad de la conexión tal como muestra el fichero de configuración de un equipo con Sistema Operativo Debian usando la misma tecnología:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
network={
ssid="ESSID"
key_mgmt=WPA-EAP
proto=WPA2
pairwise=CCMP
group=TKIP
eap=TTLS
identity="usuario"
password="contraseña"
priority=2
phase2="autheap=MD5"
}
Para la invocación:
Opción 1
Como root escribimos:
iwconfig eth1 essid ESSID
wpa_supplicant -D wext -i eth1 -c /etc/wpa_supplicant/wpa_supplicant.conf
dhclient eth1
En el teléfono deberemos conocer previamente el nombre del adaptador de red.
Opción 2
Editando el archivo /etc/network/interfaces
pre-up ifconfig eth1 up
pre-up wpa_supplicant -D wext -i eth1 -c /etc/wpa_supplicant/wpa_supplicant.conf
post-down killall -q wpa_supplicant
post-down ifconfig eth1 down
Problemas conocidos.
Tal como se expone anteriormente las modificaciones sobre el fichero wpa_supplicant.conf requieren privilegios de root, por lo que para conseguirlos la forma más sencilla parece el downgrade del Android del terminal a la release RC29NBH y aprovecharnos del bug que presenta para la consecución de el referido objetivo.
Las instrucciones, en inglés, para el proceso, extraídas de aquí son las siguientes:
If you have US-RC30/UK-RC8 or higher, you will first need to downgrade your phone to a previous version. (Skip these steps otherwise)
1. Format your phone's SD card to FAT32 mode:
o Hook your phone up to your computer using a USB cable and then wait for the notification to show up in your title bar of your phone.
o Click the notification, and then click "Mount".
o A new removable disk should show up on your computer. Right click it and select Format, and select FAT32 as the file system type.
2. Download and unzip the RC29 or RC7 image file. Copy the DREAMIMG.nbh file to the SD card. (RC29 for US, RC7 is for UK)
3. Turn the device power off.
4. Hold Camera button, and press Power button to entry bootloader mode. You should see a gray/white screen with instructions to flash your phone with the update on your SD card. If you don't see that, make sure you followed the instructions properly.
5. As per the on-screen instructions, press the Power button to start upgrade procedure. DO NOT DO ANYTHING TO INTERRUPT THIS PROCESS.
6. After it is finished, perform the restart your phone.
Once installed previous versión:
1. Download recovery.img and copy it to your SD card (see the previous instructions on how to copy from your computer to your Phone's SD card).
2. Download the Hard SPL and copy the zip file to the SD card.
3. All files must be on the root of your SD card.
4. Restart your phone. Wait for your phone to start up fully and show the home screen.
5. After your phone starts up, type "telnetd" and press enter. (Yes, it will start up a contact search, don't worry. Just type it.)
6. Download an Android "Telnet" application from the Market and connect to localhost.
7. If you connect successfully, you will have a root prompt "#".
8. Type the following into Telnet (these commands will give you root access easier in the future):
o mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
o cd sdcard
o flash_image recovery recovery.img
o cat recovery.img > /system/recovery.img
Now you have root!