[HOWTO] Wi-Fi Tethering on MIUI - Fascinate General

Start the rom's wifi tether from Settings > System > Tethering & Portable Hotspot > Portable Wi-Fi hotspot.
You should be able to connect to it, but you won't be able to use the Internet.
Now set up the NAT manually, for which which I've found a tutorial online*. We'll want to connect ppp0 to wl0.1.
Open a root shell and enter the following. (Note that /proc/sys/net/ipv4/ip_forward is set to 1 automatically when we enable the rom's tethering)
Code:
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
iptables -A FORWARD -i ppp0 -o wl0.1 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i wl0.1 -o ppp0 -j ACCEPT
Now you'll be able to access the Internet from your computer.
Disclaimer: I haven't tried turning it off yet. I assume you just remove the three rules and then turn off the rom's tethering.
*new users can't post links, so just Google "linux nat"

Barnacle works fine for me, without any mods.

nunyazz said:
Barnacle works fine for me, without any mods.
Click to expand...
Click to collapse
ON miui rom?

http://www.revsys.com/writings/quicktips/nat.html
This link.

This works great. Is there any way to make these commands happen each time at startup? (Settings are lost on reboot)
Also does this have to run after wireless tether is enabled? Or does that not matter.

kallell said:
ON miui rom?
Click to expand...
Click to collapse
Yes. Both MIUI and CM7

nunyazz said:
Yes. Both MIUI and CM7
Click to expand...
Click to collapse
Can you post details for CM7 here
http://forum.xda-developers.com/showthread.php?t=1198835
I tried but never got it working. Exact steps would be appreciated.
Thank you.

justinjbaron said:
This works great. Is there any way to make these commands happen each time at startup? (Settings are lost on reboot)
Also does this have to run after wireless tether is enabled? Or does that not matter.
Click to expand...
Click to collapse
Add them to init.rc

webwhacker said:
Can you post details for CM7 here
http://forum.xda-developers.com/showthread.php?t=1198835
I tried but never got it working. Exact steps would be appreciated.
Thank you.
Click to expand...
Click to collapse
Install Barnacle, turn it on.
That is all....

same with wifi tether for me. install, go.
[Neuman]
SCH-I500 - EC09 Radio/MIUI FascinateMTD/Glitch V11.1 LL @1.2ghz -100mv/DarkWhite

i tried putting the commands in the init.rc under "on boot" but when i rebooted the file reverted back to what it was before i edited it and the backup of the original file i made was gone (init.rc.bak). can someone help me do this? i think the built-in tethering is just more convenient to use rather than installing barnacle and i'm hesitant to use it anyway cuz wifi tether didn't work for me
edit: i guess barnacle does work but i would still like to get this working if it doesn't get fixed in the next update

manic020 said:
i tried putting the commands in the init.rc under "on boot" but when i rebooted the file reverted back to what it was before i edited it and the backup of the original file i made was gone (init.rc.bak). can someone help me do this? i think the built-in tethering is just more convenient to use rather than installing barnacle and i'm hesitant to use it anyway cuz wifi tether didn't work for me
edit: i guess barnacle does work but i would still like to get this working if it doesn't get fixed in the next update
Click to expand...
Click to collapse
Does anyone happen to have any insight on this? I know this is an old thread...but I agree with this dude.

You need to unpack and repack the boot.img to make it stick. The init.rc is inside that.

cougarcougar said:
You need to unpack and repack the boot.img to make it stick. The init.rc is inside that.
Click to expand...
Click to collapse
old thread is old
Sent from my AOKP SCH-i500

Related

[DEV] USB 3g for a500 wifi only

3g kernel module found here http://forum.xda-developers.com/showthread.php?t=1058713
ok i got 3g to work but small problem... internet works in console and in browser... any other app doesnt see the internet... I'm a linux kind of guy so maybe I'm missing something on the android part...
How to:
Code:
disable ZERO_CD on the 3g modem
put the modules from my other post in the root of /sdcard
put chat,ppp-start.sh,ppp-stop.sh in /system/xbin and give them execution permissions
go into /etc/ppp and make a directory "peers"
put 3g in the peers dir you just created
in console type:
su <enter>
ppp-start.sh <enter>
and done you should see the ppp0 interface
[B]PS: ttyUSB2 may need to be modified in 3g file depending on your modem...[/B]
added the archive i forgot to add sorry
Nice work
Glad to have a skilled developer here
Sent from my A500 using Tapatalk
Hi all, sorry for the noob question but how can I find out what 'ttyUSB2' should be changed to for my USB modem? I've got a Sierra Wireless USB 308 3G modem.
Cheers,
Julian
some usefull values working for me in an other linux
SFR with HUAWEI E160E HSPDA Usb Stick
voyage:~# cat /etc/ppp/peers/sfr
# This optionfile was generated by pppconfig 2.3.2.
#
#
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/sfr.chatscript"
debug
#nodetach
/dev/ttyUSB0
#9600
#mtu 1452
defaultroute
noipdefault
# ipcp-accept-local
# ipcp-accept-remote
#user any
#password any
# remotename orange
# ipparam orange
usepeerdns
# novj
# xonxoff
# noccp
# asyncmap 0
# proxyarp
voyage:~# cat /etc/chatscripts/sfr.chatscript
# This chatfile was generated by pppconfig 2.3.2.
# Please do not delete any of the comments. Pppconfig needs them.
#
# ispauth chat
# abortstring
ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIALTONE' ABORT 'NO ANSWER' ABORT DELAYED
# modeminit
'' ATZ
OK-AT-OK 'AT+CGDCONT=1,"IP","websfr"'
#OK-AT-OK 'AT+CGEQREQ=3,3,64,384,0,0,2,0,"0E0","0E0",3,0,0'
#OK-AT-OK 'AT+CGATT?'
OK-AT-OK 'ATD*99***1#'
Anyone know how to disable zero cd on a ZTE MF112 the regular zte AT commands don't seem to work?
chrisvane said:
Anyone know how to disable zero cd on a ZTE MF112 the regular zte AT commands don't seem to work?
Click to expand...
Click to collapse
zerocd on MF112 is disabled with AT+ZCDRUN=8
reenable zerocd with AT+ZCDRUN=9
thor2002ro said:
zerocd on MF112 is disabled with AT+ZCDRUN=8
reenable zerocd with AT+ZCDRUN=9
Click to expand...
Click to collapse
Cheers,
That's what I thought it was but for some reason i was getting an error. I must've mistyped as it worked first time today doh!!
Brilliant fix incidentally my Iconia is now 3G when needed!
found some a nice ril script in /system/etc/init.goldfish.sh but little scared without recovery don't wanna mess it up...
Does this require Root?
This seems like a function that could require root, also does this work with any carriers or just certain carriers.
Amazing idea and cannot wait to see how it plays out. It would be really cool if eventually an app was made for this, unlocking this feature. Good job.
hhairplane said:
This seems like a function that could require root, also does this work with any carriers or just certain carriers.
Amazing idea and cannot wait to see how it plays out. It would be really cool if eventually an app was made for this, unlocking this feature. Good job.
Click to expand...
Click to collapse
its limited to what the option driver can use(https://github.com/Tiamat-AOSP/Xoom....36-honeycomb-mr1/drivers/usb/serial/option.c) check first couple of lines you will find there devices with device id that works with this driver and also limited to modems with usb-serial interface, carriers dont play any role in this... only modems...
If I'm reading this, the USB 3G dongles will work in the Acer Iconia? Not being extremely tech savvy, I'm not sure if once you're rooted you can install these drivers and use it, or if it's still in development by the XDA Gods.
Could you clarify if this is working?
Thanks
S
only half working if you read the first post you can see only browser and console has internet access...
thor2002ro said:
its limited to what the option driver can use(https://github.com/Tiamat-AOSP/Xoom....36-honeycomb-mr1/drivers/usb/serial/option.c) check first couple of lines you will find there devices with device id that works with this driver and also limited to modems with usb-serial interface, carriers dont play any role in this... only modems...
Click to expand...
Click to collapse
thanks for the link! seems like Sierra modems are supported unfortunately
huawei e153 not supported yet... sob... thx for the great work anyway we'll check back often!
jedi5diah said:
huawei e153 not supported yet... sob... thx for the great work anyway we'll check back often!
Click to expand...
Click to collapse
im pretty sure it's this one
#define HUAWEI_PRODUCT_E14AC 0x14AC
from what i found on the net e153 has Vendor= 0x12d1 Product=0x14ac
you just have do disable the zerocd if it has one...
thor2002ro said:
im pretty sure it's this one
#define HUAWEI_PRODUCT_E14AC 0x14AC
from what i found on the net e153 has Vendor= 0x12d1 Product=0x14ac
you just have do disable the zerocd if it has one...
Click to expand...
Click to collapse
OMG really...kindly advise how to...
Followed the procedure but with no luck.
Just for many information about Huawei E261.
Tried to disbale zerocd but seems that this model is not supported.
If this can be used in A500, i will give up brlnging my laptop to daily business trip....
Kindly advise what can i do....
cant really help you guys with the Huawei stuff I dont own one and I cant find anything related on the net...
Huawei E173u-1 can support Linux and Android tablet try this one

[GUIDE] Enable ad-hoc tethering on your Transformer (needs root!)

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?

[SCRIPT] Change Hostname v6 08/07/2012

This will also be the last update to this script for the foreseeable future. Someone else is more than welcome to take what is here and run with it though.
08-07-2012 fixed a few typos and problems with quotes.
01-29-2012 added some variables to check for the existence of things and get correct paths.
01-06-2012 fixed hostname path.
01-02-2012 Updated to truly work on all devices.
Check it out and let me know what you think.
Big thanks to cdesai for pointing out a nice little enhancement.
This is version 5 of this script.
This script is designed to change the hostname of your device so that you can access it through your network by name instead of android_0123456789ABCEDF.
Your device will also be able to be seen at your router by the new name as well.
Code:
#!/system/bin/sh
#change devName to whatever you want.
devName="changeMe"
#random variables
devHostPath=$(which hostname)
devGetPath=$(which getprop)
devSetPath=$(which setprop)
if [ "$($devGetPath net.hostname)" = "$devName" ]
then
echo "Device hostname does not need to be changed."
else
echo "Device hostname is being changed to $devName."
$devHostPath $devName
$devSetPath net.hostname $devName
if [ "$($devGetPath net.hostname)" != "$devName" ]
then
echo "Device hostname has not been changed."
else
echo "Device hostname has been successfully changed."
fi
fi
Download Hostname.sh
Download Hostname.sh to your device.
Use a text editor to change the "changeMe" in the script to whatever you want. [Keep the quotes]
Use Script Manager to run the script.
The script output will tell you if the command has completed successfully.
Once it has been run your device will be named whatever you change the "changeMe" to.
*Additionally, this script should be able to be run on any device without issues but I have only tested this on Galaxy Nexus AOKP and Droid Bionic Eclipse v3.0.
**Standard disclaimer, I am in no way responsible for ANYTHING that happens to your phone that you have done.
***This code is provided free of charge and is released with no warranty explicit or implied.
If you find this post useful or it helped in any way please hit the thanks button.
Can anyone confirm this worked for them? Doesn't seem to be working for me.
What's the output when you run it?
And when you run it a second time?
You can check at your router as well by logging into it and checking the DHCP leases.
Oh, I figured this was assumed, but you have to have root and run it as root.
Terror_1 said:
What's the output when you run it?
And when you run it a second time?
You can check at your router as well by logging into it and checking the DHCP leases.
Oh, I figured this was assumed, but you have to have root and run it as root.
Click to expand...
Click to collapse
It didn't work for me either, but your effort is much appreciated!
Not all roms will have bash, and even those which have it is mostly in /system/bin
Using /system/bin/sh would be the best way!
From my fingers to your eyez
Thanks,works perfect for me on the HTC EVO.
cdesai said:
Not all roms will have bash, and even those which have it is mostly in /system/bin
Using /system/bin/sh would be the best way!
From my fingers to your eyez
Click to expand...
Click to collapse
Good call.
I will get it fixed when I find a couple moments.
OP has been updated with the change, works fine on my bionic though untested on anything else.
Terror_1 said:
Good call.
I will get it fixed when I find a couple moments.
OP has been updated with the change, works fine on my bionic though untested on anything else.
Click to expand...
Click to collapse
Yet another idea, you can specify the host name while executing the script as an argument (quick changes )
You can use read devname and if it's empty you can get model no. From build.prop
From my fingers to your eyez
cdesai said:
Yet another idea, you can specify the host name while executing the script as an argument (quick changes )
You can use read devname and if it's empty you can get model no. From build.prop
From my fingers to your eyez
Click to expand...
Click to collapse
I left it static so that it can be run at boot and will always have the same name. The model could work but it is more for changing the name to something you want rather than being dictated what it will be.
Oh and depending on your model you could have a space or other special in it.
Hi everybody !
in the old version I have to follow the instructions, but when starting the Script Manager notice shall not be allowed and notice was not found, I'm using xperia arc s, please tell me why? sr my english is not good
Are you running this as root using the skull and crossbones icon?
Terror_1 said:
Are you running this as root using the skull and crossbones icon?
Click to expand...
Click to collapse
I just running as root, pls check pic
le_manhpro said:
I just running as root, pls check pic
Click to expand...
Click to collapse
Let me work on this a little and get back to you. It looks like you don't have busybox installed, which you "shouldn't" need.
What is your device?
[EDIT] Give the new version a shot and let me know how you make out.
Terror_1 said:
Let me work on this a little and get back to you. It looks like you don't have busybox installed, which you "shouldn't" need.
What is your device?
[EDIT] Give the new version a shot and let me know how you make out.
Click to expand...
Click to collapse
I just installed the update of your version but still does not work, do not know which step I did wrong, please guide the steps to install it?
I'm using the xperia arc S
I have attached pictures of my sr english is not good
le_manhpro said:
I just installed the update of your version but still does not work, do not know which step I did wrong, please guide the steps to install it?
I'm using the xperia arc S
I have attached pictures of my sr english is not good
Click to expand...
Click to collapse
I have many swear words for this.
There is nothing that you have done. Can you provide me with a link to the ROM you are using and I will take a closer look. Even if it's the last thing I do I will get this working.
Challenge accepted.
Terror_1 said:
I have many swear words for this.
There is nothing that you have done. Can you provide me with a link to the ROM you are using and I will take a closer look. Even if it's the last thing I do I will get this working.
Challenge accepted.
Click to expand...
Click to collapse
I'm using the original rom android 2.3.4, you can check here, hope you find ways to overcome sorry my english is not good
http://forum.xda-developers.com/forumdisplay.php?f=965
LG Revolution
On LG Revolution running GingerVolt 1.3, I had to change /bin/hostname to /system/xbin/hostname.
The script can be modified to determine the location of hostname command , rather than hardcoding the path.
gumnaam.sur said:
On LG Revolution running GingerVolt 1.3, I had to change /bin/hostname to /system/xbin/hostname.
The script can be modified to determine the location of hostname command , rather than hardcoding the path.
Click to expand...
Click to collapse
I am working on a V5 of this which should be released within the next 2 weeks that should address almost all issues. It works as is on some devices but not all.
I have also found from my testing that setting the hostname is inconsequential and will only appear when you run the hostname command.
gumnaam.sur said:
On LG Revolution running GingerVolt 1.3, I had to change /bin/hostname to /system/xbin/hostname.
Click to expand...
Click to collapse
Thanks! This is the path on the Galaxy Nexus (ICS 4.02) and i was able to get it to update successfully.
However, if this does not update the host name that is sent to my wireless router, the point of the exercise is moot to me. But at least I learned a little bit more about my phone!
This has been posted elsewhere, but to set the name set for the Wifi DHCP request:
Code:
echo yourphonehostname > /proc/sys/kernel/hostname
Obviously, this needs root. You can stick that in a new or existing script in /etc/init.d.
No need to reboot the phone for this to take effect. Stop and start wifi to get the phone to request a new DHCP lease. Note that if your phone was already connected to a router, then the new name might not show up immediately. You'll need drop the previous name from the router dhcp client table by either waiting for the lease to expire, rebooting the router or expiring the lease manually (e.g., in Tomato Admin GUI, click on the remaining lease time under lease column in the Status -> Device List page.)

Adhoc Wifi problem

any pointers from the experienced users appreciated.
my a500 can not see my ad hoc wifi connection from my Android phone, i know it is working as both my ipad and the laptop (which i am connected to send this ) can see and use the phone as the data connection.
I know this has worked fine with other rom's that i have used in the past (again can not remember which rom this one is). but the a500 can not even see it. is there a setting somewhere that i need to enable to allow the acer to use the connection ?
thanks all
By default stock ROM doesn't allow for Ad-Hoc connections, and as you say you don't remember what ROM you're using it might be based on stock ROM. In such case you must replace /system/bin/wpa_supplicant with a version that does allow Ad-Hoc.
Thanks for the quick reply, that is a little bit of a problem then as i wrote in another post this moring i can not get the a500 to recognsie the SD card to flash a new rom -
I do not know what is the problem with your SD-card, but enabling Ad-Hoc isn't hard. Just follow the instructions at http://forum.xda-developers.com/showthread.php?t=1033314
Atleast you can then use the tablet while waiting for help with the SD-card issue.
---------- Post added at 11:47 AM ---------- Previous post was at 11:41 AM ----------
^ In relation to the above, when I did this is I didn't bother using adb. I just used Better Terminal Emulator Pro as root and did the following:
Turn on flight mode.
Start BTEP as root.
Code:
mount -o remount,rw /system
cp /mnt/external_sd/wpa_supplicant /system/bin/wpa_supplicant
chmod 755 /system/bin/wpa_supplicant
Exit BTEP.
Turn flight mode off.
thanks WereCatf,
while i get the courage up to mess with the emulator, can you point at any ROM that might not be stock so i can try the theory ?
thanks again
frankfurtjoe said:
while i get the courage up to mess with the emulator, can you point at any ROM that might not be stock so i can try the theory ?
Click to expand...
Click to collapse
I haven't tried too many different ROMs myself, but I know atleast HoneyVillain did work with AdHoc WIFI. But HoneyVillain was rather buggy otherwise, apps kept crashing on me randomly, and then suddenly SuperUser stopped working at all one day -> back to stock.
worth a shout - thanks WereCatf, I guess I will just have to bite the *** and go forvthevemulator route.

[Q] Nexus 4 LEAP Wifi issue?

Hi,
My Nexus 4 failed to connect to my office wifi (LEAP network). The was due to a known issue on Android v4.2 (code.google.com/p/android/issues/detail?id=40023)
And the workaround is using a working wpa_supplicant from v4.1.2 to replace the current one on v4.2.
However Nexus 4 doesn't have v4.1.x ROM , and I tired v4.1.2 wpa_supplicant from Nexus S/7 but it didn't suit my Nexus 4 (I tried factory ROM and CyanolenMod), it cannot even list all available wifi connections with v4.1.2 wpa_supplicant.
So anyone out there able to connect to LEAP Wifi in your Nexus 4 successfully? If so could you pls share your experience?
And any other suggestions will be much appreciated!
Thanks and Regards!
I have the same problem, Nexus 4 with Android 4.2.1 ROM, LEAP WIFI not working. Also tried replacing wpa_supplicant with 4.1.2 version from Nexus 7 ROM, but it's not compatible with Nexus 4. Can someone provide a link to Nexus 4 ROM 4.1.2 version or correct wpa_supplicant file from that ROM please?
Zoccat said:
I have the same problem, Nexus 4 with Android 4.2.1 ROM, LEAP WIFI not working. Also tried replacing wpa_supplicant with 4.1.2 version from Nexus 7 ROM, but it's not compatible with Nexus 4. Can someone provide a link to Nexus 4 ROM 4.1.2 version or correct wpa_supplicant file from that ROM please?
Click to expand...
Click to collapse
Well, I'm glad to know I'm not the only one have this problem, the thing is there are no 4.1.2 ROMs for Nexus 4 - yet.
Hope v4.2.2 can fix this issue, finger crossed...
I managed to get it work! :laugh:
Here is my steps:
1) Install leap wifi free apk (com.oneguyinabasement.leapwifi.apk) then set up leap wifi connection FIRST.
2) Download wpa_supplicant.4.1.2 =>
http ://snk.to/f-cu3a753u
3) Then follow the steps (post #43) =>
http ://code.google.com/p/android/issues/detail?id=40023
Let me know if it helps.
I have a problem with my university wifi network.
I can connect but the connection isn't right. My speed is slow and spotty.
Anyone else?
Bump
I am having issues with LEAP. I tried the file from #53
3. Install the 4.1 version of wpa_supplicant
(commands assume the new version is in the Download directory - modify as needed)
On your device, open a terminal session, become root
Make the /system directory writeable:
mount -o rw,remount /system
Copy your new file there:
cp -p /sdcard/Download/wpa_supplicant-4.1.2 /system/bin
Make it executable:
chmod 775 /system/bin/wpa_supplicant-4.1.2
Rename the old version:
mv /system/bin/wpa_supplicant /system/bin/wpa_supplicant-4.2
Create a link to the new version (makes it clear which version you're running):
ln -s /system/bin/wpa_supplicant-4.1.2 /system/bin/wpa_supplicant
Verify this all worked:
/system/bin/wpa_supplicant -v
- should return version 4.1.2
Restart your system and LEAP should work as in 4.1.x.
I could not able connect to any network after that but I didnt know that i have to use a app (like LEAP wifi free) prior.I could not even serach for wifi networks. I have reverted what I did now i can able to wifi except LEAP. I am on Motley Kernel and PA ROM.
Now it seems the issue fixed and pushed to AOSP.
Cru,
Can you able to connect to other network after doing the work-round mentioned. Could you pls try connecting to a new network (not LEAP) and let know.
Franklin Bernard said:
Cru,
Can you able to connect to other network after doing the work-round mentioned. Could you pls try connecting to a new network (not LEAP) and let know.
Click to expand...
Click to collapse
Frank, you are right. It lost the ability to find new network connections after doing this work-around. We have to restore to new wpa supplicant file to fine/create the connections then change back to old wpa file to actually get it work. That's the reason I said we need setup leap wifi connection first
Cru_Su said:
Frank, you are right. It lost the ability to find new network connections after doing this work-around. We have to restore to new wpa supplicant file to fine/create the connections then change back to old wpa file to actually get it work. That's the reason I said we need setup leap wifi connection first
Click to expand...
Click to collapse
Thanks,
It seems the Code has been pushed to AOSP.
https://android-review.googlesource.com/#/c/50663/
Im trying to get the wpa_supplicant.conf file which has the fix. but I could not. Let me know if you can able to get it. I will post the file here if I get it .
Thanks
4.2.2 LEAP not working
Its very disappointing.
LEAP is not working in 4.2.2. I tried connecting to LEAP using LEAP Wifi Free app.
LEAP working
Franklin Bernard said:
Its very disappointing.
LEAP is not working in 4.2.2. I tried connecting to LEAP using LEAP Wifi Free app.
Click to expand...
Click to collapse
Finally LEAP is working. Its posted in the http://code.google.com/p/android/issues/detail?id=40023.
1. Backup
2. Please download the attachment from #104
3.Please follow the steps which is mentioned in #43 .
All the best,
Franklin B.
Franklin Bernard said:
Finally LEAP is working. Its posted in the http://code.google.com/p/android/issues/detail?id=40023.
1. Backup
2. Please download the attachment from #104
3.Please follow the steps which is mentioned in #43 .
All the best,
Franklin B.
Click to expand...
Click to collapse
Also worked for me, thanks a bunch to all.
I had this issue on my nexus 7 and was solved relatively easy by using an older version of the wpa_supplicant file for the nexus 7 but for the nexus 4 i guess there isn't a version that works...
Anyway the patched one the guy posted in post 104 works for me, the only difference I had to make was the auth_alg, mine was originally set to "LEAP" where as in his example he set it to OPEN SHARED LEAP, which I also needed to do in order to get it to work

Categories

Resources