[App-Mod/Source] WifiTether for JB TouchWiz Roms

Search This thread

mcerk02

Senior Member
Jan 21, 2011
388
108
Slatington, PA
I got this tether to start and appears to work, starts with no errors but my computer or no other device can see it so I can connect...am I missing a setting somewhere, I have tethered before on ICS roms with no problems, I am now running JB CM10 with Butter toast kernal, EVO3D CDMA, I also switched to superSU like suggested, any help is appreciated...
 

Attachments

  • Screenshot_2013-01-05-21-05-18.jpg
    Screenshot_2013-01-05-21-05-18.jpg
    17.1 KB · Views: 618
Last edited:

ppriyank

Member
Dec 7, 2008
38
1
I got this tether to start and appears to work, starts with no errors but my computer or no other device can see it so I can connect...am I missing a setting somewhere, I have tethered before on ICS roms with no problems, I am now running JB CM10 with Butter toast kernal, EVO3D CDMA, I also switched to superSU like suggested, any help is appreciated...

I'm having the same issue. I'm on the latest 1/5/13 CM 10.1 release.
 

theozbc

Member
Dec 24, 2010
22
9
Thanks for all the effort!

Big thank you out to TrevE and everyone who works in this space to get these tools coded & configured to work. I was having problems with the November 12 build, once I went to the November 18 build, took right off.

Thanks again everyone!

Regards,
-Brian
SGS3 with stock VZW JB v4.1.1 OTA update with root.
 
Last edited:

Super Dave426

Senior Member
Dec 15, 2012
153
102
Maple Shade, NJ
Sprint G3

If I can have some testers - still no GS3 so still shooting in the dark but this should work. Attached to this post is a build that cleans up all the specific gs3/note code and puts it into universal tether base code. This may have better compatibility with other superuser apks. It also removes all the old hostapd symlink code resulting in smaller apk size. Please clear data on the wifitether app or do an uninstall/install of application.

Settings from this build on that are required (should be on by default)
-Auto Device
-Auto Setup method (or netd-ndc)
-Send Netd max Client cmd
-Wifi-Driver reload

Also I'm interested if any of the other Setup-Methods work now besides netdndc and should be left enabled or if they do nothing.

Thanks guys
I have a Sprint G3, stock JB rooted, don't know what odexed means, I just rooted it per skunkapes instructions at Android Central and could not get tethering to work to save my life. Then I made it to this post and set up those 4, unchecked reload 2 and BAM here I sit and type on the laptop through the G3. It is the original download for tether reload 2. It is on netd-ndc not auto. Hope it helps someone else with Sprint.

I do have SU and Busybox installed. SU came with the root process.
 
Last edited:

mike2016

New member
Aug 20, 2011
4
1
Works on Verizon Note 2

WifiTether_TrevE_Mod_11_20_2012_insmodv3.apk

Works on Verizon Note 2

Must select profile to Samsung GS3, and make sure the following are checked

Send NetdNDC Max Client CMD
Wifi-Driver reload
Routing Fix
 
  • Like
Reactions: XooLoo

XooLoo

Senior Member
Jun 15, 2012
269
42
Here is my video guide showing the setup in settings to get this working on a galaxy note 2

https://www.youtube.com/watch?v=rafKJyixGDg&feature=youtube_gdata_player

WifiTether_TrevE_Mod_11_20_2012_insmodv3.apk

Works on Verizon Note 2

Must select profile to Samsung GS3, and make sure the following are checked

Send NetdNDC Max Client CMD
Wifi-Driver reload
Routing Fix

Note II on T-Mobile--used both methods outlined above and it worked just fine... without using HotspotShield, I get the text from T-Mobile saying I should add hotspot to my plan.
 

jackal424

Senior Member
Jul 12, 2008
262
16
Austin
Installed: WifiTether_TrevE_Mod_11_22_2012 (defaults to Wifi Driver Reload 1)

Working on Sprint SG3 Rooted... didnt have to do any mods or anything, downloaded and installed..and walaaa...awesome!!!
 

theozbc

Member
Dec 24, 2010
22
9
ATT Galaxy S2 (I777) WiFi Tether TrevE Mod Working

Figure I should post that I finally have the TrevE 11-22 WiFi Tether mod running on the ATT Galaxy S2 (SGH-I777). After multiple versions and configuration settings, working with the "WiFiTether_TrevE_Mod_11_22_2012_driverReload2.apk".

Settings
Device-Profile: Samsung Galaxy Nexus (GSM)
Setup-Method: Netd-Ndc (master)
Send Netd Max Client Cmd: CHECKED
WiFi-driver reload 2: CHECKED
Routing Fix: CHECKED (should default to check upon install anyway)

Kernel: Jeboo v1.1d
ROM: SHOstock3-v1.7
Carrier: AT&T
 

i5aac

Senior Member
Jul 30, 2010
110
2
Billings, MT
Has anyone been successful in getting this to work on CM10.1? I have a verizon GS3 and cannot, for the life of me get tethering to work. I have tried all of the above methods to no avail. Any help would be greatly appreciated!
 

Paiyne

Senior Member
Mar 4, 2009
855
504
Arlington, Tx
Has anyone been successful in getting this to work on CM10.1? I have a verizon GS3 and cannot, for the life of me get tethering to work. I have tried all of the above methods to no avail. Any help would be greatly appreciated!

10.1 is not a TouchWiz rom....therefore this will not work.

Sent from my SPH-L900 using Xparent ICS Tapatalk 2
 

mystery_tx_man

Senior Member
Dec 30, 2010
480
122
San Antonio, Tx
Has anyone been successful in getting this to work on CM10.1? I have a verizon GS3 and cannot, for the life of me get tethering to work. I have tried all of the above methods to no avail. Any help would be greatly appreciated!

This works for me on cm 10.1. Follow these directions below. Follow the instructions exactly, then once wifi tether is working then you can setup an encryption password.



Originally Posted by EvgeniX
For all with broken WiFi tether!

What I did and now have working WiFi tether:
0 - Install SuperSU
1 - install this version - http://beta.androidfilehost.com/?fid...69635556426338
2 - click - "Install Samsung Binaries"
3 - then go into settings and change device profile to "Samsung Galaxy Nexus(CDMA/LTE)"
4 - Start WiFi (first time it rebooted my phone)
5 - clean data and uninstall WiFi tether
6 - install last version of WiFi tether - http://www.androidfilehost.com/?fid=9390208427046731813
7 - change device profile to "Samsung Galaxy Nexus(CDMA/LTE)"
8 - Start WiFi

and hope you have working Wifi Tether like i did.
 
Last edited:
I got a quick question. I tried to search, but didn't find the answer. Also, I'm on the Galaxy Note 2 (sprint), but this thread is more active, and where everyone is referred to anyway.

I wanted to know if there is a way not to broadcast the SSID? I wasn't able to find anything in the settings.

Great app. I have enjoyed and used it almost daily. Thank you.
 

ghodzilla5150

Senior Member
Jul 6, 2010
406
39
San Bernardino, CA
I am using WifiTether_TrevE_Mod_11_22_2012 on my Verizon SGSIII. It works great. My only issue is that after I use WiFi Tether I have to reboot my phone to get WiFi working again. My WiFi button is Greyed out and will not turn on and turn Green. My Bluetooth is fine. Any one else see this issue..BTW I am using SuperSU

Edit: Never mind. I switched to the Driver 2 package and all is well
 
Last edited:

imilleson

Senior Member
Feb 25, 2011
1,633
712
Virginia
www.sakalmedia.com
I am using WifiTether_TrevE_Mod_11_22_2012 on my Verizon SGSIII. It works great. My only issue is that after I use WiFi Tether I have to reboot my phone to get WiFi working again. My WiFi button is Greyed out and will not turn on and turn Green. My Bluetooth is fine. Any one else see this issue..BTW I am using SuperSU

Edit: Never mind. I switched to the Driver 2 package and all is well

You need to select "reload wifi driver 2" in the settings. That fixed the Wifi not working after tether for me...
 

htcubi

Senior Member
Aug 6, 2011
57
7
Any idea why after 30min or a period of time the tether shuts down?
Using:s3 , sprint

Thanks

Sent from my SCH-I535 using Tapatalk 2
 

rickymmx

New member
Dec 21, 2010
2
1
:D Works flawless on my Epic Touch 4g (Sprint SGS2). Encryption is good to go. 4G tethering is good to go.

JBTW
FL16
4.1.2


Version: 11_18_12
Profile: Auto
Setup Method: Netd-Ndc
Check: Send netdndc max client
Check: Wifi driver reload
Check: Routing fix

Amazing work!
 

Top Liked Posts

  • There are no posts matching your filters.
  • 275
    Before we start I have to throw out props to Eschelon, NxtGenCowboy, Virus, Ziggy471 and of course to the wifi-tether guys as well as cyanogen for the needed source/binaries (pre-11/18 versions) which allowed me to find the right path to get this 100% working. Also had awesome testers proxhack / jlmr731 and especially joshbeach. They all were essential to getting this all working. I still don't have a GS3 so poor Eschelon/NxtGenCowboy probably wiped/installed about 100 builds before this worked (and after when I lost source... grumble). Thanks to everyone that helped.

    Legal/GPL Stuff
    Carriers hate tethering, you all know that. Use at your own risk/with common sense & dont blame me for anything that goes wrong :)

    WifiTether is under the GPLv3 license, so below is the source for the mods
    Code:
    Original Source - https://code.google.com/p/android-wifi-tether/
    Modded Source - http://svn.ziggy471.com/treve-tether


    Configuration:
    *Latest Build recommended, these are just a few devices I have tested on*

    Setup-Method:: (auto should have right defaults, might need to force)
    Galaxy S3 - Netd-ndc with driver reload 2
    Evo 3d SoftAP with driver reload 2
    Sensation SoftAP with no driver reloads
    Evo 4g SoftAP with no driver reloads

    Other Settings
    -Device-Profile: Leave this on auto (default)
    -Netdndc Max Client Cmd: Required for GS3ish devices. If not enabled you will likely get an AP but cannot connect.
    -MSS clamping: on (default)
    -Routing fix: on (default)

    Heres some geek details on basic binaries how the backend of wifi-tether works. The main modes I played with and required files are as detailed below:
    Code:
    [B]Netd-ndc mode[/B] (Wifi Tether JB Default)
    -/system/bin/ndc (wrapper for netd)
    -/system/bin/netd (actual netd service)
    
    --Commands Executed
    /system/bin/ndc softap stopap
    /system/bin/ndc softap stop wlan0
    /system/bin/ndc softap fwreload wlan0 AP
    /system/bin/ndc softap start wlan0
    /system/bin/ndc softap set wlan0 wlan0 SSID encryption key channel (maxclients) 0 8
    /system/bin/ndc softap startap
    /system/bin/ndc interface setcfg wlan0 192.168.2.254 255.255.255.0 up 
    
    
    [B]Netd mode[/B]
    -/system/bin/netd (netd service)
    
    --Commands are basically the same as above, but direct to netd service
    
    [B]HostAP mode[/B] (used by stock tether app/fallback mode)
    -/system/bin/hostap (hostap service, init.qcom.rc looks for config /data/hostapd/hostapd.conf)

    New Options
    Framework Tether(Fallback)
    Use this if you have issues with wifitether mode. It forces on a wifihotspot using just framework. This has been reported to not throw up the paywall nag screen on some devices/carriers but YMMV. It may be able to be used nonroot as well if you ignore the initial warning.

    Send NetdNDC Max Client CMD
    This modifies the standard ndc command string to add in the Max Client parameter. More details are in post here

    Wifi-Driver reload
    This is the standard driver reload for wifi tether. It runs inside one script "./tether start|stop".

    Wifi-Driver reload 2
    This is a modified command that reloads firmware in a separate su request before the tether-edify code is run. May require SuperSU.apk

    Use Cyanogen Hostapd Binary
    This is the old method and is totally removed stating with the 11/20 update

    The hostapd binary contained in atleast touchwiz JB contains extra fields explained above. If the extra commands are not working on X device you can try to fall back to this binary. This uses a dirty hack which installs hostapd and symlinks between versions for native or WifiTether mode. As long as you start and stop wifitether things should always line up. If you get into an issue where you crash things might get out of sync but should fix themselves next toggle of wifi tether. I have also added in menu items for the gs3 to manually swap binaries around.

    *You must have a proper setup busybox for the GS3 code to work right. It moves system files around - you might win a reflash if things really go bad*
    *Cyanogen Hostapd Symlink option only*- Make a system backup, it modifies sys files so theres a chance it will break something



    Bugs
    • You might have to toggle stuff on and off once first if you run into errors. I think there's an error on first creation of config
    • If you switch modes between native wifitether and fallback mode (or stock tethering), your phone may spontaneously combust(wifi crashes) after the routing mess that ensues. Just reboot and you'll be all set again.
    • Seems to work better on SuperSU - Probably due to the per-app permissions vs per command.



    Download:
    **EVERY BUILD YOU MUST UNINSTALL OLD VERSIONS FIRST OR ATLEAST CLEAR APP DATA, IT DOES NOT UPGRADE NICELY**
    -If you have problems, scroll down and read FAQ in post2 before posting

    WifiTether-TrevE_Mod_04-17-2013.apk - Link Soon


    Older Versions:
    WifiTether_TrevE_Mod_11_22_2012 (defaults to Wifi Driver Reload 1) - http://www.androidfilehost.com/?fid=9390195663897100312
    WifiTether-TrevE_Mod_11_22_2012_driverReload2 (defaults to Wifi Driver Reload 2) - http://www.androidfilehost.com/?fid=9390208427046731813

    Try to merge together what worked for everyone across different devices. There are 2 options in settings with mild enhancements
    -Wifi-Driver Reload - Driver reload inside of tether script. Similar to 11/20 version
    -Wifi-Driver Reload 2 - Driver reload outside of tether script. Similar to 11/18 version

    Please report in with Carrier/Device and what option works best for you. Valid combinations are no reloads checked or one of the reload methods. Do not check both (theres no code to stop you from doing it now)
    There is no code differences between the two apk versions, I just recently added in reload method 2 so rom devs can cook in whatever apk just works without changing settings.

    Apparently I botched code along the line somewhere between 18-20. Please let me know which one of these versions you are on and what works.

    WifiTether_TrevE_Mod_11_20_2012_insmodv3.apk - If v2 doesnt work this should - http://www.androidfilehost.com/?fid=9390169635556426691
    If insmod v2 doesnt work, insmod v3 switches to insmod on load, rrmod to unload, then reloads the driver when finished with with mfgloader -u / mfgloader -l

    WifiTether_TrevE_Mod_11_20_2012_insmodv2.apk
    - Hopefully working- http://www.androidfilehost.com/?fid=9390169635556426686
    Driver Reload did not like loading with mfgloader in original build. This switches to insmod on load, mfgloader/rrmod to unload, then reloads the driver when finished with mfgloader -u / mfgloader -l

    WifiTether_TrevE_Mod_11_20_2012.apk - Broken - Thanks halmo20 for catching that

    GS3/E3D driver load/unload methods cleaned up, wifi driver reload checkbox should now be used, it was forced previously in code.

    NetDndc Max client mode ported down to netd as well. Setting enables/disables with netd
    all superuser code removed outside of tether binary, should have less popups for non-supersu users
    Framework tether mode moved to setup
    Fixed settings being applied reverting user settings at first start
    All Cyanogen hostapd binary leftovers removed
    Busybox check removed




    WifiTether_TrevE_Mod_11_18_2012.apk - http://www.androidfilehost.com/?fid=9390190389996027907
    Bam - Symlinks gone by default thanks joshbeach for all testing
    New option Netdndc Max mode, this should be devices default setting.
    Encryption works starting this build with netdndc max mode


    WifiTether-TrevE_Mod_11-17-2012.apk - http://www.androidfilehost.com/?fid=9390188424645836869

    cut down symlinks to only move hostapd around.
    Made a checkbox that controls symlink code. Trying to axe it all. Moved this and fallback to settings screen. now save/load
    define wifi.interface where it is undefined like on t0ltespr (hack to wire it to ndc settngs)
    try to work with t0ltespr's /lib/ directory
    cut down root code significantly (hopefully spam/timing issues resolved)

    WifiTether_TrevE_Mod_11_15_12.apk -
    Code cleanup
    e3d code driver reload mess moved
    samsung symlink mess in separate class, hoping to ditch this all soon
    fallback mode in separate class, wired up to wifitether settings (encryption should work)


    WifiTether_TrevE_Mod_11_12_12.apk - http://www.androidfilehost.com/?fid=9390169635556426338
    ***This app is signed with my certificate, you will need to uninstall old versions of wifitether first to use this***
    40
    FAQ


    Debugging Issues

    For those people having issues on other gs3 like devices / roms / whatever I do not even have a gs3 so this is all blind. To try to help debugging I created a script to hopefully grab information needed. This should help from both working/nonworking devices to help eliminate the stupid symlink code and fix up other devices.

    The scripts point is to try to get a working AP. If you can post how you did it and we can get source changed. By default it does no driver reloads and starts an Open AP with SSID TrevScript.

    First grab the latest script from svn (ill update it with more info after I get some logs so make sure you have latest)

    http://svn.ziggy471.com/treve-tether/ grab tetherdebug.sh
    Code:
    adb push tetherdebug.sh /system/xbin/
    adb shell chmod 755 /system/xbin/tetherdebug.sh
    adb shell busybox dos2unix /system/xbin/tetherdebug.sh

    Make sure wifi is on but do not start witfitethering. All you want to do is run "Set Binaries to WifiTether" option in the menu of app then follow below code

    Code:
    adb shell su -c tetherdebug.sh
    adb pull /data/local/tmp/tether.log
    rename the file to tether_wifibinaries.log. Check to see if any AP is available.


    now run "Set Binaries to Native" option in app and reboot device
    adb reboot

    When the device comes back up, rerun the script.
    Code:
    adb shell su -c tetherdebug.sh
    adb pull /data/local/tmp/tether.log
    rename the file to tether_nativebinaries.log. Check to see if any AP is available.

    reboot after you get the file.
    adb reboot

    ADVANCED
    If you know what you are doing you can try to find a working combo. I added in the following command line args

    ARG1 = ENCRYPTION. NONE/WPA2
    ARG2 = DRIVERRELOAD. NONE/insmod/mfgloader
    ARG3 = DRIVERTOLOAD. /system/lib/modules/dhd.ko (or whatever module is, required if ARG2 is set)


    Examples:
    Make sure wifi is on but do not start witfitethering. All you want to do is run "Set Binaries to WifiTether" option in the menu of app to start with a known working base then follow below code

    try no encryption with insmod where your wifi module is /system/lib/modules/dhd.ko
    Code:
    adb shell su -c tetherdebug.sh NONE insmod /system/lib/modules/dhd.ko

    try no encryption with mfgloader where your wifi module is /system/lib/modules/dhd.ko
    Code:
    adb shell su -c tetherdebug.sh NONE mfgloader /system/lib/modules/dhd.ko

    try wpa2 (password is Trev) with insmod where your wifi module is /system/lib/modules/dhd.ko
    Code:
    adb shell su -c tetherdebug.sh WPA2 insmod /system/lib/modules/dhd.ko

    There shouldn't be personal information in the debug logs, the most I can think of that would be displayed is if you have an encryption passphrase set in wifitether. Sending the 2 files named with what mode you were in will help get it going elsewhere and hopefully kill the symlink code
    11
    askldfjalskdnflkasf
    10
    mineeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee :)
    9
    Guess androidfilehost is down