diff --git a/opencore_legacy_patcher/constants.py b/opencore_legacy_patcher/constants.py index c4a499a43..b9f3f2c2d 100644 --- a/opencore_legacy_patcher/constants.py +++ b/opencore_legacy_patcher/constants.py @@ -61,6 +61,7 @@ class Constants: self.apfs_zlib_v2_version: str = "12.6" # NoAVXFSCompressionTypeZlib (patched with AVXpel) self.multitouch_version: str = "1.0.0" # AppleUSBMultitouch self.topcase_version: str = "1.0.0" # AppleUSBTopCase + self.topcase_inj_version: str = "1.0.0" # AppleTopCaseInjector self.intel_82574l_version: str = "1.0.0" # Intel82574L self.intel_8254x_version: str = "1.0.0" # AppleIntel8254XEthernet self.apple_usb_11_injector: str = "1.0.0" # AppleUSBUHCI/OHCI @@ -450,6 +451,10 @@ class Constants: def top_case_path(self): return self.payload_kexts_path / Path(f"Misc/AppleUSBTopCase-v{self.topcase_version}.zip") + @property + def top_case_inj_path(self): + return self.payload_kexts_path / Path(f"Misc/AppleTopCaseInjector-v{self.topcase_inj_version}.zip") + @property def t1_key_store_path(self): return self.payload_kexts_path / Path(f"Misc/AppleKeyStore-v{self.t1_key_store_version}.zip") diff --git a/opencore_legacy_patcher/efi_builder/misc.py b/opencore_legacy_patcher/efi_builder/misc.py index d7c015040..87d4f161f 100644 --- a/opencore_legacy_patcher/efi_builder/misc.py +++ b/opencore_legacy_patcher/efi_builder/misc.py @@ -206,6 +206,7 @@ xw logging.info("- Enabling SPI-based top case support") support.BuildSupport(self.model, self.constants, self.config).enable_kext("AppleHSSPISupport.kext", self.constants.apple_spi_version, self.constants.apple_spi_path) support.BuildSupport(self.model, self.constants, self.config).enable_kext("AppleHSSPIHIDDriver.kext", self.constants.apple_spi_hid_version, self.constants.apple_spi_hid_path) + support.BuildSupport(self.model, self.constants, self.config).enable_kext("AppleTopCaseInjector.kext", self.constants.topcase_inj_version, self.constants.top_case_inj_path) #On-device probing diff --git a/payloads/Config/config.plist b/payloads/Config/config.plist index 005812531..eaa9a5379 100644 --- a/payloads/Config/config.plist +++ b/payloads/Config/config.plist @@ -1373,6 +1373,24 @@ PlistPath Contents/Info.plist + + Arch + x86_64 + BundlePath + AppleTopCaseInjector.kext + Comment + AppleTopCaseInjector - SPI + Enabled + + ExecutablePath + + MaxKernel + + MinKernel + 24.0.0 + PlistPath + Contents/Info.plist + Arch x86_64 diff --git a/payloads/Kexts/Misc/AppleTopCaseInjector-v1.0.0.zip b/payloads/Kexts/Misc/AppleTopCaseInjector-v1.0.0.zip new file mode 100644 index 000000000..34aac6db8 Binary files /dev/null and b/payloads/Kexts/Misc/AppleTopCaseInjector-v1.0.0.zip differ