From a4bcefd748d92d17d484b3057a657ac019aa53a4 Mon Sep 17 00:00:00 2001 From: Mykola Grymalyuk <48863253+khronokernel@users.noreply.github.com> Date: Thu, 8 Jul 2021 15:22:35 -0600 Subject: [PATCH] Fix AMFI dectection --- Resources/Utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/Utilities.py b/Resources/Utilities.py index 54d6d49fc..710e09a3c 100644 --- a/Resources/Utilities.py +++ b/Resources/Utilities.py @@ -81,7 +81,7 @@ def patching_status(): amfi_1 = "amfi_get_out_of_my_way=0x1" amfi_2 = "amfi_get_out_of_my_way=1" - if get_nvram("boot-args", decode=False) and amfi_1 in get_nvram("boot-args", decode=False) or amfi_2 in get_nvram("boot-args", decode=False): + if get_nvram("boot-args", decode=False) and (amfi_1 in get_nvram("boot-args", decode=False) or amfi_2 in get_nvram("boot-args", decode=False)): amfi_enabled = False if get_nvram("HardwareModel", "94B73556-2197-4702-82A8-3E1337DAFBFB", decode=False) not in Constants.Constants.sbm_values: sbm_enabled = False