MCPcopy Create free account

hub / github.com/Lakr233/vphone-cli / functions

Functions1,296 in github.com/Lakr233/vphone-cli

Methodemit
(_ offset: Int, _ patchBytes: Data, patchID: String, description: String)
sources/FirmwarePatcher/TXM/TXMPatcher.swift:54
Methodemit
Record a code patch (disassembles before/after for logging).
sources/FirmwarePatcher/IBoot/IBootPatcher.swift:107
Methodemit
Record a patch at the given file offset.
sources/FirmwarePatcher/Kernel/KernelPatcherBase.swift:77
MethodemitDebugger
Emit the two patch instructions at the function entry point.
sources/FirmwarePatcher/Kernel/Patches/KernelPatchDebugger.swift:59
MethodemitString
Record a string/data patch (not disassemblable).
sources/FirmwarePatcher/IBoot/IBootPatcher.swift:133
MethodemptyLibraryThrows
()
tests/VPhoneCoreTests/VMPickerTests.swift:26
MethodemptyStringsTreatedAsUnset
()
tests/VPhoneCoreTests/FirmwarePickerTests.swift:49
MethodencodeADRP
()
tests/FirmwarePatcherTests/FirmwarePatcherTests.swift:131
MethodencodeAND_W8_W8_mask
AND W8, W8, #imm (32-bit logical immediate). For mask 0xFFFFC0FF: encodes as NOT(0x3F00) = elements with inverted bits
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchCredLabel.swift:318
MethodencodeAddImm12
()
tests/FirmwarePatcherTests/FirmwarePatcherTests.swift:138
MethodencodeAuthRebaseLike
Retarget an auth-rebase chained pointer while preserving PAC metadata. Auth-rebase format (high bit set): [63]=1, [62:32]=auth/diversity bits, [31:0]
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchSandboxExtended.swift:218
MethodencodeAuthRebaseLike
Retarget an auth-rebase chained pointer while preserving PAC metadata.
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchHookCredLabel.swift:457
MethodencodeAuthRebaseTarget
(origVal: UInt64, targetFoff: Int)
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchFpfsScopedOpen.swift:85
MethodencodeBBackward
()
tests/FirmwarePatcherTests/FirmwarePatcherTests.swift:100
MethodencodeBForward
()
tests/FirmwarePatcherTests/FirmwarePatcherTests.swift:92
MethodencodeBL
Encode a BL instruction.
sources/FirmwarePatcher/Kernel/KernelJBPatcherBase.swift:186
MethodencodeBLForward
()
tests/FirmwarePatcherTests/FirmwarePatcherTests.swift:108
MethodencodeBOutOfRange
()
tests/FirmwarePatcherTests/FirmwarePatcherTests.swift:125
MethodencodeCBZ_X26_skip16
CBZ X26, #0x10 — skip 4 instructions if x26 == 0
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchCredLabel.swift:287
MethodencodeChainedAuthPtr
Encode an arm64e kernel cache auth-rebase chained fixup pointer.
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchKcall10.swift:279
MethodencodeLDR_W8_X26
LDR W8, [X26]
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchCredLabel.swift:299
MethodencodeMovXFromZR
()
tests/FirmwarePatcherTests/FirmwarePatcherTests.swift:145
MethodencodeMovXIsRegisterMove
()
tests/FirmwarePatcherTests/FirmwarePatcherTests.swift:155
MethodencodeMovXZeroForLdrbDest
Encode `mov x<rd>, xzr` where `rd` is the destination register of the LDRB at `off` (the role-state byte load). Zeroing the loaded register neutralize
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchMacMount.swift:171
MethodencodeMovzWClearsTSSFCheckEntitlement
()
tests/FirmwarePatcherTests/FirmwarePatcherTests.swift:184
MethodencodeORR_W8_W8_imm
ORR W8, W8, #0xC (CS_GET_TASK_ALLOW | CS_INSTALLER)
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchCredLabel.swift:341
MethodencodeSTR_W8_X26
STR W8, [X26]
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchCredLabel.swift:309
MethodencodeTestBitBranchRoundTrips
()
tests/FirmwarePatcherTests/FirmwarePatcherTests.swift:160
MethodencodeU32k
(_ value: UInt32)
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchKcall10.swift:314
MethodencodedMovW8
Encode `mov w8, #<imm16>` (MOVZ W8, #imm) as 4 little-endian bytes. MOVZ W encoding: [31]=0 sf, [30:29]=10, [28:23]=100101, [22:21]=hw=00, [20:5]=imm1
sources/FirmwarePatcher/IBoot/IBootPatcher.swift:163
MethodencodedMovkW8Lsl16
Encode `movk w8, #<imm16>, lsl #16` (MOVK W8, #imm, LSL #16). MOVK W: [31]=0, [30:29]=11, [28:23]=100101, [22:21]=hw=01, [20:5]=imm16, [4:0]=Rd=8
sources/FirmwarePatcher/IBoot/IBootPatcher.swift:171
MethodencodesToJSON
()
tests/VPhoneCoreTests/BundleReportTests.swift:36
MethodencryptAeaFile
(_ path: URL, output: URL, key: String, metadata: [String: String])
sources/FirmwarePatcher/Filesystem/CryptexFilesystemPatcher.swift:791
MethodendPreviewPanelControl
(_ panel: QLPreviewPanel!)
sources/vphone-cli/VPhoneQuickLookController.swift:70
Methodentry
Deep-copy a single Manifest entry from a build identity.
sources/FirmwarePatcher/Manifest/FirmwareManifest.swift:189
MethodenumerateBitGetters
Enumerate 4-insn `ADRP + LDRB + UBFX (width=1) + RET` functions — the "return one bit of one byte global" shape used as the precondition feature-check
sources/FirmwarePatcher/IBoot/IBootPatcher.swift:736
MethodenumerateHashGetters
Enumerate 5-insn `MOVZ + 3×MOVK + RET` functions assembling a 64-bit constant into a single X register (used by iBoot's panic/log calls to load the so
sources/FirmwarePatcher/IBoot/IBootPatcher.swift:704
MethodenumeratePanicBlocks
Enumerate "panic block" call sites: 3-insn sequence of `BL <hash_getter>; MOV W?, #<imm>; BL <anything>`. Returns the file offset of the first BL in e
sources/FirmwarePatcher/IBoot/IBootPatcher.swift:761
MethodeofAborts
()
tests/VPhoneCoreTests/FirmwarePickerTests.swift:128
MethodeofAborts
()
tests/VPhoneCoreTests/VMPickerTests.swift:56
Methoderr
(_ s: String)
sources/vphone-cli/VPhoneVMSelection.swift:6
Methoderr
(_ s: String)
sources/vphone-cli/VPhoneFirmwareSelection.swift:6
MethodeveryPairingIsPopulated
()
tests/VPhoneCoreTests/FirmwarePickerTests.swift:17
MethodexportAndImport
(_ compression: VPhoneBundleOps.ExportCompression?)
tests/VPhoneCoreTests/BundleOpsTests.swift:374
MethodexportAndImportReportProgress
()
tests/VPhoneCoreTests/BundleOpsTests.swift:432
MethodexportDefaultsToFastZstd
()
tests/VPhoneCoreTests/BundleOpsTests.swift:396
MethodexportExcludesRegenerableStagingFiles
()
tests/VPhoneCoreTests/BundleOpsTests.swift:312
MethodexportExcludesRestoreDirByDefault
()
tests/VPhoneCoreTests/BundleOpsTests.swift:291
MethodexportFastProducesZstdAndRoundTrips
()
tests/VPhoneCoreTests/BundleOpsTests.swift:402
MethodexportMaxProducesXzAndRoundTrips
()
tests/VPhoneCoreTests/BundleOpsTests.swift:408
MethodexportThenImportRoundTrips
()
tests/VPhoneCoreTests/BundleOpsTests.swift:223
MethodexportToDirectoryAutoNamesWithExtension
()
tests/VPhoneCoreTests/BundleOpsTests.swift:414
MethodextractChainAddrDiv
(_ raw: UInt64)
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchKcall10.swift:304
MethodextractChainDiversity
(_ raw: UInt64)
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchKcall10.swift:300
MethodextractChainKey
(_ raw: UInt64)
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchKcall10.swift:308
MethodextractChainNext
(_ raw: UInt64)
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchKcall10.swift:296
MethodextractECID
(from machineIdentifier: VZMacMachineIdentifier)
research/VPhoneVirtualMachineRefactored.swift:348
MethodextractPatchedData
Extract the patched data from a patcher's internal buffer. All current patchers own a ``BinaryBuffer`` whose `.data` property holds the mutated bytes
sources/FirmwarePatcher/Pipeline/FirmwarePipeline.swift:573
MethodextractW1ImmNearCall
Best-effort: look back up to 0x20 bytes from a BL for the last `mov w1, #imm`.
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchSyscallmask.swift:160
MethodfailAllPending
(with error: ControlError)
sources/vphone-cli/VPhoneControl.swift:89
MethodfakeROM
()
tests/VPhoneCoreTests/BundleOpsTests.swift:12
MethodfieldAccessors
()
tests/FirmwarePatcherTests/FirmwarePatcherTests.swift:208
MethodfileByteSize
(_ url: URL)
sources/VPhoneCore/VPhoneBundleOps.swift:307
MethodfileIcon
(for name: String)
sources/vphone-cli/VPhoneRemoteFile.swift:62
MethodfileOffsetToVA
Convert file offset to virtual address.
sources/FirmwarePatcher/Kernel/KernelPatcherBase.swift:357
MethodfindAll
()
sources/FirmwarePatcher/Filesystem/CryptexFilesystemPatcher.swift:74
MethodfindAll
()
sources/FirmwarePatcher/Manifest/ManifestHashPatcher.swift:30
MethodfindAll
()
sources/FirmwarePatcher/DeviceTree/DeviceTreePatcher.swift:691
MethodfindAll
()
sources/FirmwarePatcher/Kernel/KernelEXPPatcher.swift:22
MethodfindAll
()
tests/FirmwarePatcherTests/FirmwarePatcherTests.swift:315
MethodfindAll
()
tests/FirmwarePatcherTests/FirmwarePatcherTests.swift:351
MethodfindAllStrings
Find all occurrences of a C string in the data.
sources/FirmwarePatcher/Binary/BinaryBuffer.swift:131
MethodfindBLToPanic
Find the first BL to `_panic` in `range`. Returns the file offset or nil. Reads from `buffer.original` (Python: `_rd32(self.raw, off)` via `_is_bl`).
sources/FirmwarePatcher/Kernel/KernelJBPatcherBase.swift:212
MethodfindBlCbzGate
Scan [funcStart, funcEnd) for `BL <check> ; CBZ W0, <allow> ; MOV W0, #2`. Returns (blOff, allowTarget) on success.
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchLoadDylinker.swift:55
MethodfindBootArgsAdrp
Find ADRP+ADD x2 pointing to the format string at fmtOff. Python: `_find_boot_args_adrp()`
sources/FirmwarePatcher/IBoot/IBootPatcher.swift:396
MethodfindBootArgsFmt
Find the standalone "%s" format string near "rd=md0" or "BootArgs". Python: `_find_boot_args_fmt()`
sources/FirmwarePatcher/IBoot/IBootPatcher.swift:365
MethodfindChild
Find a direct child node by name.
sources/FirmwarePatcher/DeviceTree/DeviceTreePatcher.swift:842
MethodfindCloudOS
Find release and research identity indices for the given DeviceClass.
sources/FirmwarePatcher/Manifest/FirmwareManifest.swift:148
MethodfindCodeCave
Find a region of zeros/0xFF/UDF in executable memory for shellcode. Only searches __TEXT_EXEC and __TEXT_BOOT_EXEC segments. Reads from buffer.data (m
sources/FirmwarePatcher/Kernel/KernelJBPatcherBase.swift:135
MethodfindCredLabelCSFlagsReload
Recover ldr x26, [x29, #imm] instruction bytes from the function body.
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchCredLabel.swift:270
MethodfindCredLabelDenyReturn
Find shared deny return: MOV W0,#1 at epilogueOff - 4.
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchCredLabel.swift:239
MethodfindCredLabelEpilogue
Find the canonical epilogue: last `ldp x29, x30, [sp, ...]` in function.
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchCredLabel.swift:226
MethodfindCredLabelExecveByStrings
String-cluster search for _cred_label_update_execve.
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchCredLabel.swift:192
MethodfindCredLabelSuccessExits
Find success exits: `b epilogue` preceded (within 0x10 bytes) by `mov w0, #0`.
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchCredLabel.swift:250
MethodfindCsBypassGate
Find the unique `tbz Wflags, #3 / mov Wt, #0 / b ...` gate inside a function, where Wflags is the register loaded from [base, #0x28] in the function p
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchVmFault.swift:70
MethodfindDI2AllocPortsSizeSite
Locate the AllocPortsArray allocator size arg `lsl x1, xN, #3` (count << 3 == count * 8), unique within the function. Function pinned by its C++ signa
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchDiskImages2.swift:154
MethodfindDI2RegisterNotifFunc
Pin the RegisterNotificationPort function via its unique AssertMacros cstring.
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchDiskImages2.swift:180
MethodfindDebuggerByBLHistogram
Strategy 2: scan the pre-built BL index for the candidate with the most callers in the [50, 250] window that matches the ADRP-x8 + LDR heuristic.
sources/FirmwarePatcher/Kernel/Patches/KernelPatchDebugger.swift:105
MethodfindDebuggerByFullScan
Strategy 3: linear sweep of all code ranges with the same heuristics.
sources/FirmwarePatcher/Kernel/Patches/KernelPatchDebugger.swift:136
MethodfindDebuggerGateFuncStart
Find the function start of the debugger-gate function containing the `com.apple.private.cs.debugger` BL site — mirrors Python `_find_debugger_gate_fun
sources/FirmwarePatcher/TXM/TXMDevPatcher.swift:171
MethodfindFileSupportsGlobPatterns
()
tests/FirmwarePatcherTests/FirmwarePatcherTests.swift:498
MethodfindFlagGate
Find a unique `tbnz wN, #5, <deny>` where deny-block starts with `mov w?, #1`.
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchMacMount.swift:95
MethodfindFlagSetterBefore
Scan back up to 8 instructions for `mov w6, #0x201`, abandoning if w6 is otherwise written first. Returns the setter's file offset.
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchThreadSetState.swift:92
MethodfindFuncByString
Find a function that references a given string constant. Returns the function-start file offset, or nil. Mirrors Python `_find_func_by_string(string,
sources/FirmwarePatcher/Kernel/KernelJBPatcherBase.swift:232
MethodfindFuncByString
Find a function that contains a reference to `string` (null-terminated).
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchDounmount.swift:39
MethodfindFuncContainingString
Find a function containing a string reference. Returns (funcStart, funcEnd, refs) or nil. Mirrors Python `_find_func_containing_string(string, code_ra
sources/FirmwarePatcher/Kernel/KernelJBPatcherBase.swift:246
MethodfindFuncEnd
Find the end of a function by scanning forward for the next PACIBSP boundary. Reads from `buffer.original` (Python: `_rd32(self.raw, off)`). Mirrors
sources/FirmwarePatcher/Kernel/KernelJBPatcherBase.swift:196
MethodfindFuncStart
Scan backward from `off` for PACIBSP — mirrors Python `_find_func_start`.
sources/FirmwarePatcher/TXM/TXMDevPatcher.swift:102
MethodfindFunctionStart
Scan backward from `offset` (aligned to 4 bytes) for a PACIBSP instruction. Searches up to 0x200 bytes back, matching the Python implementation.
sources/FirmwarePatcher/TXM/TXMPatcher.swift:198
MethodfindFunctionStart
Find the start of the function containing the instruction at `offset`. Scans backward for PACIBSP or STP x29, x30, [sp, ...].
sources/FirmwarePatcher/Kernel/KernelPatcherBase.swift:325
← previousnext →601–700 of 1,296, ranked by callers