Tether an Android Phone Using Proxoid
Productivity Sauce
The Android Market features a few tethering applications, so it should be easy to use your Android phone as a wireless modem. Well, that's how the theory goes, anyway. In practice, however, these applications require root access to your phone's system, so you have to "root" your phone before you can tether it. Rooting an Android phone is not for the faint of heart, though, and there is the ever-present risk of bricking your device. Meet Proxoid, a proxy server application that lets you use your phone as a modem without hacking its system. Making Proxoid work does require a few steps, but the entire process is simple enough even for uninitiated users. Here is how to make Proxoid work with an Ubuntu-based system.
Start with installing the Proxoid application on your Android phone from the Android Market. On your phone, navigate to Settings - > Application -> Development and enable the USB debugging feature. On your Ubuntu machine, create the 90-android.rules file:
gksudo gedit /etc/udev/rules.d/90-android.rules
Add the following line to it:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"
Save the file and quit the text editor. Download and unpack the latest release of Android SDK. Connect the phone to the Ubuntu machine via USB and start the Proxoid application. Open the Terminal, navigate to the tools directory in the Android SDK folder and run the following command:
./adb forward tcp:8080 tcp:8080
The proxy server should now be running, but to be able to use it with Firefox, you have to modify the browser's proxy settings. In Firefox, choose Edit -> Preferences and switch to the Advanced -> Network section. Press the Settings button in the Configure how Firefox connects to the Internet group. Select the Manual proxy configuration option, then enter localhost in the HTTP Proxy field and 8080 in the Port field. Press OK to save the settings and close the window. Now you can browse the Web using the created connection.
Comments
comments powered by DisqusSubscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Systemd Fixes Bug While Facing New Challenger in GNU Shepherd
The systemd developers have fixed a really nasty bug amid the release of the new GNU Shepherd init system.
-
AlmaLinux 10.0 Beta Released
The AlmaLinux OS Foundation has announced the availability of AlmaLinux 10.0 Beta ("Purple Lion") for all supported devices with significant changes.
-
Gnome 47.2 Now Available
Gnome 47.2 is now available for general use but don't expect much in the way of newness, as this is all about improvements and bug fixes.
-
Latest Cinnamon Desktop Releases with a Bold New Look
Just in time for the holidays, the developer of the Cinnamon desktop has shipped a new release to help spice up your eggnog with new features and a new look.
-
Armbian 24.11 Released with Expanded Hardware Support
If you've been waiting for Armbian to support OrangePi 5 Max and Radxa ROCK 5B+, the wait is over.
-
SUSE Renames Several Products for Better Name Recognition
SUSE has been a very powerful player in the European market, but it knows it must branch out to gain serious traction. Will a name change do the trick?
-
ESET Discovers New Linux Malware
WolfsBane is an all-in-one malware that has hit the Linux operating system and includes a dropper, a launcher, and a backdoor.
-
New Linux Kernel Patch Allows Forcing a CPU Mitigation
Even when CPU mitigations can consume precious CPU cycles, it might not be a bad idea to allow users to enable them, even if your machine isn't vulnerable.
-
Red Hat Enterprise Linux 9.5 Released
Notify your friends, loved ones, and colleagues that the latest version of RHEL is available with plenty of enhancements.
-
Linux Sees Massive Performance Increase from a Single Line of Code
With one line of code, Intel was able to increase the performance of the Linux kernel by 4,000 percent.
Link to platform-tools ADB Everyone is missing!
unpack in android SDK folder
Link to platform-tools
navigate here and run
./adb forward tcp:8080 tcp:8080
there you go! the new SDK makes you launch the android shell in the tools folder. I had a hell of a time seeing as how i am in an RV and have not ethernet and could only download mac ADB. I used the motorola permission in the android rules and all has worked great. Im looking to forward all traffic but I am a novice with android !
proxoid tether
Motorola use:
SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8", SYMLINK+="android_adb", MODE="0666", OWNER="USERNAME"
If you have an HTC Android phone - use this rule instead of the one above:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", SYMLINK+="android_adb", MODE="0666", OWNER="USERNAME"
If you have the Samsung Galaxy Android phone, use this rule instead of the one above:
SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", SYMLINK+="android_adb", MODE="0666", OWNER="USERNAME"
If you have the Sony Ericsson X11 Android phone, use this rule instead of the one above (Thanks to Steven from the comments):
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", SYMLINK+="android_adb", MODE="0666", OWNER="USERNAME"
adb command problem
when I tried to execute ./adb command, it says no such command or directory.
In the SDK i downloaded, there is a txt file which says :
"The adb tool has moved to platform-tools/
If you don't see this directory in your SDK,
launch the SDK and AVD Manager (execute the android tool)
and install "Android SDK Platform-tools"
Please also update your PATH environment variable to
include the platform-tools/ directory, so you can
execute adb from any location."
when I tried to execute android, it says : exec:113 java not found.
What should I do?
pls help.
Beware
"No such file or directory
So, obviously I'm missing something pretty basic, if you all are satisfactorily working with this.
But if anyone has a hint it would be greatly appreciated.
Thanks,
Mark
If you cant find no adb command in tools directory
To install it, after you install the SDK, go to the "tools" directory and execute “android”. A GUI will show up then click on “Available Packets” and under “Android Repository” , mark "Android SDK Platform Tools" . Click on "Install Selected". Done!
Regards,
Alexandre Andrade
http://www.androidnews.com.br
Like others I see no adb command in tools directory
Downloaded latest Android SDK.
Doesn't work for me
Any idea?
plan's cap
working on Ubuntu 10.10
tether
Bluetooth
I wonder if something like this could work over Bluetooth
Great!
I created a simple script to set this up for you - Also includes a Launcher on the Desktop.
http://www.humans-enabled.c...her-your-verizon-droid-as.html
Works fine with opensuse 11.2 as well
thanks for the description - I got it working with opensuse 11.2 and opera as a browser.
First I received the error
./adb forward tcp:8080 tcp:8080
* daemon not running. starting it now *
* daemon started successfully *
error: device not found
but then the permission hint worked.
Capitalism finally working
Tether Android
network proxy
Why Proxy
Thanks!
THANK YOU
I would like to say THANK YOU! I was struggling with this problem since I bought my G1 (1 year) and now finaly I made it, thanks to Proxoid!
Again, thanks a LOT!!
./adb problem
unable to execute ./adb: No such file or directory
same thing if i try sudo ./adb, but ls -l adb gives:
-rwxrwxrwx 1 petter petter 340920 2010-02-05 23:53 adb
probably a newbie mistake, but I have no idea where to go from here.. any help is appreciated!
Chrome
Is there a way to forward all IP traffic through the proxy? I would like to be able to use SSH, Ping, etc. I setup Google Chrome similar to how the instructions for Firefox are posted. I used the pull down menu "Customize and control Google Chrome" and chose options. A new dialog window pops up with three tabs. I chose "Under the Hood". There towards the bottom you see "Network" and below that a button "Change proxy settings" I then select the "Manual proxy configuration" radio button and select the checkbox "Use the same proxy for all protocols" Enter "localhost" for the "HTTP proxy" and port "8080" was selected already.
There is a button at the bottom called "Apply System-Wide" but I still cannot use my Virtual Machines and other ports. Any ideas???
insufficient permissions for device
For those who are getting the "insufficient permissions for device" error, try this:
1.on phone:
settings->applications->development; enable USB debugging
start proxoid
2.on laptop (after installing Android SDK and adding 90-android.rules)
cd android-sdk-linux/tools
./adb kill-server
sudo ./adb start-server
./adb devices
./adb forward tcp:8080 tcp:8080
3. Change network settings in your browser to manual proxy configuration with HTTP Proxy=localhost and Port=8080
All credit goes to iefbr14 at this post: http://androidforums.com/ho...s-tested-linux.html#post136254
teather droid
I can't follow it.
error: cannot bind socket
Hi There,
unfortunately it not working for me.
Everything is fine until:
./adb forward tcp:8080 tcp:8080
* deamon not running. starting it now *
* deamon started successfully *
error: cannot bind socket
Trying it via sudo doesn't help either. Is there anyone who knows what to do?
TIA Julian
Not a real solution
On Android it seems all this is not possible. Having to configure clients and then only being able to use a proxy for access instead of full internet connectivity is too much of a pain and a real downgrade.
Worked perfectly - Thank you.
thanks
works perfectly, thanks!
Works beautifully!
/etc/udev/rules.d/90-android.rules file as described on another forum (http://androidforums.com/ho...ing-systems-tested-linux.html) as follows
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct} =="0c01", MODE="0666",OWNER="brett"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bb4", ATTRS{idProduct} =="0c02", MODE="0666", OWNER="brett"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="22b8", ATTRS{idProduct} =="41db", MODE="0666", OWNER="brett"
Just changed the OWNER="brett" to OWNER="myusername" and yahoo!
Sending this comment over 3G!
THANKS!!!!!
Working well but unable to log into encrypted? sites.
No luck - until now
http://androidforums.com/ho...ting-systems-tested-linux.html
The secret is in the udev rules file.
sudo needed
sudo ./adb
the sudo command is needed for many administrative functions
No luck
I think the sticking point is with the adb command. When I ran it, I got the following output.
$ ./adb forward tcp:8080 tcp:8080
* daemon not running. starting it now *
* daemon started successfully *
error: insufficient permissions for device
$
Any thoughts? I'll check back.
Why the problem with providers?
Luckily I don't have a problem tethering and I never go over my cap. My provider blocks SIP which again is a sin in my eyes, what I run is my business since I also pay for a cell plan in addition to a data plan. This is why I didn't have any kind of cell phone until Android came along and brought some hope to this brutal industry. Still sucks being in N.A. but much better than before.
Motorola Milestone
SUBSYSTEM=="usb", ATTRS{idVendor}=="41d8", MODE="0666"
Tethering
According to http://www.t-mobile.com/Tem...p.aspx?PAsset=Pln_Lst_DataPlan , tmobile allows up to 10gb per month.
But, as you said, be careful. The same page specifically says tethering is prohibited.
Regards,
Christopher
Tethering
Reload configuration
sudo /etc/init.d/udev reload
and then it will all work.
New Linux phone from Vodafone
http://www.linuxphone.ru/fo...f=5&t=909&p=4339#p4339
The screenshots show social activity possible on phone.
depressing
depressing
Fortunately it's not like this in (most of) Europe, where I happen to live. We don't even have a word for tethering in my language, because it's something we consider so obvious. I've been "tethering" for pretty much all of this millenium and never gave it a second thought.
If a device is restricted in this way, I simply won't buy it - thanks but no thanks, especially to Apple!
Tether an Android Phone Using Proxoid