[APP] Wired Tether v1.4-epic-4 (EB13 Froyo) (3/3/11)

Search This thread

ptfdmedic

Senior Member
Aug 23, 2006
2,259
2,205
attached is a build of wired tether v1.4 modified to support rndis (usb tethering) on (eb13) froyo epics. Also attached are the source patches against the v1.4 sources.

This is an update of the previous eclair version of wired tether, but since the kernel patch is no longer necessary in froyo i've split this into a new thread.

And yes, froyo does come with usb tethering out of the box. However, in eb13 many folks may find that with the built-in tethering they can only tether to wifi, and attempts to tether to 3g (and possibly 4g) results in error. This wired tether client avoids said "errors."

directions:
  • (windows only) install the samsung usb drivers. No other drivers are needed for windows 7, and i think windows xp sp3.
  • make sure the usb cable is unplugged before starting the tether client.
  • start "wired tether" and "press to start tethering."
  • grant the superuser request (if your su requires it).
  • make sure tethering has started, you should see green/red "down/up" numbers at the bottom of the screen.
  • attach the usb cable.
  • select "charging" mode from the "select usb mode" menu.
  • tether!

when finished:
  • detach the usb cable.
  • "press to stop tethering."
  • grant the superuser request (if your su requires it).
  • exit the "wired tether" program.
  • reattach the usb cable if you want to use mass-storage.

note, tethering should be used with "usb debugging" disabled. This is due to a bug in the froyo (including eb13) kernel's usb gadget driver whereby if rndis is enabled "on top of" adb mode (and subsequently disabled), when "usb debugging" is later turned off it reverts back to rndis mode instead of mass storage, whoops! If you get stuck in rndis mode, cycling wired tether once should fix it. Alternatively, if you always run with "usb debugging" enabled, this bug shouldn't matter. Keep in mind, neither mass-storage support nor adb will be availble while actively tethering.

Troubleshooting:

If the client force closes on you and you're using a rom with android-wifi-tether preinstalled, then there is a library conflict. Remove android-wifi-tether from /system, and most importantly, delete (or rename) /system/lib/libnativetask.so, then android-wired-tether should work. If you want both wifi & wired tether, reinstall android-wifi-tether from the market. This will make each application use its own library so there's no more conflicts. See this post for more details.

Technical details:

The froyo kernel provides rndis support via a sysfs switch, much like the previous eclair kernel patch. Samsung just happens to use a different name ("tethering" instead of "rndis_enable"). Oh, and they introduced a silly bug that results in weird behavior if you tether with "usb debugging" enabled--see above.

You may toggle this variable manually, for example, if you wanted to use the rndis interface for other purposes. Just be sure to toggle when the usb cable is unplugged:
Code:
su
echo -n 1 > /sys/devices/virtual/sec/switch/tethering # enable rndis.
Echo -n 0 > /sys/devices/virtual/sec/switch/tethering # disable rndis, reenable ums (or adb).
the wired tether patch simply toggles the sysfs varible upon starting and stopping tethering.

Mirror links (does not require forum login):
wired-tether-1.4-epic-4.apk
wired-tether_use_stable_api.diff
wired-tether_clamp_mss.diff
wired-tether_rndis_enable.diff
thank you very much...
 

A_Flying_Fox

Senior Member
Aug 10, 2010
1,610
170
I was wondering if this would work with other phones since is an .apk?

I would tell my friend to install it on his mytouch 3g, but I don't wanna risk him breaking anyting lol

Sent from my SPH-D700 using XDA App
 

mkasick

Retired Recognized Developer
Aug 10, 2009
470
830
I was wondering if this would work with other phones since is an .apk?
Possibly, but it would be no different than the version from the Wired Tether page.

The problem with older devices is that the stock kernels don't all have RNDIS support out-of-the-box. In the case of a myTouch 3G, he might be best installing CyanogenMod on it which has USB tethering built-in. Although I believe the Wired Tether client should be compatible with CyanogenMod as well.
 

tommi_han

Senior Member
Jul 8, 2010
215
14
Can someone help me... I odin to eb13 with cm3 and ext4 but it still said that my kernel do not support rndis... this is without usb debuggin on
 

ccnd8

Senior Member
Nov 2, 2010
156
18
Flash using Samsung ODIN .exe and root with CM2.5 and you are good to go.
 

Firon

Senior Member
Aug 31, 2007
452
21
I can't get this to work on EB13. Odined the EB13 tar, not running custom anything, but it tells me the kernel does not support RNDIS features.
Any ideas?
 

mkasick

Retired Recognized Developer
Aug 10, 2009
470
830
I can't get this to work on EB13. Odined the EB13 tar, not running custom anything, but it tells me the kernel does not support RNDIS features.
Is this the "Unsupported Kernel!" dialog? If so, check to see if the directory "/proc/net/netfilter" and the file "/sys/devices/virtual/sec/switch/tethering" both exist. They should, but the absence of either one is the only reason it should bring that box up.

Or are you seeing a different message?

Also, completely uninstall and reinstall the app if need be. I'm not convinced it does a perfect job of overwriting stale configurations/native binaries if you had an older version installed.
 

Firon

Senior Member
Aug 31, 2007
452
21
Yes, I'm getting the Unsupported Kernel error dialog. Both of those paths exist.
I'd never installed wired tether on this ROM before, but I uninstalled and reinstalled to no avail. I've tried with usb debugging on and off (I normally run with it on).
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 14
    3/3/11 Update: Added an optional kernel patch against EB13 to fix the RNDIS/ADB bug mentioned below. It's not necessary for the use of this app, it still works fine on EB13 stock.

    Attached is a build of Wired Tether v1.4 modified to support RNDIS (USB tethering) on (EB13) Froyo Epics. Also attached are the source patches against the v1.4 sources.

    This is an update of the previous Eclair version of Wired Tether, but since the kernel patch is no longer necessary in Froyo I've split this into a new thread.

    And yes, Froyo does come with USB tethering out of the box. However, in EB13 many folks may find that with the built-in tethering they can only tether to wifi, and attempts to tether to 3G (and possibly 4G) results in error. This Wired Tether client avoids said "errors."

    Directions:
    • (Windows only) Install the Samsung USB drivers. No other drivers are needed for Windows 7, and I think Windows XP SP3.
    • Make sure the USB cable is unplugged before starting the tether client.
    • Start "Wired Tether" and "Press to start tethering."
    • Grant the Superuser Request (if your su requires it).
    • Make sure tethering has started, you should see green/red "Down/Up" numbers at the bottom of the screen.
    • Attach the USB cable.
    • Select "Charging" mode from the "Select USB mode" menu.
    • Tether!

    When finished:
    • Detach the USB cable.
    • "Press to stop tethering."
    • Grant the Superuser Request (if your su requires it).
    • Exit the "Wired Tether" program.
    • Reattach the USB cable if you want to use mass-storage.

    Note, tethering should be used with "USB debugging" disabled. This is due to a bug in the Froyo (including EB13) kernel's USB gadget driver whereby if RNDIS is enabled "on top of" ADB mode (and subsequently disabled), when "USB debugging" is later turned off it reverts back to RNDIS mode instead of mass storage, whoops! If you get stuck in RNDIS mode, cycling Wired Tether once should fix it. Alternatively, if you always run with "USB debugging" enabled, this bug shouldn't matter. Keep in mind, neither mass-storage support nor ADB will be availble while actively tethering.

    Troubleshooting:

    If the client force closes on you and you're using a ROM with android-wifi-tether preinstalled, then there is a library conflict. Remove android-wifi-tether from /system, and most importantly, delete (or rename) /system/lib/libnativetask.so, then android-wired-tether should work. If you want both wifi & wired tether, reinstall android-wifi-tether from the market. This will make each application use its own library so there's no more conflicts. See this post for more details.

    Technical details:

    The Froyo kernel provides RNDIS support via a sysfs switch, much like the previous Eclair kernel patch. Samsung just happens to use a different name ("tethering" instead of "rndis_enable"). Oh, and they introduced a silly bug that results in weird behavior if you tether with "USB debugging" enabled--see above.

    You may toggle this variable manually, for example, if you wanted to use the RNDIS interface for other purposes. Just be sure to toggle when the USB cable is unplugged:
    Code:
    su
    echo -n 1 > /sys/devices/virtual/sec/switch/tethering # Enable RNDIS.
    echo -n 0 > /sys/devices/virtual/sec/switch/tethering # Disable RNDIS, reenable UMS (or ADB).
    The Wired Tether patch simply toggles the sysfs varible upon starting and stopping tethering.

    Mirror links (does not require forum login):
    wired-tether-1.4-epic-4.apk
    wired-tether_use_stable_api.diff
    wired-tether_clamp_mss.diff
    wired-tether_rndis_enable.diff
    epic_adb_vtp_fix-EB13.diff