CDN Space
Learn Skills ,Record Life
CDN Space

macOS Big Sur 11.3 安装HoRNDIS实现Android网络共享

HoRNDIS项目地址:https://github.com/jwise/horndis
pkg下载kext下载
感谢Leandro Borges制作维护我设备的EFI并解答我的问题
感谢Joshua Wise开发HoRNDIS驱动,bisaalz提供方案一、Velolong提供方案二

方案一(黑苹果):注入驱动

该方案要求有线网可用

  1. 下载pkg,安装后通过终端从/Library/Extensions复制HoRNDIS.kext,或直接使用本站的kext
  2. 挂载EFI分区,进入OC/Kexts文件夹,粘贴HoRNDIS.kext
  3. 将HoRNDIS.kext加入config.plist。
    此处以OC Configurator为例,用OCC打开config.plist,在Kernel-Add点右下角加号,添加如下内容:
    Arch:Any
    BundlePath:HoRNDIS.kext
    ExecutablePath:Contents/MacOS/HoRNDIS
    PlistPath:Contents/Info.plist
  4. 保存重启即可

方案二

  1. 下载kext,终端输入spctl -a -vv -t install,然后空格,拖拽你下载的kext到终端,回车
  2. 记下终端返回的origin括号内的那串字母数字(若在本站下载,为54GTJ2AU36)
  3. 重启到恢复模式,终端输入
    csrutil disable
    /usr/sbin/spctl kext-consent list
  4. 若上面的ID不在列表中,输入:
    /usr/sbin/spctl kext-consent add 54GTJ2AU36
  5. 回车,命令执行完毕后重启系统
  6. 终端输入
    sudo su
    sqlite3 /var/db/SystemPolicyConfiguration/KextPolicy
    delete from kext_load_history_v3 where team_id='54GTJ2AU36';
    delete from kext_policy where team_id='54GTJ2AU36';
    .quit
    cd /Library/Extensions
    rm -rf HoRNDIS.kext
  7. 下载并安装pkg,随后在设置-安全隐私中允许该拓展
  8. 重启检测是否可用

黑苹果停用SIP

原文链接

SIP or more properly known as System Integrity Protection, is a security technology that attempts to prevent any malicious software and the end user from damaging the OS. First introduced with OS X El Capitan, SIP has grown over time to control more and more things in macOS, including limiting edits to restricted file locations and 3rd party kext loading with kextload(OpenCore is unaffected as kexts are injected at boot). To resolve this, Apple has provided numerous configuration options in the NVRAM variable csr-active-config which can either be set in the macOS recovery environment or with OpenCore’s NVRAM section(The latter will be discussed below).

  • WARNING: Disabling SIP can break OS functionality such as software updates in macOS 11, Big Sur and newer. Please be careful to only disable specific SIP values instead of disabling SIP outright to avoid these issues.
    • Enabling CSR_ALLOW_UNAUTHENTICATED_ROOT and CSR_ALLOW_APPLE_INTERNAL are common options that can break OS updates for users

You can choose different values to enable or disable certain flags of SIP. Some useful tools to help you with these are CsrDecode (opens new window)and csrstat (opens new window). Common values are as follows (bytes are pre-hex swapped for you, and note that they go under NVRAM -> Add -> 7C436110-AB2A-4BBB-A880-FE41995C9F82 -> csr-active-config):

Note: Disabling SIP with OpenCore is quite a bit different compared to Clover, specifically that NVRAM variables will not be overwritten unless explicitly told so under the Delete section. So if you’ve already set SIP once either via OpenCore or in macOS, you must override the variable:

  • NVRAM -> Delete -> 7C436110-AB2A-4BBB-A880-FE41995C9F82 -> csr-active-config

注:delete里面的这个csr-active-config 是要有才可以改SIP状态,如果没有,请加上。

赞赏
没有标签
首页      技术      macOS Big Sur 11.3 安装HoRNDIS实现Android网络共享

CDN

文章作者

发表评论

textsms
account_circle
email

CDN Space

macOS Big Sur 11.3 安装HoRNDIS实现Android网络共享
HoRNDIS项目地址:https://github.com/jwise/horndispkg下载 | kext下载 感谢Leandro Borges制作维护我设备的EFI并解答我的问题感谢Joshua Wise开发HoRNDIS驱动,bisaalz提供方案一、Ve…
扫描二维码继续阅读
2021-05-15