[FREE MOBILE][FreeWifi_secure][WIFI][EAP-SIM] HOWTO

Search This thread

fxjumper

Senior Member
Nov 29, 2011
57
78
Lyon
Hi,

In France, the 4th Mobile Operator, FREE, is launching a wifi access for mobile phone. This access is relayed by all the Adsl Box from FREE ADSL.

The SSID of this Wifi Access is "FreeWifi_secure" and it is protect by WPA EAP-SIM.

FREE is solding some android phones with the ability to configure EAP-SIM but they do not share the changes they made it on their Roms.

I use an EVO 3D GSM with KingIceCobra3D 1.2. And i found a simple method to connect to this wifi.

In the file:
/data/misc/wifi/wpa_supplicant.conf

Code:
adb shell cat /data/misc/wifi/wpa_supplicant.conf

ctrl_interface=wlan0
update_config=1
device_type=10-0050F204-4
config_methods="push_button keypad"

[COLOR="Red"]network={
        ssid="FreeWifi_secure"
        key_mgmt=WPA-EAP IEEE8021X
        eap=SIM
        priority=5
}
[/COLOR]

Add theses Lines in red

Carefull to preserve the rigths of this file after the modification

1) Get the File and rename it to wpa_supplicant.conf
2)
Code:
adp push wpa_supplicant.conf /data/misc/wifi/wpa_supplicant.conf
adb shell chown 1000:1010 /data/misc/wifi/wpa_supplicant.conf
adb shell chmod 660 /data/misc/wifi/wpa_supplicant.conf
adb shell ls -l /data/misc/wifi/wpa_supplicant.conf
-rw-rw----    1 1000     1010           272 May 17 09:10 /data/misc/wifi/wpa_supplicant.conf

adb shell cat /data/misc/wifi/wpa_supplicant.conf
ctrl_interface=wlan0
update_config=1
device_type=10-0050F204-4
config_methods="push_button keypad"

network={
        ssid="FreeWifi_secure"
        key_mgmt=WPA-EAP IEEE8021X
        eap=SIM
        priority=5
}

FXJumper.
 

Attachments

  • wpa_supplicant.conf.txt
    272 bytes · Views: 10,318
Last edited:

mgl2

Member
May 18, 2012
48
4
PARIS
Hi Fxjumper,

I'm really interesting in your solution.
I don't find data/misc ...

Can I create it or have I to use a specific file manager.
I have tried with "file manager" and "file expert"


Thanks for your help


Optimus 2X - CM7 Temasek Kang -104
 
Last edited:
  • Like
Reactions: Clem_Kos

Tilde88

Senior Member
Nov 5, 2008
2,409
1,612
Hi Fxjumper,

I'm really interesting in your solution.
I don't find data/misc ...

Can I create it or have I to use a specific file manager.
I have tried with "file manager" and "file expert"


Thanks for your help


Optimus 2X - CM7 Temasek Kang -104

Use a root file browser. Root Explorer. Also, be sure to mount it as RW (advanced options)
 

mgl2

Member
May 18, 2012
48
4
PARIS
Thank u for your help.

a) All right : I put the wpa_supplicant.conf into my phone but now i can't activate wifi due to an error :(

b) what the second code is for ? (what have i to do with this code ?)

thx


Edit : a) it's Ok now after editing the file : i don't have to replace the initial text but to add the red text from fxjumper (i'm an idiot cause that's what he said :) )

The B) point isn't resolve : what is the code for and when have i to put it inside ?
 
Last edited:

fxjumper

Senior Member
Nov 29, 2011
57
78
Lyon
Hello,

The second code is an example to install the wpa_supplicant.conf file. This replaces your ssid configured.

Your solution is preferable, because you do not remove your existing configuration but add the SSID "FreeWifi_secure".

Sincerely,
 
  • Like
Reactions: Clem_Kos and B_e_n

B_e_n

Senior Member
Aug 16, 2010
469
78
Paris
Hello,

The second code is an example to install the wpa_supplicant.conf file. This replaces your ssid configured.

Your solution is preferable, because you do not remove your existing configuration but add the SSID "FreeWifi_secure".

Sincerely,

It works for you????
I did it and it can t connect to the network but it s trying now...
Any idea?
 

fxjumper

Senior Member
Nov 29, 2011
57
78
Lyon
Precisions

(Google traduction --- sorry)
After a few questions in Private Message, here is a method from a blank file and edit it.


i) file format (dos or unix encode)
ii) to file permissions

This is how I propose to proceed

1) recovering the file on the computer
2) we change
3) upload it on the mobile
4) we check the consistency of the file (right)

------------------------
It is left
------------------------

1) I assume the phone is Rooted
we will save the file wpa_supplicant.conf that derail and recreate one:

Code:
adb shell
cd /data/misc/wifi
cp-a wpa_supplicant.conf wpa_supplicant.conf.sav
rm wpa_supplicant.conf
exit

Switch OFF/ON the wifi

Copy the file on the computer
pull adb shell /data/misc/wifi/wpa_supplicant.conf wpa_supplicant.conf

2) To modify the file I suggest you use notepad++
http://download.tuxfamily.org/notepa....Installer.exe

Edit the file, and add at the end

network = {
ssid = "FreeWifi_secure"
key_mgmt = WPA-EAP IEEE8021X
eap = SIM
priority = 5
}

save

3) is the upload
Code:
adb push wpa_supplicant.conf /data/misc/wifi/wpa_supplicant.conf.new

4) It checks the credentials and the owner and the old file

Code:
adb shell
cd /data/misc/wifi/
ls -l wpa_supplicant.conf
----> -rw-rw ---- 1 1000 1010 185 May 20 5:31 p.m. wpa_supplicant.conf

We crush our file
Code:
cat wpa_supplicant.conf.new > wpa_supplicant.conf

This should solve our problem of right and permissions
we check again:

Code:
ls -l wpa_supplicant.conf
----> -rw-rw ---- 1 1000 1010 185 May 20 5:31 p.m. wpa_supplicant.conf

Sincerely,
 
  • Like
Reactions: B_e_n

tuxstang

Member
Apr 20, 2011
6
4
Another way, as we most use a custom rooted rom, is to use a rooted filemanager.

For exemple, i use ES File Explorer, set so it accesses /data RW, then edit the file with ES's editor. No need to set back file's permissions.
 

B_e_n

Senior Member
Aug 16, 2010
469
78
Paris
Another way, as we most use a custom rooted rom, is to use a rooted filemanager.

For exemple, i use ES File Explorer, set so it accesses /data RW, then edit the file with ES's editor. No need to set back file's permissions.

And it works for you??????
I did it and it can t connect....

Who have it working?????? and what did you do????
 

fxjumper

Senior Member
Nov 29, 2011
57
78
Lyon
And it works for you??????
I did it and it can t connect....

Who have it working?????? and what did you do????
Hello B_E_N,

In private message, you said you are using a motorola milestone xt720 under cronosx 2.3.7, a cyanogen mod 7 customized.

Now i sent you a patch with /system/framework/com.orange.authentication.simcard.jar

We are waiting your test ...

Sincerely,
 
  • Like
Reactions: B_e_n

severin333

Senior Member
Apr 18, 2011
90
35
Toulouse
CM9 nightlies + SGS

Hello,

I just tried this modification, but cannot find a way to make it work...even though I doublecheck both the permission and the content of the file :confused:

For information, I'm running CM9 nightlies for my Samsung Galaxy S.
 

mgl2

Member
May 18, 2012
48
4
PARIS
Until now it doesn't work for me ... even with rom toolbox. Permissions and owners are checked and ok.

Next try : via adb & androisd sdk.

o2x - cm7 - FREE
 

mgl2

Member
May 18, 2012
48
4
PARIS
One more thing : no more error message but wifi try to connect without result ...

o2x - cm7 - FREE
 

tuxstang

Member
Apr 20, 2011
6
4
And it works for you??????
I did it and it can t connect....

Who have it working?????? and what did you do????

Here's how i proceede from ground up on my EVO 3D, with Mwakious, Predator and KingCobra ICS roms.

1/ go in settings and select FreeWifi_secure
2/ set a lock PIN as requested
3/ switch off WiFi
4/ open ES File Explorer
5/ check "Up to Root", "Root Explorer" and "Mount FileSystem" in ES File Explorer settings
6/ navigate to /data/misc/wifi
7/ edit wpa_supplicant.conf
8/ save
9/ switch on WiFi and select FreeWifi_secure
10/ unset lock PIN

Hope it helps.
 

keyra74

Senior Member
Aug 6, 2009
1,453
203
it was that easy?????
should work on all rooted phone so

works like a charm on my evo
 
Last edited:

mgl2

Member
May 18, 2012
48
4
PARIS
Don't work with my phone...
How do you change owners parameters with ES explorer ?

Regards.

o2x - cm7 - FREE
 

Anolnx

Senior Member
Mar 2, 2008
101
6
I'm using CM7.2 on a Nexus One.

I edited the file with ES Explorer, saved, activated wifi...

But doesn't work... It tries to connect but fails.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 35
    Hi,

    In France, the 4th Mobile Operator, FREE, is launching a wifi access for mobile phone. This access is relayed by all the Adsl Box from FREE ADSL.

    The SSID of this Wifi Access is "FreeWifi_secure" and it is protect by WPA EAP-SIM.

    FREE is solding some android phones with the ability to configure EAP-SIM but they do not share the changes they made it on their Roms.

    I use an EVO 3D GSM with KingIceCobra3D 1.2. And i found a simple method to connect to this wifi.

    In the file:
    /data/misc/wifi/wpa_supplicant.conf

    Code:
    adb shell cat /data/misc/wifi/wpa_supplicant.conf
    
    ctrl_interface=wlan0
    update_config=1
    device_type=10-0050F204-4
    config_methods="push_button keypad"
    
    [COLOR="Red"]network={
            ssid="FreeWifi_secure"
            key_mgmt=WPA-EAP IEEE8021X
            eap=SIM
            priority=5
    }
    [/COLOR]

    Add theses Lines in red

    Carefull to preserve the rigths of this file after the modification

    1) Get the File and rename it to wpa_supplicant.conf
    2)
    Code:
    adp push wpa_supplicant.conf /data/misc/wifi/wpa_supplicant.conf
    adb shell chown 1000:1010 /data/misc/wifi/wpa_supplicant.conf
    adb shell chmod 660 /data/misc/wifi/wpa_supplicant.conf
    adb shell ls -l /data/misc/wifi/wpa_supplicant.conf
    -rw-rw----    1 1000     1010           272 May 17 09:10 /data/misc/wifi/wpa_supplicant.conf
    
    adb shell cat /data/misc/wifi/wpa_supplicant.conf
    ctrl_interface=wlan0
    update_config=1
    device_type=10-0050F204-4
    config_methods="push_button keypad"
    
    network={
            ssid="FreeWifi_secure"
            key_mgmt=WPA-EAP IEEE8021X
            eap=SIM
            priority=5
    }

    FXJumper.
    10
    remerciements?

    Just checked on mwakious3Drom 4.0 ... works great :D

    I would like +1 on my "thank meter" and you will my first fan ;-)

    merci,

    fx
    4
    Just checked on mwakious3Drom 4.0 ... works great :D
    2
    Hello,

    The second code is an example to install the wpa_supplicant.conf file. This replaces your ssid configured.

    Your solution is preferable, because you do not remove your existing configuration but add the SSID "FreeWifi_secure".

    Sincerely,
    1
    Hi Fxjumper,

    I'm really interesting in your solution.
    I don't find data/misc ...

    Can I create it or have I to use a specific file manager.
    I have tried with "file manager" and "file expert"


    Thanks for your help


    Optimus 2X - CM7 Temasek Kang -104