Run a virtual iPhone on an Apple Silicon Mac.
Swift
Keep the VirtualAudio throw patches off iOS 18 guests
Maximilian Paß6aba8119d45e
diff --git a/Research/0_binary_patch_comparison.md b/Research/0_binary_patch_comparison.mdindex c81efe2e..ce8ed4be 100644--- a/Research/0_binary_patch_comparison.md+++ b/Research/0_binary_patch_comparison.md@@ -4913,6 +4913,10 @@ The 26.x kernels match neither shape, as before.`kernel-boot-vm_map_protect` finds no gate on 18.x, as on 26.5 and later.`txm-boot-precheck_admission` (the 27.0.1 fix) and `ibec-boot-bootx_precondition`have no 18.x site and are not needed there.+The four VirtualAudio throw patches (`speaker_route_throws`, `mute_set_throw`,+`speaker_protection_gate`, `volume_mode_precondition`) look for code iOS 18.6's+VirtualAudio does not have, and are gated on iOS 26. Audio on an 18.x guest is+not checked.The surface-compression keys `filesystem-boot-ios18_surface_compression` writesinto a `minimal` image live on the Data volume, which `cfw install` cannot reach.diff --git a/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareGuestSystemPatchSet.swift b/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareGuestSystemPatchSet.swiftindex 42d7d0a7..5d5266f3 100644--- a/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareGuestSystemPatchSet.swift+++ b/VPhoneExecutable/VPhoneCommand/FirmwarePatcher/PatchSets/FirmwareGuestSystemPatchSet.swift@@ -659,6 +659,7 @@ public enum FirmwareGuestSystemPatchSet {publishes is what makes the walk reach that throw, so the two patches go together.""",target: .guestExecutable(path: "/Library/Audio/Plug-Ins/HAL/VirtualAudio.plugin/VirtualAudio"),+ applicability: VPhonePatchApplicability(iOSBase: .atLeast(major: 26, minor: 0)),),VPhonePatchDeclaration(identifier: virtualAudioMuteSetThrow,@@ -671,6 +672,7 @@ public enum FirmwareGuestSystemPatchSet {is silent. With the throw quieted, the route survives on the virtio device.""",target: .guestExecutable(path: "/Library/Audio/Plug-Ins/HAL/VirtualAudio.plugin/VirtualAudio"),+ applicability: VPhonePatchApplicability(iOSBase: .atLeast(major: 26, minor: 0)),),VPhonePatchDeclaration(identifier: virtualAudioSpeakerProtectionGate,@@ -684,6 +686,7 @@ public enum FirmwareGuestSystemPatchSet {has the same gate, and declines every recording app's route; it is opened too.""",target: .guestExecutable(path: "/Library/Audio/Plug-Ins/HAL/VirtualAudio.plugin/VirtualAudio"),+ applicability: VPhonePatchApplicability(iOSBase: .atLeast(major: 26, minor: 0)),),VPhonePatchDeclaration(identifier: virtualAudioVolumeModePrecondition,@@ -698,6 +701,7 @@ public enum FirmwareGuestSystemPatchSet {it already built.""",target: .guestExecutable(path: "/Library/Audio/Plug-Ins/HAL/VirtualAudio.plugin/VirtualAudio"),+ applicability: VPhonePatchApplicability(iOSBase: .atLeast(major: 26, minor: 0)),),VPhonePatchDeclaration(identifier: virtualAudioDeviceStateNullGate,