Related
Update: If you are using the official firmware 8.6.5.9 (and obviously above) or any custom ROM based on it, you don't have to do anythink described here, because ad-hoc works natively. Thankfully ASUS fixed Googles unintelligible inability to enable connection to ad-hoc networks.
This renders this thread pretty much obsolete, but I won't delete it, just in case anyone doesn't want to or cannot update his device for whatever reason
Hi!
As there are only [Q]uestion threads about ad-hoc tethering by now, I thought I'd write a little guide how to enable it on our Transformer.
edit: If you are using Prime v1.5 (and above I guess), you don't have to do this. Roach2010 already included the modified wpa_supplicant, so you can already use ad-hoc tethering.
All credits and many thanks go to szym for the edited wpa_supplicant that makes ad-hoc possible for us!
!!! Always make a nandroid backup via recovery first! You can then reflash your backup if something fails !!!
I. Via root explorer (obviously requires root access):
If you bought root explorer from the market, you should be able to easily copy and replace the file.
1.) Go to /system/bin and copy the file „wpa_supplicant“ to your sd card as a backup.
2.) Then copy the „wpa_supplicant“ from the attached zip file and paste it into /system/bin.
3.) Long press the file and set permissions to rwxr-xr-x, like this:
User: read, write, execute
Group: read, execute
Others: read, execute
4.) Reboot
Finally tried it myself and works fine
II. Alternative method via adb (requires root access):
This is a forwarded guide from the Xoom section. I tried it myself and it works like a charm. You can find it here.
All credits for the following guide go to kelvie !
1.) Your Transformer has to be rooted! (you'll find a guide how to root here)
2.) Make a backup of your system/bin/wpa_supplicant first!
3.) Unpack the attached wpa_supplicant_xoom_wifi_adhoc.zip file to your adb folder. (if you don't know how to use adb, google for one of the many guides, or look below for another option via root explorer )
4.) push the file to system/bin/wpa_supplicant:
Code:
adb remount
adb push system/bin/wpa_supplicant /system/bin/wpa_supplicant
5.) Because zipfiles don't store permission, you have to make it executable as well:
Code:
adb shell chmod 755 /system/bin/wpa_supplicant
6.) You also have to change the permissions on /data/misc/wifi/wpa_supplicant.conf for some reason:
Code:
adb shell chown system.wifi /data/misc/wifi/wpa_supplicant.conf
7.) reboot
Again, many thanks to kelvie for the guide!
III. Easiest method (requires ClockWorkMod recovery and root):
1.)Download the attached CWM_adhoc_wpa_supplicant_TF101.zip to your sd-card. Make sure to copy it to /Removable/MicroSD, because /mnt/sdcard cannot be accessed from CWM
2.) Boot into CWM recovery.
3.) Hit "install zip from sdcard" --> "choose zip from sdcard", select the zip and confirm.
4.) Reboot
Done. You should now be able to tether your ad-hoc connection
This method doesn't seem to work because I missed an option and don't know right now how to fix it. So if somebody knows how to do this via edify script, please help me out:
Code:
chown system.wifi /data/misc/wifi/wpa_supplicant.conf
Use one of the methods above in the meantime, they works flawless.
__________________________________________________
Q&A
Q: Which app should I use for tethering on my phone? Do I need root access for tethering apps?
A: If your phone doesn't support native tethering, just search the Android Market for 'Wifi tether'. There are a lot of apps for that . I tested Barnacle Wifi Tether on my Sony Ericsson Xperia X10 with 2.3.4 MIUI ROM, which worked fine, but I guess all/most tether apps should work fine now. And yes, unless you have native tethering, your phone has to be rooted.
Q: Barnacle gives me the following error on the phone: "DHCP could not bind to DHCP port, address already in use", and my TF is stuck at "obtaining IP Address from barnacle". What should I do?
A: rpavich has found a solution for that. Thanks rpavich!
rpavich said:
1. Change SSID to whatever you want
2. Change Channel to 6
3. Custom Wifi Ad-hoc to none
4. Skip wpa_supplicant checked
5. Restart your phone (just to make sure...)
Click to expand...
Click to collapse
__________________________________________________
Regards
qwer23
Edit: I wasn't sure if this belongs in General or Android Dev section, so mods feel free to move it where it fits best.
Edit2: Attached original wpa_supplicant files for 3.0 and 3.1 (don't know if there's a difference, but I doubt it) if someone wants to reset to stock.
If you find this guide helpful, consider pressing the thanks button
Click to expand...
Click to collapse
awesome. a few more working confirmation from the others and i wont have to kiss my nokia e71 goodbye
philsuf said:
awesome. a few more working confirmation from the others and i wont have to kiss my nokia e71 goodbye
Click to expand...
Click to collapse
No need to wait, you could just try it. If you back up your original wpa_supplicant first, you can always undo your changes. I also added an easier way via root explorer that should be easier.
i just tried it, it connected to barnacle wifi but i couldnt get the internet to work. ill try again tomorrow, it may be my phone.
Skeldave said:
i just tried it, it connected to barnacle wifi but i couldnt get the internet to work. ill try again tomorrow, it may be my phone.
Click to expand...
Click to collapse
Did your phone show the barnacle symbol in the notification bar and tell you that a device is connected?
Sent from my rooted X10i using awesome custom roms
I've done this last week and noticed when stopping my hotspot on the phone the connection on the transformer shows it is still connected. So you have to manual disconnect if you want to reconnect again for later use. This is on my Nokia N8 Phone using JoikuSpot.
I tried to do this via the root explorer and it said "you cannot paste here because the file system is read only"
rpavich said:
I tried to do this via the root explorer and it said "you cannot paste here because the file system is read only"
Click to expand...
Click to collapse
On the top of your system directory in root explorer is a button, that says r/w. Push it and you'll get read/write mode.
Sent from my rooted X10i using awesome custom roms
thank you VERY much....I'll let you know how my tethering goes.
qwer23 said:
Did your phone show the barnacle symbol in the notification bar and tell you that a device is connected?
Sent from my rooted X10i using awesome custom roms
Click to expand...
Click to collapse
Yes, the barnacle symbol was in the notification bar and my TF appeared on the 'client' tab, also the TF said that it was connected to barnacle wifi.
I'm going to try again now
EDIT: Worked perfectly this morning, thanks!
I did it via root explorer FYI
This seems like a rather minor change to wpa_suppliant.conf; any clue if google will fix this in honeycomb? Not sure I understand why it isn't enabled by default...
Ok...trouble getting this to work.
1.) On my Xperia X10; message in Barnacle:
"DHCP could not bind to DHCP port, address already in use"
2.) On my TF: it's stuck at "obtaining IP Address from barnacle"
Ok....found the solution (on another XDA forum section)
I did the following and connected just fine!
1. Change SSID to whatever you want
2. Change Channel to 6
3. Custom Wifi Ad-hoc to none
4. Skip wpa_supplicant checked
5. Restart your phone (just to make sure...)
rpavich said:
Ok....found the solution (on another XDA forum section)
I did the following and connected just fine!
1. Change SSID to whatever you want
2. Change Channel to 6
3. Custom Wifi Ad-hoc to none
4. Skip wpa_supplicant checked
5. Restart your phone (just to make sure...)
Click to expand...
Click to collapse
Mind if i add this to the op? There might be others with this issue.
Sent from my rooted X10i using awesome custom roms
jake21 said:
This seems like a rather minor change to wpa_suppliant.conf; any clue if google will fix this in honeycomb? Not sure I understand why it isn't enabled by default...
Click to expand...
Click to collapse
I don't have a clue either why this isn't enabled by default, but I think they'll add this in the 3.1 update. But it's just a suggestion, didn't read anything about it though.
Sent from my rooted X10i using awesome custom roms
qwer23 said:
Mind if i add this to the op? There might be others with this issue.
Sent from my rooted X10i using awesome custom roms
Click to expand...
Click to collapse
Not at all....as i said...I got that from another part of the XDA forum...
I used this method from my rooted OG Droid and the Xoom and it worked perfectly. I have to wait for my son in law to root my TF to try it out. Would I only need to root the TF for this to work?
sanfaz said:
I used this method from my rooted OG Droid and the Xoom and it worked perfectly. I have to wait for my son in law to root my TF to try it out. Would I only need to root the TF for this to work?
Click to expand...
Click to collapse
At the moment you need to root both your TF and your phone. But if you use Clockworkmod, you probably don't need a rooted TF, because I'm preparing an update.zip to flash via CWM
Your phone has definitely to be rooted, ecxept it supports wifi tethering from stock.
edit: darn, amend scripting is no longer supported in Honeycomb. Anyone knows how to change the zip for edify scripting?
edit2: ok, probably got it solved. we'll see...
Ok, I added a zip file for easy install through ClockWorkMod to the OP. It installed fine on my TF101 and tethering works, but please backup your wpa_supplicant before installing this and report any errors. I didn't work with edify scripts before
I also restructured the guide itself, from easiest to most complicate method
Cheers
qwer23
Would this mod work with an old TP2 windows mobile phone? Will the TF then be able to use it's wifi signal?
Also, if the TF is rooted, will we be able to accept the 3.1 HC update?
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.
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?
Hey guys. I know I'm new here and it's probably been answered somewhere, but I can't find it. Here goes - One of the WLAN networks I use most is protected by MAC filter. Yes, it's necessary. The thing is everytime I flash a new ROM I need to change MAC address in network configuration. Is there anything I can do to keep/set a constant MAC? A script or something?
My kernel is the latest Dorimanx kernel 6.4.
Sent from my HTC HD2 using XDA
Daycrawler said:
Hey guys. I know I'm new here and it's probably been answered somewhere, but I can't find it. Here goes - One of the WLAN networks I use most is protected by MAC filter. Yes, it's necessary. The thing is everytime I flash a new ROM I need to change MAC address in network configuration. Is there anything I can do to keep/set a constant MAC? A script or something?
My kernel is the latest Dorimanx kernel 6.4.
Sent from my HTC HD2 using XDA
Click to expand...
Click to collapse
I remember reading a thread where one guy had 2 HD2's and they both had the same ROM on it. And he wasnt able to connect both HD2s to his router because the router only would accept one MAC address. It wouldnt accept two mac addresses of the same value. I remember him being successful in changing the mac of one of them. But i went back to page 18 and couldnt find it again. Im trying to search but i cant find it -.-
EDIT: Found the thread,
use a root browser to change wifi mac address.I recommend root browser lite.Go to /system/etc/ folder.Find and open for editing the file "calibration" and in the first line you will see the wifi mac address.Put another one,save the file and you`re ready to go
Click to expand...
Click to collapse
But we are on CM7 not sense. So i found this but i havent tried it as i have no need. I havent found anything else so i hope that works.
(that's not what he means, i don't think, , i think he already knows how to change teh mac, but wants a script he can run once when he changes rom so that he always has the same mac for every rom, without having to manually edit it every time, something like provxml did for winmo.)
samsamuel said:
(that's not what he means, i don't think, , i think he already knows how to change teh mac, but wants a script he can run once when he changes rom so that he always has the same mac for every rom, without having to manually edit it every time, something like provxml did for winmo.)
Click to expand...
Click to collapse
Ohh well couldn't he just take his method already known and make an init.d script?
Sent from my GT-I9100 using Tapatalk
elesbb said:
But we are on CM7 not sense. So i found this but i havent tried it as i have no need. I havent found anything else so i hope that works.
Click to expand...
Click to collapse
Thank you very much for the reply, but I can't seem to find this file. I'm using rooted ES File Explorer and it's just not there. Should it be there in ICS too?
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