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

Search This thread

hatchback

Senior Member
Jun 10, 2008
77
13
Mine works on GS3 using the defaults. Been using it to play on my PS3, works as supposed but sometimes it lags. I only get around two bars in my apartment. Provides a good 1.5 to 2.5 Mb connection.

Ever since I installed it Tmobile keeps sending me a text message that they have disabled tethering on my phone and to log into my account to add a tethering plan. LOL
I was like "BITE ME" ---Until they come and knock on my door.
 
Last edited:
  • Like
Reactions: Paiyne

Toastysoul

Member
Aug 28, 2012
36
10
When all others failed to work, this did. Was simpler to install and set-up than it looked initially from glancing at the first post. Thank you. Looks a lot like OpenGarden (except this works); any way to get BT PAN working?
 

Blackmagik426

Senior Member
Dec 28, 2011
337
99
St Joseph, MO
Will this work on 4.2.1 roms? People say it works but it always says the 2 AP's failed as shown in the picture below. It works perfectly on 4.1.1

6asaqubu.jpg

Sent from my SPH-L710 using Tapatalk 2
 
Last edited:

Paiyne

Senior Member
Mar 4, 2009
855
504
Arlington, Tx
Will this work on 4.2.1 roms? People say it works but it always says the 2 AP's failed as shown in the picture below. It works perfectly on 4.1.1

6asaqubu.jpg

Sent from my SPH-L710 using Tapatalk 2

You don't need it on 4.2.1 ROMs. Use the built in tether option. It has worked for me on every 4.2.1 ROM that has been released.

Sent from my SPH-L900 using Xparent Skyblue Tapatalk 2
 
  • Like
Reactions: Blackmagik426

bitemeoftn

Senior Member
Feb 2, 2011
408
136
I'm having the same issues on 4.2.1 AP just doesn't want to start. I tried every suggestion from the op and a few just for the heck of it. I'm on the illusion ROM for the vzw gs3. Anyone using this ROM and carrier gotten tethering to work? Appreciate any help or suggestions.
 
Mar 26, 2011
13
2
Westfield
Worked for me.

I'm using a SG3 on Sprint with rooted stock JB. Figured out my "WTH your phone took control" errors. It would work okay for a few seconds to several minutes but wasn't predictable. Wireless optimization was off. I couldn't find any other apps to worry about so went back through settings.

Disabled: Settings->Location Services->Use wireless networks

Bingo. No more WTH errors.

The longer connections showed one more source of problems, when I have to wake up the display after it dims. Pressing the power button wakes the the display with an immediate WTH error. Extended my display timeout and all is fine.

Thank you TrevE!

Worked for my Sprint GS3. Thanks for figuring that one out. It was driving me crazy (of course that is not a long drive).
 
  • Like
Reactions: biggdevon

extirpate

Senior Member
Jun 6, 2011
119
31
Roseville, Ca
Working great with Note 2 on Verizon.

These are my settings

Device profile change to generic ics/jb (wlan0)
Check box for Send Netd Max Client Cmd
Check box for WiFi-driver reload and WiFi-driver reload 2
Check box for Routing fix.

Profit.

Working with encryption as well.
 

JEngramAtty

New member
Dec 9, 2012
2
0
Works perfectly on the AT&T i727 on JB 4.1.2

I've had ICS since it came out, but I got tired of Jelly Bean "Coming soon to the Samsung Galaxy S II Skyrocket", and Kies telling me that "Your firmware is not upgradeable via Kies". so I flashed a deodexed JB 4.1.2, (UCLK4) obtained from instructions at techethon.com/how-to-update-android-4-1-2-in-galaxy-s2-skyrocket-att-sgh-i727/

After restoring all the Apps with Titanium, I found that WiFi Tether was broken. Tore my hair out for hours trying to find the solution.

Found this thread. Installed WifiTether_TrevE_Mod_11_22_2012.

THANK YOU!!!!
 

masonsparty

Member
Jun 17, 2010
43
20
Works great on Verizon GS3 but every time I stop it I can't start wifi. It just looks up and when I click the "on" button it goes right back to off.
I didn't read all 39 pages so not sure if anyone else already reported this.

I had the same issue, had to reboot everytime to get wifi working again. Got it to work with these settings:
Profile: Galaxy S3
WiFi-driver reload - unchecked
WiFi-driver reload 2 - checked

everything else default
 

jasonxlee01

Senior Member
Jun 17, 2010
257
45
Los Angeles
Wifi Tether for CM10.1

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.

Wow thank you. Wifi tether works perfectly on CM 10.1 for me. The first link is down so i provided the link here. http://beta.androidfilehost.com/?fid=9390169635556426338
 
  • Like
Reactions: CNussbaum

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