Skip to content

Commit

Permalink
Disable software update patches by default as OpenCore was fixed
Browse files Browse the repository at this point in the history
If they are needed `-revsbvmm` boot argument can be used instead.
  • Loading branch information
vit9696 committed Oct 3, 2021
1 parent 2430ed0 commit f76c775
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Changelog.md
@@ -1,7 +1,7 @@
RestrictEvents Changelog
========================
#### v1.0.5
- Added macOS 12 software update support with any Mac model
- Added macOS 12 software update support with any Mac model via `-revsbvmm`

#### v1.0.4
- Fixed dual-core CPU spoofing on macOS 10.14 and earlier
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -13,7 +13,6 @@ 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`).
- Model analysis logic to choose macOS update source in SoftwareUpdateCoreSupport.

_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.

Expand All @@ -22,6 +21,7 @@ _Note_: Apple CPU identifier must be `0x0F01` for 8 core CPUs or higher and `0x0
- `-revdbg` (or `-liludbgall`) to enable verbose logging (in DEBUG builds)
- `-revbeta` (or `-lilubetaall`) to enable on macOS older than 10.8 or newer than 12
- `-revproc` to enable verbose process logging (in DEBUG builds)
- `-revsbvmm` to force VMM SB model, allowing `x86legacy` SB model on T2 Mac model for macOS 12
- `revnopatch=value` to disable patching for userspace processes of Memory/PCI UI and/or CPU renaming or no patching will happen. Accepted values are `all`, `mempci`, `cpuname`, `none` Defaults to `none`.
- `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)
Expand Down
3 changes: 2 additions & 1 deletion RestrictEvents/RestrictEvents.cpp
Expand Up @@ -399,7 +399,8 @@ PluginConfiguration ADDPR(config) {
KernelPatcher::RouteRequest("_cs_validate_range", RestrictEventsPolicy::csValidateRange, orgCsValidateFunc);
if (!patcher.routeMultipleLong(KernelPatcher::KernelID, &csRoute, 1))
SYSLOG("rev", "failed to route cs validation pages");
if (getKernelVersion() >= KernelVersion::Monterey) enableSoftwareUpdates(patcher);
if (getKernelVersion() >= KernelVersion::Monterey && checkKernelArgument("-revsbvmm"))
enableSoftwareUpdates(patcher);
});
}
}
Expand Down

0 comments on commit f76c775

Please sign in to comment.