Wifi Tethering on 2.1/Eclair with zKernel - 2.6.29 - Android to Android Tethering - XPERIA X10 Themes and Apps

What up everyone!
As we all know, Zdzihu has released zKernel that is capable of many things, one of which include full netfilter support (droid wall & wifi tether). I know that many of have used barnacle wifi but one of the issues I had with it was that it sets up an ad hoc network to allow wifi tethering. The problem with android is that, for whatever reason, it can not connect to ad hoc networks. As such those of us with android tablets or other android phones could not tether using our X10s.
Now fast forward to today. The zKernel (probably other ones by Goro kun too) has full netfilter support but how can we use it? Well, rather simple. Download this handy dandy app from this here link:
http://code.google.com/p/android-wifi-tether/
I downloaded the latest evo 4g version for eclair and wifi tethering works! Now I've got my X10s tethered with each other. No more ad hoc support via barnacle wifi for me!
Note: Remember to install zKernel first! Also, I had issues with connecting to a secure network via this app. However, there is an option to enable access controls that allows you to authorize connections.
Thanks to all the developers for making this possible!
Installation Instructions:
1. Download & Install Z's zKernel via Xrecovery found here: http://forum.xda-developers.com/showthread.php?t=1135475
2. Download apk in the link in the middle of the page.

be more specific about the kernel, as far as i know the best way to tether is whit bernacle thats on our x10,, and for the use of os tether i read on zdzihu page that is kernel related...

Huh?
MacDrunk said:
be more specific about the kernel, as far as i know the best way to tether is whit bernacle thats on our x10,, and for the use of os tether i read on zdzihu page that is kernel related...
Click to expand...
Click to collapse
Not trying to start a fight but how more specific do you want me to be? Please read my post carefully as I do mention Z's zKernel not only in the name of the thread but in the OP multiple times too. I will bold them for your entertainment as well as provide a useful link to Z's thread. To my knowledge there is only one zKernel that was released as of today's date of 6/22/2011. Please let me know if you know of any others. Additionally, I do mention the use of barnacle wifi in the second sentence above and the problem associated with it. But what if you have another android device? How do you tether it using barnacle wifi?
Thanks for your concerns but please read a bit more carefully as this does relate to a kernel.

can u upload the app u are use? please, because i download more than one but without sucess, only get ad-hoc mode =/

SeeHarrier said:
can u upload the app u are use? please, because i download more than one but without sucess, only get ad-hoc mode =/
Click to expand...
Click to collapse
Yes, me too! Only ad-hoc mode!
Still, it's better than Barnacle though, more stable!

Hey all. Looks like I made a mistake. In my haste and excitement I automatically thought the app was not running an ad-hoc mode because I was able to tether my other X10 (with no sim/service) to my X10 that had service/sim. After reading the FAQ of the android-wifi-tether app, I found that it does indeed connect via ad-hoc mode.
The FAQ can be found here:
http://code.google.com/p/android-wifi-tether/wiki/FAQ
My understanding was that Android devices could not connect to ad-hoc mode so I wonder why this app is different from Barnacle. I tried connecting via Barnacle to test if it would work but to no avail.

Related

Connect to adhoc Wifi network

Hi,
I need the captivate to be able to connect to a adhoc wifi network created using my laptop. However, android doesn't seem to be supporting it, just access point networks. Has anyone tried this, any success?
Searching revealed one thread where a guy modified some code on an htc phone, and got it to work, but seemed a little dated. Not sure if that would work with the android 2.1 and the Samsung phone.
Help appreciated.
The Captivate can connect to ad-hoc networks, but not through the native GUI interface. I tested mine via adb shell issuing some iwconfig commands via script to connect to a MyWi router on a friend's iPad. It's buggy, to say the least..
agentdr8 said:
The Captivate can connect to ad-hoc networks, but not through the native GUI interface. I tested mine via adb shell issuing some iwconfig commands via script to connect to a MyWi router on a friend's iPad. It's buggy, to say the least..
Click to expand...
Click to collapse
agentdr8,
Thanks for the reply.
Care to share details on the commands you ran? Or are you saying it's not worth it because it's so buggy?
thanks
To avoid a hard lockup, start with the wifi turned off. I tested it numerous times with it already on, and it resulted in a battery pull.
You'll need busybox 1.7x (maybe 1.8x will work too?). You'll also need a working iwconfig binary (I symlinked mine from the WifiTether app dir: /data/ext2data/data/android.tether/bin to /system/xbin)
With an adb shell, try something like this:
$ su
# /system/xbin/ifconfig eth0 up
# /system/xbin/iwconfig eth0 mode ad-hoc
# /system/xbin/iwconfig eth0 essid YourEssidHere
# /system/xbin/iwconfig eth0 key WEPkeyhere
Now with wifi turned off, these commands will all error since the interface is down/off (eth0 is the wifi, at least on my Cap). Turn your wifi on and rerun the same commands, followed by:
# netcfg eth0 dhcp
This may or may not error out, but ultimately, you should see a dhcp address for eth0 as handed out by your dhcp server/mywi device.
You may need to also manually add the ad-hoc network in the GUI with its key. I can't remember if I needed that or not, but with it I can see the connection status and when it's grabbing the IP. Even shows connected and signal strength once it does connect (assuming it doesn't lockup).
agent can you help me pls. Im a newbie still.
Do i run all those commands in windows when my phone is connected or do i run it through something like terminal emulator an app on the phone??
You can either use adb shell on your Windows machine (part of the Android SDK), or you can use a terminal on the device itself (ConnectBot is my preferred). Your phone needs to be rooted if it isn't already.
Okay, I'll try out the connectbot. Can you tell me how to do this part then if it's needed??
"You'll also need a working iwconfig binary (I symlinked mine from the WifiTether app dir: /data/ext2data/data/android.tether/bin to /system/xbin)"
how do you do this symlinked part?? I don't really understand it.
I tried ur commands without doing the symlinked part....everything just returned a "not found" message.
Maybe you could give me a dumbed down step by step way of doing this hahahaha??? Im rooted and i have busybox 1.7x, just missing the working iwconfig because im not really sure what it is.
If you're not too familiar with linux commands, it would be best to wait for someone to build a widget/GUI app around this, as poking around in a root shell on your phone is never a good idea if you're not aware of the potential consequences of blindly running commands.
It's possible that with the Froyo update adhoc connections may just work as intended, not that I've read anything that suggests that.
The portal had a write up on how to connect an android device to an adhoc network a couple days ago.
Sent from my AOSP on XDANDROID MSM using XDA App
boborone said:
The portal had a write up on how to connect an android device to an adhoc network a couple days ago.
Sent from my AOSP on XDANDROID MSM using XDA App
Click to expand...
Click to collapse
Okay, i'll go look for it though a link would help.
Maybe i'll just wait until something like Cyanogens ROM comes, i hear it usually comes with ad-hoc connectivity.
Try this: http://www.xda-developers.com/android/android-ad-hoc-wireless-network-support/
Sent from my HTC Dream using XDA App
only problem is it's compiled for froyo and i think geared towards the Desire according to the replies.
I feel like it might mess up my captivate
Well if you're computer is windows7 you can use a program called conectify.
It makes win7's adhoc networks work as real hotspots
Sent from my HTC Dream using XDA App
Wanted to enable ad-hoc so I could tether the captivate to my iPhone
Yes I woild also know on a workaround , would love to tether my unlimited data from my iphone to my captivate
pewpewbangbang said:
Wanted to enable ad-hoc so I could tether the captivate to my iPhone
Click to expand...
Click to collapse
Why would you do that? Do you prefer safari over android browser or something?
Sent from my Nexus One using XDA App
cowballz69 said:
Yes I woild also know on a workaround , would love to tether my unlimited data from my iphone to my captivate
Click to expand...
Click to collapse
Then You need to jailbreak your iphone and get a tethering app
boborone said:
Then You need to jailbreak your iphone and get a tethering app
Click to expand...
Click to collapse
Issue isn't on iPhone-end, nor wpa-supplicant end (as the wpa-supplicant binary included in the android wireless tether app has this ability).
The problem is the GUI end of things (i.e., settings.apk) ALSO filters the results.
So it goes beyond simpy modifying the wpa-applicant (yes; this is sufficient for the basic-functionality), but is very crude & diffcult to do on the go from the tiny terminal emulator, etc.
What I've personally been looking for, is an update that modifies the neceasary files, and enables this extewmely useful function.
Something similar to the update package posted for the froyo-build, but instead for the ECLAIR-2.1 build of the captivate.
If anyone knows of anything availible like I'm describing (a GUI-centered mod that will remove ALL the STUPID damn (pardon language lol) IBSS filtration form the settings.apk, wpa-supplicant, wireless configuration files, etc for the ECLAIR-2.1 build of the Captivate so that it JUST WORKS lol -- this way we can SEE and CONNECT via our native GUI .
I've gotten this to work through running command line / configuration file hacks, but it's very messy/annoying AND to make things MORE annoying, once you've put it into Ad-hoc mode and have it all setup very nicely, guess what? The settings.apk application (which is needed to load the device into kernel), will actually COMPLETELY UNDO all the tedious command line efforts you've just made, and takes the wifi chip out of Ad-hoc mode every x amount of minutes! ARGH!! LOL!
Anyway, I've gone through the source code and patch diff's myself and it really doesn't seem very involved. I actually was planning on compiling the necessary modded binary (making a nice update.zip for all the frustrated captivate owners like myself lol), but I simply haven't had the time to setup the build environment for it at the moment (have several other build environments I'm juggling as it is with work).
Anyway, I apologize for the rant lol -- I just wanted to clarify exactly what is needed and point out it really wouldn't be much work (and would be VERY much appreciated!!!!) if someone with the skill, time, and a build environment for the galaxy s (captivate, speifically lol , could post an eclair mod for us -- you would receive AN ENORMOUS amount of praise & thanks lol .
OR -- if someone who has a little time, could simply modify the android wireless-tether-app to have one extra feature, 'connect to ad-hoc network' lol . This would also be ideal, as it already fully supports the initialization & loading of the captivate wireless driver properly, and can fully manage the interface & connections while running in the background (independent of settings.apk). PLUS -- it even already has full ad-hoc support built into it's own pre-packaged wpa-supplicant. Basically, all the hard work has already been done with the wireless-tether-app, just need a few extra functions to handle scanning for networks and connecting to them (relatively simple, considering they've already done ALL the hard work..lol)..
Okay, my rant is officially done! Lol! I just hope this helps those who have the capability to help, give a clear picture of all that's required. It's late, so some of this stuff may have already been mentioned and I missed it! Shoot, maybe someone just finished doing exactly what I just went on & on about? Lol.
In any case, if anyone is willing to help out -- or already knows of a solution already out there I've missed -- PLEASE let me' know! This functionality would truly help a great deal in my day to day work with my captivate! Thanks in advance!!!
holy need a bump batman!
i would really like this too!
I found this post last night, but I couldn't get it to work: http://forum.xda-developers.com/showpost.php?p=16632147&postcount=7758

[Q] Motorola Citrus Android 2.1

I have a Motorola citrus trying to get to wifi tether I think I got it rooted with superuser and downloaded wifi tether from market but the phones power cycles when i try to tether. Can anyone help me?
I just tried and had the same result as the original poster, looking for answers I found nothing. Though I did find this post so, BUMP for an answer please.
tethering on 2.1 citrus
I had the same result as above.
I successfully rooted with z4root
tried both
wireless tether for root
and
wifi tethering mesh
Same results, as soon as you start the tethering process, phone restarts..
side note: I know I am rooted as these apps only run if so, i've tried it..
anyone find a hack for running a few apps like 'mint' that are not available in market on the citrus.. even though 'mint' and my local banks app runs on android 1.6 and up
motorola support says the citrus only runs apk files, yet I found a work around to run java apps, just not 'mint' or my banks app runs
this is kind of like bait and switch, the citrus was advertised as being android 2.1 yet its a rather limited version.. its like fedora linux calling itself redhat linux although its based on redhat it isnt..
found one
'Barnacle Wifi Tether' from market worked on my citrus, i'll find out when i get my bill if its good or not regarding the tethering fees. but it worked in a 1 minute short test..
I came across some reviews which reminded me(on of all reviews one person with tmobile was charged):
so i would like to remind people some basics of tethering
1. dont do computer operating system updates on tether
2. dont download torrents or do filesharing on tether
3. dont use a extreme amount of data..
that said I would recommend using a firewall on you computer to block any applcations that might do any of above, and use it when your tethering...

[Resolved] ICS android CGM9 DESIRE S connecting to ad-hoc mode

Original post started in not very good style and I decided to change it to be as usefull information.
this
http://forum.xda-developers.com/showthread.php?t=1438297
worked for me...
cd /system/bin
mount -o rw,remount /system
mv wpa_supplicant wp_supplicant.bac
download wpa_supplicant from the thred above and than
cp /mnt/sdcard/"wherever you have it on sdcard" /system/bin/wpa_supplicant NOT!!! wpa_supplicant2
Is there any point to install and play with cyanogenmod 9 if I'm noob?
I have HTC DESIRE S
I have rooted flashed so far by cgm 7.2 and I don't have problem really.
I know how to use google.
That's why I don't post questions about my device and set up, they are answers sooner, than my question arise. Google and forums are working well for me.
Is there any good to use semifunctional device for benefitial purposes? For example cgm9 for saga, the last nightly build, wifi is not working. If I'm noob?
How to report? Does it help really? It's not about complaining... I'm happy with stable releases and google. I'm not looking for learning coding. I "use" and if bug I do google search... Seems like cgm9 where functionality changes from build to build, there is no point to complain... of course... So does help to say if something doesn't work and where to do it? is there place to do that?
Do I have to make 9 other questions like this to tell that cyanogenmod 9 last nightly build for desire s has nonfunctional wifi? To be able to report it in developers threads? Is that helpful information? Can be noob helpful?
EDIT: wifi is not malfunctional, the etntire trouble is ICS android not being supported for connecting to ad-hoc acces points(hotspots). Infrastructure mode apparently available for set up under windows 7 (not xp) should let you use your computer as hotspot for ICS androids
skriatokxda said:
Is there any point to install and play with cyanogenmod 9 if I'm noob?
I have HTC DESIRE S
I have rooted flashed so far by cgm 7.2 and I don't have problem really.
I know how to use google.
That's why I don't post questions about my device and set up, they are answers sooner, than my question arise. Google and forums are working well for me.
Is there any good to use semifunctional device for benefitial purposes? For example cgm9 for saga, the last nightly build, wifi is not working. If I'm noob?
How to report? Does it help really? It's not about complaining... I'm happy with stable releases and google. I'm not looking for learning coding. I "use" and if bug I do google search... Seems like cgm9 where functionality changes from build to build, there is no point to complain... of course... So does help to say if something doesn't work and where to do it? is there place to do that?
Do I have to make 9 other questions like this to tell that cyanogenmod 9 last nightly build for desire s has nonfunctional wifi? To be able to report it in developers threads? Is that helpful information? Can be noob helpful?
Click to expand...
Click to collapse
I don't have this device, but if it doesn't work, CM knows about it. Are you sure it doesn't require a different kernel for wifi to work? Did you read the entire thread? I know sometimes in forums it says not to ask about certain things... Nightlies aren't a finished product. They are tests builds. Some better than others... I myself LOVE CM9 Nightlies!! If it's not what you want, just flash another rom.
sdm14 said:
I don't have this device, but if it doesn't work, CM knows about it. Are you sure it doesn't require a different kernel for wifi to work? Did you read the entire thread? I know sometimes in forums it says not to ask about certain things... Nightlies aren't a finished product. They are tests builds. Some better than others... I myself LOVE CM9 Nightlies!! If it's not what you want, just flash another rom.
Click to expand...
Click to collapse
I want cgm that's why i played... I know how to use term... iwconfig shows interface wlan0 i suppose thats my card but iwconfig wlan0 essid "blabla" doesn't asign to it
hehe now I'm mining in manual for iwconfig...fun... I have ad-hoc set-up my pc as router. It seems it might be the thing
is it work really? i tried but got nothing from it .
http://forum.xda-developers.com/archive/index.php/t-599144.html
For those of you who may have tried to connect your recently updated ICS Transformer Prime to your cell phone using the wifi tether app, you may have noticed that your tablet would not pick of the signal from your phone. We are running an ATT Samsung Galaxy SII here and had wifi tether 3.1 beta 6 installed from a few months back. Before upgrading to ICS on our Prime, we had successfully tethered Honeycomb 3.2.1 to the phone without a problem at all. After the upgrade to ICS we wanted to test some of the wireless connectivity issues and decided to tether to our phone once again to get Speedtest results and noticed that we couldn’t see the phone’s hotspot.
In launching the trusty wifi analyzer app, we noticed that the tablet was “seeing” the hotspot in the wifi analyzer app, however, there was a little red designation at the end of the hotspot information denoting “ad hoc” and we were not able to connect or even given the option to connect to the hotspot. In doing some reading on this and finding that in other forums there were many other users saying that after upgrading to ICS they were no longer able to connect to their hotspot, we assumed this was definitely something with ICS. Officially, Google does not support ad hoc networks in ICS apparently.
However, the upside to all of this is that if you upgrade your wifi tether app to the latest and greatest, which in our case was 3.1 beta 11, we were able to select the option in the wifi profile to be the infrastructure mode as opposed to ad hoc mode for our Samsung Galaxy SII. After performing the update, and changing the profile to infrastructure, we were once again able to connect our ICS Prime to the wifi tether app.
It is yet to be seen if this is functionality Google is simply not support from this point forward or if this is just an early ICS quirk that will be resolved with a later update.
maby this is the issue
Finnaly this can be solved by having windows vista in infrastructure mode... Windows xp haven't been build to provide such stacks.

[WIFI Tether] [TMOUS] Work Around - No Root Needed

Do you have a T-Mobile US device that redirects you to T-Mo's site whenever you try to wireless or USB tether your computer? Here are two work arounds to stop that:
Difficulty: Easy. ROM: Any. Description: Spoof computer web browser to say 'Android' when loading web pages.
1) Install an EU ROM. Any ROM based on T-Mobile US has a script that will block tethering if Android is not recommended.
2) (SUGGESTED) (Avoiding the script) No root needed. No APN switching (because that sh!t does not work). You need to spoof your computer's web browser to an Android device. Go on your add-ons/extensions installing page (Chrome, Firefox, Opera, maybe more) and search for a user account spoofer / switcher. I am on Chrome and I use 'Chrome UA Spoofer'. Select the Android Motorola Xoom device to spoof to. Tether via wireless or USB and it works constantly. The only downside is that some pages load in mobile view. You can easily select to show full web page. I used this for multiple hours, multiple PCs, multiple different times and never was redirected to T-Mo asking me to add tethering to my plan.
Why does this happen? Ever since Android 4.0, they added a script in the OS which does this. You cannot uninstall it because it is located very deep in the system (maybe you can, but no one has figured it out.) If you have a EU ROM (no wifi calling), then you will be fine to tether with no problems and no spoofing. Please click thanks if I helped
The APN thing does work; I use it daily for my Fire, and my laptop on occasion. Not to mention the FCC just smacked Verizon for $1.25M for blocking customers from tethering with third party apps, so T-Mobile should follow soon to avoid a similar fine.
Sent from my H1S using XDA Premium.
T-Mobile should be stopped for that. But I have to say the the APN did not work for me. It worked for about 20 minutes, then I was never able to connect again.
MadJoe said:
Not to mention the FCC just smacked Verizon for $1.25M for blocking customers from tethering with third party apps, so T-Mobile should follow soon to avoid a similar fine.
Click to expand...
Click to collapse
Actually they don't have to allow tethering, nor will they be fined. This was a rule specific to LTE implementations. Since T-Mo is on HSPA+, those rules in no way apply to them.
Also, to the OP -- this works, but you need to keep in mind that it only would apply to web browsing. Tethering is detected via packet identification. The combination of the TTL (time to live) and the device (Android vs computer, etc) gives tethering away. If you were to use bittorrent on your computer, the packets would be identified as computer, and with a computer TTL.
Dang, that sucks. I thought it had to do with data limits, since they aren't required to allow it for their unlimited customers.
Sent from my H1S using XDA Premium.
I use FoxFi from the play store with zero issues. Stock unrooted.
Sent from my HTC One S using Tapatalk 2
Closed Source Project said:
Do you have a T-Mobile US device that redirects you to T-Mo's site whenever you try to wireless or USB tether your computer? Here are two work arounds to stop that:
Difficulty: Easy. ROM: Any. Description: Spoof computer web browser to say 'Android' when loading web pages.
1) Install an EU ROM. Any ROM based on T-Mobile US has a script that will block tethering if Android is not recommended.
2) (SUGGESTED) (Avoiding the script) No root needed. No APN switching (because that sh!t does not work). You need to spoof your computer's web browser to an Android device. Go on your add-ons/extensions installing page (Chrome, Firefox, Opera, maybe more) and search for a user account spoofer / switcher. I am on Chrome and I use 'Chrome UA Spoofer'. Select the Android Motorola Xoom device to spoof to. Tether via wireless or USB and it works constantly. The only downside is that some pages load in mobile view. You can easily select to show full web page. I used this for multiple hours, multiple PCs, multiple different times and never was redirected to T-Mo asking me to add tethering to my plan.
Why does this happen? Ever since Android 4.0, they added a script in the OS which does this. You cannot uninstall it because it is located very deep in the system (maybe you can, but no one has figured it out.) If you have a EU ROM (no wifi calling), then you will be fine to tether with no problems and no spoofing. Please click thanks if I helped
Click to expand...
Click to collapse
It's been figured out over on the Sensation forum. It's a tether apn set to be hidden in the apn.xml found inside the framework.apk, if I recall correctly. Steve from the Elegancia Rom should be able to help.
HTC One S
TJBunch1228 said:
I use FoxFi from the play store with zero issues. Stock unrooted.
Sent from my HTC One S using Tapatalk 2
Click to expand...
Click to collapse
How did you get FoxFi to work? I tried it and said it won't work on this device. And when I use bluetooth, the tethered device can't do certain things outside of the browser.
Dedren said:
How did you get FoxFi to work? I tried it and said it won't work on this device. And when I use bluetooth, the tethered device can't do certain things outside of the browser.
Click to expand...
Click to collapse
Nothing special, I just download the app, launch the app (did go into settings and set security code) It just work no problems.
baseballfanz said:
Nothing special, I just download the app, launch the app (did go into settings and set security code) It just work no problems.
Click to expand...
Click to collapse
It doesn't work on unrooted HTC Sensation (T-Mobile) for me so still trying to find something that does.
Dedren said:
It doesn't work on unrooted HTC Sensation (T-Mobile) for me so still trying to find something that does.
Click to expand...
Click to collapse
Then you are using the wrong rom,I was using Elegancia rom and it worked for me. You can't just root the stock rom and expect it to work, there is a separate hidden tether apn built into the framework.apk I believe.
T-MobileUS HTC One S running Stock Rooted 2.21.

[Q] Photon Q Wifi LEAP question

Hi, newbie here.
i have been reading for a while on this forum, i was using Nokia E7 for my work purposes, and interested to know if photon Q can replace it. i like QWERTY device anyway. as photon Q looks attractive for me so finally I got one.
i am interesting if i can connect photon Q to 802.1x with LEAP.
i try to play with stock wifi setting, no LEAP option there, i try to play with LEAP Wifi free (can be downloaded in google play), Wifi advanced configuration editor, wifi connection manager, try all possible setting but still can't connect to my company network.
other status :
SW version 77.8.14
android version 4.0.4
build number = 7.7.1Q-6_SPR-125_ASA-14
i was wondering if i need to root/unlock bootloader to have LEAP connected (so i can edit something/files).
any idea or any help? thank you !
Never used this type of wifi, but maybe this post will help?
arrrghhh said:
Never used this type of wifi, but maybe this post will help?
Click to expand...
Click to collapse
thanks, but i have tried that and not working.
I assume a lot of university & company still using Cisco LEAP Authentication.
once we find a way, photon q can be the perfect phone for businessman & student.
I use "LEAP WiFi Free" from the market (Play Store) and it works perfect with LEAP authentication at my workplace.

Categories

Resources