Post Reply

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

OP fxjumper

18th May 2012, 11:44 AM   |  #1  
fxjumper's Avatar
OP Member
Flag Lyon
Thanks Meter: 66
 
46 posts
Join Date:Joined: Nov 2011
More
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"

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:
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, 6073 views)
Last edited by fxjumper; 5th August 2012 at 09:48 PM.
The Following 34 Users Say Thank You to fxjumper For This Useful Post: [ View ]
18th May 2012, 02:08 PM   |  #2  
Junior Member
Thanks Meter: 4
 
6 posts
Join Date:Joined: Apr 2011
Just checked on mwakious3Drom 4.0 ... works great
The Following 4 Users Say Thank You to tuxstang For This Useful Post: [ View ]
18th May 2012, 04:05 PM   |  #3  
fxjumper's Avatar
OP Member
Flag Lyon
Thanks Meter: 66
 
46 posts
Join Date:Joined: Nov 2011
More
remerciements?
Quote:
Originally Posted by tuxstang

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: [ View ]
18th May 2012, 07:05 PM   |  #4  
mgl2's Avatar
Member
Flag PARIS
Thanks Meter: 4
 
48 posts
Join Date:Joined: May 2012
More
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 by mgl2; 18th May 2012 at 07:10 PM. Reason: I give my phone specs
The Following User Says Thank You to mgl2 For This Useful Post: [ View ]
18th May 2012, 07:16 PM   |  #5  
Senior Member
Thanks Meter: 211
 
1,022 posts
Join Date:Joined: Nov 2008
Quote:
Originally Posted by mgl2

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)
18th May 2012, 08:33 PM   |  #6  
mgl2's Avatar
Member
Flag PARIS
Thanks Meter: 4
 
48 posts
Join Date:Joined: May 2012
More
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 by mgl2; 18th May 2012 at 08:50 PM. Reason: I find a part of solution
19th May 2012, 12:25 PM   |  #7  
fxjumper's Avatar
OP Member
Flag Lyon
Thanks Meter: 66
 
46 posts
Join Date:Joined: Nov 2011
More
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: [ View ]
19th May 2012, 02:47 PM   |  #8  
Senior Member
Flag Paris
Thanks Meter: 81
 
469 posts
Join Date:Joined: Aug 2010
More
Quote:
Originally Posted by fxjumper

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?
20th May 2012, 07:02 PM   |  #9  
fxjumper's Avatar
OP Member
Flag Lyon
Thanks Meter: 66
 
46 posts
Join Date:Joined: Nov 2011
More
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:
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,
The Following User Says Thank You to fxjumper For This Useful Post: [ View ]
20th May 2012, 10:01 PM   |  #10  
Junior Member
Thanks Meter: 4
 
6 posts
Join Date:Joined: 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.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes