Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,741,210 Members 49,526 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
fxjumper
Old
(Last edited by fxjumper; 5th August 2012 at 09:48 PM.)
#1  
fxjumper's Avatar
Member - OP
Thanks Meter 66
Posts: 46
Join Date: Nov 2011
Location: Lyon
Default [FREE MOBILE][FreeWifi_secure][WIFI][EAP-SIM] HOWTO

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:
Select 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"

network={
        ssid="FreeWifi_secure"
        key_mgmt=WPA-EAP IEEE8021X
        eap=SIM
        priority=5
}
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:
Select 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.
Attached Files
File Type: txt wpa_supplicant.conf.txt - [Click for QR Code] (272 Bytes, 5735 views)
The Following 34 Users Say Thank You to fxjumper For This Useful Post: [ Click to Expand ]
 
tuxstang
Old
#2  
Junior Member
Thanks Meter 4
Posts: 6
Join Date: Apr 2011
Just checked on mwakious3Drom 4.0 ... works great
The Following 4 Users Say Thank You to tuxstang For This Useful Post: [ Click to Expand ]
 
fxjumper
Old
#3  
fxjumper's Avatar
Member - OP
Thanks Meter 66
Posts: 46
Join Date: Nov 2011
Location: Lyon
Default remerciements?

Quote:
Originally Posted by tuxstang View Post
Just checked on mwakious3Drom 4.0 ... works great
I would like +1 on my "thank meter" and you will my first fan ;)

merci,

fx
The Following 9 Users Say Thank You to fxjumper For This Useful Post: [ Click to Expand ]
 
mgl2
Old
(Last edited by mgl2; 18th May 2012 at 07:10 PM.) Reason: I give my phone specs
#4  
mgl2's Avatar
Member
Thanks Meter 4
Posts: 48
Join Date: May 2012
Location: 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
The Following User Says Thank You to mgl2 For This Useful Post: [ Click to Expand ]
 
Tilde88
Old
#5  
Senior Member
Thanks Meter 211
Posts: 1,022
Join Date: Nov 2008
Quote:
Originally Posted by mgl2 View Post
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
Old
(Last edited by mgl2; 18th May 2012 at 08:50 PM.) Reason: I find a part of solution
#6  
mgl2's Avatar
Member
Thanks Meter 4
Posts: 48
Join Date: May 2012
Location: 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 ?
 
fxjumper
Old
#7  
fxjumper's Avatar
Member - OP
Thanks Meter 66
Posts: 46
Join Date: Nov 2011
Location: 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,
The Following 2 Users Say Thank You to fxjumper For This Useful Post: [ Click to Expand ]
 
B_e_n
Old
#8  
Senior Member
Thanks Meter 81
Posts: 469
Join Date: Aug 2010
Location: Paris
Quote:
Originally Posted by fxjumper View Post
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
Old
#9  
fxjumper's Avatar
Member - OP
Thanks Meter 66
Posts: 46
Join Date: Nov 2011
Location: Lyon
Cool 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:
Select 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:
Select 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:
Select 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:
Select Code
cat wpa_supplicant.conf.new > wpa_supplicant.conf
This should solve our problem of right and permissions
we check again:

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

Sincerely,
The Following User Says Thank You to fxjumper For This Useful Post: [ Click to Expand ]
 
tuxstang
Old
#10  
Junior Member
Thanks Meter 4
Posts: 6
Join Date: Apr 2011
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.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes