Problem Solved!

This guide explains how to tether your android phone to a OSX machine over USB. It supports Android 1.5 Cupcake. I have only tested this on an Android Development phone (HTC Magic aka Google Ion), but it should work on others.

UPDATE 1/21/10: Confirms works on Nexus One.

This guide assumes several things. You must have macports, be able to install apps on your phone (IE android SDK), be familiar with the terminal, and be aware what your cell carrier’s position on tethering is.

If all goes well, you are now tethered! AziLink should have a connected status and network stats should start flowing.
And yes, it does work, I am posting from a tethered MacBook Pro!

When you are done, hit contrl+c and the tear down will be triggered

Problems and Notes

I had a problem running the script, I got this error message:

Cannot allocate TUN/TAP dev dynamically

There are many theories about why this happens. The range from co-installation of Cisco VPN to faulty TUN/TAP drivers. I fixed it by simply installing tunnelblick (http://code.google.com/p/tunnelblick/). I think it included some helpful drivers.

If you do a network connect/disconnect/switch on the computer or phone (ie wifi to 3G, ethernet to wifi). You must restart all the services.

This is NOT a secured connection, the above does not utilize the encryption capabilities!

Credits

I cobbled this guide together from so many sources, it was hard to keep track. Feel as though I didn’t give you credit? Please let me know!

Internet connection works great, but I have a DNS problem (cannot resolve) : after running the script /etc/resolv.conf also disappears and placing a new one does not really help…Does somebody have a hint or tip?

One other thing: if you have Parallels installed, you might have to disable the 2 Parallels networking adapters (host-only adapter and shared adapter) from “System Preferences -> Network”. Once I did this, everything worked fine.

It does seem really slow to pull up websites though (anywhere from a few seconds to 60+ seconds). I’m wondering why it’s so much slower than just browsing from the phone. The VPN must be a real bottleneck, eventhough it’s not encrypting anything.

I’d love to see someone get bluetooth tethering working without rooting as well 🙂

YOU ARE THE MAN!!! You saved me brother. I have been going crazy trying to get this to work. I can now cancel my home internet and save money. You are awesome. I had that TUN/TAP issue too. All I did was download Tunneblick and it solves it. You don’t even have to have it running. Fantastic!
Jovial1

Great, confirmed for the HTC Hero with Snow Leopard on the mac.
After the TUN/TAP issue, installing Tunnelblick – and making it to try and connect to a non existing connection, also had to be done prior to fixing it.

but I am a new user… and I am not familiar with these writing…
I was only able to comply with your instruction number
2. 3. 4.

I’m not sure if I need Number 5! the android usb driver.
for when I plug in, my mac obviously respond to the USB.

and Number 1, openvpn2 seems a very complex issue…
I opened the appointed webpage,
and there were a bunch of lines of computer writing…
some of which says “deroot”…
I thought this solution wasn’t about rooting the android phone…
so i wasn’t dare to try anything.

besides, I was trying to download openvpn…
and it led to the page at version tracker…

As for Androidthether file… Stupid as I am…
I don’t know how to make an executable file… dumb me..

However, I’m not all in vain…
here are two things a dummy in mAC such as I am have found…

1. parallel does respond to SYNC software, subsequently,
my parallel was able to get connected via my HERO.
but that doesn’t answer the question as most of the mac software still can’t get linked…

2. mac computer does respond to android phone usb connection!
I opened the network from system preference, and found that
I can make an android phone connection.

the problem with this is that…inside this android phone connection,
when I press advance button, there are a lot of ways how apple can get connected.
inside the “vendor” option, there wasn’t anything coming from HTC…
i tried literally EVERY single one of them… but none gets me connected.
which is a lot by the way.

I even tried the “generic”… which seems the closest one…
I tried generic mode for the vendor option, and pressed GPRS(GSM/3G)
option for the model. but it doesn’t connect me.

So other than the above instruction which I don’t know how to execute…
if anyone can help figure out which vendor & model format can HTC hero uses.
I suppose this would be a much easier way for HERO to be connected to a macbook with USB line.

Hi there, when I copy and pasted your script into my Mac’s “Script Editor” and attempted to run the script, it found a great deal of syntactical errors including the { and } symbols in various places, and also had an issue with the use of the word “forward” at some point. How do I remedy these problems so I can run the script? Thank you

I did that and it worked, and after fixing all the errors and actually having it running someone posted on androidcommunity.com that there is a software: pdanet that does all that. I checked it out, and it did work.. very simple and easy too.. so check it out as well:http://www.junefabrics.com/android/mac.php

AHAHAHAHAH! F*ck you Rogers and your $6/hr pimply-faced tech support that can’t spell Linux, let alone support it. My Android Developer phone is now tethered to my MacBook Pro, despite your best efforts to stop me thanks to this well written and WORKING method of tethering my Android G1 to my MBP!