Skip to content

Commit

Permalink
Fix Music.app support
Browse files Browse the repository at this point in the history
Closes #497
  • Loading branch information
khronokernel committed Sep 23, 2021
1 parent a3208ac commit 32a0289
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Resources/Build.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,9 @@ def amd_patch(self, backlight_path):
print("- Disabling Library Validation")
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"
# 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:
print("- Disabling SecureBootModel")
self.config["Misc"]["Security"]["SecureBootModel"] = "Disabled"
Expand Down
5 changes: 5 additions & 0 deletions Resources/Constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def __init__(self):
self.debugenhancer_version = "1.0.4" # DebugEnhancer
self.cpufriend_version = "1.2.4" # CPUFriend
self.bluetool_version = "2.6.1" # BlueToolFixup
self.cslvfixup_version = "2.6.1" # CSLVFixup

## Apple
## https://www.apple.com
Expand Down Expand Up @@ -336,6 +337,10 @@ def debugenhancer_path(self):
@property
def bluetool_path(self):
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
def innie_path(self):
Expand Down
18 changes: 18 additions & 0 deletions payloads/Config/config.plist
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,24 @@
<key>PlistPath</key>
<string>Contents/Info.plist</string>
</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>
<key>Block</key>
<array/>
Expand Down
Binary file added payloads/Kexts/Acidanthera/CSLVFixup-v2.6.1.zip
Binary file not shown.

0 comments on commit 32a0289

Please sign in to comment.