wpa_supplicant help - XPERIA X10 General

Can some help with what is in the wpa_supplicant.conf before I edited mine, as I didn't backup.
I just used the one I had from my G1, but now when I turn on Wifi it can't scan and turns off wireless. I assume their is some difference.
Previously I had:
ctrl_interface=tiwlan0
update_config=1
network={
fill in the blanks etc.
}
Your help would be much appreciated.
Cheers

I'm pretty sure that contains instructions on how to your system uses wifi. I'm pretty sure you can't dump one from a different phone. Why are you trying to modify it? I want to mod it so i can connect to ad hoc networks

I want to edit so I can connect to my works wifi, which is a university. It uses TTLS-PAP, these options do not come up when I try and connect.
The info at the top should be the same as on all phone of the same model I suspect.
If someone can't provide me the info, I suppose I will have to reflash.
Cheers.

update_config=1
ctrl_interface=DIR=/data/system/wpa_supplicant GROUP=system
Click to expand...
Click to collapse
This is the original on the 24 firmware.

thanks man, This is what I got too now. I figured out that if I delete it then reboot it will create a new one.
Cheers

Related

Can't connect to Eduroam

I've been trying to connect to my university Wifi (eduroam) for quite a while now- but having no luck at all. Is there anything special I need to do to get this working? Really need wifi on my htc hero while im at uni Help please.
may i ask what uni?
wifi helper on the market should be able to configure it although i couldn't get it to work with my hero. so ive JUST configured the wpa_supplicant.conf manually for eduroam at UCL...
since im not on campus atm i will report back results tomorrow to see if it works
my_space said:
may i ask what uni?
wifi helper on the market should be able to configure it although i couldn't get it to work with my hero. so ive JUST configured the wpa_supplicant.conf manually for eduroam at UCL...
since im not on campus atm i will report back results tomorrow to see if it works
Click to expand...
Click to collapse
Hahh!! Im UCL too!
university shouldn't matter, eduroam is a multi-university service
it certainly worked on my hero, though I can't check that now (don't work there any more)
security wpa (or wpa2, can't remember) enterprise, eap PEAP, subtype MSCHAPv2
ok ive got eduroam to work
you will need to download the GTE CyberTrust Global Root certificate in pem format ( i have renamed it to eduroamcert.pem below)
these are the settings for wpa_supplicant i have used to get it to work:
Code:
network={
ssid="eduroam"
proto=WPA
key_mgmt=WPA-EAP
pairwise=TKIP
group=TKIP
eap=TTLS
phase2="auth=PAP"
anonymous_identity="[email protected]"
identity="[email protected]"
password="XXXXXX
ca_cert="/sdcard/eduroamcert.pem"
priority=3
}
doesnt matter what priority you use.
edit::
forgot to mention XXXX for identity is not ur email alias, rather what you use to log in, in the computer rooms
my_space said:
ok ive got eduroam to work
you will need to download the GTE CyberTrust Global Root certificate in pem format ( i have renamed it to eduroamcert.pem below)
these are the settings for wpa_supplicant i have used to get it to work:
Code:
network={
ssid="eduroam"
proto=WPA
key_mgmt=WPA-EAP
pairwise=TKIP
group=TKIP
eap=TTLS
phase2="auth=PAP"
anonymous_identity="[email protected]"
identity="[email protected]"
password="XXXXXX
ca_cert="/sdcard/eduroamcert.pem"
priority=3
}
doesnt matter what priority you use.
edit::
forgot to mention XXXX for identity is not ur email alias, rather what you use to log in, in the computer rooms
Click to expand...
Click to collapse
Hiya,
Sorry for the insanely late reply lol- have been busy with coursework- hence not being able to come here often. Only been trying to follow your instructions here to get eduroam working on my Hero...but I'm struggling.
Can you please tell me how I install the GTE cybertrust cert into my hero?? Ive downloaded the file....it d'loaded as a zip file. Do I extract it...then move it to the hero sd card??
And to access wpa_supplicant i need to use the windows command window while the htc is hooked up with my pc in recovery mode right?? and then I write in the code you showed me?
hi mate, dont worry about all the stuff above, you dont need it to connect to eduroam. just follow the instructions here (obviously with your own uni's settings and not oxfords):
http://www.oucs.ox.ac.uk/network/wireless/services/eduroam/android/
Eduroam networks generally use the recommended EAP-TTLS/PAP as authentification, which is not supported by the GUI utilities. It is true that some places (Oxford is amazingly good with their network services) offer alternatives like PEAP/MSCHAP precisely because mobile devices are often lacking other options. It all depends on your local network setup.
I just got back to Cambridge, and Eduroam works fine with an Orange Hero.
Go to wifi settings:
EAP Type = PEAP
Sub Type = PEAPc0/MSCHAPv2
Username = CRSID email address (ie. [email protected]) - NB Case sensitive
Password = Network token available from https://tokens.csx.cam.ac.uk/ (need to log in with Raven to this page)
my_space said:
ok ive got eduroam to work
you will need to download the GTE CyberTrust Global Root certificate in pem format ( i have renamed it to eduroamcert.pem below)
these are the settings for wpa_supplicant i have used to get it to work:
Code:
network={
ssid="eduroam"
proto=WPA
key_mgmt=WPA-EAP
pairwise=TKIP
group=TKIP
eap=TTLS
phase2="auth=PAP"
anonymous_identity="[email protected]"
identity="[email protected]"
password="XXXXXX
ca_cert="/sdcard/eduroamcert.pem"
priority=3
}
doesnt matter what priority you use.
edit::
forgot to mention XXXX for identity is not ur email alias, rather what you use to log in, in the computer rooms
Click to expand...
Click to collapse
It would be interesting to know where to find this wpa_supplicant thing, so I could edit it.
My university uses same GTE_CyberTrust_Global_Root protocol with eduroam. I've tried PEAPv0/MSCHAPv2 didn't worked.
Originalas said:
It would be interesting to know where to find this wpa_supplicant thing, so I could edit it.
My university uses same GTE_CyberTrust_Global_Root protocol with eduroam. I've tried PEAPv0/MSCHAPv2 didn't worked.
Click to expand...
Click to collapse
i think what you think of is EAP-TTLS (the GTE_.. is just a CertificationAuthority, if i am not wrong). as it was said, you can edit the wpa_supplicant file, somewhere in /data/etc/wifi/, if remember correctly. you could also wait for the 2.1 update, which will bring native support for this EAP-type which works very well.
HugoEgon said:
i think what you think of is EAP-TTLS (the GTE_.. is just a CertificationAuthority, if i am not wrong). as it was said, you can edit the wpa_supplicant file, somewhere in /data/etc/wifi/, if remember correctly. you could also wait for the 2.1 update, which will bring native support for this EAP-type which works very well.
Click to expand...
Click to collapse
I've HTC Desire, so I believe it's already runing 2.1. Though it connects to eduroam, but web pages and other stuff doesn't work.
Had Nokia and iPhone, both automatically downloaded all security stuff connecting first time.. and Android OS has some strange issues with eduroam wi-fi.
Here is a fix realmb.com/2010/01/android-certificate-installer/ you can install any security certificate using this to Android 1.6 and above.
Soz to dig up an old thread but I think it's relevent..
I've been trying to get my hero (T-mob G2) onto eduroam for ages, and I wanted to make the additions to wpa_supplicant but I don't know how to get access to the file system - I only seem to be able to mount the sdcard and not anything higher. I haven't rooted my phone.. is this why?
Thanks for any help :/
w0ss4g3 said:
Soz to dig up an old thread but I think it's relevent..
I've been trying to get my hero (T-mob G2) onto eduroam for ages, and I wanted to make the additions to wpa_supplicant but I don't know how to get access to the file system - I only seem to be able to mount the sdcard and not anything higher. I haven't rooted my phone.. is this why?
Thanks for any help :/
Click to expand...
Click to collapse
Umm yes. You must root first, and then remount using adb remount for this to work.
Easiest way is to install a custom ROM on your phone, as that will give you root

Wife Tether (How to make it work)

Hi guys, question, I can't get wifi tether to work on my netbook.
It's there anything special I have to do to the netbook in order for it to allow the connection because it says connected but the internet doesn't work, thanks in advance.
From the Subject Line, I though your were trying to tether your WIFE.... sadly, that is not something possible in most cases.
i had this problem, it was because i swapped out sd cards and didnt have the bin file on the new sd card..just Delete and reinstall the program, and a newly generated bin file will be placed on the card..should work!
Go to Menu -> Show Log. If you don't see something similar to
Loading bcm4329.ko module (fw_bcm4329.bin from /sdcard/android.tether)...
Click to expand...
Click to collapse
then you need to follow the instructions at code.google.com/p/android-wifi-tether/wiki/Setup_HTC_Desire_Incredible
Thanks guys.
Sent from my ADR6300 using XDA App

Adhoc connectivity (wpa_supplicant)

adhoc connectivity worked on galaxy s2
this trick found from another thread
you need a rooted phone & root explorer
1. Unzip the file attached here (wpa_supplicant.zip) and send wpa_supplicant to your phone.
2. Using Root Explorer go to the folder were you save it (wpa_supplicant) and copy the file.
3. Using Root Explorer, enter the /system folder and press the Mount W/R button (upper right corner)
4. Now go to /system/bin and backup your current wpa_supplicant, and paste the new one.
5. Set permissions to wpa_supplicant like attached picture, then go back to /system and press Mount R/O (upper right corner, so you leave everything exactly like it was) and reboot. Done. Enjoy AD-HOC!
Thanks for the patch, but before you get banned by some moderator, please remove your first attachment. It's a paid app/ WAREZ.
Root Explorer is paid. Don't post it.
Tested & working on sgs 2! Thx man!
I can see the ah hoc network established from my laptop now.. but when I try to connect, it stays in a state "Obtaining IP address" .. so cannot access internet anyway .. Is there any workaround? Thanks.
Thanks dude
excellent, previously i was using connectify to connect my phone to Laptop but the signal strength was so poor and also after few mins it is used to go down. Now got rid of the problem using this file.
Thanks again
ace117 said:
Tested & working on sgs 2! Thx man!
Click to expand...
Click to collapse
+1 for me too.
P.S. just replaced the original file using Root Explorer.
hi,
the same here that varunmagical with VillainRom 2.4.2.
gs2 is able to find adhoc network but cannot obtain an IP.
very much thanks if you can find a solution...
++
Thanks a lot
it worked for me.
I replaced this file. This step is important:change the WPA to WEP encryption mode on PC. AD-hoc is ok using my SII I9100 mobile.Pls to try it. tks.
still not for me despite the wep ad-hoc network created from the mac.
Set permissions to wpa_supplicant like attached picture, then go back to /system and press Mount R/O (upper right corner, so you leave everything exactly like it was) and reboot. Done. Enjoy AD-HOC!
Click to expand...
Click to collapse
what are the permissions to set?
is it important to switch back to Mount R/W ?
thank you
i have a tablet running android 2.3.3 rooted with superoneclick...i follow the instractions to copy paste the wpa_supplicant using root explorer.but when i open my wifi shows false and my table restarts.what i do wrong...i am lucky that i made copy of the original file
I´m actually able to see network but not to connect to it, any advise??
I take it this is not ICS / CM9 compatible ??
Galaxy S II
CF rooted stock 2.3.6
Working in free and WEP modes.
But there were problems with WinXP configuration.
(In wifi network first have myself to connect to created adhoc network, only then phone sees adhoc network)
Galaxy Note's WIFI VERY unstable after replacing wpa_suppliant.
I wanted to connect my galaxy note to my iPad's Mywi for wifi (ad hoc) connection.
Thus i did the following steps:
- root galaxy note using zergrush
- downloaded xda's replacement wpa_suppliant
- downloaded root explorer
- uploaded the replacement wpa_suppliant file to the phone and replaced the original one at /systems/bin
After this, my phone was able to connect to iPad's Mywi, BUT connection is VERY unstable and gets disconnected every 5-10mins. Also it takes really long to get it connected back, like about 10-15mins for it to try to get connected.
I've tried re-doing the WHOLE of the steps above, INCLUDING re-rooting my phone, but to no avail. My Wifi function was working perfectly fine prior to this.
Can some kind souls out there please advice me if I've done anything wrong in my steps? Or if there's any way to solve this (WITHOUT re-doing it back to the original)? thanks!
Hi! Recently I bought the Galaxy W equipped with GB 2.3.6 and yesterday I installed the latest january's firmware upgrade.
Did anybody try to install the modified wpa_supplicant into that device?
Thank you!
Antonio
Set permissions to wpa_supplicant like attached picture? Which permissions? Can you upload that pic again or just tell us what to mark, owner group others? read write execute? And from special permissions: Set UID, Set GID, Sticky?
By default at my stock wpa_supplicant permissions are set and marked like: Owner=mark at read, write and execute, Group=mark at read and execute,
Others=mark at read and execute. None of special permissions are marked.
Should it be the same for new copied wpa_supplicant or?
Thanks in advance...
Just one little question here. I hope someone takes time to answer it. I have been around reading about adhoc this and adhoc that. But what I wanna know if these methodes that enable adhoc functionality, allow 2 mobile devices to get connected to each other. I mean like between 2 SGSII not between a PC and a SGSII?
Like making one of the SGSIIs the center and the other client (or infrastructure or whatever it's called)?? Is this possible with all these adhoc enablers?
Can't turn Wi Fi on after using the file from OP.
Using ICS/CM9 Hydra rom.

How to connect to a Mobile HotSpot. 2ways.

Hi guys,
Since the mobile hot spot is an adhoc networks, so tablet cannot recognise it
directly.
So I found a instruction which is called can solve this problem.
We simply replace the original wpa_supplicant with the new one.
And put it in /System/Bin/.
I did the root and copy, but it still cannot find the adhoc hotspot for me.
So anyone have any idea?
Solution 1: solving it with the magic "wpa_supplicant"
Solution 2: changing the configuration of hotspot in my mobile to a normal wifi.
I'm waiting for anyone who can solve this.
Cheers
Winston
Hmm. I have a mytouch 4G and the A500 connects to the hotspot easily. No mods, rooting etc. needing.
Is this in relation to phones that are using less than carrier proposed methods for enabling hotspots?
Hi Neo,
According to what I have had known so far, it seems that google blocks this function,
so someone modified the wap_supplicant to enable the hotspot functionality.
franva said:
Hi guys,
Since the mobile hot spot is an adhoc networks, so tablet cannot recognise it
directly.
So I found a instruction which is called can solve this problem.
We simply replace the original wpa_supplicant with the new one.
And put it in /System/Bin/.
I did the root and copy, but it still cannot find the adhoc hotspot for me.
So anyone have any idea?
Solution 1: solving it with the magic "wpa_supplicant"
Solution 2: changing the configuration of hotspot in my mobile to a normal wifi.
I'm waiting for anyone who can solve this.
Cheers
Winston
Click to expand...
Click to collapse
Solution 2 depends on your specific phone and its implementation. My Droid for instance doesn't support infrastructure hotspot (outbound), so I had to use the "magic wpa_supplicant" approach. Other phones may support infrastructure mode, either directly or through a 3rd-party wifi tether app.
In terms of solution 1 - if you get the wpa_supplicant (apparently a new version has been posted for those of us w/ 3.1 update) you also need to reset the permissions on the file to match that on the original file (which I know you backed up, right? ); easiest way would be through Root Explorer and set Read: (Owner/Group/Others), Write (Owner only) and Execute (Owner/Group). I'm too lazy to remember what the Terminal Emulator chmod command would be
As a reminder to all who do choose to replace wpa_supplicant, keep a copy of the original file, you never know when Acer's going to require a specific original file for any future updates (wpa_supp wasn't needed for the 3.0.1 update but was for 3.1)
Yes I would say do not delete or move the old file just rename by adding old to end of file name. Its how I done it renamed did the update changed back. And now all is well again.I used the same replacement file from before. No need for a new. Version
Hi Vereyn,
Thanks a lot.
Could you please provide the link to download?
Frankly, I have tried all wpa_supplicant in this forume.
None of them works for me.
My version is Android 3.0.1
Acer ICONIA A5011, rather than A500.
Cheers
franva said:
Hi guys,
Since the mobile hot spot is an adhoc networks, so tablet cannot recognise it
directly.
So I found a instruction which is called can solve this problem.
We simply replace the original wpa_supplicant with the new one.
And put it in /System/Bin/.
I did the root and copy, but it still cannot find the adhoc hotspot for me.
So anyone have any idea?
Solution 1: solving it with the magic "wpa_supplicant"
Solution 2: changing the configuration of hotspot in my mobile to a normal wifi.
I'm waiting for anyone who can solve this.
Cheers
Winston
Click to expand...
Click to collapse
Soo... Which rock have you been hiding under exactly? This is pretty old news, and there are already a few threads detailing exactly what you need to do... Hell, there's one on the first page of this forum section!
Dear Floating,
Could you please send the link to me? or at least give me the title of that article which
you are talking about?
Because it disappeared again now >_<;
Again,
yes there are many ad hoc articles, but none of them work for me....
franva said:
Again,
yes there are many ad hoc articles, but none of them work for me....
Click to expand...
Click to collapse
The links are in the forum, just scroll down a bit.
As for the articles not working... If they're not working for you, maybe you're doing something wrong or missing one of the steps?

Android O Wi-Fi password file location

Hi All,
I've noticed in android O wifi passwords are not stored in /data/misc/wifi/wpa_supplicant.conf anymore. It's handy to back them up or recover long back saved networks.
Anyone have a clue where are them now?
Thanks a lot.
lalontra said:
Hi All,
I've noticed in android O wifi passwords are not stored in /data/misc/wifi/wpa_supplicant.conf anymore. It's handy to back them up or recover long back saved networks.
Anyone have a clue where are them now?
Thanks a lot.
Click to expand...
Click to collapse
Try searching with a file explorer for the name of one of those folders or files and see if anything shows up. Other than that, I don't know as I'm still on nougat.
DEVILOPS 007 said:
Try searching with a file explorer for the name of one of those folders or files and see if anything shows up. Other than that, I don't know as I'm still on nougat.
Click to expand...
Click to collapse
Nougat is still as it was from ics or even before I think.
Also in O the file is there at the same path, and it contains the same header as it does in android 7.* and before (some configuration stuff). What is not in the file is the list of all known networks and their password.
lalontra said:
Nougat is still as it was from ics or even before I think.
Also in O the file is there at the same path, and it contains the same header as it does in android 7.* and before (some configuration stuff). What is not in the file is the list of all known networks and their password.
Click to expand...
Click to collapse
Have you tried forgetting your WiFi network and connecting again with the psk?
DEVILOPS 007 said:
Have you tried forgetting your WiFi network and connecting again with the psk?
Click to expand...
Click to collapse
If I hit known network in android wifi options I can see all my previously stored wifi. Everything works perfectly. If I add new networks they will be added with no issues and remembered for ever and ever. (and obviously will not be added to the file). It is like this list is just somewhere else now on the phone.
I am waiting to see any apps that use the new location but I haven't found any. I have notified the developer of the app I use of the change but he has yet to release an update.
Essentially if you upgrade your phone to Android Oreo it will migrate the wpa_supplicant.conf to /data/misc/wifi/WifiConfigStore.xml.
That is the new file. The Wifi Password apps read the wpa_supplicant.conf which will still exist, however, any new connections made will be stored in the WifiConfigStore.xml file meaning that the Wifi Password apps won't "see" the new connections.
Worse yet, If you did a reset of your phone and you are starting from scratch you will only be able to get that information from the WifiConfigStore.xml file.
All is not lost, since you most likely have root for the apps to get that data in a nice gui, it means that you access that file directly (via a root explorer file manager) to see your connections and passwords.
Hey guys,
so I created an app that should help.
Please try it out at this thread, and leave feedback...
https://forum.xda-developers.com/android/apps-games/app-oreo-wifi-passwords-t3708043
dechronic said:
I am waiting to see any apps that use the new location but I haven't found any. I have notified the developer of the app I use of the change but he has yet to release an update.
Essentially if you upgrade your phone to Android Oreo it will migrate the wpa_supplicant.conf to /data/misc/wifi/WifiConfigStore.xml.
That is the new file. The Wifi Password apps read the wpa_supplicant.conf which will still exist, however, any new connections made will be stored in the WifiConfigStore.xml file meaning that the Wifi Password apps won't "see" the new connections.
Worse yet, If you did a reset of your phone and you are starting from scratch you will only be able to get that information from the WifiConfigStore.xml file.
All is not lost, since you most likely have root for the apps to get that data in a nice gui, it means that you access that file directly (via a root explorer file manager) to see your connections and passwords.
Click to expand...
Click to collapse
I have created an app that supports both devices below and over the android Orio, give it a try from this thread -
https://forum.xda-developers.com/android/apps-games/app-wifi-password-view-saved-wifi-t3852668
Hotfingers said:
Hey guys,
so I created an app that should help.
Please try it out at this thread, and leave feedback...
https://forum.xda-developers.com/android/apps-games/app-oreo-wifi-passwords-t3708043
Click to expand...
Click to collapse
Great App!
They are now stored in:
/data/misc/wifi/WifiConfigStore.xml

Categories

Resources