|
20 | 20 | except ImportError:
|
21 | 21 | raise Exception("Missing requests library!\nPlease run the following before starting OCLP:\npip3 install requests")
|
22 | 22 |
|
23 |
| -from resources import Constants, ioreg, device_probe |
| 23 | +from resources import constants, ioreg |
24 | 24 | from data import sip_data
|
25 | 25 |
|
26 | 26 |
|
@@ -130,7 +130,7 @@ def amfi_status():
|
130 | 130 | return True
|
131 | 131 |
|
132 | 132 | def check_kext_loaded(kext_name, os_version):
|
133 |
| - if os_version > Constants.Constants().catalina: |
| 133 | + if os_version > constants.Constants().catalina: |
134 | 134 | kext_loaded = subprocess.run(["kmutil", "showloaded", "--list-only", "--variant-suffix", "release"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
135 | 135 | else:
|
136 | 136 | kext_loaded = subprocess.run(["kextstat", "-l"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
@@ -188,19 +188,19 @@ def patching_status(os_sip, os):
|
188 | 188 | gen6_kext = "/System/Library/Extension/AppleIntelHDGraphics.kext"
|
189 | 189 | gen7_kext = "/System/Library/Extension/AppleIntelHD3000Graphics.kext"
|
190 | 190 |
|
191 |
| - if os > Constants.Constants().catalina: |
| 191 | + if os > constants.Constants().catalina: |
192 | 192 | amfi_enabled = amfi_status()
|
193 | 193 | else:
|
194 | 194 | # Catalina and older supports individually disabling Library Validation
|
195 | 195 | amfi_enabled = False
|
196 | 196 |
|
197 |
| - if get_nvram("HardwareModel", "94B73556-2197-4702-82A8-3E1337DAFBFB", decode=False) not in Constants.Constants.sbm_values: |
| 197 | + if get_nvram("HardwareModel", "94B73556-2197-4702-82A8-3E1337DAFBFB", decode=False) not in constants.Constants.sbm_values: |
198 | 198 | sbm_enabled = False
|
199 | 199 |
|
200 | 200 | if get_nvram("csr-active-config", decode=False) and csr_decode(get_nvram("csr-active-config", decode=False), os_sip) is False:
|
201 | 201 | sip_enabled = False
|
202 | 202 |
|
203 |
| - if os > Constants.Constants().catalina and not check_filevault_skip(): |
| 203 | + if os > constants.Constants().catalina and not check_filevault_skip(): |
204 | 204 | # Assume non-OCLP Macs do not have our APFS seal patch
|
205 | 205 | fv_status: str = subprocess.run("fdesetup status".split(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout.decode()
|
206 | 206 | if "FileVault is Off" in fv_status:
|
|
0 commit comments