Skip to content

Commit 65a918a

Browse files
committed
update VoodooHDA Patch
1 parent 0f8021a commit 65a918a

5 files changed

Lines changed: 13 additions & 4 deletions

File tree

oclp_r/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __init__(self) -> None:
2323

2424
# Patcher Versioning
2525
self.patcher_version: str = "3.1.8" # OCLP-R
26-
self.patcher_support_pkg_version: str = "1.11.4" # PatcherSupportPkg
26+
self.patcher_support_pkg_version: str = "1.11.5" # PatcherSupportPkg
2727
self.copyright_date: str = "Copyright © 2020-2026 Dortania and Hackdoc"
2828
self.patcher_name: str = "OCLP-R"
2929

oclp_r/sys_patch/patchsets/hardware/audio/hda_universal_audio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def _hdau_audio_patches(self) -> dict:
5858
"HDAUniversal.kext":"HDAUniversal",
5959
},
6060
},
61-
PatchType.REMOVE_SYSTEM_VOLUME:{
61+
PatchType.REMOVE_DATA_VOLUME:{
6262
"/Library/Extensions":[
6363
"VoodooHDA.kext",
6464
"AppleHDADisabler.kext",

oclp_r/sys_patch/patchsets/hardware/audio/modern_audio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def _modern_audio_patches(self) -> dict:
7373
"AppleHDA.kext": f"{self._constants.applehda_version}",
7474
},
7575
},
76-
PatchType.REMOVE_SYSTEM_VOLUME:{
76+
PatchType.REMOVE_DATA_VOLUME:{
7777
"/Library/Extensions":[
7878
"VoodooHDA.kext",
7979
"AppleHDADisabler.kext",

oclp_r/sys_patch/patchsets/hardware/audio/voodoo_audio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _voodoo_audio_patches(self) -> dict:
6666
else:
6767
return {
6868
"Voodoo Audio": {
69-
PatchType.OVERWRITE_SYSTEM_VOLUME: {
69+
PatchType.OVERWRITE_DATA_VOLUME: {
7070
"/Library/Extensions": {
7171
"VoodooHDA.kext":"11.3",
7272
"AppleHDADisabler.kext": "11.3" ,

oclp_r/sys_patch/sys_patch.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ def _unpatch_root_vol(self):
203203
self._clean_skylight_plugins()
204204
self._delete_nonmetal_enforcement()
205205
self.clean_launchpad()
206+
self._clean_up_voodoo_and_hdau()
206207
kernelcache.KernelCacheSupport(
207208
mount_location_data=self.mount_location_data,
208209
detected_os=self.constants.detected_os,
@@ -214,6 +215,14 @@ def _unpatch_root_vol(self):
214215
logging.info(self.trans["- Unpatching complete"])
215216
logging.info(self.trans["\nPlease reboot the machine for patches to take effect"])
216217

218+
def _clean_up_voodoo_and_hdau(self) -> None:
219+
try:
220+
subprocess_wrapper.run_as_root_and_verify(["/bin/rm", "-Rf", self.constants.hdau_kext_path], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
221+
subprocess_wrapper.run_as_root_and_verify(["/bin/rm", "-Rf", self.constants.voodoo_kext_path], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
222+
subprocess_wrapper.run_as_root_and_verify(["/bin/rm", "-Rf", "/Library/PreferencePanes/VoodooHDA.prefPane"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
223+
except:
224+
pass
225+
217226

218227
def _rebuild_root_volume(self) -> bool:
219228
"""

0 commit comments

Comments
 (0)