mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-21 06:30:52 +10:00
Fix Music.app support
Closes https://github.com/dortania/OpenCore-Legacy-Patcher/issues/497
This commit is contained in:
@@ -683,6 +683,9 @@ class BuildOpenCore:
|
|||||||
print("- Disabling Library Validation")
|
print("- Disabling Library Validation")
|
||||||
self.get_item_by_kv(self.config["Kernel"]["Patch"], "Comment", "Disable Library Validation Enforcement")["Enabled"] = True
|
self.get_item_by_kv(self.config["Kernel"]["Patch"], "Comment", "Disable Library Validation Enforcement")["Enabled"] = True
|
||||||
self.config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"]["OCLP-Settings"] += " -allow_amfi"
|
self.config["NVRAM"]["Add"]["4D1FDA02-38C7-4A6A-9CC6-4BCCA8B30102"]["OCLP-Settings"] += " -allow_amfi"
|
||||||
|
# CSLVFixup simply patches out __RESTRICT and __restrict out of the Music.app Binary
|
||||||
|
# Ref: https://pewpewthespells.com/blog/blocking_code_injection_on_ios_and_os_x.html
|
||||||
|
self.enable_kext("CSLVFixup.kext", self.constants.cslvfixup_version, self.constants.cslvfixup_path)
|
||||||
if self.constants.secure_status is False:
|
if self.constants.secure_status is False:
|
||||||
print("- Disabling SecureBootModel")
|
print("- Disabling SecureBootModel")
|
||||||
self.config["Misc"]["Security"]["SecureBootModel"] = "Disabled"
|
self.config["Misc"]["Security"]["SecureBootModel"] = "Disabled"
|
||||||
|
|||||||
@@ -35,6 +35,7 @@ class Constants:
|
|||||||
self.debugenhancer_version = "1.0.4" # DebugEnhancer
|
self.debugenhancer_version = "1.0.4" # DebugEnhancer
|
||||||
self.cpufriend_version = "1.2.4" # CPUFriend
|
self.cpufriend_version = "1.2.4" # CPUFriend
|
||||||
self.bluetool_version = "2.6.1" # BlueToolFixup
|
self.bluetool_version = "2.6.1" # BlueToolFixup
|
||||||
|
self.cslvfixup_version = "2.6.1" # CSLVFixup
|
||||||
|
|
||||||
## Apple
|
## Apple
|
||||||
## https://www.apple.com
|
## https://www.apple.com
|
||||||
@@ -337,6 +338,10 @@ class Constants:
|
|||||||
def bluetool_path(self):
|
def bluetool_path(self):
|
||||||
return self.payload_kexts_path / Path(f"Acidanthera/BlueToolFixup-v{self.bluetool_version}.zip")
|
return self.payload_kexts_path / Path(f"Acidanthera/BlueToolFixup-v{self.bluetool_version}.zip")
|
||||||
|
|
||||||
|
@property
|
||||||
|
def cslvfixup_path(self):
|
||||||
|
return self.payload_kexts_path / Path(f"Acidanthera/CSLVFixup-v{self.cslvfixup_version}.zip")
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def innie_path(self):
|
def innie_path(self):
|
||||||
return self.payload_kexts_path / Path(f"Misc/Innie-v{self.innie_version}.zip")
|
return self.payload_kexts_path / Path(f"Misc/Innie-v{self.innie_version}.zip")
|
||||||
|
|||||||
@@ -952,6 +952,24 @@
|
|||||||
<key>PlistPath</key>
|
<key>PlistPath</key>
|
||||||
<string>Contents/Info.plist</string>
|
<string>Contents/Info.plist</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>Arch</key>
|
||||||
|
<string>x86_64</string>
|
||||||
|
<key>BundlePath</key>
|
||||||
|
<string>CSLVFixup.kext</string>
|
||||||
|
<key>Comment</key>
|
||||||
|
<string>Fix Music.app</string>
|
||||||
|
<key>Enabled</key>
|
||||||
|
<false/>
|
||||||
|
<key>ExecutablePath</key>
|
||||||
|
<string>Contents/MacOS/CSLVFixup</string>
|
||||||
|
<key>MaxKernel</key>
|
||||||
|
<string>20.99.99</string>
|
||||||
|
<key>MinKernel</key>
|
||||||
|
<string>20.0.0</string>
|
||||||
|
<key>PlistPath</key>
|
||||||
|
<string>Contents/Info.plist</string>
|
||||||
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>Block</key>
|
<key>Block</key>
|
||||||
<array/>
|
<array/>
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user