jwise / HoRNDIS

Android USB tethering driver for Mac OS X
Other
3k stars 330 forks source link

Problems with High Sierra (10.13)? #72

Open cmroanirgo opened 7 years ago

cmroanirgo commented 7 years ago

Hi, I've been using rel7 on older versions of OSX 10.8+ for a few years while without any issues. However, when I upgraded to 10.13 USB tethering stopped working, so I upgraded to rel8 (& rebooted). It's kinda working, but not well. Here's what I see:

  1. in Network Preferences, the device connects and DHCP works and I get a local IP address correctly.
  2. At this point I can ping internet locations, but DNS was failing.
  3. Workaround: add 8.8.8.8 as the DNS resolver and things seem to be working well.

So, I'm not sure if this is just my machine or not, but thought I'd add this to the mix.

jzuellig commented 7 years ago

Hi I have a Macbook Pro (15-inch, 2017) and I it doesn't detect my one plus 3t when I enable USB tethering. Can anyone help me?

Thanks iGlaedr

jzuellig commented 7 years ago

I Solved it my self, don't have your phone plugged in when your installing the Software. Reboot an then it works.

Quezler commented 7 years ago

@iGlaedr 's solution worked for me

kaelte commented 7 years ago
Fairphone 2
OS: Fairphone Open 17.10.2
iMac: macOS 10.13 High Sierra

First I have tried to built from source:

$ git checkout rel8
HEAD is now at 920d799... HoRNDIS: rel8pre2 becomes rel8 (fixes #42)

$ xcodebuild  -project HoRNDIS.xcodeproj/
=== BUILD TARGET HoRNDIS OF PROJECT HoRNDIS WITH THE DEFAULT CONFIGURATION (Release) ===

Check dependencies
Code Signing Error: No certificate matching 'Developer ID Application: Joshua Wise (54GTJ2AU36)' found:  Select a different signing certificate for CODE_SIGN_IDENTITY, a team that matches your selected certificate, or switch to automatic provisioning.
error: There is no SDK with the name or path '/Users/klaus/GIT/HoRNDIS/macosx10.6'

** BUILD FAILED **

The following build commands failed:
    Check dependencies
(1 failure)

So I have downloaded the binary package from http://joshuawise.com/horndis. The installation went without a flaw and after rebooting the iMac I can use my phone for USB tethering.

Thanks !

optnil commented 6 years ago

rel8 isn't working for high sierra.It installs but doesn't detect my moto g3 even after rebooting, please help!

optnil commented 6 years ago

sorry, solved it. It was just a permission issue.

sad-story commented 6 years ago

ashk-sonkar - Glad you solved the permission issue.

Care to share with everyone else how you solved it?

Nowaker commented 6 years ago

I can confirm Horndis works with Samsung S7 on High Sierra. Here's a quick guide:

  1. brew cask install horndis
    • You might have to open System Preferences -> Security & Privacy -> General and whitelist the installer to run.
  2. Reboot OSX, press and hold CMD+R until Recovery Mode boots, then open Terminal.
  3. csrutil disable
  4. reboot
  5. sudo kextload /System/Library/Extensions/HoRNDIS.kext
    • This caused Android to show up in my System Preferences -> Network list. image
radimidia commented 6 years ago

Friends, with this program is it possible to connect Galaxy S7 on Mac via USB cable? Are you version for OSX 10.12 (Sierra)? Thank you

Nowaker commented 6 years ago

@radimidia Please try and let us know. S7 + High Sierra works for me.

sad-story commented 6 years ago

Tethering works using the above process from Nowaker --- thanks...

to complete newbies starting from scratch....

open up a terminal and type:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

then:

brew tap caskroom/cask

then follows Nowakers above

radimidia commented 6 years ago

Friends did not work out. I did the Nowaker procedure. I did the process on the terminal with the "csrutil disable" command line. See in the Photos!

img_5117 img_5116 img_5114

radimidia commented 6 years ago

Dear Sad-Story, should this step with the command line be performed after the process described by Nowaker?Thank you

sad-story commented 6 years ago

Dear Sad-Story, should this step with the command line be performed after the process described by Nowaker?Thank you

No those done are before, to install everything.

jaypeek1 commented 6 years ago

Hello,

It did not work for my Samsung Galaxy Grand Prime.

"brew" was not recognized by my Macbook in Github.

screen shot 2018-04-18 at 3 46 47 pm
radimidia commented 6 years ago

What version of android?

Em 18 de abr de 2018, à(s) 16:50, jaypeek1 notifications@github.com escreveu:

Hello,

It did not work for my Samsung Galaxy Grand Prime.

"brew" was not recognized by my Macbook in Github.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

jaypeek1 commented 6 years ago

Android version 5.1.1

radimidia commented 6 years ago

What operating system version runs on your MacBook Pro? I tested on various brands of cell phones (LG, Motorola), but only Samsung did not work. Missing test on Samsung S8 with Android 8. Throughout the day I will pass the list of cell phones. Let's research

Em 18 de abr de 2018, à(s) 23:58, jaypeek1 notifications@github.com escreveu:

Android version 5.1.1

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

jaypeek1 commented 6 years ago

[image: --]

Jay Peek [image: http://]about.me/jaypeek http://about.me/jaypeek?promo=email_sig

[image: --] (415) 760-3571

On Thu, Apr 19, 2018 at 6:24 AM, radimidia notifications@github.com wrote:

What operating system version runs on your MacBook Pro? I tested on various brands of cell phones (LG, Motorola), but only Samsung did not work. Missing test on Samsung S8 with Android 8. Throughout the day I will pass the list of cell phones. Let's research

Em 18 de abr de 2018, à(s) 23:58, jaypeek1 notifications@github.com escreveu:

Android version 5.1.1

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jwise/HoRNDIS/issues/72#issuecomment-382686136, or mute the thread https://github.com/notifications/unsubscribe-auth/AFt_JJONMnFI2IlhtbSaXU4ZlKNDkdr2ks5tqGXAgaJpZM4Prly5 .

radimidia commented 6 years ago

TEST TETHERING USB FOR MAC (OSX 10.12.6 Sierra):

-MOTO G3 - Android 6.0 ok

-MOTO G2 - Android 7.1 ok

-MOTO G2 1069 - Android 6.0 ok

-MOTO G5 - Android 7: no

-MOTO G5 Plus - Android 7: ok

-MOTO E 4 Plus - Android 7.1.1: ok

-LG K10 / M250 - Android 7.0: ok -SAMSUNG ON7 - Android 6.0.1 model SM-G600FY: no -SAMSUNG S7 - Android 7.0: no

2018-04-19 14:12 GMT-03:00 jaypeek1 notifications@github.com:

[image: --]

Jay Peek [image: http://]about.me/jaypeek http://about.me/jaypeek?promo=email_sig

[image: --] (415) 760-3571

On Thu, Apr 19, 2018 at 6:24 AM, radimidia notifications@github.com wrote:

What operating system version runs on your MacBook Pro? I tested on various brands of cell phones (LG, Motorola), but only Samsung did not work. Missing test on Samsung S8 with Android 8. Throughout the day I will pass the list of cell phones. Let's research

Em 18 de abr de 2018, à(s) 23:58, jaypeek1 notifications@github.com escreveu:

Android version 5.1.1

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jwise/HoRNDIS/issues/72#issuecomment-382686136, or mute the thread https://github.com/notifications/unsubscribe-auth/AFt_ JJONMnFI2IlhtbSaXU4ZlKNDkdr2ks5tqGXAgaJpZM4Prly5 .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jwise/HoRNDIS/issues/72#issuecomment-382812412, or mute the thread https://github.com/notifications/unsubscribe-auth/AkSJG241kJCGH-iIWjRo_ikhtE7-LGz_ks5tqMWTgaJpZM4Prly5 .

jaypeek1 commented 6 years ago

Radimidia,

Ok. Will update.

Ty.

Sincerely,

JWP

Sivajakn commented 6 years ago

hi, I am a new Mac user and I followed Nowaker and sad-story's steps and my android usb tethering was successful. but the next day when I was trying to tether it was not working. so I did the whole procedure again and it worked for a day. the next day it doesn't work. help me pls. do I have to to the whole procedure everyday :( ?

radimidia commented 6 years ago

Please answer the following questions:

-What is the make and model of your smartphone? -What version of your Android? -What version of your MAC?

Thank you!

2018-04-23 6:33 GMT-03:00 Sivajakn notifications@github.com:

hi, I am a new Mac user and I followed Nowaker and sad-story's steps and my android usb tethering was successful. but the next day when I was trying to tether it was not working. so I did the whole procedure again and it worked for a day. the next day it doesn't work. help me pls. do I have to to the whole procedure everyday :( ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jwise/HoRNDIS/issues/72#issuecomment-383514355, or mute the thread https://github.com/notifications/unsubscribe-auth/AkSJGw6Hy5mJaL0-rSzMS33pY9Jo9WeJks5trZ_8gaJpZM4Prly5 .

Sivajakn commented 6 years ago

My phone is redmi5a running on android 7 nougat and am having MacBook air with os high Sierra 10.13.2

Thank you

On 23 Apr 2018 4:17 pm, "radimidia" notifications@github.com wrote:

Please answer the following questions:

-What is the make and model of your smartphone? -What version of your Android? -What version of your MAC?

Thank you!

2018-04-23 6:33 GMT-03:00 Sivajakn notifications@github.com:

hi, I am a new Mac user and I followed Nowaker and sad-story's steps and my android usb tethering was successful. but the next day when I was trying to tether it was not working. so I did the whole procedure again and it worked for a day. the next day it doesn't work. help me pls. do I have to to the whole procedure everyday :( ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jwise/HoRNDIS/issues/72#issuecomment-383514355, or mute the thread https://github.com/notifications/unsubscribe-auth/AkSJGw6Hy5mJaL0- rSzMS33pY9Jo9WeJks5trZ_8gaJpZM4Prly5 .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jwise/HoRNDIS/issues/72#issuecomment-383533304, or mute the thread https://github.com/notifications/unsubscribe-auth/Ak3OI-SOrnjRb9fP53drGJMlnX5wVXaEks5trbEngaJpZM4Prly5 .

michelledoyle1 commented 6 years ago

Followed the above tutorials to no avail. My mac is a late 2013 macbook pro running High Sierra 10.13.4 and my phone is a samsung s7.

radimidia commented 6 years ago

Funcionou? Meu Macbook Pro 2015 rodando Sierra não funcionou com S7 Android 7!

2018-04-25 8:31 GMT-03:00 michelledoyle1 notifications@github.com:

Followed the above tutorials to no avail. My mac is a late 2013 macbook pro running High Sierra 10.13.4 and my phone is a samsung s7.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jwise/HoRNDIS/issues/72#issuecomment-384254925, or mute the thread https://github.com/notifications/unsubscribe-auth/AkSJG1CF5Wt4o_fe7RXnNvDmRdWJIKi8ks5tsF6YgaJpZM4Prly5 .

radimidia commented 6 years ago

It worked? My Macbook Pro 2015 running Sierra did not work with S7 Android 7!

2018-04-25 9:06 GMT-03:00 Radimídia radimidia@gmail.com:

Funcionou? Meu Macbook Pro 2015 rodando Sierra não funcionou com S7 Android 7!

2018-04-25 8:31 GMT-03:00 michelledoyle1 notifications@github.com:

Followed the above tutorials to no avail. My mac is a late 2013 macbook pro running High Sierra 10.13.4 and my phone is a samsung s7.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jwise/HoRNDIS/issues/72#issuecomment-384254925, or mute the thread https://github.com/notifications/unsubscribe-auth/AkSJG1CF5Wt4o_fe7RXnNvDmRdWJIKi8ks5tsF6YgaJpZM4Prly5 .

timblaktu commented 6 years ago

Latest HoRNDIS stopped working with recent updates on Macbook Air OSX 10.13.4 (17E202) with Galaxy S7 G930F, Android 7.0 kernel 3.18.14-12365438, Android security patch level March 1 2018.

These devices were working together a couple months ago, definitely before system updates were applied to both via standard Apple App Store/Samsung OTA os updates.

I see the "SAMSUNG Android" interface in Network Preferences on the Mac, but it never becomes active when I connect the S7. Similarly, on the S7's tethering settings page, "USB tethering" remains grayed out even when I connect.

I have tried multiple cables, and the same phone tethers fine to a Dell XPS 9550 with same cables.

ghost commented 6 years ago

Nowaker steps worked with Motorola Moto phone.
The sudo kextload /System/Library/Extensions/HoRNDIS.kext command has to be run each time.

Is there a way to run this without disabling csrutil?

RhythmLunatic commented 6 years ago

I have SIP disabled, used csrutil, etc.

The kext is loaded (It shows in the boot logs), but It doesn't work at all. Tried OnePlus 5, then the Moto G, then Moto G2.

16110376 commented 6 years ago

Hi, High Sierra can't detect USB Tethering, my Phone Asus Zenfone 3 Android 8.0. I've tried all the comments above, but it does not work

maricn commented 6 years ago

I've used @Nowaker's suggestion, except when I did sudo kextload /System/Library/Extensions/HoRNDIS.kext it reported an error saying that it's already loaded.

And my phone didn't come up still.

So, if you're getting the same error, you should first do • sudo kextunload /System/Library/Extensions/HoRNDIS.kext And then • sudo kextload /System/Library/Extensions/HoRNDIS.kext

After doing that, my phone appeared in Network preferences as Ethernet 2.

Sony Xperia XZ working on High Sierra (10.13.5) hackintosh.

swisspra commented 6 years ago

Thanks to @Nowaker, It now works for me :) Here is the suggestion: My Devices: MBP Mid-2014 10.13.6 High Sierra| Xiaomi Redmi5

After you phone shows up in the setting you can go back and reenable csrutil

mikhailai commented 6 years ago

Hi, y'all. I'm a new HoRNDIS maintainer, and have done a lot of code changes, that have been released as HoRNDIS 9.0 and 9.1.

This "csrutil" magic is totally unnecessary now. All you need to install HoRNDIS is to download the latest release from github page and run the package installer normally, or just use "brew cask install horndis". IMPORTANT: if it pops up the message saying that kernel extensions is blocked, please do follow the prompt to go to the security settings and press "Allow".

That's it! All the later steps with "CMD+R" are NOT needed. If things don't work, just do a normal reboot. If that does not work, please let me know: this needs to be investigated.

swisspra commented 6 years ago

@mikhailai For me, the normal installation didn't work [both installer and homebrew] After I read your post, I tried to reinstall it without disable csrutil. and yes it is work!! However, both methods put the HoRNDIS.kext to /Library/Extensions/HoRNDIS.kext but not /System/Library/Extensions/HoRNDIS.kext. so that my mac doesn't load this extension. I still have to run this command "sudo kextload /Library/Extensions/HoRNDIS.kext" every time I connected my phone to make the extension work.

The solution for me is to copy the HoRNDIS.kext to /System/Library/Extensions/ manually. Now it is work flawlessly.

radimidia commented 6 years ago

Master @mikhailai, works with samsung galaxy s7? Thank you!

Em 27 de jul de 2018, à(s) 05:15, swisspra notifications@github.com escreveu:

@mikhailai

mikhailai commented 6 years ago

Hi @swisspra. I'm very surprised that you had to move HoRNDIS to "/System/Library/Extensions". As far as I know, the "/Library/Extensions" is the preferred location for installing the 3-rd party drivers, and MacOS should load the drivers from both locations. My understanding was that "/System/Library/Extensions" was needed for the very old versions of MacOS, and that's why I removed installation into it in "9.0+".

Are you sure that rebooting the Mac does not allow the driver to load from "/Library/Extensions"? On my systems, "/Library/Extensions" works flawlessly, and I'm not aware of anyone else having this problem with 9.0+ drivers. BTW, one thing to try would be to run "sudo touch /Library/Extensions".

808b commented 6 years ago

HI, i have galaxy note 4 with android 4 and my mac is running on 10.13.6. It was working on el captain but i'm not sure if it was HoRNDIS. I try several times to instal the pkg (HoRNDIS-9.2) and to run some texts on terminal but nothing worked after rebooting. any help with easy steps? System Preferences -> Security & Privacy -> The software is blocked with no way to enable.

mikhailai commented 6 years ago

Hi @808b, please check if this applies to you: https://github.com/jwise/HoRNDIS/issues/78 There may be a problem due to Samsung software.

Also, you can try the command and see if tethering works after running that: sudo kextload /Library/Extensions/HoRNDIS.kext

808b commented 6 years ago

thanks mikhailai. this is what i get after running the command: /Library/Extensions/HoRNDIS.kext failed to load - (libkern/kext) system policy prevents loading; check the system/kernel logs for errors or try kextutil(8).

mikhailai commented 6 years ago

Oh, that's interesting. When you' ve installed the HoRNDIS, it should have asked you to allow it in the System Preferences -> Security and Privacy. Did you do this? Also, the setting should say to allow apps downloaded from App Store and identified developers.

If everything is good there, can you please try to run: sudo kextutil /Library/Extensions/HoRNDIS.kext and see if it gives a more detailed message.

808b commented 6 years ago

I was asked but in System Preferences -> Security and Privacy it's not possible to allow the app. i have the sentence " the software loading from joshua wise was blocked.

Kext rejected due to system policy: <OSKext 0x7fcc70005140 [0x7fffadad6af0]> { URL = "file:///Library/StagedExtensions/Library/Extensions/HoRNDIS.kext/", ID = "com.joshuawise.kexts.HoRNDIS" } Kext rejected due to system policy: <OSKext 0x7fcc70005140 [0x7fffadad6af0]> { URL = "file:///Library/StagedExtensions/Library/Extensions/HoRNDIS.kext/", ID = "com.joshuawise.kexts.HoRNDIS" } Diagnostics for /Library/Extensions/HoRNDIS.kext:

808b commented 6 years ago

this is what i get with the terminal: Kext rejected due to system policy: <OSKext 0x7fcc70005140 [0x7fffadad6af0]> { URL = "file:///Library/StagedExtensions/Library/Extensions/HoRNDIS.kext/", ID = "com.joshuawise.kexts.HoRNDIS" } Kext rejected due to system policy: <OSKext 0x7fcc70005140 [0x7fffadad6af0]> { URL = "file:///Library/StagedExtensions/Library/Extensions/HoRNDIS.kext/", ID = "com.joshuawise.kexts.HoRNDIS" } Diagnostics for /Library/Extensions/HoRNDIS.kext:

mikhailai commented 6 years ago

@808b, basically you need to find a way to approve the HoRNDIS kext - the MacOS HighSierra will not let you use it without this approval. The MacOS Sierra and earlier were not that strict: that's why it worked on El Capitan.

So, again, please make sure in the "Security and Privacy" tab you have a radio button set to allow apps downloaded from "App Store and identified developers", and then try clicking "Allow" button for HoRNDIS (you may need to try an install step before that").

There is also another "hacky" way to get that approval, but it would be nice to try a "good" way first.

mikhailai commented 6 years ago

i have the sentence " the software loading from joshua wise was blocked.

That's why it is not working: you need to fix that.

808b commented 6 years ago

@mikhailai, i was in an internet cafe and now i'm back to home. Like a miracle everything is working now. I was enable to allow app in "Security and Privacy". After disable my vpn on my phone + mac it's all good. thanks for your time and quick answers.

iosonosempreio commented 6 years ago

Hello, am I the only one who doesn't see the extension in the folder /System/Library/Extensions? Is not working btw.

mikhailai commented 6 years ago

The latest HoRNDIS 9.x releases no longer use /System/Library/Extensions: they install the kext under /Library/Extensions.

If it's not working after reboot, please provide more details, like Mac OS version and model of your phone. Also, if you're on HighSierra, you need to allow this kext in the security settings.

iosonosempreio commented 6 years ago

Hello! I'm on a MacBook Pro retina mid 2012 with HighSierra 10.13.6 and I try to connect a LG Nexus 5. I did allowed it in the security settings.

dudymas commented 6 years ago

My own issue was that when I clicked the 'Allow' button for the kext in the Security & Privacy pane, the Allow button wouldn't go away and nothing seemed to happen. Reading around, I found a related issue with another kext: https://github.com/tekezo/Karabiner-Elements/issues/1017

With the knowledge there, I turned on Full Keyboard access from the keyboard pref pane, and then I went back to the allow button, and used the Tab key on my keyboard to highlight it, then pressed the spacebar to 'allow'. The button went away, and suddenly my usb tethering was working without issue.