From 03b8b4655041cccb6b099020265c4fcb9c297dc6 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk Date: Sat, 11 Jun 2022 20:03:55 -0600 Subject: [PATCH] build.py: Allow dyld sharred cache swapping on pre-Haswell --- CHANGELOG.md | 1 + payloads/Config/config.plist | 30 ++++++++++++++++++++++++++++++ resources/build.py | 5 ++++- 3 files changed, 35 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 388c06dba..6b2746e3f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ - Add USB map injection for dropped models - Resolve Ethernet support on MacPro3,1-5,1 - Fix VMM patch set + - Allow dyld sharred cache swapping on pre-Haswell ## 0.4.6 - Fix Bluetooth support in 12.4 Release diff --git a/payloads/Config/config.plist b/payloads/Config/config.plist index 6f876bb42..9f948cec9 100644 --- a/payloads/Config/config.plist +++ b/payloads/Config/config.plist @@ -1685,6 +1685,36 @@ Skip 0 + + Arch + x86_64 + Base + _authenticate_root_hash + Comment + Disable Root Hash validation + Count + 0 + Enabled + + Find + + Identifier + com.apple.filesystems.apfs + Limit + 0 + Mask + + MaxKernel + + MinKernel + 22.0.0 + Replace + uAAAAADD + ReplaceMask + + Skip + 0 + Quirks diff --git a/resources/build.py b/resources/build.py index ac1f7e567..ed846b606 100644 --- a/resources/build.py +++ b/resources/build.py @@ -1017,9 +1017,12 @@ def amd_patch(self, backlight_path): # This is however hidden behind kern.development, thus we patch _apfs_filevault_allowed to always return true # Note this function was added in 11.3 (20E232, 20.4), older builds do not support this (ie. 11.2.3) print("- Allowing FileVault on Root Patched systems") - self.get_item_by_kv(self.config["Kernel"]["Patch"], "Identifier", "com.apple.filesystems.apfs")["Enabled"] = True + self.get_item_by_kv(self.config["Kernel"]["Patch"], "Comment", "Force FileVault on Broken Seal")["Enabled"] = True # Lets us check in sys_patch.py if config supports FileVault self.config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"]["OCLP-Settings"] += " -allow_fv" + if smbios_data.smbios_dictionary[self.model]["CPU Generation"] <= cpu_data.cpu_data.ivy_bridge.value: + print("- Allowing swapped dyld shared cache in Ventura") + self.get_item_by_kv(self.config["Kernel"]["Patch"], "Comment", "Disable Root Hash validation")["Enabled"] = True if self.constants.disable_msr_power_ctl is True: print("- Disabling Firmware Throttling") if smbios_data.smbios_dictionary[self.model]["CPU Generation"] >= cpu_data.cpu_data.nehalem.value: