From dc6b14f9625291d6e356ad5fc870ed53a0de1991 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk <48863253+khronokernel@users.noreply.github.com> Date: Wed, 2 Jun 2021 09:12:43 -0600 Subject: [PATCH] Avoid patching on macOS 12 Can harmfully damage the OS if not properly validated first --- Resources/SysPatch.py | 4 ++-- payloads/Config/config.plist | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Resources/SysPatch.py b/Resources/SysPatch.py index 741f54390..79bf56a29 100644 --- a/Resources/SysPatch.py +++ b/Resources/SysPatch.py @@ -470,7 +470,7 @@ class PatchSysVolume: print("Root Patching not required for this machine!") elif self.model not in ModelArray.SupportedSMBIOS11 and self.constants.assume_legacy is False: print("Cannot run on this machine, model is unsupported!") - elif self.constants.detected_os < self.constants.big_sur: + elif self.constants.detected_os != self.constants.big_sur: print("Cannot run on this OS, requires macOS 11!") else: self.check_status() @@ -508,7 +508,7 @@ class PatchSysVolume: def start_unpatch(self): if self.constants.custom_model is not None: print("Unpatching must be done on target machine!") - elif self.constants.detected_os < self.constants.big_sur: + elif self.constants.detected_os != self.constants.big_sur: print("Cannot run on this OS, requires macOS 11!") else: self.check_status() diff --git a/payloads/Config/config.plist b/payloads/Config/config.plist index f499c01dc..25c5e1391 100644 --- a/payloads/Config/config.plist +++ b/payloads/Config/config.plist @@ -1144,7 +1144,7 @@ SystemAudioVolume Rg== boot-args - keepsyms=1 debug=0x100 -no_compat_check + keepsyms=1 debug=0x100 -no_compat_check -lilubetaall csr-active-config AAAAAA==