Add AMFI detection on build

This commit is contained in:
Mykola Grymalyuk
2021-07-25 23:15:23 -06:00
parent eca98c65d3
commit bb09b0432f
2 changed files with 13 additions and 4 deletions
+3
View File
@@ -70,6 +70,9 @@ class OpenCoreLegacyPatcher:
if "-v" in (Utilities.get_nvram("boot-args") or ""):
self.constants.verbose_debug = True
if Utilities.amfi_status() is False:
self.constants.disable_amfi = True
self.constants.latebloom_delay, self.constants.latebloom_range, self.constants.latebloom_debug = Utilities.latebloom_detection(model)
# Check if running in RecoveryOS