diff --git a/OpenCore-Patcher.command b/OpenCore-Patcher.command index 3c277bc1c..b6c91b811 100755 --- a/OpenCore-Patcher.command +++ b/OpenCore-Patcher.command @@ -3,7 +3,10 @@ from __future__ import print_function -import subprocess, sys, time, platform +import subprocess +import sys +import time +import platform from Resources import build, ModelArray, Constants, SysPatch, utilities, CliMenu @@ -85,7 +88,6 @@ system_profiler SPHardwareDataType | grep 'Model Identifier' - Khronokernel:\tWriting and maintaining this patcher - DhinakG:\t\tWriting and maintaining this patcher - Syncretic:\t\tAAAMouSSE and telemetrap - - Slice:\t\tVoodooHDA - cdf:\t\tNightShiftEnabler"""]).start() def PatchVolume(self): diff --git a/Resources/SysPatch.py b/Resources/SysPatch.py index 7c11286a4..dbe5e8f8e 100644 --- a/Resources/SysPatch.py +++ b/Resources/SysPatch.py @@ -158,8 +158,8 @@ class PatchSysVolume: # Start Patch engine if self.model in ModelArray.LegacyAudio: print("- Attempting AppleHDA Patch") - subprocess.run(f"sudo rm -R '{self.mount_extensions}/AppleHDA.kext'".split(), stdout=subprocess.PIPE).stdout.decode().strip().encode() - subprocess.run(f"sudo cp -R '{self.constants.applehda_path}' '{self.mount_extensions}'".split(), stdout=subprocess.PIPE).stdout.decode().strip().encode() + subprocess.run(f"sudo rm -R {self.mount_extensions}/AppleHDA.kext".split(), stdout=subprocess.PIPE).stdout.decode().strip().encode() + subprocess.run(f"sudo cp -R {self.constants.applehda_path} {self.mount_extensions}".split(), stdout=subprocess.PIPE).stdout.decode().strip().encode() rebuild_required = True if (self.model in ModelArray.LegacyGPU) and (Path(self.constants.hiddhack_path).exists()): @@ -180,15 +180,15 @@ class PatchSysVolume: print("- Creating backup snapshot of user data (This may take some time)") subprocess.run("tmutil snapshot".split(), stdout=subprocess.PIPE).stdout.decode().strip().encode() print("- Reverting to last signed APFS snapshot") - subprocess.run(f"sudo bless --mount '{self.mount_location}' --bootefi --last-sealed-snapshot".split(), stdout=subprocess.PIPE).stdout.decode().strip().encode() + subprocess.run(f"sudo bless --mount {self.mount_location} --bootefi --last-sealed-snapshot".split(), stdout=subprocess.PIPE).stdout.decode().strip().encode() def rebuild_snapshot(self): input("Press [ENTER] to continue with cache rebuild") print("- Rebuilding Kernel Cache (This may take some time)") - subprocess.run(f"sudo kmutil install --volume-root '{self.mount_location}' --update-all".split(), stdout=subprocess.PIPE).stdout.decode().strip().encode() + subprocess.run(f"sudo kmutil install --volume-root {self.mount_location} --update-all".split(), stdout=subprocess.PIPE).stdout.decode().strip().encode() input("Press [ENTER] to continue with snapshotting") print("- Creating new APFS snapshot") - subprocess.run(f"sudo bless --folder '{self.mount_location}/System/Library/CoreServices' --bootefi --create-snapshot".split(), stdout=subprocess.PIPE).stdout.decode().strip().encode() + subprocess.run(f"sudo bless --folder {self.mount_location}/System/Library/CoreServices --bootefi --create-snapshot".split(), stdout=subprocess.PIPE).stdout.decode().strip().encode() def unmount_drive(self): print("- Unmounting Root Volume (Don't worry if this fails)") diff --git a/docs/LICENSE.md b/docs/LICENSE.md index 8da38bf58..cae1804ad 100644 --- a/docs/LICENSE.md +++ b/docs/LICENSE.md @@ -10,8 +10,6 @@ This patcher is made of multiple external applications from different people and * [CPUFriend](https://github.com/acidanthera/CPUFriend/blob/master/LICENSE) * [RestrictEvents](https://github.com/acidanthera/RestrictEvents/blob/master/LICENSE.txt) * [NightShiftEnabler](https://github.com/cdf/NightShiftEnabler/blob/master/LICENSE.txt) -* Public Domain - * [VoodooHDA](https://sourceforge.net/projects/voodoohda/) * All rights reserved to respective authors * [AAAMouSSE](https://forums.macrumors.com/threads/mp3-1-others-sse-4-2-emulation-to-enable-amd-metal-driver.2206682/) - Syncretic * [telemetrap](https://forums.macrumors.com/threads/mp3-1-others-sse-4-2-emulation-to-enable-amd-metal-driver.2206682/post-28447707) - Syncretic diff --git a/payloads/Apple/Extensions/misc-kexts/AppleBCM5701Ethernet.kext/Contents/Info.plist b/payloads/Apple/Extensions/misc-kexts/AppleBCM5701Ethernet.kext/Contents/Info.plist deleted file mode 100644 index 5fdcaab90..000000000 --- a/payloads/Apple/Extensions/misc-kexts/AppleBCM5701Ethernet.kext/Contents/Info.plist +++ /dev/null @@ -1,148 +0,0 @@ - - - - - BuildMachineOSBuild - 18A391024 - CFBundleDevelopmentRegion - English - CFBundleExecutable - AppleBCM5701Ethernet - CFBundleGetInfoString - Apple Broadcom 57XX Ethernet 10.3.5, Copyright 2002-2013 Apple Inc. - CFBundleIdentifier - com.apple.iokit.AppleBCM5701Ethernet - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - AppleBCM5701Ethernet - CFBundlePackageType - KEXT - CFBundleShortVersionString - 10.3.5 - CFBundleSignature - ???? - CFBundleSupportedPlatforms - - MacOSX - - CFBundleVersion - 10.3.5 - DTCompiler - com.apple.compilers.llvm.clang.1_0 - DTPlatformBuild - 11O62d - DTPlatformName - macosx - DTPlatformVersion - 10.15.6 - DTSDKBuild - 19G829 - DTSDKName - macosx10.15internal - DTXcode - 1140 - DTXcodeBuild - 11O62d - EXTMemorySupport - - IOKitPersonalities - - PCI Matching - - CFBundleIdentifier - com.apple.iokit.AppleBCM5701Ethernet - Configuration Data - - Batch_ARP_Enable - - EnableRxHwCksum - - EnableTxHwCksum - - JumboRcvThreshold - 5 - MTU - 9018 - PassUpCRC - - RxCoalescingTicks - 25 - RxCoalescingTicksDuringInt - 120 - RxJumboRcvBuffers - 128 - RxMaxCoalescedFrames - 15 - RxMaxCoalescedFramesDuringInt - 15 - RxStdRcvBuffers - 510 - StdRcvThreshold - 8 - TxCoalescingTicks - 150 - TxCoalescingTicksDuringInt - 150 - TxMaxCoalescedFrames - 64 - TxMaxCoalescedFramesDuringInt - 64 - TxPacketQueueSize - 1024 - TxSendBuffers - 500 - WOL - Enable - - IOClass - BCM5701Enet - IOMatchCategory - IODefaultMatchCategory - IONameMatch - - pci14e4,1684 - pci14e4,16b0 - pci14e4,16b4 - pci14e4,1682 - pci14e4,1686 - - IOPCITunnelCompatible - - IOPlatformPanicAction - 89000 - IOProviderClass - IOPCIDevice - - - LSMinimumSystemVersion - 10.15 - NSHumanReadableCopyright - Copyright © 2002-2013 Apple Inc. All rights reserved. - OSBundleLibraries - - com.apple.driver.mDNSOffloadUserClient - 1.0.0d6 - com.apple.iokit.IOACPIFamily - 1.2.0 - com.apple.iokit.IOEthernetAVBController - 1.0.3b2 - com.apple.iokit.IONetworkingFamily - 1.5.0 - com.apple.iokit.IOPCIFamily - 1.6 - com.apple.kpi.bsd - 8.0.0b2 - com.apple.kpi.iokit - 8.0.0b2 - com.apple.kpi.libkern - 8.0.0b2 - com.apple.kpi.mach - 8.0.0b2 - com.apple.kpi.private - 13.0.0 - - OSBundleRequired - Network-Root - - diff --git a/payloads/Apple/Extensions/misc-kexts/AppleBCM5701Ethernet.kext/Contents/MacOS/AppleBCM5701Ethernet b/payloads/Apple/Extensions/misc-kexts/AppleBCM5701Ethernet.kext/Contents/MacOS/AppleBCM5701Ethernet deleted file mode 100755 index d59b3a746..000000000 Binary files a/payloads/Apple/Extensions/misc-kexts/AppleBCM5701Ethernet.kext/Contents/MacOS/AppleBCM5701Ethernet and /dev/null differ diff --git a/payloads/Apple/Extensions/misc-kexts/AppleBCM5701Ethernet.kext/Contents/_CodeSignature/CodeResources b/payloads/Apple/Extensions/misc-kexts/AppleBCM5701Ethernet.kext/Contents/_CodeSignature/CodeResources deleted file mode 100644 index 4779514f3..000000000 --- a/payloads/Apple/Extensions/misc-kexts/AppleBCM5701Ethernet.kext/Contents/_CodeSignature/CodeResources +++ /dev/null @@ -1,128 +0,0 @@ - - - - - files - - version.plist - - V+EvCNOJrCzRE72b2VJVdH1Vjx4= - - - files2 - - version.plist - - hash2 - - PVjFit3cgKhkY9C6TjRWp4Pj7Y4iPCeP8elbAFMOPRc= - - - - rules - - ^Resources/ - - ^Resources/.*\.lproj/ - - optional - - weight - 1000 - - ^Resources/.*\.lproj/locversion.plist$ - - omit - - weight - 1100 - - ^Resources/Base\.lproj/ - - weight - 1010 - - ^version.plist$ - - - rules2 - - .*\.dSYM($|/) - - weight - 11 - - ^(.*/)?\.DS_Store$ - - omit - - weight - 2000 - - ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/ - - nested - - weight - 10 - - ^.* - - ^Info\.plist$ - - omit - - weight - 20 - - ^PkgInfo$ - - omit - - weight - 20 - - ^Resources/ - - weight - 20 - - ^Resources/.*\.lproj/ - - optional - - weight - 1000 - - ^Resources/.*\.lproj/locversion.plist$ - - omit - - weight - 1100 - - ^Resources/Base\.lproj/ - - weight - 1010 - - ^[^/]+$ - - nested - - weight - 10 - - ^embedded\.provisionprofile$ - - weight - 20 - - ^version\.plist$ - - weight - 20 - - - - diff --git a/payloads/Apple/Extensions/misc-kexts/AppleBCM5701Ethernet.kext/Contents/version.plist b/payloads/Apple/Extensions/misc-kexts/AppleBCM5701Ethernet.kext/Contents/version.plist deleted file mode 100644 index 6e1749ffc..000000000 --- a/payloads/Apple/Extensions/misc-kexts/AppleBCM5701Ethernet.kext/Contents/version.plist +++ /dev/null @@ -1,18 +0,0 @@ - - - - - BuildAliasOf - AppleBroadcom570X - BuildVersion - 113 - CFBundleShortVersionString - 10.3.5 - CFBundleVersion - 10.3.5 - ProjectName - AppleBroadcom570X - SourceVersion - 1067120002000000 - - diff --git a/payloads/Icon/Resources.zip b/payloads/Icon/Resources.zip index ce48acee2..74cf3e3e3 100644 Binary files a/payloads/Icon/Resources.zip and b/payloads/Icon/Resources.zip differ diff --git a/payloads/Kexts/Audio/VoodooHDA-v296.zip b/payloads/Kexts/Audio/VoodooHDA-v296.zip deleted file mode 100644 index d3754511f..000000000 Binary files a/payloads/Kexts/Audio/VoodooHDA-v296.zip and /dev/null differ