Skip to content

Run a virtual iPhone on an Apple Silicon Mac.

Swift

Merge pull request #604 from 0xJacky/devicehub-screen

Lakr45fab516d695
diff --cc VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift
index 6ea59d6d,3dd822bf..e3a64a1a
--- a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift
+++ b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift
@@@ -1349,11 -1339,11 +1349,11 @@@ struct VPhoneCustomFirmwareInstaller
live: inout Set<String>,
failures: inout [String],
) {
- func enabled(_ id: String) -> Bool { plan?.isEnabled(id) ?? true }
+ func enabled(_ id: String) -> Bool { plan?.isEnabled(id) ?? !FirmwareGuestSystemPatchSet.settingsRowPatches.contains(id) }
let undoAbsolute = (dsc as NSString).appendingPathComponent(Self.dscUndoLogLeaf)
let undoRelative = "\(Self.dscCacheRelative)/\(Self.dscUndoLogLeaf)"
- let recorded = (try? system.readData(undoRelative))
- .flatMap { try? DyldSharedCacheUndoLog.decode($0) }?.patchIDs ?? []
+ let undoLog = (try? system.readData(undoRelative)).flatMap { try? DyldSharedCacheUndoLog.decode($0) }
+ let recorded = undoLog?.patchIDs ?? []
var revertable: [String] = []
for entry in dyld {