USB Tether Your Android Device to Your Mac—Without Rooting - Android Software/Hacking General [Developers Only]

Android devices are known for their USB and Wi-Fi tethering abilities—rooted or unrooted—which comes in handy for those that travel and need internet on their laptops in areas that don't have any Wi-Fi networks available, but have a strong cellular signal.
And tethering via USB is pretty much everybody's preferred method, since it provides faster speeds compared to Wi-Fi tethering. Plus, your phone is constantly being charged, whereas Wi-Fi tethering drains your phone's battery.
While USB tethering your Android device to a Windows-based laptop is pretty easy, Mac users were required to root their phones in order to get the faster, more stable USB tethering to work. But not anymore. Now there's a new Android app on the market that lets you connect your un-rooted device to your MacBook for easy web access without any hiccups.
HoRNDIS, (pronounced horrendous) is a driver created by Joshua Wise for Mac OS X users with 10.6.8 and above. It allows you to use your Android smartphone's native USB tethering mode to gain internet access—Without rooting.
How to Use HoRNDIS on Your Mac for USB Tethering
To get started, first download the latest binary package of HoRNDIS from Github.
Follow the instructions in the installer. Once installed...
Connect your Android phone to your Mac via USB cable.
Go the settings menu on your phone.
In the connections section, select "More…".
Select "Tethering & Portable Hotspot".
Check the "USB tethering" box.
If everything worked out okay, your device should now become available in Mac OS X's network menu.
HoRNDIS has been tested extensively on the Samsung Galaxy Nexus running Android Jelly Bean, but is reported to work just fine with other Android devices, such as the Samsung Galaxy S, S2 and S3 as well as the new LG Nexus 4.
Try out your phone and let us know if it works!

Related

WiFi Hotspot Tethering Issue

I am having difficulty getting our XOOM tablet to connect to WiFi via a mobile hotspot being provided by a Galaxy Nexus. Both the XOOm and Nexus are running ICS and are not rooted and are stock.
The XOOM sees the WiFi network being provided. However, it will not obtain an IP.
I have no issue getting other devices, including another Nexus, and Transformer Prime (both ICS) to connect to the same hotspot that the XOOM can not connect too.
Does anyone else have this issue or know how to fix it?
221 views and no replies? Surely I am not the only on experiencing this issue...
wstahlm80 said:
I am having difficulty getting our XOOM tablet to connect to WiFi via a mobile hotspot being provided by a Galaxy Nexus. Both the XOOm and Nexus are running ICS and are not rooted and are stock.
The XOOM sees the WiFi network being provided. However, it will not obtain an IP.
I have no issue getting other devices, including another Nexus, and Transformer Prime (both ICS) to connect to the same hotspot that the XOOM can not connect too.
Does anyone else have this issue or know how to fix it?
Click to expand...
Click to collapse
Stock Android doesn't support ad-hoc networks, which stock tethering is. Guessing the devices that work are running custom roms.
ZanshinG1 said:
Stock Android doesn't support ad-hoc networks, which stock tethering is. Guessing the devices that work are running custom roms.
Click to expand...
Click to collapse
The Nexus which is providing the mobile wifi hotspot (via Verizon subscription) is running a stock version of Android (4.0.2) and is not rooted. The devices which can connect to this hotspot are another Nexus of similar stock version, a Dell M4500 laptop, and an Asus Transformer Prime running the latest 4.0.3 version of Android as provided by Asus.
As mentioned, the XOOM is running the latest version of stock ICS as provided by Motorola.
The only device that cannot connect to the hotspot is the XOOM. I do not see where I can choose between an ad-hoc network or an infrastructure network within the wifi hotspot settings.
Also, like I mentioned before, the XOOM has no issue with connecting to the Nexus if it shares it's internet via Bluetooth, it only has an issue with obtaining a connection via the wifi tethering mobile hotspot.
What is really confusing to me is that the same wifi hotspot which the XOOM has trouble connecting to, the Prime connects with no problem at all.
Produce a logcat of the xoom attempting to connect.
wstahlm80 said:
The Nexus which is providing the mobile wifi hotspot (via Verizon subscription) is running a stock version of Android (4.0.2) and is not rooted. The devices which can connect to this hotspot are another Nexus of similar stock version, a Dell M4500 laptop, and an Asus Transformer Prime running the latest 4.0.3 version of Android as provided by Asus.
As mentioned, the XOOM is running the latest version of stock ICS as provided by Motorola.
The only device that cannot connect to the hotspot is the XOOM. I do not see where I can choose between an ad-hoc network or an infrastructure network within the wifi hotspot settings.
Also, like I mentioned before, the XOOM has no issue with connecting to the Nexus if it shares it's internet via Bluetooth, it only has an issue with obtaining a connection via the wifi tethering mobile hotspot.
What is really confusing to me is that the same wifi hotspot which the XOOM has trouble connecting to, the Prime connects with no problem at all.
Click to expand...
Click to collapse
Prime isn't running stock Android.
(There is no option in stock android for infrastructure or ad-hoc with tethering, nor is such a distinction relevant with Bluetooth)
ZanshinG1 said:
Prime isn't running stock Android.
(There is no option in stock android for infrastructure or ad-hoc with tethering, nor is such a distinction relevant with Bluetooth)
Click to expand...
Click to collapse
Indeed, my description of "stock" is not accurate. When I describe these devices as "stock" I am receding to them as having an unmodified ROM as it was provided by the respective device manufacturer.
So you are correct that my Prime is not running a true stock version of Android. My bad.
ZANSHING1: Is it even possible to connect a wifi XOOM to a mobile wifi hotspots (specifically, to one being provided by a Verizon Samsung Galaxy Nexus which does have the appropriate hotspots feature as part of the phone plan)?
BIGRUSHDOG: where do I need to go to obtain the "logcat" file you are requesting?
wstahlm80 said:
ZANSHING1: Is it even possible to connect a wifi XOOM to a mobile wifi hotspots (specifically, to one being provided by a Verizon Samsung Galaxy Nexus which does have the appropriate hotspots feature as part of the phone plan)?
Click to expand...
Click to collapse
I think you will have to use one of the tethering apps that provides a full infrastructure hotspot.
This is the only one I'm aware of that does. There may be more. But it has some requirements for the kernel.
http://code.google.com/p/android-wifi-tether/
I've been tethering my Xoom to my Bionic for months. And was tethering to my Droid X before that. I had to flash a ad-hoc wifi supplicant through clockworkmod recovery to get tethering to work on my Xoom. Or. If you have root explorer, I assume you'd just back up stock wifi supplicant file and replace with one that is modified, like I had to do on my galaxy tab. You'd still need to be rooted to do that though. Stock isn't going to cut it.
Sent from my Microwave using Tapatalk and super heated water molecules
So....if I am understanding these responses correctly, the XOOM will be able to access a wifi hotspot which is provided by a (Android) phone ONLY if it (the XOOM) is rooted and has certain files either added or modified in order to connect to the aforementioned wifi hotspot?
wstahlm80 said:
So....if I am understanding these responses correctly, the XOOM will be able to access a wifi hotspot which is provided by a (Android) phone ONLY if it (the XOOM) is rooted and has certain files either added or modified in order to connect to the aforementioned wifi hotspot?
Click to expand...
Click to collapse
Sorta kinda There are two flavors in which a device may be able to broadcast a wifi tether signal. Ad-hoc and Infrastructure. When the broadcasting device is in Infrastructure mode, it basically simulates a full wireless router. Any device should be able to connect as a client. Ad-hoc is a bit different. It is basically a point to point connection in which there's no real routing. Its actually complex but I'm trying to use layman's terms If your phone is broadcasting ad-hoc, the xoom currently can not connect. By default, Android can not connect to adhoc, whether stock or custom rom. For complex reasons, this is especially the case with ics. So it is necessary to determine what type of signal your phone broadcasts. Please describe in detail how you initiative your tether on the broadcasting device.
bigrushdog said:
Sorta kinda There are two flavors in which a device may be able to broadcast a wifi tether signal. Ad-hoc and Infrastructure. When the broadcasting device is in Infrastructure mode, it basically simulates a full wireless router. Any device should be able to connect as a client. Ad-hoc is a bit different. It is basically a point to point connection in which there's no real routing. Its actually complex but I'm trying to use layman's terms If your phone is broadcasting ad-hoc, the xoom currently can not connect. By default, Android can not connect to adhoc, whether stock or custom rom. For complex reasons, this is especially the case with ics. So it is necessary to determine what type of signal your phone broadcasts. Please describe in detail how you initiative your tether on the broadcasting device.
Click to expand...
Click to collapse
The broadcasting device is a Verizon Galaxy Nexus running the latest 4.0.2 version of Android as provided by Verizon. The phone is not rooted and we do pay for the tethering service offered by Verizon.
In regards to how we turn on the wifi tethering, we complete the folksingers steps:
SETTINGS> More... (under WIRELESS & NETWORKS)> Tethering & portable hotspots> Portable WiFi hotspot (turn on by activating the green check within the box)
In regards to how the WiFi is Configured, we are using the WPA2 PSK security option.
...and as I mentioned before, my Asus Transformer Prime has no issue connecting...nor does my laptop....only the XOOM has a problem.
Download this
https://market.android.com/details?id=net.solarnz.apps.lumberjack
Attempt a connection and export the Lumberjack logs. The post them on pastebin.com

[Q] Sharing Connection from PC

Hi,
so my scenario is the following:
My PC is connected to the router via cable and has no WiFi connection. My router has wifi, but the connection is very bad in my room.
Is there a way to share the connection of my pc (running win 8 pro btw) via bluetooth (it's onboard) or USB?
Thanks!
edit: Just tested it with my HoX and there I have an option "Internet Pass-Through", which works fine via USB. But on my GNote 10.1 (wifi only) the option doesn't exist...
edit2: I guess I found out what the problem is: It's called reverse-tethering and the problem is, that all tethering options are not available in the systemsettings, because tethering is not available, because it's a wifi only model. On my HoX the option for internet pass-through are in the tethering section, though it's reverse tethering. Any ideas how to get there on the wifi only Note?
Use a second ethernet-slot on your pc, buy an usb-lan-device and connect it via otg and crossovercable.
Or use bluetooth, if your pc support that. (Maybe a cheap usb bt device for your pc?) To share internet on one android device to another via bt is no problem. So it should work te same with your pc. Dunno by windows settings or any third party software.
AW: [Q] Sharing Connection from PC
Allright, I have Bluetooth onboard but can't get it to work, I guess the problem is with windows here. The other idea is very good thanks, I'll try that.
Send from my HTC One X - Kernel 3.1.10 - Build 3.18.401.1
Before buying check for well known usb lan devices. Especially for samsung note, note 2 and up.
How far is the router from your room?
Sent from my GT-N8010 using xda app-developers app
AW: [Q] Sharing Connection from PC
1 floor ~3 walls
The closer I get to the door the better it gets. At the door the router is basically directly beneath. On my couch which is near the door the reception is okay. But in my bed and near my PC (furthest away from door) the reception is very bad or no reception at all.
Sent from my Galaxy Note 10.1 with the awesome CM 10.1 HumberOS Rom!
edit: So, I finally found a working bluetooth driver for my onboard bluetooth and win 8 (it's a P8Z68 Deluxe/Gen 3 btw). The standard win 8 bt driver seemed to lack some features. Okay, now I am able to have a real pairing connection to the GN10.1. I enabled ICS in windows connection option and then tried to do a "connect to personal network" in windows. It fails with no notification at all on the Note. Then I downloaded Bluetooth PAN app from play store. Funny thing is: If I click connect in windows (in the "connect to personal network" window) and shortly after/before click connect in Bluetooth PAN the connection does not fail in windows (it shows as connected), but the Bluetooth PAN app doesn't show any established connection, very weird. I tried the app "BlueVPN", but also no luck. Oh btw I found the following:
Obtain a network connection via Bluetooth tethering
If you have a computer or other device that can share its network connection via Bluetooth, you can configure your phone to obtain a network connection by Bluetooth tethering (sometimes called reverse tethering).
1. Configure your computer to share it’s network connection via Bluetooth. See your computer’s documentation for details on how to do this. Typically, it involves making your computer discoverable via Bluetooth and allowing incoming PAN connections.
2. Pair and connect your phone to your computer via Bluetooth.
3. Go to Settings > Wireless & networks > More > Tethering & portable hotspot.
4. Check Bluetooth tethering.
Your phone connects to the Internet via Bluetooth and your computer, and a Bluetooth icon appears in the System bar.
Click to expand...
Click to collapse
So I had Bluetooth Tethering enabled all the time. It didn't make any difference, except I got a noticifation "Tethering active" when connected, but I didn't get a reverse tethering.
Next thing I did, I tried connecting to my HTC One X's bt hotspot, didn't work either.
My best guess is still that there are too many tethering options missing due to the fact that it's the wifi only version.
What I'll try next is this. I'll let you know if it works.
edit 2: Oh, I also tried reverse tethering with my HoX to the PC, also didn't work.
Didn't worked because of firewall on windows 8?
Try to establish tethering through ur mobile phone via bt to wifi or [insertnumberhere]G internet.
Maybe in both directions (mobile<->10.1) to see if that works... and to decrease potential ...errrm... fehlerquellen.
Any update on sharing the internet connection of the pc to the note 10.1. I am especially interested in doing it via the USB.
It seems you can update the Note 10.1 via the USB, so it must be possible to connect to the internet via it. I think.
I don't own a Note 10.1 yet, but I am really interested in getting one.
it is old but maybe for some people the first gibt. nowadays it is easier in Windows 6 and above. you'll make it.
http://m.geekzone.co.nz/News/Read?newsId=1285

[Q] USB Reverse tethering two android phones to have internet access

Hello, I would like to access the internet connectivity on one android phone from another one via usb tether (not wifi/bluetooth). Can usb tethering or reverse tethering enable this? So far I have learned that the android phones can only be tethered to PC's. Also does the special pass-through feature on the HTC One series enable connecting to another phone or tablet?
I have a Galaxy S2 HD LTE SHV-E120S rooted. Would installing Cyanogenmod enable such a function?

Help with Samsung galaxy j7 sky pro hotspot

I bought a straight talk Samsung galaxy j7 sky pro and can't find the hotspot if it even has one. So I installed a hotspot from the Google play store and it says I have to root before it can be used with this phone. Can someone please tell me what that is and how to fo it? I tried looking it up on Google but I couldn't make heads or tails of it.
This works
I have this phone for straight talk and i use PDAnet for android. If you have a laptop with hotspot capabilities, you can use PDAnet on there for a USB tether. The other alternative that might work for you ( did not work for me due to some dumb error) is FoxFi. FoxFi is compatible with PDAnet too. You can use a Bluetooth connection too for some devices.
Hope it works!
What does it matter what "hotspot" capabilities you have on any other device other than a standard wifi connection? And pdanet is used on the pc or other device? What exactly turns wifi hotspot feature on on this phone according to your solution?
So I was able to connect my windows laptop to the network but not my other android phone. I have PdaNet installed on it too. So if anyone has any tips on how to get android to Android to work with this phone pls advise. I'm using the j7 Sky Pro for straight talk
juntjoo said:
So I was able to connect my windows laptop to the network but not my other android phone. I have PdaNet installed on it too. So if anyone has any tips on how to get android to Android to work with this phone pls advise. I'm using the j7 Sky Pro for straight talk
Click to expand...
Click to collapse
I also have a J7 sky pro and have noticed when trying to connect to a pdanet hot spot (using wifi direct hotspot on another device and connecting to it with the J7) that some devices have communication issues that are hit or miss. My wife has the galaxy note 9. When hers is used as the wifi direct hot spot it will connect to the network using WPS but pdanet bugs out or something. After wps process finishes it says "WPS complete, Waiting for wifi connection. It remains stalled out there. However I did manage to get it to sucessfully connect to it ONCE (1 out of about 400 attempts) I did manage to get it to connect outside of pdanet for internet connection by using the wifi connection settings and connecting to the network there but also hit the advanced options and then set the proxy to manual then used 192.168.49.1 as the proxy address & port 8000. that allowed me to gain internet with the j7. As i said though it so far has just been with the Note 9. A friend with an S9 set his up and I could connect to it just fine. So I don't know if it is pdanet actually nerking out and having issues or if it is the communication between the devices. If you are trying to use your J7 as the hotspot set it up as wifi direct instead of the foxfi hotspot then use connect to pdanet hotspot from the other device to connect to the the J7

Android 10 + Vysor Pro

Good afternoon!!
I have been using the Vysor Pro application for several years, on my OnePlus 7 Pro for several months now.
I use it because I have a physical disability and that allows me to use the smartphone from the computer.
Normally I make the connection by Wi-Fi so as not to damage the battery by having USB connected and charging without stopping.
Since I upgrade to Android 10 I can connect it via USB, but when I try it over Wi-Fi, I get a message like the mobile phone is not connected to Wi-Fi, of course, the computer and mobile phone are connected to the same network and before the update it worked without problem.
After updating and seeing that it did not work, I did a factory reset and installed everything from scratch, as if it were a new terminal.
I wanted to ask you if you could give me a solution, to run Vysor connected by wifi?
I have written to the developer several emails and in more than 15 days I have not responded.
Thank you
Hi!! I wanted to ask if someone has come up with a solution or could you tell me how to contact the developer.
Greetings and thanks.
I just found this thread long after I got Vysor (and scrcpy) to work (almost) flawlessly on Android 11 (with USB setting up the initial adb connection and then switching to Wi-Fi thereafter)....
In early May I updated from Android 11 to Android 12 and I found out that Android 12 has a fantastic new Developer option "Wireless debugging" feature where you can set up the adb connection to the PC completely over Wi-Fi (no need for the initial USB connection!).
I just wanted people to know new information related to using Vysor completely over Wi-Fi (no USB connection is ever needed again!).
This always on Wi-Fi Vysor capability is new in Android 12 because Android 12 has a new Developer option for "Wireless debugging".
However, Android 12 also has a new Developer option for "Enhanced MAC Randomization" which randomizes the MAC address on every Wi-Fi connection, so with that added desired Wi-Fi simplicity in Android 12 comes also the added desired privacy of MAC randomization on every connection (the difference being Android 11 only randomized the MAC per SSID, as far as I understand it).
All this new Android 12 functionality has implications for your Vysor (and scrcpy) setup, based on my tests over the past couple of months.
Of course, if your router is using the MAC address to hand out the IP address you might need address reservation since the router can no longer expect a consistent MAC address if you set that new Android 12 Developer option but you can set the Android phone to request a "Static" IP address (if you want the adb connect commands to be consistent in the IP address in day to day usage).
I have found that rebooting the PC causes me to need to reconnect via an adb command on the PC before Vysor will work, and, for unknown reasons yet, often the Android 12 "Wireless debugging" switch gets turned off (mysteriously) - which affects the Vysor (and scrcpy) connections from one day to another.
It's no big deal once you figure out the commands and switches though, where the screenshots below show the settings I currently have on my unrooted Android 12 Samsung Galaxy A32-5G phone from T-Mobile (many of which are for privacy and functionality reasons).

Categories

Resources