Revert "Use amfi=0x80 for macOS Tahoe 26"

This reverts commit 3de961af29.

# Conflicts:
#	Scripts/kext_maestro.py
This commit is contained in:
Onn
2025-12-05 16:32:34 +07:00
parent 8556d55211
commit 9b43955c3e
2 changed files with 3 additions and 7 deletions

View File

@@ -502,7 +502,7 @@ class ConfigProdigy:
return kernel_patch
def boot_args(self, hardware_report, macos_version, needs_oclp, kexts, config):
def boot_args(self, hardware_report, macos_version, kexts, config):
boot_args = [
"-v",
"debug=0x100",
@@ -513,10 +513,6 @@ class ConfigProdigy:
boot_args.append("npci=0x2000")
for kext in kexts:
if kext.name == "AMFIPass":
if needs_oclp and not kext.checked:
boot_args.append("amfi=0x80")
if not kext.checked:
continue
@@ -686,7 +682,7 @@ class ConfigProdigy:
config["Misc"]["Tools"] = []
del config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["#INFO (prev-lang:kbd)"]
config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] = self.boot_args(hardware_report, macos_version, needs_oclp, kexts, config)
config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["boot-args"] = self.boot_args(hardware_report, macos_version, kexts, config)
config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["csr-active-config"] = self.utils.hex_to_bytes(self.csr_active_config(macos_version))
config["NVRAM"]["Add"]["7C436110-AB2A-4BBB-A880-FE41995C9F82"]["prev-lang:kbd"] = self.utils.hex_to_bytes("")

View File

@@ -237,7 +237,7 @@ class KextMaestro:
selected_kexts.append("CpuTscSync")
if needs_oclp:
selected_kexts.extend(("AMFIPass", "RestrictEvents")) if self.utils.parse_darwin_version(macos_version) < self.utils.parse_darwin_version("25.0.0") else selected_kexts.append("RestrictEvents")
selected_kexts.extend(("AMFIPass", "RestrictEvents"))
for network_name, network_props in hardware_report.get("Network", {}).items():
device_id = network_props.get("Device ID")