MCPcopy Create free account

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

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

↓ 143 callersMethodappend
(_ chunk: Data)
sources/VPhoneCore/VPhoneProcessRunner.swift:28
↓ 57 callersMethodreadU32
Read a little-endian UInt32 at the given byte offset.
sources/FirmwarePatcher/Binary/BinaryBuffer.swift:44
↓ 48 callersMethodwrite
(toBundle bundle: VPhoneBundle)
sources/VPhoneCore/VPhoneRestoreInfo.swift:66
↓ 45 callersMethodfindString
Find the first occurrence of a C string in the data. Matches Python `find_string()`: walks backward from the match to the preceding NUL byte so that t
sources/FirmwarePatcher/Binary/BinaryBuffer.swift:106
↓ 44 callersMethoddisassembleOne
Disassemble a single 4-byte instruction at the given address.
sources/FirmwarePatcher/ARM64/ARM64Disassembler.swift:31
↓ 37 callersMethodcreateDirectory
(path: String)
sources/vphone-cli/VPhoneControl.swift:442
↓ 35 callersMethodload
Load firmware from `url`, returning the mutable payload data.
sources/FirmwarePatcher/Pipeline/FirmwarePipeline.swift:44
↓ 28 callersMethoddisassemble
Disassemble instructions from data starting at the given virtual address. - Parameters: - data: Raw instruction bytes. - address: Virtual address of
sources/FirmwarePatcher/ARM64/ARM64Disassembler.swift:26
↓ 22 callersMethodresolve
Resolve an existing-VM name. Returns `provided` unchanged when given; otherwise shows a numbered menu of `names` and reads a 1-based index or an exact
sources/VPhoneCore/VPhoneVMPicker.swift:28
↓ 21 callersMethodcreate
(_ spec: NewBundleSpec, in library: VPhoneLibrary)
sources/VPhoneCore/VPhoneBundleOps.swift:41
↓ 19 callersMethodbundle
(named name: String)
sources/VPhoneCore/VPhoneLibrary.swift:74
↓ 18 callersMethodfirstRegisterName
Canonical name of the instruction's first operand when it is a register (the write target for the moves/loads/branches the patchers match), else nil.
sources/FirmwarePatcher/ARM64/ARM64Disassembler.swift:64
↓ 17 callersMethodloadLE
Load a little-endian integer without assuming the buffer is naturally aligned.
sources/FirmwarePatcher/Binary/BinaryBuffer.swift:7
↓ 17 callersMethodrunCapturing
Run `executable args` to completion, capturing stdout/stderr. Throws only if the process cannot be launched; a nonzero exit is returned in the result,
sources/VPhoneCore/VPhoneProcessRunner.swift:39
↓ 17 callersMethodwrite
(_ name: String, _ version: String?, _ build: String?)
tests/VPhoneCoreTests/RestoreInfoTests.swift:22
↓ 15 callersMethodrun
(_ options: Options)
sources/vphone-cli/VPhoneCreateOrchestrator.swift:158
↓ 13 callersMethodreadU64
Read a little-endian UInt64 at the given byte offset.
sources/FirmwarePatcher/Binary/BinaryBuffer.swift:50
↓ 12 callersMethodbytes_at_vma
Read `length` bytes starting at `vma`. Must be contained in one mapping (we don't stitch across mappings).
scripts/patchers/cfw_dsc_chunks.py:178
↓ 12 callersMethodpythonExecutable
Resolve a python with working deps: an explicit `VPHONE_PYTHON`, the dev repo `.venv`, the managed per-user venv, else provision the managed venv on t
sources/VPhoneCore/VPhoneResources.swift:188
↓ 12 callersMethodresolveExisting
Resolve an existing-VM name, prompting with a numbered picker when omitted.
sources/vphone-cli/VPhoneVMSelection.swift:9
↓ 11 callersMethodrunStreaming
Run `executable args`, inheriting the parent's stdout/stderr so output streams live to the terminal (for long-running tools: downloads, restore, CFW i
sources/VPhoneCore/VPhoneProcessRunner.swift:178
↓ 10 callersMethodinit
(buildManiest: Data, restoreDir: URL, verbose: Bool, noBinpack: Bool, noVphoned: Bool)
sources/FirmwarePatcher/Filesystem/CryptexFilesystemPatcher.swift:58
↓ 10 callersMethodwaitUntilExit
()
sources/VPhoneCore/VPhoneManagedProcess.swift:137
↓ 9 callersFunctionasm
(s)
scripts/patchers/cfw_asm.py:57
↓ 9 callersFunctioncomparePatchRecords
(swift swiftPatches: [PatchRecord], reference refPatches: [ReferencePatch], component: String)
tests/FirmwarePatcherTests/PatchComparisonTests.swift:44
↓ 9 callersMethodencodeU32
(_ value: UInt32)
sources/FirmwarePatcher/ARM64/ARM64Constants.swift:184
↓ 9 callersMethodexport
When `to` is an existing directory, the archive is written inside it as `<name>.<compression.fileExtension>`. Returns the resolved output URL. Runs a
sources/VPhoneCore/VPhoneBundleOps.swift:204
↓ 9 callersFunctionloadRawPayload
(_ name: String)
tests/FirmwarePatcherTests/PatchComparisonTests.swift:33
↓ 8 callersMethodencodeB
Encode unconditional B (branch) instruction. Format: `[31:26] = 0b000101`, `[25:0] = signed offset / 4` Range: +/-128 MB
sources/FirmwarePatcher/ARM64/ARM64Encoder.swift:15
↓ 8 callersMethodencodeU32
(_ value: UInt32)
sources/FirmwarePatcher/Kernel/JBPatches/KernelJBPatchHookCredLabel.swift:466
↓ 8 callersFunctionloadReference
(_ name: String)
tests/FirmwarePatcherTests/PatchComparisonTests.swift:38
↓ 8 callersFunctionreattest_modified_pages
Recompute and write SHA-256 slot hashes for every 16 KiB page that contains a `modified_vmas` entry. `chunks` a DSCChunks instance.
scripts/patchers/cfw_dsc_codesign.py:177
↓ 8 callersMethodsendHIDPress
(page: UInt32, usage: UInt32)
sources/vphone-cli/VPhoneControl.swift:274
↓ 8 callersMethodstart
Spawn the child with a piped stdin and a combined piped stdout/stderr. The read side is drained by a readability handler that appends decoded chunks t
sources/VPhoneCore/VPhoneManagedProcess.swift:75
↓ 8 callersMethodterminate
`interrupt()` (SIGINT), then escalate to an unmaskable `SIGKILL` if the process is still running after a ~2 s grace period. `SIGKILL` (not `Process.te
sources/VPhoneCore/VPhoneManagedProcess.swift:148
↓ 8 callersMethodwaitForOutput
Poll (~50 ms) until a captured line matches `regex`, the process exits first, or `timeout` elapses. Matches against the FULL accumulated buffer each p
sources/VPhoneCore/VPhoneManagedProcess.swift:105
↓ 8 callersMethodwriteBytes
Write raw bytes at the given offset.
sources/FirmwarePatcher/Binary/BinaryBuffer.swift:71
↓ 8 callersMethodwrite_at_vma
Persist `data` bytes at `vma` to the right chunk file. The target span must lie within a single mapping.
scripts/patchers/cfw_dsc_chunks.py:194
↓ 7 callersMethodimportArchive
Extracts (auto-detecting gzip/zstd/xz) into a private staging dir, then promotes the single top-level bundle to the library. Extracting first means th
sources/VPhoneCore/VPhoneBundleOps.swift:262
↓ 7 callersMethodnormalizeECID
Port of `normalize_ecid` (setup_machine.sh:80-86): strip one leading `0x` and one leading `0X` (matching the shell's two sequential `#0x`/ `#0X` strip
sources/VPhoneCore/VPhoneBootPatterns.swift:47
↓ 7 callersMethodrd
Rd / Rt — destination (or transfer) register, bits [4:0].
sources/FirmwarePatcher/ARM64/ARM64Inst.swift:20
↓ 7 callersMethodreadBytes
Read bytes at the given range.
sources/FirmwarePatcher/Binary/BinaryBuffer.swift:56
↓ 7 callersMethodurl
(forName name: String)
sources/VPhoneCore/VPhoneLibrary.swift:48
↓ 6 callersMethodencodeB
Encode an unconditional B instruction.
sources/FirmwarePatcher/Kernel/KernelJBPatcherBase.swift:181
↓ 6 callersMethodfindAll
Find all patch sites and return patch records (dry-run mode).
sources/FirmwarePatcher/Core/PatcherProtocol.swift:14
↓ 6 callersMethodmerge
Merge partial edits onto an existing config, validating the result. A nil argument leaves that field unchanged.
sources/VPhoneCore/VPhoneNetworking.swift:71
↓ 6 callersFunctionparse_macho_sections
Parse Mach-O 64-bit to extract section info. Returns dict: "segment,section" -> (vm_addr, size, file_offset)
scripts/patchers/cfw_asm.py:102
↓ 5 callersFunction_log_asm
Log disassembly of `count` instructions at file offset for before/after comparison.
scripts/patchers/cfw_asm.py:89
↓ 5 callersMethodadd
(_ done: Int64, _ total: Int64)
tests/VPhoneCoreTests/BundleOpsTests.swift:436
↓ 5 callersMethodclose
()
sources/vphone-cli/VPhoneQuickLookController.swift:40
↓ 5 callersMethodderive
Read both versions from the bundle's `iPhone*_Restore` plists: `iPhone-BuildManifest.plist` (iOS userland) and the hybrid `BuildManifest.plist` (cloud
sources/VPhoneCore/VPhoneRestoreInfo.swift:58
↓ 5 callersFunctionentry
Deep-copy a single Manifest entry from a build identity.
scripts/fw_manifest.py:29
↓ 5 callersFunctionfind_section
Find the first matching section from candidates.
scripts/patchers/cfw_asm.py:149
↓ 5 callersMethodrefresh
()
sources/vphone-cli/VPhoneAppBrowserModel.swift:34
↓ 5 callersMethodresolve
Resolve `vm create`'s iPhone/cloudOS sources, prompting on a TTY for whichever component the user didn't pass. Non-interactive or fully specified → re
sources/vphone-cli/VPhoneFirmwareSelection.swift:11
↓ 5 callersMethodrn
Rn — first source / base register, bits [9:5].
sources/FirmwarePatcher/ARM64/ARM64Inst.swift:22
↓ 5 callersMethodsetSource
(_ kind: SourceKind, videoURL: URL?)
sources/vphone-cli/VPhoneCameraServer.swift:74
↓ 5 callersMethodupdating
(cpuCount: UInt?, memorySize: UInt64?, screenConfig: ScreenConfig?, machineIdentifier: Data?, networkConfig: N
sources/VPhoneCore/VPhoneVirtualMachineManifest.swift:224
↓ 4 callersMethoddefaultRoot
()
sources/VPhoneCore/VPhoneLibrary.swift:37
↓ 4 callersFunctiondisasm_at
Disassemble n instructions at file offset.
scripts/patchers/cfw_asm.py:84
↓ 4 callersMethodencodeMovzW
Encode MOVZ Wd, #imm16 (32-bit). Format: `[31] = 0 (sf)`, `[30:29] = 10`, `[28:23] = 100101`, `[22:21] = hw`, `[20:5] = imm16`, `[4:0] = Rd`
sources/FirmwarePatcher/ARM64/ARM64Encoder.swift:97
↓ 4 callersMethodisCurrentAttempt
(_ attemptToken: UInt64, fd: Int32?)
sources/vphone-cli/VPhoneControl.swift:872
↓ 4 callersMethodisLDRImm64
LDR Xt, [Xn, #imm] — 64-bit unsigned-offset load, [31:22]=1111100101.
sources/FirmwarePatcher/ARM64/ARM64Inst.swift:36
↓ 4 callersMethodisMOVZW
MOVZ Wd, #imm16 (32-bit, no shift): [31:21]=01010010100.
sources/FirmwarePatcher/ARM64/ARM64Inst.swift:45
↓ 4 callersMethodmovImm16
MOVZ/MOVN/MOVK 16-bit immediate, bits [20:5].
sources/FirmwarePatcher/ARM64/ARM64Inst.swift:26
↓ 4 callersMethodparseHVVmmPresent
Pure parse of `sysctl -n kern.hv_vmm_present` output — `"1"` means the host is itself an Apple VM (nested), where Virtualization.framework PV=3 guest
sources/VPhoneCore/VPhoneBootPatterns.swift:69
↓ 4 callersFunctionpatch_dropbear_daemon
Make dropbear use host keys on writable Data instead of read-only /etc.
scripts/patchers/cfw_daemons.py:75
↓ 4 callersMethodrecordVariant
Set `variant` (and its device) on the bundle's restore-info.json, keeping the recorded versions. nil if no versions exist yet to preserve.
sources/VPhoneCore/VPhoneRestoreInfo.swift:74
↓ 4 callersMethodresolveECID
ECID from `--ecid`, else the `ECID=` line of the bundle's udid-prediction.txt.
sources/VPhoneCore/VPhoneRestoreOps.swift:15
↓ 4 callersMethodsave
Save patched `data` back to `url`, repackaging as needed.
sources/FirmwarePatcher/Pipeline/FirmwarePipeline.swift:46
↓ 4 callersMethodstageVphoned
Copy the built vphoned into the bundle if present and different.
sources/VPhoneCore/VPhoneLaunchLayout.swift:20
↓ 4 callersMethodupdateConfig
(bundleNamed name: String, in library: VPhoneLibrary, cpuCount: UInt?, memoryMB: UInt64?, networkMode: VPhoneV
sources/VPhoneCore/VPhoneBundleOps.swift:89
↓ 4 callersFunctionva_to_foff
Convert virtual address to file offset using LC_SEGMENT_64 commands.
scripts/patchers/cfw_asm.py:132
↓ 4 callersMethodwhich
(_ name: String)
sources/VPhoneCore/VPhoneResources.swift:272
↓ 3 callersFunction_mov_reg_imm
If `insn` is `mov <reg>, #<imm>`, return (reg_name, imm); else None.
scripts/patchers/cfw_patch_iomfb_swapend.py:87
↓ 3 callersFunctionapply_all_camera_patches
Apply every camera DSC patch against `chunks_dir`, resolving symbols against `dsc_path`.
scripts/patchers/cfw_patch_camera_dsc.py:167
↓ 3 callersMethodbundles
()
sources/VPhoneCore/VPhoneLibrary.swift:70
↓ 3 callersMethodclone
Clone a bundle with a fast APFS copy-on-write clone (fallback: recursive copy), then reset the boot-identity artifacts so the clone comes up as a fres
sources/VPhoneCore/VPhoneBundleOps.swift:137
↓ 3 callersMethodencodeMovX
Encode `MOV Xd, Xm` (the ORR Xd, XZR, Xm alias). With `rm == 31` (XZR) this is the canonical "zero a 64-bit register" (`mov xd, xzr`). Format: `[31]
sources/FirmwarePatcher/ARM64/ARM64Encoder.swift:117
↓ 3 callersMethodfindAll
()
sources/FirmwarePatcher/IBoot/IBootPatcher.swift:62
↓ 3 callersMethodfind_chunk_for_vma
Return (chunk_path, file_offset) for `vma`, or None if unmapped.
scripts/patchers/cfw_dsc_chunks.py:170
↓ 3 callersMethodinit
(library: VPhoneLibrary, resources: VPhoneResources, selfExecutable: URL)
sources/vphone-cli/VPhoneCreateOrchestrator.swift:150
↓ 3 callersMethodinstallIPA
(localURL: URL)
sources/vphone-cli/VPhoneControl.swift:454
↓ 3 callersMethodisBL
Check whether the instruction at `offset` is a BL targeting `target` (file offset). Returns true if the BL opcode decodes to the exact target offset.
sources/FirmwarePatcher/Kernel/KernelPatcherBase.swift:221
↓ 3 callersMethodisCBZorCBNZW
CBZ or CBNZ Wn.
sources/FirmwarePatcher/ARM64/ARM64Inst.swift:65
↓ 3 callersMethodmakeNetworkDevice
Build the VZ network device for a config, or nil for `.off` (no NIC). The MAC is left framework-assigned; a forced MAC breaks guest networking. Throws
sources/VPhoneCore/VPhoneNetworking.swift:95
↓ 3 callersMethodopen
(data: Data, filename: String)
sources/vphone-cli/VPhoneQuickLookController.swift:12
↓ 3 callersMethodpatchAll
Run the full patching pipeline. Returns combined ``PatchRecord`` arrays from every component, in order. Throws on the first component that fails to p
sources/FirmwarePatcher/Pipeline/FirmwarePipeline.swift:128
↓ 3 callersMethodpatchSerialLabels
Find the two long '====...' banner runs and write the mode label into each. Python: `patch_serial_labels()`
sources/FirmwarePatcher/IBoot/IBootPatcher.swift:205
↓ 3 callersMethodregisterName
Return the canonical name string for an AArch64 register ID (e.g. "x0", "w1", "wzr").
sources/FirmwarePatcher/ARM64/ARM64Disassembler.swift:54
↓ 3 callersMethodrename
(bundleNamed name: String, to newName: String, in library: VPhoneLibrary)
sources/VPhoneCore/VPhoneBundleOps.swift:113
↓ 3 callersFunctionrequire_ecid
(value: str)
scripts/pymobiledevice3_bridge.py:178
↓ 3 callersMethodresolveUDID
UDID from the `UDID=` line of the bundle's udid-prediction.txt, or nil.
sources/VPhoneCore/VPhoneRestoreOps.swift:29
↓ 3 callersMethodrm
Rm — second source register, bits [20:16].
sources/FirmwarePatcher/ARM64/ARM64Inst.swift:24
↓ 3 callersMethodsetBattery
Update the synthetic battery charge and connectivity at runtime. - Parameters: - charge: Battery percentage (0.0–100.0). - connectivity: 1 = charging,
sources/vphone-cli/VPhoneVirtualMachine.swift:344
↓ 3 callersMethodstopForwarding
Stop forwarding host location updates.
sources/vphone-cli/VPhoneLocationProvider.swift:86
↓ 3 callersMethodstopReplay
Stop an active replay task.
sources/vphone-cli/VPhoneLocationProvider.swift:171
↓ 3 callersMethodtimeoutForRequest
(type: String)
sources/vphone-cli/VPhoneControl.swift:918
↓ 3 callersMethodupdate
(done: Int64, total: Int64)
sources/vphone-cli/VPhoneProgressBar.swift:21
↓ 3 callersMethodwriteFully
(fd: Int32, buf: UnsafeRawPointer, count: Int)
sources/vphone-cli/VPhoneControl.swift:988
next →1–100 of 1,296, ranked by callers