google-code-export / sapphire-port-dream

Automatically exported from code.google.com/p/sapphire-port-dream
1 stars 1 forks source link

Fix Android Wifi Tether For Root users #7

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I seen reports in the forum that this tether app does not work properly in
the magic builds
App location: http://code.google.com/p/android-wifi-tether/

Original issue reported on code.google.com by defconoii on 11 Apr 2009 at 1:55

GoogleCodeExporter commented 9 years ago
I havent tested in 5.x but it did not work in 4.5 with 5 different tether apps. 
One
said something about iptables or kernel needing upgrade.

Original comment by Jadams2...@gmail.com on 11 Apr 2009 at 7:02

GoogleCodeExporter commented 9 years ago
This is being worked on.

Need to enable certain options on the kernel.

Original comment by hayk...@gmail.com on 11 Apr 2009 at 7:15

GoogleCodeExporter commented 9 years ago
I've created a test-build (wifi tether for root users) which uses
/system/bin/iptables ... available here:
http://android-wifi-tether.googlecode.com/files/signed_andTether_0_97_haykuro_te
st.apk

Netfilter needs to be integrated into the kernel otherwise iptables won't work!

Don't hesitate to contact me if I can help ...

Original comment by harald....@gmail.com on 12 Apr 2009 at 6:21

GoogleCodeExporter commented 9 years ago
Harald: I'm sorry to say I can't quite make out what is going on here. Thanks 
for
your work on an awesome app however, and props to haykuro as well.

I installed this special 0.97 haykuro test version, but still get some failed
messages in the log when I try to tether. I am using the 5.0G build from 
yesterday.
Is this test supposed to accompany another ROM update? Is there something I can 
do to
my own kernel to make this fly? I'm reasonably experinced with linux kernels 
but just
getting started with Android and havn't baked up one of my own yet for it. 
Before I
start looking down that road I figured I'd ask if it WAS the right road.

Original comment by alerque on 12 Apr 2009 at 7:02

GoogleCodeExporter commented 9 years ago
alerque: this test-version WONT work with current haykuro-kernel-build because 
of
missing netfilter-support! haykuro or daproy have to recompile the kernel first!
this version is intended for developers and not for the masses.

please be patient!

Original comment by harald....@gmail.com on 12 Apr 2009 at 7:14

GoogleCodeExporter commented 9 years ago
I cant wait for this fix. 5.0G is super stable. It is now my everyday version. 
All it
needs is this icing on the cake and ill be happy. I tried running the 0.97 
version of
wifi tether for root users and it froze my phone up several times. Thanks 
Haykuro.

Original comment by serialt...@gmail.com on 13 Apr 2009 at 2:19

GoogleCodeExporter commented 9 years ago
harald.mue: simple version = yes the new version need a new kernel that isn't 
relased
yet. Thanks for the clarification on what the test build you posted was about.

I found in the forums somewhere that daproy had compiled a kernel with 
netfilter, but
it hasn't made it's way into the haykuro builds yet (5.01G and 5.02H downloads 
tested
today).

I started messing with a cross compiling tool chain and build environment to 
roll my
own last night. I'm only a noob to android, not to linux; but somehow I think 
haykuro
will probalby get that change made before I get up to speed.

Original comment by alerque on 13 Apr 2009 at 2:34

GoogleCodeExporter commented 9 years ago
Use Pdanet http://www.junefabrics.com/android/index.php to use the G1 as a USB 
modem
until Wifi tethering is working.

Original comment by jamesjgu...@gmail.com on 13 Apr 2009 at 3:25

GoogleCodeExporter commented 9 years ago
Thanks for the suggestion jamesjguthrie, but as spiffy as pdanet is, running in
userspace and all, it is exclusivly a windows based tether. Not everybody uses
windows. I for one have linux on my desktop and laptop, not just my phone :-)

Original comment by alerque on 13 Apr 2009 at 5:04

GoogleCodeExporter commented 9 years ago
For others following this, there IS a USB tether partial-solution that works. 
The
tetherbot program successfully sets up a SOCKS server and a port foward that, 
when
bridged using adb port forwarding will let you at least surf and ssh out from 
your
computer through your HTC Dream running current haykuro roms.
http://graha.ms/androidproxy/

Original comment by alerque on 14 Apr 2009 at 9:55

GoogleCodeExporter commented 9 years ago
So ... I've built my own kernel (cupcake 2.6.27 - of course) and I've enabled
netfilter. Replaced the kernel in your build (5.0.2-G) with mine and the
haykuro-test-build (wifi tether) is working fine for me.

Original comment by harald....@gmail.com on 14 Apr 2009 at 10:22

GoogleCodeExporter commented 9 years ago
Hey herald that's pretty forward thinking there considering 5.0.2G doesn't even 
exist yet. I got bungled 
up in compiling the kernel because I ran into some crazy issue cross compiling  
I2C. Any chance you 
could post or otherwise pass along that kernel?

Original comment by alerque on 14 Apr 2009 at 10:31

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Yep looks like we need the newly compiled kernel with netfilter enabled. I 
tried the
test tether you provided in this page, but didnt work. Waiting for your next 
release
with the updated kernel. Great work man. 

Original comment by MaLLu...@gmail.com on 15 Apr 2009 at 11:57

GoogleCodeExporter commented 9 years ago
Here is the kernel-config-file which I've used to compile a kernel which 
supports
netfilter/iptables.

Original comment by harald....@gmail.com on 17 Apr 2009 at 9:48

Attachments:

GoogleCodeExporter commented 9 years ago
WiFi tethering is confirmed working in 5.0.1Gr3 using the 0.97-haykuro-test 
version
of the android-wifi-tether app. It is, however, a little bit picky and I've had 
it
crash a couple times.

It seems you need wifi turned ON before you launch the tether program or it 
will hang
and then force close. I tried this with the tether being the only app installed 
on a
clean wipe and flash.

Original comment by alerque on 18 Apr 2009 at 7:41

GoogleCodeExporter commented 9 years ago
Works perfectly with version 0.96 on 5.0.1Gr3 !!! (I'm posting using it)

Thanks Haykuro

Original comment by T.Aleziardo on 18 Apr 2009 at 8:26

GoogleCodeExporter commented 9 years ago
That was a life saver for me :). I am currently using the 0.97 test version and 
when
I tried stopping tethering, i got these messages in my log.

Shutting down network interface...
done

Disabling IP forwarding...
done

Tearing down current firewall rules...
done

Stopping current WiFi users...
done

Configuring WiFi interface...
FAILED

unloading wlan.ko module...
done

Also I did notice that internet connection would go from good connection to 
limited
connectivity in a irregular interval. All I did to fix it was to disconnect 
from G1
from my laptop then reconnect.

Well apart from those, It works very good. You have done a great work. 

Thank you.

Original comment by MaLLu...@gmail.com on 19 Apr 2009 at 12:58

GoogleCodeExporter commented 9 years ago
works fine now

Original comment by honch...@gmail.com on 19 Apr 2009 at 4:53

GoogleCodeExporter commented 9 years ago
Ok so I get the wifi tether to turn on and connect my devices however when they 
are connected they cannot get 
on to the internet
And when I turn tethering off my devices restarts it self

Original comment by arian...@gmail.com on 21 Apr 2009 at 12:22

GoogleCodeExporter commented 9 years ago
hr3 works so perfectly with tether 0.97~~~

Thank you!

Original comment by zhangjun...@gmail.com on 22 Apr 2009 at 12:03

GoogleCodeExporter commented 9 years ago
if i wanna using hr2, 
how to replace kernel to let wifi tether work?
and where to download the new kernel and replace the old kernel ?
someone please teach me, thanks

Original comment by 17hado....@gmail.com on 22 Apr 2009 at 3:37

GoogleCodeExporter commented 9 years ago
Any reason why when turning of wifi there is an error ?

Configuring WiFi interface...
FAILED

Original comment by smokin....@gmail.com on 26 Apr 2009 at 2:40

GoogleCodeExporter commented 9 years ago
hr3 also works here on a wiped g1 using tether 0.97   Using a T-Mobile US 
account, internet access to devices 
works fine.   Ensure you are getting DHCP assignments to the devices...

Original comment by npand...@gmail.com on 30 Apr 2009 at 8:30

GoogleCodeExporter commented 9 years ago
I nod know if ROMS work on my Nordic magic yet , but you can use this app if 
you have
problem with wifi still. 
http://code.google.com/p/azilink/

Original comment by shwan.ciyako@gmail.com on 13 Jun 2009 at 3:41

GoogleCodeExporter commented 9 years ago
Harald,

I'm somewhat new to this kind of development. I've been able to build the 
Android OS from the source code (using the instructions from the site) and load 
it onto the Sapphire development phone. I now want to enable the Netfilter, 
where is the file for me to do that? I see you included a sample file, where do 
I load it or edit my own version? Thanks so much!

-Greg

Original comment by gkuper...@gmail.com on 7 Jul 2010 at 10:18