diff --git a/Resources/SysPatch.py b/Resources/SysPatch.py index 2c53b69f3..d01f0c822 100644 --- a/Resources/SysPatch.py +++ b/Resources/SysPatch.py @@ -409,6 +409,11 @@ set million colour before rebooting""" ) Utilities.process_status(self.elevated(["chmod", "755", f"{self.mount_lauchd}/IOHID-Fixup.plist"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)) Utilities.process_status(self.elevated(["chown", "root:wheel", f"{self.mount_lauchd}/IOHID-Fixup.plist"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)) + else: + print("- Disabling Library Validation") + Utilities.process_status( + self.elevated(["defaults", "write", "/Library/Preferences/com.apple.security.libraryvalidation.plist", "-bool", "true"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + ) def gpu_accel_legacy_extended_ts2(self): print("- Merging TeraScale 2 legacy Frameworks") diff --git a/Resources/Utilities.py b/Resources/Utilities.py index ddcf20f2e..ab5776fe1 100644 --- a/Resources/Utilities.py +++ b/Resources/Utilities.py @@ -153,7 +153,11 @@ def patching_status(os_sip, os): gen6_kext = "/System/Library/Extension/AppleIntelHDGraphics.kext" gen7_kext = "/System/Library/Extension/AppleIntelHD3000Graphics.kext" - amfi_enabled = amfi_status() + if os > Constants.Constants().catalina: + amfi_enabled = amfi_status() + else: + # Catalina and older supports individually disabling Library Validation + amfi_enabled = False if get_nvram("HardwareModel", "94B73556-2197-4702-82A8-3E1337DAFBFB", decode=False) not in Constants.Constants.sbm_values: sbm_enabled = False