diff --git a/CHANGELOG.md b/CHANGELOG.md index 77dfb9ab5..0b5bbae4d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # OpenCore Legacy Patcher changelog +## 0.0.19 +- Add SMC-Spoof.kext to avoid triggering `smcupdater` + ## 0.0.18 - Disable Vault by default due to breaking installations - Move BOOTx64.efi to System/Library/CoreServices/ to support GPT BootCamp installs diff --git a/Resources/Constants.py b/Resources/Constants.py index b088fe169..ebc22f084 100644 --- a/Resources/Constants.py +++ b/Resources/Constants.py @@ -28,6 +28,7 @@ class Constants: self.backlight_version = "1.0.0" self.cpufriend_version = "1.2.3" self.nightshift_version = "1.1.0" + self.smcspoof_version = "1.0.0" # Get resource path self.current_path = Path(__file__).parent.parent.resolve() @@ -109,6 +110,8 @@ class Constants: def cpufriend_path(self): return self.payload_kexts_path / Path(f"Acidanthera/CPUFriend-v{self.cpufriend_version}.zip") @property def nightshift_path(self): return self.payload_kexts_path / Path(f"Misc/NightShiftEnabler-v{self.nightshift_version}.zip") + @property + def smcspoof_path(self): return self.payload_kexts_path / Path(f"Misc/SMC-Spoof-v{self.smcspoof_version}.zip") # Build Location @property diff --git a/Resources/build.py b/Resources/build.py index 46f51c7b6..05c36a0da 100644 --- a/Resources/build.py +++ b/Resources/build.py @@ -77,6 +77,7 @@ class BuildOpenCore: ("WhateverGreen.kext", self.constants.whatevergreen_version, self.constants.whatevergreen_path, lambda: True), ("RestrictEvents.kext", self.constants.restrictevents_version, self.constants.restrictevents_path, lambda: self.model in ModelArray.MacPro71), ("NightShiftEnabler.kext", self.constants.nightshift_version, self.constants.nightshift_path, lambda: self.model not in ModelArray.NightShiftExclude), + ("SMC-Spoof.kext", self.constants.smcspoof_version, self.constants.smcspoof_path, lambda: True), # CPU patches ("AppleMCEReporterDisabler.kext", self.constants.mce_version, self.constants.mce_path, lambda: self.model in ModelArray.DualSocket), ("AAAMouSSE.kext", self.constants.mousse_version, self.constants.mousse_path, lambda: self.model in ModelArray.SSEEmulator), diff --git a/payloads/Config/v0.6.8/config.plist b/payloads/Config/v0.6.8/config.plist index 29852249a..f71d4c870 100644 --- a/payloads/Config/v0.6.8/config.plist +++ b/payloads/Config/v0.6.8/config.plist @@ -576,6 +576,24 @@ PlistPath Contents/Info.plist + + Arch + x86_64 + Comment + SMC Spoof + Enabled + + MaxKernel + + MinKernel + + BundlePath + SMC-Spoof.kext + ExecutablePath + + PlistPath + Contents/Info.plist + Block @@ -626,6 +644,36 @@ Skip 0 + + Arch + x86_64 + Base + + Comment + Patch AppleSMC + Count + 1 + Enabled + + Find + c21jLXZlcnNpb24= + Identifier + com.apple.driver.AppleSMC + Limit + 0 + Mask + + MaxKernel + + MinKernel + + Replace + b2xkLXZlcnNpb24= + ReplaceMask + + Skip + 0 + Quirks diff --git a/payloads/Kexts/Misc/SMC-Spoof-v1.0.0.zip b/payloads/Kexts/Misc/SMC-Spoof-v1.0.0.zip new file mode 100644 index 000000000..53366033d Binary files /dev/null and b/payloads/Kexts/Misc/SMC-Spoof-v1.0.0.zip differ