ADRDev / android-wired-tether

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

Doesn't work on HTC Evo4g #19

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install on Evo 4G
2.
3.

What is the expected output? What do you see instead?
It starts without a problem, but no connection shows up in Windows

What version of the product are you using? On what operating system?
Lastest version of android-wired-tether and Windows 64-bit.  The built-in usb 
tethering works just fine once HTC Sync is installed, but this doesn't do 
anything.

Please provide any additional information below.

Original issue reported on code.google.com by mai...@gmail.com on 17 Jun 2010 at 6:50

GoogleCodeExporter commented 9 years ago
Disable debugging and usb mass storage and pc will find RNDIS connection.

Original comment by agent...@gmail.com on 17 Jun 2010 at 9:44

GoogleCodeExporter commented 9 years ago
I have, and there's no change.  When I turn tethering on or off on the phone, I 
do see a spike of CPU activity in Windows, but that's it.  I'll keep trying, it 
could be me.

Original comment by mai...@gmail.com on 18 Jun 2010 at 3:55

GoogleCodeExporter commented 9 years ago
I'm having the same sort of issue.  I've tried all the settings and disabled 
debugging...  On windows 7, when I plug in the USB and choose "Charge Only" I 
hear it see a new device attached, but I think it's the mass storage, just not 
mounting the SD card.  When I plug it in and choose "HTC Sync" the phone just 
looks for the HTC software, which I don't have installed.

Original comment by cool...@gmail.com on 18 Jun 2010 at 6:06

GoogleCodeExporter commented 9 years ago
btw, an update...  I edited the file as instructed in issue 16 and it worked, 
but it did not use a built in driver... had to use the HTC one.

http://code.google.com/p/android-wired-tether/issues/detail?id=16#c4

It is kind of a pain though to have to edit the file to get it to work.  Seems 
like unplugging or at least rebooting resets the changes.

Original comment by cool...@gmail.com on 18 Jun 2010 at 6:54

GoogleCodeExporter commented 9 years ago
How do you edit that file?  If you need to make the change each time, you could 
use Gscript Lite to create a shortcut for it.  If it's just that this change 
isn't staying between reboots, you might need to unlock your NAND ( 
http://forum.xda-developers.com/showthread.php?t=701835 ).  

Original comment by mai...@gmail.com on 18 Jun 2010 at 8:09

GoogleCodeExporter commented 9 years ago
Already unlocked the NAND....  I'm using the Fresh ROM, I Just navigated there 
with ES File Explorer and changed it....  I'm not sure what the cause is but 
the file is being changed.

Original comment by cool...@gmail.com on 18 Jun 2010 at 1:06

GoogleCodeExporter commented 9 years ago
I'm going to give gscript a try and see if I can automate this.  I wish the app 
had some built in facility to do it, but as long as I can get it to work on the 
rare occasion I need to use it, I will be happy.

Original comment by cool...@gmail.com on 18 Jun 2010 at 4:33

GoogleCodeExporter commented 9 years ago
If you want to usb wired tether and not mess with all this 
Download Gscript Lite and create a script that can be placed on the Home screen.

Create script with Superuser checked and type in 

/system/bin/netsharing net on && echo 4 > 
/sys/devices/platform/msm_hsusb/usb_function_switch

Original comment by agent...@gmail.com on 18 Jun 2010 at 6:20

GoogleCodeExporter commented 9 years ago
You will not even need to use the wired tether app.

Original comment by agent...@gmail.com on 18 Jun 2010 at 6:21

GoogleCodeExporter commented 9 years ago
Yeah, but it's kind of buggy to use that command.  It works and I'm using it, 
but getting it to turn off is kind awkward.  I just wish this app could toggle 
the switches in usb_function_switch automatically.  I still can't figure out 
how to change the options with a command.  Maybe cat would work, but I don't 
know how.

Original comment by mai...@gmail.com on 18 Jun 2010 at 6:25

GoogleCodeExporter commented 9 years ago
When I edit the usb_function_switch file manually I lose usb mass storage until 
phone reboot.  The netsharing command will allow me to use usb storage after 
you select mobile internet sharing and let it error out.

Original comment by agent...@gmail.com on 18 Jun 2010 at 6:42

GoogleCodeExporter commented 9 years ago
Thanks agent.do I'll give that a try.

Original comment by cool...@gmail.com on 18 Jun 2010 at 6:46

GoogleCodeExporter commented 9 years ago
I guess it's the best option yet.  Thanks, agent.do.  I have a shortcut from 
Gscript on my home screen so it's convenient.

Original comment by mai...@gmail.com on 18 Jun 2010 at 7:19

GoogleCodeExporter commented 9 years ago
Well I don't know what I'm doing wrong.  I set up the script with that command 
and it runs.  I plug in and choose internet sharing and it bring up a login 
failure on the phone.  Eventually the computer does get a valid IP on that 
adapter and gateway/dns, but it doesn't seem to work.  Am I doing it wrong?

Original comment by cool...@gmail.com on 18 Jun 2010 at 7:56

GoogleCodeExporter commented 9 years ago
Usb debugging needs to be on.  You leave it on usb charging don't change 
internet sharing.

Original comment by agent...@gmail.com on 19 Jun 2010 at 7:10

GoogleCodeExporter commented 9 years ago
Thanks agent.do...  that seems to work.  It's a little strange because there is 
no visible indication on the phone that you are using it as a proxy, but it 
works well.  In fact, it *seems* to be a lot faster than the wired or wireless 
tether apps.

If I want to turn it off I assume I just do:

/system/bin/netsharing net off && echo 4 > 
/sys/devices/platform/msm_hsusb/usb_function_switch

Sorry if that's a stupid question, but linux/android shell scripting is not 
something I am proficient in.

Original comment by cool...@gmail.com on 21 Jun 2010 at 3:28

GoogleCodeExporter commented 9 years ago
Turn it off by selecting the mobile internet sharing.  It will error out and 
return your usb back to normal.

Original comment by agent...@gmail.com on 23 Jun 2010 at 11:14

GoogleCodeExporter commented 9 years ago
agent.do, thank you.  I finally worked out how to properly do what you 
suggested in your first message.  I also figured out how to get usb mass 
storage back when you're done.

I posted a comment with it all worked out here 
http://code.google.com/p/android-wired-tether/issues/detail?id=21

Basically, you create two Gscript files.  You run the first one before you 
start Wired Tether and you run the second one after you stop tethering to get 
usb mass storage back.

1. 
echo 4 > /sys/devices/platform/msm_hsusb/usb_function_switch

2.
echo 1 > /sys/devices/platform/msm_hsusb/usb_function_switch

I can't figure out how to get both ADB and usb mass storage back with a command 
though.  You can run "echo 2 > 
/sys/devices/platform/msm_hsusb/usb_function_switch", to enable ADB, but it 
disables usb mass storage.  If you just enable usb mass storage with 'echo 1' 
you can enable ADB by going into Settings > Applications > Development and 
toggling usb debugging off and on.

Original comment by mai...@gmail.com on 27 Jun 2010 at 11:48

GoogleCodeExporter commented 9 years ago
Oops, echo 3 fixes both adb and usb mass storage

Original comment by mai...@gmail.com on 28 Jun 2010 at 12:53

GoogleCodeExporter commented 9 years ago
Awesome, thanks mainsm.  This works great.  I like the wired tether better than 
the built in sharing since I can't really see a status and it is easier (at 
least more uniform) to get the mass storage back.  I do like having both 
options though, you never know when you might need an alternative.

Original comment by cool...@gmail.com on 28 Jun 2010 at 4:34