1 Star 0 Fork 0

softxing / RestrictEvents

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
BSD-3-Clause

RestrictEvents

Build Status Scan Status

Lilu Kernel extension for blocking unwanted processes causing compatibility issues on different hardware and unlocking the support for certain features restricted to other hardware. The list of blocks currently includes:

  • /System/Library/CoreServices/ExpansionSlotNotification
  • /System/Library/CoreServices/MemorySlotNotification

The list of patches currently includes:

  • Disabled MacBookAir model memory replacement UI (comes in pair with SystemMemoryStatus = Upgradable quirk).
  • Disabled MacPro7,1 PCI Expansion view and RAM view.
  • CPU brand string patch for non-Intel CPUs (can be forced for Intel with revcpu=1).
  • Disabled uninitialized disk UI

Note: Apple CPU identifier must be 0x0F01 for 8 core CPUs or higher and 0x0601 for 1, 2, 4, or 6 cores. This is the default in OpenCore for non-natively supported CPUs.

Boot arguments

  • -revoff (or -liluoff) to disable
  • -revdbg (or -liludbgall) to enable verbose logging (in DEBUG builds)
  • -revbeta (or -lilubetaall) to enable on macOS older than 10.8 or newer than 13
  • -revproc to enable verbose process logging (in DEBUG builds)
  • revpatch=value to enable patching as comma separated options. Default value is auto.
    • memtab - enable memory tab in System Information on MacBookAir and MacBookPro10,x platforms
    • pci - prevent PCI configuration warnings on MacPro7,1 platforms
    • cpuname - custom CPU name in System Information
    • diskread - disables uninitialized disk warning in Finder
    • asset - allows Content Caching when sysctl kern.hv_vmm_present returns 1 on macOS 11.3 or newer
    • sbvmm - forces VMM SB model, allowing OTA updates for unsupported models on macOS 11.3 or newer
    • none - disable all patching
    • auto - same as memtab,pci,cpuname, without memtab and pci patches being applied on real Macs
  • revcpu=value to enable (1, non-Intel default)/disable (0, Intel default) CPU brand string patching.
  • revcpuname=value custom CPU brand string (max 48 characters, 20 or less recommended, taken from CPUID otherwise)

Note: 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:revpatch, 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:revcpu and 4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102:revcpuname NVRAM variables work the same as the boot arguments, but have lower priority.

Credits

Copyright (c) 2020, vit9696 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

https://github.com/acidanthera/RestrictEvents 展开 收起
C++
BSD-3-Clause
取消

发行版 (8)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/softxing/RestrictEvents.git
git@gitee.com:softxing/RestrictEvents.git
softxing
RestrictEvents
RestrictEvents
master

搜索帮助