#!/bin/bash
# This script tunnels the tcp-output of an android phone to the usb input of a computer,
# thus making the phone act as a high velocity modem.
# First you must have a rules-file. Name it /etc/udev/rules.d/90-android.rules, containing
# one line: SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8", MODE="0666"
# substitute idVendor with the idVendor of your phone. In a konsole type lsusb,
# (mine says ID 22b8:2d66 Motorola PCS)
# Second, you must have the executable file adb from android-SDK installed in the exec path.
# Third, you must edit Firefox to use the mobile phone as proxy:
# Edit>Preferences>Advanced>Network>Settings, Manual proxy configuration, HTTP Proxy (set
# localhost) Port (set 8080), and check "Use this proxy server for all protocols"
#
/usr/bin/adb forward tcp:8080 tcp:8080
#
# In your android mobile you must start the application "proxoid" with Port parameter 8080
The rules-file I put in /rootcopy, as well as the /usr/bin/adb executable. So I connect the phone to usb, start proxoid in the phone, run /opt/porteus-scripts/android-modem, edit Firefox and navigate.

If you don't have adb, get it from http://www.mediafire.com/?jmg4i1g5jjwjt94
Enjoy!