jiacontrerasp / android-wifi-tether

Automatically exported from code.google.com/p/android-wifi-tether
0 stars 0 forks source link

Sprint HTC Hero Support #188

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Since the Sprint/CDMA Hero has now been rooted, we Android fans need our
long awaited Wifi Tether! The app runs and clients can connect to the phone
fine, there just isn't any Internet access.

Thanks ahead of time from all of us.

Original issue reported on code.google.com by dalto12...@gmail.com on 8 Nov 2009 at 7:32

GoogleCodeExporter commented 9 years ago
@harald.mue: damn, you are right, i face the same bug here ...

Original comment by dot...@gmail.com on 16 Nov 2009 at 11:19

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Is it possible this has something to do with your cdma network knowing what 
type of
data is being sent? Is it as simple as something on the pc that is tethering 
needing
a reg key update?
Also when you are wifi tethering does your CDMA carrier know if you are 
tethering
versus using your normal phone - is there any way to confirm?

Original comment by eaglep...@hotmail.com on 17 Nov 2009 at 2:38

GoogleCodeExporter commented 9 years ago
If you are still complaining about tethering not working, please include what 
version
number you're using.  Anything before 1.61pre1 is known to not work.

@harald.mue: You may find it interesting that when HTC wired tethers, they use 
udhcpd
which is present on the stock rom and they use these iptables rules to pass 
through
traffic:
iptables -t nat -F
iptables -t nat -A POSTROUTING -o %s -j MASQUERADE (see note 1)
iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
iptables -t nat -I PREROUTING -i usb0 -p udp --dport 53 -d %s -j DNAT --to %s 
(see
notes 2,3)

Note 1: The %s is always filled with rmnet0 but they code to look for rmnet0-3 
as the
outgoing interface
Note 2: The first %s is always 192.168.100.254, the IP address they give usb0 
when
they bring up the interface
Note 3:  The second %s is the primary DNS server from the rmnet0 interface as
determined by using System.getProperty("net.%s.dns1", "") and the %s is the 
interface
name from Note 1.

Just thought you might fit that an interesting comparison to android.tether's 
use of
dnsmasq.

Original comment by capnbry on 17 Nov 2009 at 5:02

GoogleCodeExporter commented 9 years ago
This command:
iptables -t nat -I PREROUTING -i usb0 -p udp --dport 53 -d %s -j DNAT --to %s
will forward dns-requests which are coming from usb0 to the dns-server which is 
used
for interface net.rmnet0.dns1 (that's a very simple solution).

For this app we are using dnsmasq (a tiny dns- and dhcp-server) which looks for
dns-servers in the file /data/data/android.tether/conf/resolv.conf ... and the 
app
updates this file if changes were discoverd.

Now ... I'm still unsure if it's a good idea to delete this gprs rule ... let 
me try
something - I will put a new testversion together. Stay tuned.

Original comment by harald....@gmail.com on 17 Nov 2009 at 6:54

GoogleCodeExporter commented 9 years ago
@capnbry: Could you please check if attached binary is working for you? I've 
changed
the forward rules a bit and specified the input and output-interfaces more 
detailed.
Maybe this works without deleting that gprs-rule.

Replace it via adb:
adb push tether /data/data/android.tether/bin/tether
adb shell chmod 0755 /data/data/android.tether/bin/tether

Original comment by harald....@gmail.com on 17 Nov 2009 at 8:05

Attachments:

GoogleCodeExporter commented 9 years ago
@harald.mue: Yeah I'm intimately familiar with all that stuff, I just thought 
you
might find their method of internet sharing interesting.  I'm a C++ developer 
by day
and I usually enjoy hearing how other people tackle issues.

I'll check that binary tonight, I seem to have left my phone at home... 
according to
Google Latitude.  You can also catch me directly on GTalk capnbry (@gmail) if 
you like.

Original comment by capnbry on 18 Nov 2009 at 5:15

GoogleCodeExporter commented 9 years ago
Sorry I took so long to test the new tether but it has been a busy week. 
Unfortunately it doesn't work. The route still exists in the gprs table, but I'm
guessing you're trying to get around it by using a more explicit iptables 
command?  I
don't see the "deleting route" log line any longer.

Original comment by capnbry on 20 Nov 2009 at 4:09

GoogleCodeExporter commented 9 years ago
Apparently disabling and re-enabling Mobile Networking will restore the deleted 
gprs
table, so as a dirty hack, I'm guessing tether could delete the gprs route, 
then when
tethering is disabled, make the hero cycle Mobile Networking on and off. The 
question
is how do we do that programmically.

Original comment by rkuch...@gmail.com on 21 Nov 2009 at 11:47

GoogleCodeExporter commented 9 years ago
Sorry I was pretty busy the last days. What I did in the binary (see #56) was to
specifiy the incoming and outgoing interfaces more detailed:

iptables -I FORWARD -i rmnet0 -o tiwlan0 -m state --state ESTABLISHED,RELATED 
-j ACCEPT
iptables -I FORWARD -i tiwlan0 -o rmnet0 -j ACCEPT
iptables -t nat -I POSTROUTING -o rmnet0 -j MASQUERADE

But that doesn't seem to work :-( ...

Original comment by harald....@gmail.com on 22 Nov 2009 at 9:18

GoogleCodeExporter commented 9 years ago
Yeah the iptables stuff just sets policy, the routes are what determines what 
goes
out which interface.  As far as I know there's no way to route a packet to a 
specific
interface from iptables.

Original comment by capnbry on 23 Nov 2009 at 2:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
So what was the solution? I'm running a CDMA HERO that cannot tether to my 
Windows 7 PC 
but works with an iPhone.. It fails to delete the routing-rule.

Original comment by ad...@suprascene.com on 19 Jan 2010 at 9:07

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
This is working just fine for me on a stock rooted rom using the pre-release 
version
(http://android-wifi-tether.googlecode.com/files/wireless_tether_1_61-pre1_htc.a
pk).

Original comment by anton...@hotmail.com on 19 Jan 2010 at 9:02

GoogleCodeExporter commented 9 years ago
I'm using v1.70-pre1. WEP encryption doesn't work with my HTC Hero by Sprint.

I have a key set, but the clients are never asked for it.

BTW, HTC just released the kernel source for the Sprint Hero:
http://member.america.htc.com/download/RomCode/Source_and_Binaries/heroc_ef05d31
a.tar
.bz2

Original comment by je...@damocles.com on 23 Jan 2010 at 4:05

GoogleCodeExporter commented 9 years ago
Ok, CDMA Sprint Hero Rooted with pre-kitchen ( it errored out but finished root 
manually)

I am running the stock rom, I do have PDANet installed and working as well.

The wifi Tether worked fine, I had teh same issue of the wep not working after 
setting it up.

Got the Win7 64 Laptop and XP 32 Netbook up and working no issues with 
networking, 
just no wep request.

I am using the 1.70pre2

If you need info from me let me know, and I'll get what I can for you

-Robert

Original comment by General....@gmail.com on 29 Jan 2010 at 4:06

GoogleCodeExporter commented 9 years ago
Hey guys/gals!  I just got my Sprint HTC Hero about a month ago, discovered the
process of rooting and what it brings a couple of weeks ago, and decided to 
root my
phone yesterday.  I have some really basic knowledge of ip configuring (enough 
to
know when I installed the version from the homepage that my PC at home and PCs 
at
work had found and connected to the WiFi network my Hero was giving out, but 
pinging
the gateway and getting nothing was causing the issue with the internet) to 
know to
look here.  My phone reports it has firmware v1.5, which i assume is Cupcake.  I
rooted my phone via command line with the SDK.  I have NOT install any roms 
(mostly
because the instructions I have required the use of flashrec and for some odd 
reason
the version of flashrec I got will not do a backup; that is another issue i'll 
look
up/ask for help with later). 

I found Wireless Tether v1.61 on this thread (and not in the downloads?) and
installed it when v1.60 did not work.  It DOES allow computers to access the 
WiFi,
BUT ONLY IF WEP IS NOT ACTIVATED.  If WEP IS activated, the computers NEVER ask 
for a
passkey, and while a connection to the network IS made, a connection to the 
internet
IS NOT.  If I turn off WEP while the network connection is made, BOOM!, I have
internet access.

Of course, I have Access Control turned on so if a PC I do not recognize tries 
to
connect to my Hero's WiFi net I can simply deny them access... but if WEP was 
active
I wouldn't have to go through the hassle of denying them because they'd never 
get to
send a request in the first place!

I hope something of this is a help to someone, and if I can be of any further 
help
I'd be glad to do so since I would love for this to work and continue to work 
even
after they apply Eclair and any further firmware updates!  If you need me to 
send any
code for comparisons, I'd be happy to send them, but you'd have to guide me 
through
how to get them for you since I'm new to using the SDK and Terminal.

--KB, II

Original comment by ken.boc...@gmail.com on 29 Jan 2010 at 11:26

GoogleCodeExporter commented 9 years ago
1.61 works like a charm on Sprint Hero rooted with stock ROM. y'all are 
geniuses.

Original comment by grafixgu...@gmail.com on 11 Feb 2010 at 6:10

GoogleCodeExporter commented 9 years ago
Hello!

I've been working on this all night, reading all your support issues as well as 
the
xda developers forum. Rooted my Sprint CDMA Hero using Pre Kitchen, installed 
wifi
tether 160 using Apps Installer.

First time with 160 it took forever to get an ip address after connecting. I 
was able
to ping the device one time (192.168.2.254) came back with a 4ms, then a 37ms, 
then
two time outs. Could never do an nslookup.

Saw on issue 122 (i think) that they updated to the modaco rom. Did this. Then 
added
the wavesecure mod to modaco from something someone mentioned possibly earlier 
in
this thread. Still no change. Updated to the 170 pre2 you have on the site. 
Still no
change.

After reading through this article I saw there was some success with the 161 
build.
Added this and installed over existing wifi tether (I HAVE NO CLUE HOW TO 
UNINSTALL
THIS APP?). This time, I was able to get an ip address in seconds, like it 
should do.
Still no internet though. Could not ping device or pull an nslookup.

What can I do to help?

Original comment by shee...@gmail.com on 13 Feb 2010 at 2:07

GoogleCodeExporter commented 9 years ago
UPDATE!

Luckily, after rooting the phone i immediately did a nandroid backup. Restored 
to
this (this backup is prior to the modaco rom), installed apps installer, then 
the 161
update in this thread. Works Perfectly. I love you.

Original comment by shee...@gmail.com on 13 Feb 2010 at 2:22

GoogleCodeExporter commented 9 years ago
Hey guyz  need same help...
I bhe rooted my ph n hve downloaded WiFi tether... when I start WiFi tether it 
doesn't show in my 
laptop...it has started on ph but my laptop or my ipod is not gettin WiFi 
signal to connect to..
What shud I do to make it work?

Original comment by Insomnia...@gmail.com on 13 Feb 2010 at 7:00

GoogleCodeExporter commented 9 years ago
I rooted using instructions found here: http://forum.xda-
developers.com/showthread.php?t=583291

I am on Sprint CDMA hardware and the factory software version 1.29.651.1.

My original problem was the same... I was able to obtain an IP address, but not 
route through the phone.

Using the terminal command "ip route delete table gprs" worked for me!

I was up and running using a Second Gen iPod Touch quickly, with no errors (all 
green).

I am going to reinstall tether using the "wireless_tether_1_61-pre1_htc" 
version.

Thanks for the help.

-David 

Original comment by david.a....@gmail.com on 17 Feb 2010 at 4:30

GoogleCodeExporter commented 9 years ago
Just reinstalled tether using the "wireless_tether_1_61-pre1_htc" version.

Worked okay, but had to play with the settings to get it to come up.  Don't 
know 
why... I re-installed, did a soft reboot of the phone.

Tried to enter "ip route delete table gprs" in terminal and it gave me an 
error, so 
i assume that the 1_61 version took care of the gprs table.

-David

Original comment by david.a....@gmail.com on 17 Feb 2010 at 6:35

GoogleCodeExporter commented 9 years ago
Hi, I have a Sprint HTC Hero and I recently rooted it. I'm not at all familiar 
with
this kind of stuff and assuming I rooted it correctly I am having same issue 
with my
Hero coming up as G1tether, but the laptops I have tethered to can't get 
internet
access. I tried using the "wireless_tether_1_61-pre1_htc" and I am still unable 
to
get internet access. Any help would be greatly appreciated.

-TJ

Original comment by thoo...@gmail.com on 25 Mar 2010 at 3:59

GoogleCodeExporter commented 9 years ago
Hello everybody, i rooted my low cost HTC Tattoo with Android 1.6 original ROM 
from
HTC with Czech lang (kernel 2.6.29-gf922713 htc-kernel@and18-2#117), bought it 
in
Orange Slovakia and i installed anroid-tether 2.0.pre10. I coudn't make it work 
until
i found this forum. Now after issiueing command "ip route delete table gprs" in
termninal as mentioned above shared connection over wifi works like a charm. 
Thank
you and i hope it will be done later on automatically by SW. 

Original comment by sscho...@gmail.com on 15 Apr 2010 at 9:19

GoogleCodeExporter commented 9 years ago
Hi Everyone i have been waiting for some time to get the WIFI working and all i 
have 
tried all of the above and i still have no internet on the laptop,I know this 
has 
been a chalenge for all involved and just wanted to say thanks for not giving 
up...

Original comment by Blkjak...@gmail.com on 20 Apr 2010 at 8:01

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I also recently rooted my HTC Hero and had a similar problem described in some 
of the
initial posts. My computer would connect to the phone but I wouldn't get a 
connection
to the Sprint network. Even when trying to use a browser on the phone I would 
not get
a connection. After playing around to try and get some sort of connection back I
discovered that if I: 

Start Wireless Tether
Hold down the red Hang Up button
Tap the last option "Mobile Network to disable my network
Again hold down the red Hang Up button and re-enable my "Mobile Network"

Everything works fine from here on out on both the phone's browser and the 
tethered
connection. 

My phone is flashed with DamageControl v2.08.1
http://forum.xda-developers.com/showthread.php?t=656690

Original comment by icesl...@gmail.com on 29 May 2010 at 3:40

GoogleCodeExporter commented 9 years ago
@iceslice: use one of the 2.0.2-pre releases of the app!  At least this should 
fix a 
similiar issue with the android 2.1-update for hero.

Original comment by harald....@gmail.com on 29 May 2010 at 5:05

GoogleCodeExporter commented 9 years ago
Thanks iceslice, your workaround worked for me :applause:

"Start Wireless Tether
Hold down the red Hang Up button
Tap the last option "Mobile Network to disable my network
Again hold down the red Hang Up button and re-enable my "Mobile Network"
"

Original comment by davidsev...@gmail.com on 8 Jun 2010 at 5:38

GoogleCodeExporter commented 9 years ago
how do i go about performing the "ip route delete
table gprs"

Original comment by gary.per...@gmail.com on 8 Jun 2010 at 9:13

GoogleCodeExporter commented 9 years ago
I can't get any of the 2.x.x releases to work on my Hero. I am at 2.1 and 
rooted. No matter what I always get "Unable to start tethering. Please try 
again!"

I only version I have been able to get working at all is 1.70-pre2

Original comment by Randall....@gmail.com on 29 Aug 2010 at 1:48

GoogleCodeExporter commented 9 years ago
When I connect to my Hero via wireless tether I cannot get internet access 
unless I update my profile on the phone while connected.  How do I prevent 
having to take this step every time I connect?  

Original comment by chadrhan...@gmail.com on 25 Sep 2010 at 1:17

GoogleCodeExporter commented 9 years ago
I had to enter the commmand "ip route delete table gprs" as pointed out by 
david.a.reyes71 in command 73.

Original comment by Stephan....@gmail.com on 16 Oct 2010 at 8:35

GoogleCodeExporter commented 9 years ago
Hi,

I have a rooted HTC Hero with the Android 2.1 Modaco ROM running.
Can anyone tell me which version I should be downloading? 
I tried many versions, including the 1.61_pre1. Most allow my Mac (running on 
SnowLeopard) to connect to the network and get an IP address, but pages never 
load. I also tried to download the 2.0.2_pre, but this time I get the "Unable 
to start tethering. Please try again!" error.
I also tried the "ip route delete table gprs" command, but it gives me a 
"command not found" error.

Any help would be greatly appreciated!

Original comment by lucie.du...@gmail.com on 18 Oct 2010 at 10:19

GoogleCodeExporter commented 9 years ago
I'm using HTC Hero. Originally downloaded the wifi tether app direct from the 
Market (version 2.0.2). Can connect but no internet. Removed and install with 
http://android-wifi-tether.googlecode.com/files/wireless_tether_1_61-pre1_htc.ap
k
Now able to work.
Thanks.

Original comment by sohyenc...@gmail.com on 6 Dec 2010 at 2:10

GoogleCodeExporter commented 9 years ago
Have HTC Hero and Xoom...No adhoc on Xoom and unable to bluetooth tether with 
wireless tether...Please Help.

Original comment by jeffjas...@gmail.com on 6 Apr 2011 at 11:25

GoogleCodeExporter commented 9 years ago
Is there a fix for this? I have read all the comments, and I dont see one that 
worked for me. Just tried to make this work on a friends Sprint Hero. Found a 
comment in a different issue that said look here for a fix, but I am unable to 
find the fix. Thanks for any help.

Original comment by skandran...@gmail.com on 22 Apr 2011 at 6:57

GoogleCodeExporter commented 9 years ago
I downloaded wifi tether from the market on Friday 5/20/11 for my HTC hero 
running cm-7.0.3 and I could see the SSID and connect to it but would then have 
no internet.  I also noticed no MAC addresses showed up even though I was 
connected (so I could never authorize a MAC). I downloaded the new experimental 
wifi_tether_v3_0-pre14.apk of wifi-tether today and it now works.  
http://www.cnn.com/2011/WORLD/europe/05/10/norway.beard.moustache.championship/i
ndex.html?hpt=C2
 I'm only seeing an 802.11b connection speed 11Mbps but I'm sure that's faster than my 3G can deliver anyway.   Hopefully on 4G phones it will support a faster connect speed. (may have to do with what wireless hardware I have in the phone too)

Original comment by sfarwel...@gmail.com on 23 May 2011 at 4:10

GoogleCodeExporter commented 9 years ago
I'd like to agree and confirm the comment above me. I installed visionary from 
the market and used that to temp root my phone. I then installed 
wifi_tether_v3_0-pre14.apk on a Sprint HTC Hero CDMA phone using stock 
2.1-update1 firmware. 

Ad-hoc wifi based tethering works on a Fujitsu XP laptop. DHCP functioned 
perfectly and there was no special network configuration needed on the laptop. 
Now if anyone could get infrastructure wifi based connections working that 
would be amazing.

Note: On my phone in wifi tether settings, I set "Device-Profile" to Sprint 
Hero, and enabled the "Routing Fix" option.

Thanks for all of the work that went into this!!

Original comment by andgu...@gmail.com on 18 Jun 2011 at 12:51

GoogleCodeExporter commented 9 years ago
NICE... just installed <wifi_tether_v3_1-beta11.apk> BETA on a Rooted HTC 
HERO... Worked like a charm !!!!  Thanks to all.... 8¬)

Original comment by Figaro...@gmail.com on 27 Jan 2012 at 6:59

GoogleCodeExporter commented 9 years ago
i have a nexus google smartphone and i am not able to use it in the country 
where i am because it is cdma. need some help unlocking it 

Original comment by patterso...@gmail.com on 8 Jun 2015 at 2:33