Connect Android Phone to LEAP WiFi

Android phone can connect to WiFi wireless network, but it only supports simple authentication, such as WEP key, if WiFi has security settings. There is no support for LEAP in current Android. At least no support in GUI configuration wizard. Lots of users have been requesting this feature (1386, 1871) in Android’s Google Code site. But wait a minute, does Android really not support LEAP? Take a look at WifiConfiguration.AuthAlgorithm in apidocs, there is a constant for LEAP. Yes, Android supports LEAP, but there is not option on GUI configuration.

Enter into CLI mode thru Terminal or ConnectBot, change to root user, and edit the wpa_supplicant.conf file.

# cd /data/misc/wifi
# vi wpa_supplicant.conf

The following is the content of my copy. Successfully connected to my company wireless network.

network={
  ssid="your_ssid"
  key_mgmt=IEEE8021X
  auth_alg=OPEN SHARED LEAP
  eap=LEAP
  identity="your_username"
  password="your_password"
}

[UPDATE] 2 Jun 2010:

My company changed LEAP security from WEP static key to AES/TKIP recently. The above configuration didn’t work anymore. Now I’m using the following configuration:

network={
  ssid="your_ssid"
  key_mgmt=WPA-EAP
  group=CCMP TKIP
  eap=LEAP
  identity="your_username"
  password="your_password"
}

By the way, this configuration works well on Android 1.5, 1.6, and 2.1.

Have fun.

This entry was posted in Android and tagged . Bookmark the permalink.

26 Responses to Connect Android Phone to LEAP WiFi

  1. mt says:

    works like a charm ! thanks.

  2. Yahya says:

    Thanks a lot !!! this worked for me as well. I can connect now to the corporate network.

    I was not able to edit the file as suggested from shell vi so I ended up using pull and push.

    Thanks again for the tip…

  3. bigjobs says:

    Does your phone have to have root access granted to make this change?

  4. realgt says:

    I was able to get a LEAP connection setup on my non-rooted android 2.1 (HTC EVO)…w/o read or write access to wpa_supplicant.conf!
    i’m working on a distributable solution at this point. hit me up @realgt on twitter for more info

  5. Hanson.S says:

    I bet we’re in the same company according to this post… :)

  6. Roy says:

    Hello, my company use LEAP, and Data encryption is WEP or AES. I used your configuration, but the WIFI can not start up with it.
    network={
    ssid=”IBM”
    key_mgmt=WPA-EAP
    group=CCMP TKIP
    eap=LEAP
    identity=”my_username”
    password=”my_password”
    }

    Do you know how to modify it for AES or WEP? Pls kindly show me, thank you very much in advance.

  7. richard says:

    @Roy, I’m at Ring Building, the configuration works for my G2. Don’t know why it doesn’t work for yours.. Maybe different building has different wireless security within IBM? Not sure..

  8. Roshan says:

    To modify this file wpa_supplicant.conf, is it necessary for me to root my phone ?

  9. Jing Lv says:

    @Roy, I am in ZJ building(LEAP+AES), my configuration is:
    network={
    ssid=”IBM”
    scan_ssid=1
    key_mgmt=IEEE8021X
    auth_alg=LEAP
    eap=LEAP
    identity=”my_username”
    password=”my_password”
    }
    And it works well for me.
    And as found in google, add a line
    phase2=”AUTH=WSCHAPV2″
    may help you.

  10. Mel says:

    I am @ Diamond, it works well for me. V1.5.
    :)

  11. richard says:

    @Roshan, Yes, phone needs to be rooted.

  12. Kai says:

    Hi, Im also trying to connect with leap. But I cant find that file on my Galaxy S. Should I just create it, or might there be a different config file for different UI’s?

    Thanks in advance,

    Kai

    • 黄 允松 says:

      Try to connect to any wireless network you can find around, this file should be created automatically. Then you can edit it. – Of course, please make sure that your phone is rooted.

      • Kai says:

        Thanks for the quick reply.
        I’ve found the file (on my Galaxy S it was under /system/etc/wifi/). Howerver, I did the change and it still doesn’t seem to work. I’m rooted, edited the file with su and rebooted. File still contains change after reboot. But company Networt does not appear in network list on UI… Home network does… Any other suggestions?

        Thanks, Kai

        • Kai says:

          Edit: I just realized, that my home network does not appear in this file either.
          Meaning there is no entry in this file stating
          network={
          ssid=
          [...]
          }…
          So could it be that this file is not used in this particular case?

      • Andy says:

        But Realgt says he did it on his non-rooted Evo with 2.1 software.
        I have a Desire on 2.2, non-rooted, and I want to connect to my work LEAP wifi. Any help?

  13. Richard says:

    @Kai
    I don’t think /system/etc/wifi/wpa_supplicant.conf is the right configuration file. This file is for system-wide configurations. The user data goes /data/…

    I just found a post on Android’s dev site, seems that the file on Samsung Galaxy is /data/misc/wifi/bcm_supp.conf. But please be CAREFUL, some guys are failed by hand-editing this file.

  14. Claes says:

    I have just released LEAP Configurator. Go to http://code.google.com/p/leapconfigurator/ and find out more.

  15. Rakesh says:

    I have Android 2.1 and DROIDX.

    I got ConnectBot installed and tried this command: su root, but the console says permission denied.

    Does anyone know how to change to root for my case?

  16. Rakesh says:

    Actually, I used LEAP Wifi (free) application from Android Market and it worked. I am connected to my corporate wifi.

    • Richard says:

      That’s true. More and more configuration tools for LEAP come into Android Market. It’s not necessary to edit the file manually.

  17. Jesse says:

    Thanks. Your configuration works for me (in Ring).
    But one tip: after modify the .conf file, must restart the phone to let it take effect.

    network={
    ssid=”your_ssid”
    key_mgmt=WPA-EAP
    group=CCMP TKIP
    eap=LEAP
    identity=”your_username”
    password=”your_password”
    }

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">