Tether capability with android-wifi-tether (Wireless Tether for Root Users)
This is a discussion on Tether capability with android-wifi-tether (Wireless Tether for Root Users) within the Droid Hacks forums, part of the Droid Hacking category; Update 1/26 (3): I've sent a note to tasmanian_droid@alldroid and hopefully we'll have WiFi tether support in the overclocked kernels soon.
Update 1/26 : Harald@android-wifi-tether ...
Verizon DROID WiFi Tether with android-wifi-tether (Wireless Tether for Root Users)
Update 1/26 (3): I've sent a note to tasmanian_droid@alldroid and hopefully we'll have WiFi tether support in the overclocked kernels soon.
Update 1/26: Harald@android-wifi-tether has released a DROID enabled version of android-wifi-tether (thanks Harald!). Uninstall old versions first! You might get a "No Netfilter"-message at start even if netfilter is enabled in kernel (depends if /proc/config.gz exists or not). You can ignore that.
Also, the brightness issue is fixed!! Please use the updated url for the new kernel and tiwlan.ko (here). This kernel and driver is courtesy of Sholes.info and is taken from the Sholes ROM 1.1 release. Also, busybox is no longer required (thank you Harald for that fix).
Based on work done in issue #205 of the android-wifi-tether project (THANKS EVERYONE), we have a way to enable GUI based Tethering support for the DROID.
This post is not endorsed by the android-wifi-tether project, Android, or Verizon. Its for educational purposes and almost certainly will violate your agreement with Verizon, etc, etc.
Please note that this involves rooting your phone, installing a custom recovery image, and a custom kernel. This is not for the faint of heart, and I take no responsibility for what might happen to your phone if you try this. That being said:
Please comment on this thread if you have any corrections or updates to the instructions.
These instructions should leave you with a working tether program, and you won't have to touch the shell for normal use (just use the program normally).
1: Rooting your phone:
Follow any of the many tutorials available (this one for instance)
2: Installing the updated kernel:
Install SirPsychoS' recovery image (droid devs tutorial)
Use the latest version of the image from Sholes
For some details that aren't covered in the droid-devs wiki, see this thread
2.a: Use SirPsychoS' recovery image to back up your phone
Boot in to recovery mode.. hold down Power and X while your phone boots
Select the Nandroid submenu, and choose the "Default Nandroid Backup" option
Reboot the phone to regular mode
2.b: Copy the new kernel, and driver to your phone
New kernel and driver: here. If you're unfamiliar with the adb tool in the Android SDK, check this post
This URL contains two files, the updated boot image (boot-wifi.img), and the updated tiwlan_drv.ko (the WiFi kernel module). These are necessary to enable support for iptables (which allows your phone to act as a router)
Copy the new files to your sdcard using your favorite method. USB mount or:
Code:
adb push <sourcefilepath> <destfilepath>
Disable USB Storage Mode; unmount the drive on your computer, and turn off USB Storage from the phone (very important, since your files will not be accessible from the phone until you do)
2.c: Install the updated tiwlan_drv.ko file to /system (this assumes that the new driver is at /sdcard/tiwlan_drv.ko)
Make sure you're in root mode:
Code:
su
Put your /system partition into read/write mode:
Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock4 /system
This is an unsigned program, so you'll need to enable the installation of unsigned applications in the Application settings menu (Settings>Applications)
Install the app using the Android SDK tool, adb (specify the actual path to the adb tool and the application):
Code:
adb install wireless_tether_2_0-pre3_eclair.apk
Enjoy!
--
Update 1/9: ChevyNo1 has created a "one click" windows installer for the faint of heart. You can find it here. Don't forget to run a backup first! Update 1/6: Network connection timeout issue (network disappears within 30 seconds) has been fixed!! Thank you crdnilfan at google code for the research and fix. New users, simply follow the instructions below. Existing users, simply apply tether-2.txt to /data/data/android.tether/bin/tether to upgrade your installation (don't forget to chroot 700!). Update 12/26:THE EASY WAY: Just download this backup of 2.0.1 (torrent, or http please use Torrent if you can), and restore it to your phone after rooting and installing the Sholes recovery image 0.15.0 or later. Perform the backup in 2a, then restore using this file by unzipping the file and copying the resulting folder to /sdcard/nandroid. You can skip the rest of the tutorial, WiFi tether will work after you reboot into normal mode. I'll update the instructions with more detail tomorrow, and add a backup image. NOTE: this update will effectively reset your phone to factory defaults, so you'll want to make sure your apps and settings are being backed up to Google).
Update 12/26: updated tether-2.txt to improve settings detection (should eliminate the need to go in to the settings screen before the tethering will work)
Update 12/25: added link to adb (Android Debug Bridge) information thread.
Update 12/24: clarify kernel install instructions (using recovery mode)
Update 12/24: in case you're having problems with the latest tether-2.txt script, you can find he latest tether-1.txt file here (in comment 120): Issue 205 - android-wifi-tether - Motorola Droid - Developing & Testing - Project Hosting on Google Code, or download tether-1-old.txt from this thread.
Update 12/23: Uploaded a new tether-2.txt that will set yhttp://thepiratebay.org/torrent/5243438our SSID and Channel from the GUI's settings. The only additional requirement is busybox be installed at the same time as the new wifi driver. I've updated the HOWTO below. If you want to upgrade your setup, simply follow steps 2.b, 2.c, and 4--the changes are in bold
Update 12/23: Updated tether-1.txt to get rid of the pesky error message when you start tethering
Update 12/23: Credit and thanks to Michael Purcell at sholes.info for compiling the updated kernel and wifi driver!
Last edited by webacoustics; 01-27-2010 at 02:36 AM.
Reason: added note about installer thread
i will pay 20 bucs for some phone walk-thru support!! lol, no BS..... I've never messed with linux before and this hack appears to have many places for me to brick my phone... anybody?
However, I believe you're correct about the path--I'll confirm and make the appropriate changes.
There were some possible ways to brick the phone by using block3 since its commonly misquoted from the g1. Just think everyone should start correctly saying block4 to correct this common mistake for newbies who don't know this (I didn't).
Completely agree-- as a person fairly new to Android development, I found more than a few references to the incorrect block online. Hopefully this will help set the record straight (see corrected text above). Thanks
Followed your steps! Thanks for the great tutorial! I also had the issue that flash_image was not able to write the boot image. I booted into the recovery image and then it let me do it.
I installed the tether software, ran it once, updated the shell script and when I now run it, it all starts up without an error. however, tether did not work until I rebooted!