Skip to content

Run a virtual iPhone on an Apple Silicon Mac.

Swift

Localize VPhone interface and format pending changes

Lakrf7a4a279e4f1
diff --git a/VPhoneDaemon/Daemon/GuestAPI.swift b/VPhoneDaemon/Daemon/GuestAPI.swift
index 51bac18f..081b5e1a 100644
--- a/VPhoneDaemon/Daemon/GuestAPI.swift
+++ b/VPhoneDaemon/Daemon/GuestAPI.swift
@@ -13,8 +13,8 @@ enum GuestAPIError: Error, CustomStringConvertible {
var description: String {
switch self {
- case let .invalidRequest(message), let .operationFailed(message): message
- case let .unsupportedMethod(method): "Unknown method: \(method)"
+ case .invalidRequest(let message), .operationFailed(let message): message
+ case .unsupportedMethod(let method): "Unknown method: \(method)"
}
}
}
@@ -23,13 +23,15 @@ enum GuestAPIError: Error, CustomStringConvertible {
/// IcliKit owns general device work, including app installation and Keychain
/// metadata. vphone signs app code before IcliKit installs it.
enum GuestAPI {
- // Each request executes independently. A synchronous system service such
- // as powerd may wait during boot; it must not hold up HID or file requests.
- static let queue = DispatchQueue(label: "vphoned.api.operations", qos: .userInitiated,
- attributes: .concurrent)
+ /// Each request executes independently. A synchronous system service such
+ /// as powerd may wait during boot; it must not hold up HID or file requests.
+ static let queue = DispatchQueue(
+ label: "vphoned.api.operations", qos: .userInitiated,
+ attributes: .concurrent)
static let binaryHash: String = {
guard let url = Bundle.main.executableURL,
- let data = try? Data(contentsOf: url, options: .mappedIfSafe) else { return "unknown" }
+ let data = try? Data(contentsOf: url, options: .mappedIfSafe)
+ else { return "unknown" }
return sha256Hex(data)
}()
@@ -80,38 +82,42 @@ enum GuestAPI {
let filter = params["filter"] as? String ?? "all"
let apps = try listApps()["apps"] as? [[String: Any]] ?? []
let running = try runningApps()["apps"] as? [[String: Any]] ?? []
- let pids = Dictionary(uniqueKeysWithValues: running.compactMap { app -> (String, Int)? in
- guard let id = app["bundle_id"] as? String, let pid = app["pid"] as? Int else { return nil }
- return (id, pid)
- })
- return ["apps": apps.compactMap { app -> [String: Any]? in
- var info = app
- guard let id = app["bundle_id"] as? String, !id.isEmpty else { return nil }
- let pid = pids[id] ?? 0
- let path = app["bundle_path"] as? String ?? ""
- let type: String
- if let registeredType = (app["type"] as? String)?.lowercased(),
- registeredType == "system" || registeredType == "user" {
- type = registeredType
- } else {
- type = path.hasPrefix("/System/") || id.hasPrefix("com.apple.") ? "system" : "user"
- }
- if filter == "running" && pid == 0 {
- return nil
- }
- if filter == "user" && type != "user" {
- return nil
- }
- if filter == "system" && type != "system" {
- return nil
+ let pids = Dictionary(
+ uniqueKeysWithValues: running.compactMap { app -> (String, Int)? in
+ guard let id = app["bundle_id"] as? String, let pid = app["pid"] as? Int else { return nil }
+ return (id, pid)
+ })
+ return [
+ "apps": apps.compactMap { app -> [String: Any]? in
+ var info = app
+ guard let id = app["bundle_id"] as? String, !id.isEmpty else { return nil }
+ let pid = pids[id] ?? 0
+ let path = app["bundle_path"] as? String ?? ""
+ let type: String =
+ if let registeredType = (app["type"] as? String)?.lowercased(),
+ registeredType == "system" || registeredType == "user"
+ {
+ registeredType
+ } else {
+ path.hasPrefix("/System/") || id.hasPrefix("com.apple.") ? "system" : "user"
+ }
+ if filter == "running" && pid == 0 {
+ return nil
+ }
+ if filter == "user" && type != "user" {
+ return nil
+ }
+ if filter == "system" && type != "system" {
+ return nil
+ }
+ info["pid"] = pid
+ info["type"] = type
+ info["state"] = pid > 0 ? "running" : "not_running"
+ info["path"] = path
+ info["version"] = app["version"] ?? ""
+ return info
}
- info["pid"] = pid
- info["type"] = type
- info["state"] = pid > 0 ? "running" : "not_running"
- info["path"] = path
- info["version"] = app["version"] ?? ""
- return info
- }]
+ ]
case "apps.search":
return try searchApps(string(params, "query"))
case "apps.refresh":
@@ -125,13 +131,14 @@ enum GuestAPI {
let wasRunning = before.contains { $0["bundle_id"] as? String == id }
do {
_ = try launchApp(id)
- } catch IcliError.failed(let message) where message == "app did not become frontmost: \(id)" {
+ } catch let IcliError.failed(message) where message == "app did not become frontmost: \(id)" {
let after = try runningApps()["apps"] as? [[String: Any]] ?? []
guard let pid = after.first(where: { $0["bundle_id"] as? String == id })?["pid"] as? Int
else { throw IcliError.failed(message) }
let front = frontmostApp()
if front["verified"] as? Bool == true,
- front["bundle_id"] as? String == id {
+ front["bundle_id"] as? String == id
+ {
return ["pid": pid, "frontmost_verified": true]
}
guard !wasRunning else { throw IcliError.failed(message) }
@@ -159,7 +166,8 @@ enum GuestAPI {
let id = front["bundle_id"] as? String ?? ""
let apps = try searchApps(id)["apps"] as? [[String: Any]] ?? []
let running = try runningApps()["apps"] as? [[String: Any]] ?? []
- let name = id == "com.apple.springboard"
+ let name =
+ id == "com.apple.springboard"
? "Home Screen"
: (apps.first(where: { $0["bundle_id"] as? String == id })?["name"] as? String ?? "")
return [
@@ -177,7 +185,9 @@ enum GuestAPI {
let registration: AppRegistrationType = params["registration"] as? String == "System" ? .system : .user
defer {
try? FileManager.default.removeItem(atPath: path)
- if !certificate.isEmpty { try? FileManager.default.removeItem(atPath: certificate) }
+ if !certificate.isEmpty {
+ try? FileManager.default.removeItem(atPath: certificate)
+ }
}
var result = try installIPAInContainer(path, registration: registration) { app in
try signAppForInstall(app, certificate: certificate)
@@ -189,8 +199,9 @@ enum GuestAPI {
guard let phase = (params["phase"] as? String).flatMap(TouchPhase.init(rawValue:)) else {
throw GuestAPIError.invalidRequest("phase must be down, move or up")
}
- return try touch(phase, x: number(params, "x"), y: number(params, "y"),
- normalized: params["normalized"] as? Bool ?? true)
+ return try touch(
+ phase, x: number(params, "x"), y: number(params, "y"),
+ normalized: params["normalized"] as? Bool ?? true)
case "input.hid":
let page = try integer(params, "page")
let usage = try integer(params, "usage")
@@ -236,23 +247,28 @@ enum GuestAPI {
case "files.mkdir":
return try makeDirectory(string(params, "path"), mode: nil)
case "files.remove":
- return try removePath(string(params, "path"), recursive: params["recursive"] as? Bool ?? false,
- force: true)
+ return try removePath(
+ string(params, "path"), recursive: params["recursive"] as? Bool ?? false,
+ force: true)
case "files.rename":
return try movePath(string(params, "from"), to: string(params, "to"))
case "settings.get":
return try readPreference(domain: string(params, "domain"), key: params["key"] as? String)
case "settings.set":
let rawValue = params["value"] ?? NSNull()
- let type = params["type"] as? String
- ?? (rawValue is Bool ? "bool"
- : rawValue is NSNumber ? "float"
- : rawValue is String ? "string" : "json")
- let text: String = if type == "json" {
- try String(data: JSONSerialization.data(withJSONObject: rawValue), encoding: .utf8) ?? ""
- } else {
- String(describing: rawValue)
- }
+ let type =
+ params["type"] as? String
+ ?? (rawValue is Bool
+ ? "bool"
+ : rawValue is NSNumber
+ ? "float"
+ : rawValue is String ? "string" : "json")
+ let text: String =
+ if type == "json" {
+ try String(data: JSONSerialization.data(withJSONObject: rawValue), encoding: .utf8) ?? ""
+ } else {
+ String(describing: rawValue)
+ }
return try writePreference(
domain: string(params, "domain"),
key: string(params, "key"),
@@ -268,12 +284,12 @@ enum GuestAPI {
return try GuestKeychain.add(
account: string(params, "account"),
service: string(params, "service"),
- password: string(params, "password")
+ password: string(params, "password"),
)
case "keychain.delete":
return try GuestKeychain.delete(
account: string(params, "account"),
- service: string(params, "service")
+ service: string(params, "service"),
)
case "agent.apply_update":
let expected = try string(params, "sha256")
@@ -300,7 +316,9 @@ enum GuestAPI {
private static func signAppForInstall(_ app: String, certificate: String) throws {
let usableCertificate = FileManager.default.fileExists(atPath: certificate) ? certificate : ""
let error = app.withCString { appPath in
- if usableCertificate.isEmpty { return vp_sign_app_for_install(appPath, nil) }
+ if usableCertificate.isEmpty {
+ return vp_sign_app_for_install(appPath, nil)
+ }
return usableCertificate.withCString { vp_sign_app_for_install(appPath, $0) }
}
if let error {
@@ -319,13 +337,15 @@ enum GuestAPI {
let kind = metadata.st_mode & mode_t(S_IFMT)
let isLink = kind == mode_t(S_IFLNK)
var target = stat()
- let targetsDirectory = isLink && stat(fullPath, &target) == 0
+ let targetsDirectory =
+ isLink && stat(fullPath, &target) == 0
&& target.st_mode & mode_t(S_IFMT) == mode_t(S_IFDIR)
var enriched = entry
enriched["type"] = isLink ? "link" : kind == mode_t(S_IFDIR) ? "dir" : "file"
enriched["link_target_dir"] = targetsDirectory
if kind == mode_t(S_IFDIR) || targetsDirectory,
- let canonicalPath = fullPath.withCString({ realpath($0, nil) }) {
+ let canonicalPath = fullPath.withCString({ realpath($0, nil) })
+ {
enriched["resolved_path"] = String(cString: canonicalPath)
free(canonicalPath)
}
@@ -387,8 +407,12 @@ enum GuestAPI {
}
private static func number(_ params: [String: Any], _ key: String, default fallback: Double = .nan) -> Double {
- if let value = params[key] as? NSNumber { return value.doubleValue }
- if let value = params[key] as? String, let number = Double(value) { return number }
+ if let value = params[key] as? NSNumber {
+ return value.doubleValue
+ }
+ if let value = params[key] as? String, let number = Double(value) {
+ return number
+ }
return fallback
}
}
diff --git a/VPhoneDaemon/Daemon/GuestHyperTextHandler.swift b/VPhoneDaemon/Daemon/GuestHyperTextHandler.swift
index b8a86a12..d4785907 100644
--- a/VPhoneDaemon/Daemon/GuestHyperTextHandler.swift
+++ b/VPhoneDaemon/Daemon/GuestHyperTextHandler.swift
@@ -24,7 +24,7 @@ final class GuestHyperTextHandler: ChannelInboundHandler, RemovableChannelHandle
func channelRead(context: ChannelHandlerContext, data: NIOAny) {
switch unwrapInboundIn(data) {
- case let .head(request):
+ case .head(let request):
head = request
body.removeAll(keepingCapacity: true)
exceededLimit = false
@@ -40,14 +40,15 @@ final class GuestHyperTextHandler: ChannelInboundHandler, RemovableChannelHandle
fileIO: fileIO,
channel: context.channel,
mode: Self.uploadMode(from: request.uri),
- onCommit: requestPath == "/v1/clipboard/image" ? { path in
- _ = try setClipboardImage(Data(contentsOf: URL(fileURLWithPath: path)))
- unlink(path)
- } : nil,
+ onCommit: requestPath == "/v1/clipboard/image"
+ ? { path in
+ _ = try setClipboardImage(Data(contentsOf: URL(fileURLWithPath: path)))
+ unlink(path)
+ } : nil,
)
} catch { uploadError = error }
}
- case var .body(buffer):
+ case .body(var buffer):
let requestPath = head?.uri.split(separator: "?", maxSplits: 1).first
if head?.method == .PUT, requestPath == "/v1/files/content" || requestPath == "/v1/clipboard/image" {
upload?.append(buffer, channel: context.channel)
@@ -120,7 +121,7 @@ final class GuestHyperTextHandler: ChannelInboundHandler, RemovableChannelHandle
do {
let request: APIRequest
- if head.method == .POST && path == "/v1/rpc" {
+ if head.method == .POST, path == "/v1/rpc" {
request = try APIWire.decode(body)
} else {
let method = try Self.route(head.method, path: path)
@@ -156,8 +157,8 @@ final class GuestHyperTextHandler: ChannelInboundHandler, RemovableChannelHandle
return 0o644
}
guard !value.isEmpty, value.count <= 4,
- value.utf8.allSatisfy({ (48 ... 55).contains($0) }),
- let mode = UInt16(value, radix: 8), mode <= 0o777
+ value.utf8.allSatisfy({ (48...55).contains($0) }),
+ let mode = UInt16(value, radix: 8), mode <= 0o777
else { throw GuestAPIError.invalidRequest("mode must be an octal permission, up to 0777") }
return mode_t(mode)
}
diff --git a/VPhoneDaemon/Daemon/GuestKeychain.swift b/VPhoneDaemon/Daemon/GuestKeychain.swift
index 612ca496..ca8843f9 100644
--- a/VPhoneDaemon/Daemon/GuestKeychain.swift
+++ b/VPhoneDaemon/Daemon/GuestKeychain.swift
@@ -17,7 +17,7 @@ enum GuestKeychain {
account: nil,
server: nil,
group: nil,
- includeData: false
+ includeData: false,
)
let rows = result["items"] as? [[String: Any]] ?? []
items += rows.map(adaptItem)
@@ -57,7 +57,7 @@ enum GuestKeychain {
server: nil,
label: "\(service) (\(account))",
group: nil,
- data: password
+ data: password,
)
return ["ok": true, "status": 0]
}
@@ -68,7 +68,7 @@ enum GuestKeychain {
service: service,
account: account,
server: nil,
- group: nil
+ group: nil,
)
return ["ok": true, "removed": result["deleted"] as? Bool ?? false]
}
@@ -95,8 +95,12 @@ enum GuestKeychain {
case "identity": adapted["class"] = "idnt"
default: break
}
- if let group = item["group"] { adapted["accessGroup"] = group }
- if let rowID = item["rowid"] { adapted["_rowid"] = rowID }
+ if let group = item["group"] {
+ adapted["accessGroup"] = group
+ }
+ if let rowID = item["rowid"] {
+ adapted["_rowid"] = rowID
+ }
adapted["valueEncoding"] = "protected"
adapted.removeValue(forKey: "data")
return adapted
diff --git a/VPhoneDaemon/Daemon/GuestPortForwardHandler.swift b/VPhoneDaemon/Daemon/GuestPortForwardHandler.swift
index 986ef67c..351c6f1a 100644
--- a/VPhoneDaemon/Daemon/GuestPortForwardHandler.swift
+++ b/VPhoneDaemon/Daemon/GuestPortForwardHandler.swift
@@ -24,8 +24,8 @@ final class GuestPortForwardHandler: ChannelInboundHandler, @unchecked Sendable
let prefix = "/v1/ports/"
guard uri.hasPrefix(prefix) else { return nil }
let digits = uri.dropFirst(prefix.count)
- guard !digits.isEmpty, digits.utf8.allSatisfy({ (48 ... 57).contains($0) }),
- let port = Int(digits), (1 ... 65535).contains(port)
+ guard !digits.isEmpty, digits.utf8.allSatisfy({ (48...57).contains($0) }),
+ let port = Int(digits), (1...65535).contains(port)
else { return nil }
return port
}
@@ -36,20 +36,25 @@ final class GuestPortForwardHandler: ChannelInboundHandler, @unchecked Sendable
ClientBootstrap(group: context.eventLoop)
.connectTimeout(.seconds(5))
.channelInitializer { [weak self] backend in
- backend.pipeline.addHandler(GuestPortBackendHandler(webSocket: webSocket) { [weak self] in
- self?.closing == false
- })
+ backend.pipeline.addHandler(
+ GuestPortBackendHandler(webSocket: webSocket) { [weak self] in
+ self?.closing == false
+ })
}
.connect(host: "127.0.0.1", port: port)
.whenComplete { result in
guard webSocket.isActive, !self.closing else {
- if case let .success(backend) = result { backend.close(promise: nil) }
+ if case .success(let backend) = result {
+ backend.close(promise: nil)
+ }
return
}
switch result {
- case let .success(backend):
+ case .success(let backend):
self.backend = backend
- for chunk in self.pending.dropLast() { backend.write(chunk, promise: nil) }
+ for chunk in self.pending.dropLast() {
+ backend.write(chunk, promise: nil)
+ }
if let chunk = self.pending.last {
self.lastBackendWrite = backend.writeAndFlush(chunk)
self.lastBackendWrite?.whenFailure { _ in self.closeWithError(on: webSocket) }
@@ -82,13 +87,20 @@ final class GuestPortForwardHandler: ChannelInboundHandler, @unchecked Sendable
pending.append(chunk)
}
case .ping:
- context.writeAndFlush(wrapOutboundOut(WebSocketFrame(fin: true, opcode: .pong,
- data: frame.unmaskedData)), promise: nil)
+ context.writeAndFlush(
+ wrapOutboundOut(
+ WebSocketFrame(
+ fin: true, opcode: .pong,
+ data: frame.unmaskedData)), promise: nil)
case .connectionClose:
closing = true
let webSocket = context.channel
- context.writeAndFlush(wrapOutboundOut(WebSocketFrame(fin: true, opcode: .connectionClose,
- data: frame.unmaskedData))).whenComplete { _ in
+ context.writeAndFlush(
+ wrapOutboundOut(
+ WebSocketFrame(
+ fin: true, opcode: .connectionClose,
+ data: frame.unmaskedData))
+ ).whenComplete { _ in
webSocket.close(promise: nil)
}
default:
@@ -133,8 +145,11 @@ final class GuestPortForwardHandler: ChannelInboundHandler, @unchecked Sendable
closing = true
var data = channel.allocator.buffer(capacity: 2)
data.writeInteger(UInt16(1011), endianness: .big)
- channel.writeAndFlush(WebSocketFrame(fin: true, opcode: .connectionClose,
- data: data)).whenComplete { _ in
+ channel.writeAndFlush(
+ WebSocketFrame(
+ fin: true, opcode: .connectionClose,
+ data: data)
+ ).whenComplete { _ in
channel.close(promise: nil)
}
}
@@ -180,8 +195,11 @@ private final class GuestPortBackendHandler: ChannelInboundHandler, @unchecked S
guard webSocket.isActive, shouldForward() else { return }
var data = webSocket.allocator.buffer(capacity: 2)
data.writeInteger(UInt16(1000), endianness: .big)
- webSocket.writeAndFlush(WebSocketFrame(fin: true, opcode: .connectionClose,
- data: data)).whenComplete { _ in
+ webSocket.writeAndFlush(
+ WebSocketFrame(
+ fin: true, opcode: .connectionClose,
+ data: data)
+ ).whenComplete { _ in
self.webSocket.close(promise: nil)
}
}
diff --git a/VPhoneDaemon/Daemon/GuestSigner.swift b/VPhoneDaemon/Daemon/GuestSigner.swift
index 8ff830b6..301bee6d 100644
--- a/VPhoneDaemon/Daemon/GuestSigner.swift
+++ b/VPhoneDaemon/Daemon/GuestSigner.swift
@@ -9,7 +9,7 @@ import VPhoneSign
func vpGuestSignBinary(
_ path: UnsafePointer<CChar>?,
_ entitlementsPath: UnsafePointer<CChar>?,
- _ certificatePath: UnsafePointer<CChar>?
+ _ certificatePath: UnsafePointer<CChar>?,
) -> UnsafeMutablePointer<CChar>? {
guard let path else { return strdup("Missing executable path") }
@@ -18,7 +18,7 @@ func vpGuestSignBinary(
if let entitlementsPath {
options.entitlements = try Data(
contentsOf: URL(fileURLWithPath: String(cString: entitlementsPath)),
- options: .mappedIfSafe
+ options: .mappedIfSafe,
)
} else {
options.mergesExisting = true
@@ -28,9 +28,9 @@ func vpGuestSignBinary(
options.identity = try VPhoneSignIdentity(
pkcs12: Data(
contentsOf: URL(fileURLWithPath: String(cString: certificatePath)),
- options: .mappedIfSafe
+ options: .mappedIfSafe,
),
- password: ""
+ password: "",
)
}
try VPhoneSigner.sign(fileAt: URL(fileURLWithPath: String(cString: path)), options: options)
diff --git a/VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/CustomFirmware/CustomFirmwareMachOTests.swift b/VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/CustomFirmware/CustomFirmwareMachOTests.swift
index 4c8a4087..4201ccc6 100644
--- a/VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/CustomFirmware/CustomFirmwareMachOTests.swift
+++ b/VPhoneExecutable/VPhoneCommand/FirmwarePatcherTests/CustomFirmware/CustomFirmwareMachOTests.swift
@@ -30,21 +30,22 @@
// `VPHONE_MACHO_FIXTURE_OPTIONAL=1`, which turns the failure back into a skip.
import CryptoKit
-@testable import FirmwarePatcher
import Foundation
import Testing
+@testable import FirmwarePatcher
+
// MARK: - Fixtures
enum MachOFixture {
/// The package root, derived from this file rather than the working
/// directory, which `swift test` does not promise.
static let repositoryRoot = URL(filePath: #filePath)
- .deletingLastPathComponent() // CustomFirmware
- .deletingLastPathComponent() // FirmwarePatcherTests
- .deletingLastPathComponent() // VPhoneCommand
- .deletingLastPathComponent() // VPhoneExecutable
- .deletingLastPathComponent() // <root>
+ .deletingLastPathComponent() // CustomFirmware
+ .deletingLastPathComponent() // FirmwarePatcherTests
+ .deletingLastPathComponent() // VPhoneCommand
+ .deletingLastPathComponent() // VPhoneExecutable
+ .deletingLastPathComponent() // <root>
/// The tree of untouched Mach-Os, overridable the way every other CFW
/// parity suite in this directory overrides it. Not in the repo — `ipsws/`
@@ -84,11 +85,11 @@ enum MachOFixture {
}
static let missing: Comment = """
- the real 24A435 seputil is required — put it at \
- ipsws/ref_extract/macho_pristine/, point VPHONE_MACHO_PRISTINE at that \
- directory, or set VPHONE_MACHO_FIXTURE_OPTIONAL=1 to skip these tests \
- instead of failing
- """
+ the real 24A435 seputil is required — put it at \
+ ipsws/ref_extract/macho_pristine/, point VPHONE_MACHO_PRISTINE at that \
+ directory, or set VPHONE_MACHO_FIXTURE_OPTIONAL=1 to skip these tests \
+ instead of failing
+ """
static func exists(_ url: URL) -> Bool {
FileManager.default.fileExists(atPath: url.path)
@@ -148,12 +149,12 @@ enum MachOFixture {
var results: [(UInt32, String)] = []
let ncmds = data.loadLE(UInt32.self, at: 16)
var offset = 32
- for _ in 0 ..< ncmds {
+ for _ in 0..<ncmds {
let cmd = data.loadLE(UInt32.self, at: offset)
let cmdsize = Int(data.loadLE(UInt32.self, at: offset + 4))
- if cmd == 0x0C || cmd == 0x8000_0018 { // LC_LOAD_DYLIB / LC_LOAD_WEAK_DYLIB
+ if cmd == 0x0C || cmd == 0x8000_0018 { // LC_LOAD_DYLIB / LC_LOAD_WEAK_DYLIB
let nameOffset = offset + Int(data.loadLE(UInt32.self, at: offset + 8))
- let bytes = data[nameOffset ..< offset + cmdsize].prefix { $0 != 0 }
+ let bytes = data[nameOffset..<offset + cmdsize].prefix { $0 != 0 }
results.append((cmd, String(decoding: bytes, as: UTF8.self)))
}
offset += cmdsize
@@ -203,13 +204,13 @@ struct CustomFirmwareMachOCodeSignatureTests {
let shortHash = Data(SHA256.hash(data: patched[range]))
#expect(record.after == shortHash)
#expect(
- patched[record.hashFileOffset ..< record.hashFileOffset + directory.hashSize] == shortHash,
+ patched[record.hashFileOffset..<record.hashFileOffset + directory.hashSize] == shortHash,
"the slot on disk must hold the hash of the short range",
)
// And state the failure mode directly: a full-page hash is a different
// value, so this is not an assertion that happens to pass either way.
- let fullPage = record.pageStart ..< record.pageStart + directory.pageSize
+ let fullPage = record.pageStart..<record.pageStart + directory.pageSize
if patched.count >= fullPage.upperBound {
#expect(Data(SHA256.hash(data: patched[fullPage])) != shortHash)
}
@@ -232,8 +233,8 @@ struct CustomFirmwareMachOCodeSignatureTests {
codeSlotCount: 2,
codeLimit: 8192,
)
- #expect(aligned.slotRange(0) == 0 ..< 4096)
- #expect(aligned.slotRange(1) == 4096 ..< 8192)
+ #expect(aligned.slotRange(0) == 0..<4096)
+ #expect(aligned.slotRange(1) == 4096..<8192)
#expect(aligned.slotRange(2) == nil)
let short = CustomFirmwareCodeDirectory(
@@ -248,13 +249,15 @@ struct CustomFirmwareMachOCodeSignatureTests {
codeSlotCount: 2,
codeLimit: 5000,
)
- #expect(short.slotRange(0) == 0 ..< 4096)
- #expect(short.slotRange(1) == 4096 ..< 5000)
+ #expect(short.slotRange(0) == 0..<4096)
+ #expect(short.slotRange(1) == 4096..<5000)
}
@Test func `offsets past code limit belong to no slot`() {
- #expect(CustomFirmwareMachOCodeSignature.pageBounds(fileOffset: 4095, pageSize: 4096, codeLimit: 5000)?.index == 0)
- #expect(CustomFirmwareMachOCodeSignature.pageBounds(fileOffset: 4999, pageSize: 4096, codeLimit: 5000)?.end == 5000)
+ #expect(
+ CustomFirmwareMachOCodeSignature.pageBounds(fileOffset: 4095, pageSize: 4096, codeLimit: 5000)?.index == 0)
+ #expect(
+ CustomFirmwareMachOCodeSignature.pageBounds(fileOffset: 4999, pageSize: 4096, codeLimit: 5000)?.end == 5000)
#expect(CustomFirmwareMachOCodeSignature.pageBounds(fileOffset: 5000, pageSize: 4096, codeLimit: 5000) == nil)
}
@@ -348,14 +351,15 @@ struct CustomFirmwareMachOCodeSignatureTests {
try #require(directories.count == 2)
let legacy = try #require(directories.first { $0.hashType == CustomFirmwareMachOCodeSignature.hashTypeSHA1 })
let modern = try #require(directories.first { $0.hashType == CustomFirmwareMachOCodeSignature.hashTypeSHA256 })
- #expect(CustomFirmwareMachOCodeSignature.unsupportedCodeDirectories(in: before).map(\.offset) == [legacy.offset])
+ #expect(
+ CustomFirmwareMachOCodeSignature.unsupportedCodeDirectories(in: before).map(\.offset) == [legacy.offset])
try MachOFixture.flipByte(at: 16, in: file)
let records = try CustomFirmwareMachOCodeSignature.reattest(fileAt: file, modifiedOffsets: [16])
#expect(records.allSatisfy { $0.codeDirectoryOffset == modern.offset })
let after = try Data(contentsOf: file)
- let legacyRange = legacy.offset ..< legacy.offset + legacy.length
+ let legacyRange = legacy.offset..<legacy.offset + legacy.length
#expect(after[legacyRange] == before[legacyRange], "the SHA-1 CD must be untouched")
}
@@ -495,11 +499,12 @@ struct CustomFirmwareInjectDylibTests {
func `keeping the signature rehashes the header page`() throws {
let file = try MachOFixture.scratchCopy("keep")
let before = try Data(contentsOf: file)
- let injection = try #require(try CustomFirmwareInjectDylib.inject(
- dylibPath: "/b",
- into: file,
- policy: .keepAndReattest,
- ).first)
+ let injection = try #require(
+ try CustomFirmwareInjectDylib.inject(
+ dylibPath: "/b",
+ into: file,
+ policy: .keepAndReattest,
+ ).first)
#expect(!injection.removedCodeSignature)
#expect(injection.rehashedSlots.map(\.pageIndex) == [0])
@@ -510,7 +515,7 @@ struct CustomFirmwareInjectDylibTests {
let directory = try #require(CustomFirmwareMachOCodeSignature.codeDirectories(in: after)?.first)
let range = try #require(directory.slotRange(0))
let slot = directory.slotHashOffset(0)
- #expect(after[slot ..< slot + directory.hashSize] == Data(SHA256.hash(data: after[range])))
+ #expect(after[slot..<slot + directory.hashSize] == Data(SHA256.hash(data: after[range])))
}
/// `insert_dylib --all-yes` answers "yes" to "there is not enough empty
@@ -521,7 +526,7 @@ struct CustomFirmwareInjectDylibTests {
let file = try MachOFixture.scratchCopy("occupied")
var data = try Data(contentsOf: file)
let sizeofcmds = Int(data.loadLE(UInt32.self, at: 20))
- data[32 + sizeofcmds] = 0xFF // first byte past the load commands
+ data[32 + sizeofcmds] = 0xFF // first byte past the load commands
try data.write(to: file)
#expect(throws: PatcherError.self) {
@@ -558,15 +563,19 @@ struct CustomFirmwareInjectDylibTests {
let dylib = directory.appending(path: "swizzle.dylib")
let clang = URL(filePath: "/usr/bin/clang")
- let buildExecutable = try MachOFixture.run(clang, [
- "-fobjc-arc", "-framework", "Foundation", "-Wl,-headerpad,0x4000",
- fixtures.appending(path: "hello.m").path, "-o", executable.path,
- ])
+ let buildExecutable = try MachOFixture.run(
+ clang,
+ [
+ "-fobjc-arc", "-framework", "Foundation", "-Wl,-headerpad,0x4000",
+ fixtures.appending(path: "hello.m").path, "-o", executable.path,
+ ])
try #require(buildExecutable.status == 0, "hello fixture: \(buildExecutable.output)")
- let buildDylib = try MachOFixture.run(clang, [
- "-dynamiclib", "-fobjc-arc", "-framework", "Foundation",
- fixtures.appending(path: "swizzle.m").path, "-o", dylib.path,
- ])
+ let buildDylib = try MachOFixture.run(
+ clang,
+ [
+ "-dynamiclib", "-fobjc-arc", "-framework", "Foundation",
+ fixtures.appending(path: "swizzle.m").path, "-o", dylib.path,
+ ])
try #require(buildDylib.status == 0, "swizzle fixture: \(buildDylib.output)")
let before = try MachOFixture.run(executable, [])
@@ -582,13 +591,16 @@ struct CustomFirmwareInjectDylibTests {
let injection = try #require(injections.first)
#expect(injections.count == 1)
#expect(injection.isWeak)
- #expect(MachOFixture.dylibLoadCommands(in: try Data(contentsOf: executable)).contains {
- $0.command == 0x8000_0018 && $0.path == dylib.path
- })
+ #expect(
+ try MachOFixture.dylibLoadCommands(in: Data(contentsOf: executable)).contains {
+ $0.command == 0x8000_0018 && $0.path == dylib.path
+ })
- let sign = try MachOFixture.run(URL(filePath: "/usr/bin/codesign"), [
- "--force", "--sign", "-", "--timestamp=none", executable.path,
- ])
+ let sign = try MachOFixture.run(
+ URL(filePath: "/usr/bin/codesign"),
+ [
+ "--force", "--sign", "-", "--timestamp=none", executable.path,
+ ])
try #require(sign.status == 0, "signing injected hello: \(sign.output)")
let after = try MachOFixture.run(executable, [])
try #require(after.status == 0, "injected hello failed: \(after.output)")
diff --git a/VPhoneExecutable/VPhoneCommand/VPhoneCommand.xcodeproj/xcshareddata/xcschemes/FirmwarePatcherTests.xcscheme b/VPhoneExecutable/VPhoneCommand/VPhoneCommand.xcodeproj/xcshareddata/xcschemes/FirmwarePatcherTests.xcscheme
index cc3d4bd3..37dd8c2e 100644
--- a/VPhoneExecutable/VPhoneCommand/VPhoneCommand.xcodeproj/xcshareddata/xcschemes/FirmwarePatcherTests.xcscheme
+++ b/VPhoneExecutable/VPhoneCommand/VPhoneCommand.xcodeproj/xcshareddata/xcschemes/FirmwarePatcherTests.xcscheme
@@ -1,17 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
-<Scheme LastUpgradeVersion="2700" version="1.3">
- <BuildAction parallelizeBuildables="YES" buildImplicitDependencies="YES">
+<Scheme
+ LastUpgradeVersion = "2700"
+ version = "1.3">
+ <BuildAction
+ parallelizeBuildables = "YES"
+ buildImplicitDependencies = "YES">
<BuildActionEntries>
- <BuildActionEntry buildForTesting="YES" buildForRunning="NO" buildForProfiling="NO" buildForArchiving="NO" buildForAnalyzing="YES">
- <BuildableReference BuildableIdentifier="primary" BlueprintIdentifier="BB0000000000000000000014" BuildableName="FirmwarePatcherTests.xctest" BlueprintName="FirmwarePatcherTests" ReferencedContainer="container:VPhoneCommand.xcodeproj"/>
+ <BuildActionEntry
+ buildForTesting = "YES"
+ buildForRunning = "NO"
+ buildForProfiling = "NO"
+ buildForArchiving = "NO"
+ buildForAnalyzing = "YES">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "BB0000000000000000000014"
+ BuildableName = "FirmwarePatcherTests.xctest"
+ BlueprintName = "FirmwarePatcherTests"
+ ReferencedContainer = "container:VPhoneCommand.xcodeproj">
+ </BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
- <TestAction buildConfiguration="Debug" selectedDebuggerIdentifier="Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier="Xcode.IDEFoundation.Launcher.LLDB" shouldUseLaunchSchemeArgsEnv="YES">
+ <TestAction
+ buildConfiguration = "Debug"
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
- <TestableReference skipped="NO">
- <BuildableReference BuildableIdentifier="primary" BlueprintIdentifier="BB0000000000000000000014" BuildableName="FirmwarePatcherTests.xctest" BlueprintName="FirmwarePatcherTests" ReferencedContainer="container:VPhoneCommand.xcodeproj"/>
+ <TestableReference
+ skipped = "NO">
+ <BuildableReference
+ BuildableIdentifier = "primary"
+ BlueprintIdentifier = "BB0000000000000000000014"
+ BuildableName = "FirmwarePatcherTests.xctest"
+ BlueprintName = "FirmwarePatcherTests"
+ ReferencedContainer = "container:VPhoneCommand.xcodeproj">
+ </BuildableReference>
</TestableReference>
</Testables>
</TestAction>
+ <LaunchAction
+ buildConfiguration = "Debug"
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
+ launchStyle = "0"
+ useCustomWorkingDirectory = "NO"
+ ignoresPersistentStateOnLaunch = "NO"
+ debugDocumentVersioning = "YES"
+ debugServiceExtension = "internal"
+ allowLocationSimulation = "YES"
+ queueDebuggingEnabled = "No">
+ </LaunchAction>
+ <ProfileAction
+ buildConfiguration = "Release"
+ shouldUseLaunchSchemeArgsEnv = "YES"
+ savedToolIdentifier = ""
+ useCustomWorkingDirectory = "NO"
+ debugDocumentVersioning = "YES">
+ </ProfileAction>
+ <AnalyzeAction
+ buildConfiguration = "Debug">
+ </AnalyzeAction>
+ <ArchiveAction
+ buildConfiguration = "Release"
+ revealArchiveInOrganizer = "YES">
+ </ArchiveAction>
</Scheme>
diff --git a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift
index 6e2ca7ed..25aaca2f 100644
--- a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift
+++ b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareDyldSharedCacheVerbsCommand.swift
@@ -23,16 +23,18 @@ import Foundation
enum VPhoneCustomFirmwareDyldSharedCacheVerbs {
/// Registered into `vphone-cli cfw` by `VPhoneCustomFirmwareCommand`.
- static var all: [ParsableCommand.Type] { [
- VPhoneCustomFirmwarePatchHypervisorVirtualMachineDyldSharedCacheCommand.self,
- VPhoneCustomFirmwarePatchIOMFBSwapEndCommand.self,
- VPhoneCustomFirmwarePatchIOMFBForceKernCommand.self,
- VPhoneCustomFirmwarePatchDyldSharedCacheMaxSlideCommand.self,
- VPhoneCustomFirmwarePatchLSDEmbeddedRegCommand.self,
- VPhoneCustomFirmwarePatchXPCLWCRCommand.self,
- VPhoneCustomFirmwarePatchLockdownModeCommand.self,
- VPhoneCustomFirmwarePatchCameraDyldSharedCacheCommand.self,
- ] }
+ static var all: [ParsableCommand.Type] {
+ [
+ VPhoneCustomFirmwarePatchHypervisorVirtualMachineDyldSharedCacheCommand.self,
+ VPhoneCustomFirmwarePatchIOMFBSwapEndCommand.self,
+ VPhoneCustomFirmwarePatchIOMFBForceKernCommand.self,
+ VPhoneCustomFirmwarePatchDyldSharedCacheMaxSlideCommand.self,
+ VPhoneCustomFirmwarePatchLSDEmbeddedRegCommand.self,
+ VPhoneCustomFirmwarePatchXPCLWCRCommand.self,
+ VPhoneCustomFirmwarePatchLockdownModeCommand.self,
+ VPhoneCustomFirmwarePatchCameraDyldSharedCacheCommand.self,
+ ]
+ }
/// Where the patchers' progress lines go.
///
@@ -49,12 +51,13 @@ enum VPhoneCustomFirmwareDyldSharedCacheVerbs {
/// them.
static func parseCInteger(_ value: String) throws -> UInt32 {
let cleaned = value.replacingOccurrences(of: "_", with: "")
- let (radix, digits): (Int, Substring) = switch cleaned.prefix(2).lowercased() {
- case "0x": (16, cleaned.dropFirst(2))
- case "0o": (8, cleaned.dropFirst(2))
- case "0b": (2, cleaned.dropFirst(2))
- default: (10, cleaned[...])
- }
+ let (radix, digits): (Int, Substring) =
+ switch cleaned.prefix(2).lowercased() {
+ case "0x": (16, cleaned.dropFirst(2))
+ case "0o": (8, cleaned.dropFirst(2))
+ case "0b": (2, cleaned.dropFirst(2))
+ default: (10, cleaned[...])
+ }
guard !digits.isEmpty, let parsed = UInt32(digits, radix: radix) else {
throw ValidationError("not an integer: '\(value)'")
}
@@ -69,25 +72,25 @@ struct VPhoneCustomFirmwarePatchHypervisorVirtualMachineDyldSharedCacheCommand:
commandName: "patch-hv-vmm-dsc",
abstract: "Mangle the \"kern.hv_vmm_present\" sysctl name in the userland dyld cache",
discussion: """
- The EXP variant's userland half of the hv_vmm rename: every cstring
- occurrence of the sysctl name inside an executable mapping is rewritten,
- so the identity, store and consumer-service dylibs that ask "am I in a
- VM?" get ENOENT and read as a real device.
-
- It is a blacklist, not a list: a site is patched unless the dylib that
- contains it is one of the paravirt consumers that must keep seeing the
- truth — the graphics passthrough and compute/accel fast paths, which
- break if they think they are on bare metal. A site whose containing
- dylib cannot be named is left alone rather than guessed at.
-
- Every page written is re-attested against the cache's code-signature
- slots, and so is every page found already mangled: a cache whose bytes
- and slot hashes disagree is one the guest page-faults on. A re-run is
- therefore a no-op that still repairs attestation.
-
- Runs while the SystemOS cryptex is mounted on the host, wrapped by
- `scripts/patch_hv_vmm_userland.sh dsc`.
- """,
+ The EXP variant's userland half of the hv_vmm rename: every cstring
+ occurrence of the sysctl name inside an executable mapping is rewritten,
+ so the identity, store and consumer-service dylibs that ask "am I in a
+ VM?" get ENOENT and read as a real device.
+
+ It is a blacklist, not a list: a site is patched unless the dylib that
+ contains it is one of the paravirt consumers that must keep seeing the
+ truth — the graphics passthrough and compute/accel fast paths, which
+ break if they think they are on bare metal. A site whose containing
+ dylib cannot be named is left alone rather than guessed at.
+
+ Every page written is re-attested against the cache's code-signature
+ slots, and so is every page found already mangled: a cache whose bytes
+ and slot hashes disagree is one the guest page-faults on. A re-run is
+ therefore a no-op that still repairs attestation.
+
+ Runs while the SystemOS cryptex is mounted on the host, wrapped by
+ `scripts/patch_hv_vmm_userland.sh dsc`.
+ """,
)
@Argument(
@@ -115,24 +118,24 @@ struct VPhoneCustomFirmwarePatchIOMFBSwapEndCommand: ParsableCommand {
commandName: "patch-iomfb-swapend",
abstract: "Shrink IOMobileFramebuffer's _kern_SwapEnd payload to what the base userclient accepts",
discussion: """
- iOS 26.0/26.0.1 and 18.x ship a `_kern_SwapEnd` that hands the
- userclient a larger input-state struct than the vphone600 base kernel's
- `checkStructureInputSize` will take, so every present is refused and the
- VZ view stays black. This rewrites the size register in the
- `io_connect_method` set-up — one `mov w3, #imm` — and re-attests the page.
-
- The site is found by shape, not offset: the selector move, then the size
- move, then the two zeroed argument registers, then the call. A userland
- whose SwapEnd no longer has that shape is an error, not a silent skip.
-
- --target-size takes the size the base kernel accepts, in any base
- `int(x, 0)` reads (the installers pass 0x560). Default is 0x588, the
- 26.4 base's. iOS 27 is not patched this way at all — see
- `patch-iomfb-force-kern`.
-
- Already-correct is a no-op that still re-attests, so re-running over a
- patched cache is safe.
- """,
+ iOS 26.0/26.0.1 and 18.x ship a `_kern_SwapEnd` that hands the
+ userclient a larger input-state struct than the vphone600 base kernel's
+ `checkStructureInputSize` will take, so every present is refused and the
+ VZ view stays black. This rewrites the size register in the
+ `io_connect_method` set-up — one `mov w3, #imm` — and re-attests the page.
+
+ The site is found by shape, not offset: the selector move, then the size
+ move, then the two zeroed argument registers, then the call. A userland
+ whose SwapEnd no longer has that shape is an error, not a silent skip.
+
+ --target-size takes the size the base kernel accepts, in any base
+ `int(x, 0)` reads (the installers pass 0x560). Default is 0x588, the
+ 26.4 base's. iOS 27 is not patched this way at all — see
+ `patch-iomfb-force-kern`.
+
+ Already-correct is a no-op that still re-attests, so re-running over a
+ patched cache is safe.
+ """,
)
@Argument(
@@ -168,26 +171,26 @@ struct VPhoneCustomFirmwarePatchIOMFBForceKernCommand: ParsableCommand {
commandName: "patch-iomfb-force-kern",
abstract: "Retarget IOMobileFramebuffer's public Swap* trampolines onto their _kern_Swap* siblings",
discussion: """
- iOS 27's IOMobileFramebuffer defaults present onto the `_virt_*`
- callback path, which the 26.4 paravirt GPU never receives — so the host
- scans out nothing and the VZ view stays black. Each public
- `_IOMobileFramebufferSwap*` entry point is a thin dispatch trampoline;
- this retargets its branch at the `_kern_Swap*` sibling, which is the
- userclient method-5 path the paravirt GPU does scan out.
-
- Only a function that still looks like a thin trampoline is retargeted.
- One that does not is left on the virt path and reported, and a cache
- missing a required entry point is refused before anything is written —
- so a half-forced IOMFB is not a state this can leave behind.
-
- `_kern_Swap*` are stripped local symbols, so the cache's `.symbols`
- side file has to be present; without it there would be zero pairs to
- find, which would read as "this userland has none".
-
- Pairs with the KernelJailbreakPatchIomfbSwap kernel patches, which make the
- userclient accept 27's native 0x6e0 SwapEnd struct. Modified pages are
- re-attested; an already-forced cache is a no-op.
- """,
+ iOS 27's IOMobileFramebuffer defaults present onto the `_virt_*`
+ callback path, which the 26.4 paravirt GPU never receives — so the host
+ scans out nothing and the VZ view stays black. Each public
+ `_IOMobileFramebufferSwap*` entry point is a thin dispatch trampoline;
+ this retargets its branch at the `_kern_Swap*` sibling, which is the
+ userclient method-5 path the paravirt GPU does scan out.
+
+ Only a function that still looks like a thin trampoline is retargeted.
+ One that does not is left on the virt path and reported, and a cache
+ missing a required entry point is refused before anything is written —
+ so a half-forced IOMFB is not a state this can leave behind.
+
+ `_kern_Swap*` are stripped local symbols, so the cache's `.symbols`
+ side file has to be present; without it there would be zero pairs to
+ find, which would read as "this userland has none".
+
+ Pairs with the KernelJailbreakPatchIomfbSwap kernel patches, which make the
+ userclient accept 27's native 0x6e0 SwapEnd struct. Modified pages are
+ re-attested; an already-forced cache is a no-op.
+ """,
)
@Argument(
@@ -215,23 +218,23 @@ struct VPhoneCustomFirmwarePatchDyldSharedCacheMaxSlideCommand: ParsableCommand
commandName: "patch-dsc-maxslide",
abstract: "Zero dyld_cache_header.maxSlide when the cache would overflow the kernel's shared region",
discussion: """
- The vphone600 26.x kernel reserves a fixed 6 GiB shared region and
- charges it the cache's mapped span plus the header's maxSlide. iOS 27's
- userland cache (~5.95 GiB) plus 512 MiB of slide does not fit, so
- `_shared_region_map_and_slide` returns ENOMEM, dyld cannot map libSystem
- and launchd — pid 1 — takes the kernel down with it. Zeroing maxSlide
- lets the cache map at slide 0, which fits.
-
- Self-gating on the cache's real span, so a 26.x or 18.x base that fits
- with full slide is left alone and a cache already at maxSlide 0 is left
- alone either way. Both are reported and exit 0.
-
- --force zeroes maxSlide even when the cache fits — the opt-in behind
- FORCE_DSC_MAXSLIDE=1 for a non-27 base.
-
- No re-attestation: maxSlide lives in the cache header, which is not one
- of the cs_validate'd code pages.
- """,
+ The vphone600 26.x kernel reserves a fixed 6 GiB shared region and
+ charges it the cache's mapped span plus the header's maxSlide. iOS 27's
+ userland cache (~5.95 GiB) plus 512 MiB of slide does not fit, so
+ `_shared_region_map_and_slide` returns ENOMEM, dyld cannot map libSystem
+ and launchd — pid 1 — takes the kernel down with it. Zeroing maxSlide
+ lets the cache map at slide 0, which fits.
+
+ Self-gating on the cache's real span, so a 26.x or 18.x base that fits
+ with full slide is left alone and a cache already at maxSlide 0 is left
+ alone either way. Both are reported and exit 0.
+
+ --force zeroes maxSlide even when the cache fits — the opt-in behind
+ FORCE_DSC_MAXSLIDE=1 for a non-27 base.
+
+ No re-attestation: maxSlide lives in the cache header, which is not one
+ of the cs_validate'd code pages.
+ """,
)
@Argument(
@@ -262,23 +265,23 @@ struct VPhoneCustomFirmwarePatchLSDEmbeddedRegCommand: ParsableCommand {
commandName: "patch-lsd-embedded-reg",
abstract: "Open lsd's embedded-registration path so JB app installs can register",
discussion: """
- On iOS 27, `-[_LSDModifyClient
- clientIsEntitledForEmbeddedRegistrationOperations]` demands three
- privileged entitlements from its XPC peer, which nothing we install has,
- and uicache's own registration call is a stub. That leaves an app
- installed and unregistered — no icon, no launch. NOPing the gate makes
- the method fall through to success, which is what unblocks
- vphoned/TrollStore/uicache installs.
-
- One instruction, found by the method's control-flow shape rather than by
- offset, and the page is re-attested afterwards.
-
- Self-gating: a pre-iOS-27 userland has no such method, which is reported
- and exits 0. A userland that has the method but not the shape is an
- error — a LaunchServices rewrite has to stop the install rather than be
- guessed at, because the silent alternative boots a guest in which no app
- can register.
- """,
+ On iOS 27, `-[_LSDModifyClient
+ clientIsEntitledForEmbeddedRegistrationOperations]` demands three
+ privileged entitlements from its XPC peer, which nothing we install has,
+ and uicache's own registration call is a stub. That leaves an app
+ installed and unregistered — no icon, no launch. NOPing the gate makes
+ the method fall through to success, which is what unblocks
+ vphoned/TrollStore/uicache installs.
+
+ One instruction, found by the method's control-flow shape rather than by
+ offset, and the page is re-attested afterwards.
+
+ Self-gating: a pre-iOS-27 userland has no such method, which is reported
+ and exits 0. A userland that has the method but not the shape is an
+ error — a LaunchServices rewrite has to stop the install rather than be
+ guessed at, because the silent alternative boots a guest in which no app
+ can register.
+ """,
)
@Argument(
@@ -306,21 +309,21 @@ struct VPhoneCustomFirmwarePatchXPCLWCRCommand: ParsableCommand {
commandName: "patch-xpc-lwcr",
abstract: "Stop libxpc's Lightweight Code Requirement self-check from brk-aborting",
discussion: """
- Under our code-signing environment, iOS 27's LWCR matcher hands
- `_xpc_token_satisfies_lwcr` the contradictory pair (matched = 0,
- error_code = MATCH). The consistency assertion takes that as
- memory corruption and traps, which crash-loops every daemon that pins an
- entitlement peer-requirement on its peer — intelligencetasksd,
- searchpartyd, transparencyd, bluetoothd and the rest.
-
- Three words: `matched` is derived from `error_code` instead of being
- cross-checked against it, and the abort is dropped. The pages are
- re-attested.
-
- Self-gating: the symbol is absent on pre-iOS-27 libxpc, which is
- reported and exits 0, and a cache already carrying the patched shape is
- a no-op. A cache with the symbol but neither shape is an error.
- """,
+ Under our code-signing environment, iOS 27's LWCR matcher hands
+ `_xpc_token_satisfies_lwcr` the contradictory pair (matched = 0,
+ error_code = MATCH). The consistency assertion takes that as
+ memory corruption and traps, which crash-loops every daemon that pins an
+ entitlement peer-requirement on its peer — intelligencetasksd,
+ searchpartyd, transparencyd, bluetoothd and the rest.
+
+ Three words: `matched` is derived from `error_code` instead of being
+ cross-checked against it, and the abort is dropped. The pages are
+ re-attested.
+
+ Self-gating: the symbol is absent on pre-iOS-27 libxpc, which is
+ reported and exits 0, and a cache already carrying the patched shape is
+ a no-op. A cache with the symbol but neither shape is an error.
+ """,
)
@Argument(
@@ -348,19 +351,19 @@ struct VPhoneCustomFirmwarePatchLockdownModeCommand: ParsableCommand {
commandName: "patch-lockdown-mode",
abstract: "Stop os_lockdown_mode_enabled() aborting when the Lockdown Mode sysctl is missing",
discussion: """
- iOS 27's libSystem treats a failed read of
- `security.mac.lockdown_mode_state_public` as unrecoverable and aborts.
- The vphone600 26.x kernel does not implement that MAC sysctl, launchd is
- the first caller, and pid 1 aborting is a kernel panic before the guest
- ever reaches a login screen.
-
- NOPing the error branch lets the query fall through with 0 — Lockdown
- Mode off, which is the truth here — and boot continues. The page is
- re-attested.
-
- Self-gating: pre-iOS-27 userlands have no such symbol, which is reported
- and exits 0, and a cache already patched is a no-op.
- """,
+ iOS 27's libSystem treats a failed read of
+ `security.mac.lockdown_mode_state_public` as unrecoverable and aborts.
+ The vphone600 26.x kernel does not implement that MAC sysctl, launchd is
+ the first caller, and pid 1 aborting is a kernel panic before the guest
+ ever reaches a login screen.
+
+ NOPing the error branch lets the query fall through with 0 — Lockdown
+ Mode off, which is the truth here — and boot continues. The page is
+ re-attested.
+
+ Self-gating: pre-iOS-27 userlands have no such symbol, which is reported
+ and exits 0, and a cache already patched is a no-op.
+ """,
)
@Argument(
@@ -388,23 +391,23 @@ struct VPhoneCustomFirmwarePatchCameraDyldSharedCacheCommand: ParsableCommand {
commandName: "patch-camera-dsc",
abstract: "Stub the AVFoundation init-time validation that crashes Camera.app on a VM",
discussion: """
- The host-side virtual camera synthesises a single `vphone-cam`
- AVCaptureDevice through cameracaptured's device-list, discovery-session
- and serializer paths. AVFoundation's init-time validation does not
- survive a device assembled that way, so Camera.app dies on launch. This
- short-circuits the entry points that do that validation to a constant
- return, which is what makes the app launch-survivable.
-
- <dsc_header> is the unsuffixed `dyld_shared_cache_arm64e` file — the one
- the symbols resolve against, not a chunk. The Python takes it as a
- separate argument because `ipsw dyld symaddr` wants a file; it is passed
- through for the same reason.
-
- --force accepts an entry point whose prologue is neither the expected
- `pacibsp` nor the replacement already in place, which is otherwise
- refused rather than overwritten blind. Modified pages are re-attested;
- an already-patched cache is a no-op.
- """,
+ The host-side virtual camera synthesises a single `vphone-cam`
+ AVCaptureDevice through cameracaptured's device-list, discovery-session
+ and serializer paths. AVFoundation's init-time validation does not
+ survive a device assembled that way, so Camera.app dies on launch. This
+ short-circuits the entry points that do that validation to a constant
+ return, which is what makes the app launch-survivable.
+
+ <dsc_header> is the unsuffixed `dyld_shared_cache_arm64e` file — the one
+ the symbols resolve against, not a chunk. The Python takes it as a
+ separate argument because `ipsw dyld symaddr` wants a file; it is passed
+ through for the same reason.
+
+ --force accepts an entry point whose prologue is neither the expected
+ `pacibsp` nor the replacement already in place, which is otherwise
+ refused rather than overwritten blind. Modified pages are re-attested;
+ an already-patched cache is a no-op.
+ """,
)
@Argument(
diff --git a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift
index a44ecf2d..136c516d 100644
--- a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift
+++ b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareInstaller.swift
@@ -41,11 +41,13 @@ struct VPhoneCustomFirmwareInstaller {
let invokingUser = VPhoneInvokingUser.current
defer {
if let invokingUser {
- do { try invokingUser.restoreOwnership(at: bundle) }
- catch { fputs("warning: could not restore VM ownership: \(error)\n", stderr) }
+ do { try invokingUser.restoreOwnership(at: bundle) } catch {
+ fputs("warning: could not restore VM ownership: \(error)\n", stderr)
+ }
+ }
+ do { try VPhoneHostFilePermissions.makeAccessible(at: bundle) } catch {
+ fputs("warning: could not set VM file permissions: \(error)\n", stderr)
}
- do { try VPhoneHostFilePermissions.makeAccessible(at: bundle) }
- catch { fputs("warning: could not set VM file permissions: \(error)\n", stderr) }
}
let diskImage = bundle.appendingPathComponent("Disk.img")
guard fm.fileExists(atPath: diskImage.path) else {
@@ -57,17 +59,21 @@ struct VPhoneCustomFirmwareInstaller {
guard busy.stdout.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty else {
throw ValidationError("VM disk is in use; stop the VM before installing CFW")
}
- let capacity = try bundle.resourceValues(forKeys: [.volumeAvailableCapacityForImportantUsageKey])
+ let capacity =
+ try bundle.resourceValues(forKeys: [.volumeAvailableCapacityForImportantUsageKey])
.volumeAvailableCapacityForImportantUsage ?? 0
guard capacity > 50 * 1024 * 1024 * 1024 else {
throw ValidationError("Less than 50 GiB available; CFW install stopped before mounting")
}
- let attached = try tool("/usr/bin/hdiutil", [
- "attach", "-nomount", "-imagekey", "diskimage-class=CRawDiskImage", diskImage.path,
- ])
- guard let baseDisk = attached.split(whereSeparator: \.isNewline).first?
- .split(whereSeparator: \.isWhitespace).first.map(String.init),
+ let attached = try tool(
+ "/usr/bin/hdiutil",
+ [
+ "attach", "-nomount", "-imagekey", "diskimage-class=CRawDiskImage", diskImage.path,
+ ])
+ guard
+ let baseDisk = attached.split(whereSeparator: \.isNewline).first?
+ .split(whereSeparator: \.isWhitespace).first.map(String.init),
baseDisk.hasPrefix("/dev/disk")
else {
if let range = attached.range(of: #"/dev/disk[0-9]+"#, options: .regularExpression) {
@@ -79,7 +85,7 @@ struct VPhoneCustomFirmwareInstaller {
var workToClean: URL?
defer {
if diskAttached,
- (try? tool("/usr/bin/hdiutil", ["detach", baseDisk], quiet: true)) == nil
+ (try? tool("/usr/bin/hdiutil", ["detach", baseDisk], quiet: true)) == nil
{
_ = try? tool("/usr/bin/hdiutil", ["detach", "-force", baseDisk], quiet: true)
}
@@ -93,10 +99,11 @@ struct VPhoneCustomFirmwareInstaller {
}
let info = try tool("/usr/sbin/diskutil", ["info", "-plist", "\(baseDisk)s1"], quiet: true)
- guard let plist = try PropertyListSerialization.propertyList(
- from: Data(info.utf8),
- format: nil,
- ) as? [String: Any],
+ guard
+ let plist = try PropertyListSerialization.propertyList(
+ from: Data(info.utf8),
+ format: nil,
+ ) as? [String: Any],
let container = plist["APFSContainerReference"] as? String,
container.hasPrefix("disk")
else {
@@ -111,12 +118,12 @@ struct VPhoneCustomFirmwareInstaller {
var dataMounted = false
defer {
if dataMounted,
- (try? tool("/sbin/umount", [data.path], quiet: true)) == nil
+ (try? tool("/sbin/umount", [data.path], quiet: true)) == nil
{
_ = try? tool("/sbin/umount", ["-f", data.path], quiet: true)
}
if systemMounted,
- (try? tool("/sbin/umount", [system.path], quiet: true)) == nil
+ (try? tool("/sbin/umount", [system.path], quiet: true)) == nil
{
_ = try? tool("/sbin/umount", ["-f", system.path], quiet: true)
}
@@ -140,10 +147,12 @@ struct VPhoneCustomFirmwareInstaller {
}
private func installMounted(system: URL, data: URL, work: URL) throws {
- guard let restore = try fm.contentsOfDirectory(at: bundle, includingPropertiesForKeys: [.isDirectoryKey])
- .first(where: { $0.lastPathComponent.contains("Restore") &&
- fm.fileExists(atPath: $0.appendingPathComponent("iPhone-BuildManifest.plist").path)
- })
+ guard
+ let restore = try fm.contentsOfDirectory(at: bundle, includingPropertiesForKeys: [.isDirectoryKey])
+ .first(where: {
+ $0.lastPathComponent.contains("Restore")
+ && fm.fileExists(atPath: $0.appendingPathComponent("iPhone-BuildManifest.plist").path)
+ })
else {
throw ValidationError("No prepared iPhone restore tree exists in \(bundle.path)")
}
@@ -190,19 +199,23 @@ struct VPhoneCustomFirmwareInstaller {
}
try fm.copyItem(at: gpuSource, to: gpu)
try tool("/usr/sbin/chown", ["-R", "0:0", gpu.path])
- for file in [gpu, gpu.appendingPathComponent("AppleParavirtGPUMetalIOGPUFamily"),
- gpu.appendingPathComponent("_CodeSignature")]
- {
+ for file in [
+ gpu, gpu.appendingPathComponent("AppleParavirtGPUMetalIOGPUFamily"),
+ gpu.appendingPathComponent("_CodeSignature"),
+ ] {
try fm.setAttributes([.posixPermissions: NSNumber(value: 0o755)], ofItemAtPath: file.path)
}
let compilerPlugin = gpu.appendingPathComponent("libAppleParavirtCompilerPluginIOGPUFamily.dylib")
guard fm.fileExists(atPath: compilerPlugin.path) else {
- throw ValidationError("PCC GPU compiler plugin is missing: \(compilerPlugin.path). Re-run fw prepare with a complete vphone-cli.app.")
+ throw ValidationError(
+ "PCC GPU compiler plugin is missing: \(compilerPlugin.path). Re-run fw prepare with a complete vphone-cli.app."
+ )
}
try fm.setAttributes([.posixPermissions: NSNumber(value: 0o755)], ofItemAtPath: compilerPlugin.path)
- for file in [gpu.appendingPathComponent("Info.plist"),
- gpu.appendingPathComponent("_CodeSignature/CodeResources")]
- {
+ for file in [
+ gpu.appendingPathComponent("Info.plist"),
+ gpu.appendingPathComponent("_CodeSignature/CodeResources"),
+ ] {
try fm.setAttributes([.posixPermissions: NSNumber(value: 0o644)], ofItemAtPath: file.path)
}
try patchMachO(
@@ -237,8 +250,8 @@ struct VPhoneCustomFirmwareInstaller {
private func installCryptexes(restore: URL, system: URL, work: URL) throws {
let os = system.appendingPathComponent("System/Cryptexes/OS")
let app = system.appendingPathComponent("System/Cryptexes/App")
- if !((try? fm.contentsOfDirectory(atPath: os.path))?.isEmpty == false &&
- (try? fm.contentsOfDirectory(atPath: app.path))?.isEmpty == false)
+ if !((try? fm.contentsOfDirectory(atPath: os.path))?.isEmpty == false
+ && (try? fm.contentsOfDirectory(atPath: app.path))?.isEmpty == false)
{
let paths = try CustomFirmwareDaemons.cryptexPaths(
buildManifest: restore.appendingPathComponent("iPhone-BuildManifest.plist"),
@@ -249,8 +262,10 @@ struct VPhoneCustomFirmwareInstaller {
let key = try vphoneRunBlocking { try await VPhoneAEA.symmetricKey(of: encrypted) }
try tool(
"/usr/bin/aea",
- ["decrypt", "-i", encrypted.path,
- "-o", plain.path, "-key-value", key],
+ [
+ "decrypt", "-i", encrypted.path,
+ "-o", plain.path, "-key-value", key,
+ ],
quiet: true,
)
let osMount = work.appendingPathComponent("mnt-os")
@@ -258,27 +273,39 @@ struct VPhoneCustomFirmwareInstaller {
try fm.createDirectory(at: osMount, withIntermediateDirectories: true)
try fm.createDirectory(at: appMount, withIntermediateDirectories: true)
var osNeedsDetach = true
- defer { if osNeedsDetach { try? detachImage(at: osMount) } }
+ defer {
+ if osNeedsDetach {
+ try? detachImage(at: osMount)
+ }
+ }
try tool(
"/usr/bin/hdiutil",
- ["attach", "-mountpoint", osMount.path,
- plain.path, "-nobrowse", "-owners", "off"],
+ [
+ "attach", "-mountpoint", osMount.path,
+ plain.path, "-nobrowse", "-owners", "off",
+ ],
quiet: true,
)
var appNeedsDetach = true
- defer { if appNeedsDetach { try? detachImage(at: appMount) } }
+ defer {
+ if appNeedsDetach {
+ try? detachImage(at: appMount)
+ }
+ }
try tool(
"/usr/bin/hdiutil",
- ["attach", "-mountpoint", appMount.path,
- appImage.path,
- "-nobrowse", "-owners", "off"],
+ [
+ "attach", "-mountpoint", appMount.path,
+ appImage.path,
+ "-nobrowse", "-owners", "off",
+ ],
quiet: true,
)
for (source, destination) in [(osMount, os), (appMount, app)] {
// The restored rootfs has dangling Cryptex symlinks. fileExists
// follows those links and reports false until Preboot is populated.
- if fm.fileExists(atPath: destination.path) ||
- (try? fm.destinationOfSymbolicLink(atPath: destination.path)) != nil
+ if fm.fileExists(atPath: destination.path)
+ || (try? fm.destinationOfSymbolicLink(atPath: destination.path)) != nil
{
try fm.removeItem(at: destination)
}
@@ -292,10 +319,12 @@ struct VPhoneCustomFirmwareInstaller {
try detachImage(at: osMount)
osNeedsDetach = false
}
- try symlink("../../../System/Cryptexes/OS/System/Library/Caches/com.apple.dyld",
- at: system.appendingPathComponent("System/Library/Caches/com.apple.dyld"))
- try symlink("../../../../System/Cryptexes/OS/System/DriverKit/System/Library/dyld",
- at: system.appendingPathComponent("System/DriverKit/System/Library/dyld"))
+ try symlink(
+ "../../../System/Cryptexes/OS/System/Library/Caches/com.apple.dyld",
+ at: system.appendingPathComponent("System/Library/Caches/com.apple.dyld"))
+ try symlink(
+ "../../../../System/Cryptexes/OS/System/DriverKit/System/Library/dyld",
+ at: system.appendingPathComponent("System/DriverKit/System/Library/dyld"))
}
private func installVphoned(system: URL, work: URL) throws {
@@ -304,8 +333,9 @@ struct VPhoneCustomFirmwareInstaller {
try fm.copyItem(at: vphoned, to: staged)
let entitlementsURL = resources.scriptsDir.appendingPathComponent("vphoned/VPhoneDaemon.entitlements")
let entitlements = try Data(contentsOf: entitlementsURL, options: .mappedIfSafe)
- try VPhoneSigner.sign(fileAt: staged,
- options: .init(entitlements: entitlements, mergesExisting: true))
+ try VPhoneSigner.sign(
+ fileAt: staged,
+ options: .init(entitlements: entitlements, mergesExisting: true))
try replace(staged, at: system.appendingPathComponent("usr/bin/vphoned"), mode: 0o755)
let signed = bundle.appendingPathComponent(".vphoned.signed")
if fm.fileExists(atPath: signed.path) {
@@ -313,9 +343,11 @@ struct VPhoneCustomFirmwareInstaller {
}
try fm.copyItem(at: staged, to: signed)
let daemon = resources.scriptsDir.appendingPathComponent("vphoned/vphoned.plist")
- try replace(daemon, at: system.appendingPathComponent(
- "System/Library/LaunchDaemons/vphoned.plist",
- ), mode: 0o644)
+ try replace(
+ daemon,
+ at: system.appendingPathComponent(
+ "System/Library/LaunchDaemons/vphoned.plist",
+ ), mode: 0o644)
let launchd = system.appendingPathComponent("System/Library/xpc/launchd.plist")
let backup = launchd.appendingPathExtension("bak")
if !fm.fileExists(atPath: backup.path) {
@@ -366,15 +398,17 @@ struct VPhoneCustomFirmwareInstaller {
try fm.removeItem(at: staged)
}
try fm.copyItem(at: backup, to: staged)
- let entitlements = preserveEntitlements
+ let entitlements =
+ preserveEntitlements
? try VPhoneSigner.entitlements(ofFileAt: backup).first(where: { !$0.isEmpty })
: nil
try patch(verb, [staged.path])
if let injectedDylibPath {
try patch("inject-dylib", [staged.path, injectedDylibPath])
}
- try VPhoneSigner.sign(fileAt: staged,
- options: .init(identifier: identifier, entitlements: entitlements, mergesExisting: true))
+ try VPhoneSigner.sign(
+ fileAt: staged,
+ options: .init(identifier: identifier, entitlements: entitlements, mergesExisting: true))
try replace(staged, at: target, mode: 0o755)
}
@@ -384,8 +418,9 @@ struct VPhoneCustomFirmwareInstaller {
print("[!] debugserver absent; entitlement patch skipped")
return
}
- guard let source = try VPhoneSigner.entitlements(ofFileAt: target)
- .first(where: { !$0.isEmpty }),
+ guard
+ let source = try VPhoneSigner.entitlements(ofFileAt: target)
+ .first(where: { !$0.isEmpty }),
var plist = try PropertyListSerialization.propertyList(
from: source, format: nil,
) as? [String: Any]
@@ -395,12 +430,14 @@ struct VPhoneCustomFirmwareInstaller {
}
plist.removeValue(forKey: "seatbelt-profiles")
plist["task_for_pid-allow"] = true
- let data = try PropertyListSerialization.data(fromPropertyList: plist,
- format: .xml, options: 0)
+ let data = try PropertyListSerialization.data(
+ fromPropertyList: plist,
+ format: .xml, options: 0)
let staged = work.appendingPathComponent("debugserver")
try fm.copyItem(at: target, to: staged)
- try VPhoneSigner.sign(fileAt: staged,
- options: .init(entitlements: data, mergesExisting: true))
+ try VPhoneSigner.sign(
+ fileAt: staged,
+ options: .init(entitlements: data, mergesExisting: true))
try replace(staged, at: target, mode: 0o755)
}
@@ -410,8 +447,9 @@ struct VPhoneCustomFirmwareInstaller {
print("[!] Campo absent; entitlement patch skipped")
return
}
- guard let source = try VPhoneSigner.entitlements(ofFileAt: target)
- .first(where: { !$0.isEmpty })
+ guard
+ let source = try VPhoneSigner.entitlements(ofFileAt: target)
+ .first(where: { !$0.isEmpty })
else {
print("[!] Campo has no readable entitlements; patch skipped")
return
@@ -449,10 +487,11 @@ struct VPhoneCustomFirmwareInstaller {
let plist = system.appendingPathComponent(
"System/Library/CoreServices/SystemVersion.plist",
)
- guard let value = try PropertyListSerialization.propertyList(
- from: Data(contentsOf: plist, options: .mappedIfSafe),
- format: nil,
- ) as? [String: Any],
+ guard
+ let value = try PropertyListSerialization.propertyList(
+ from: Data(contentsOf: plist, options: .mappedIfSafe),
+ format: nil,
+ ) as? [String: Any],
let version = value["ProductVersion"] as? String
else {
throw ValidationError("SystemVersion.plist has no ProductVersion")
@@ -482,10 +521,12 @@ struct VPhoneCustomFirmwareInstaller {
throw ValidationError("Could not verify that CFW volumes are detached")
}
let root = work.resolvingSymlinksInPath().path
- guard !mounts.contains(where: {
- let path = $0.resolvingSymlinksInPath().path
- return path == root || path.hasPrefix(root + "/")
- }) else {
+ guard
+ !mounts.contains(where: {
+ let path = $0.resolvingSymlinksInPath().path
+ return path == root || path.hasPrefix(root + "/")
+ })
+ else {
throw ValidationError("CFW volume is still mounted under \(work.path)")
}
try fm.removeItem(at: work)
@@ -516,7 +557,8 @@ struct VPhoneCustomFirmwareInstaller {
}
}
guard result.succeeded else {
- throw ValidationError("\(URL(fileURLWithPath: path).lastPathComponent) failed (\(result.exitCode)): \(result.stderr)")
+ throw ValidationError(
+ "\(URL(fileURLWithPath: path).lastPathComponent) failed (\(result.exitCode)): \(result.stderr)")
}
return result.stdout
}
diff --git a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareMachOVerbsCommand.swift b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareMachOVerbsCommand.swift
index 8af13235..eb56b8e1 100644
--- a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareMachOVerbsCommand.swift
+++ b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Firmware/VPhoneCustomFirmwareMachOVerbsCommand.swift
@@ -70,12 +70,16 @@ private func requireUntruncatedMachO(at url: URL) throws {
let size = (try? FileManager.default.attributesOfItem(atPath: url.path)[.size] as? Int) ?? nil
guard let fileSize = size else { return }
- let numberOfCommands = Int(UInt32(littleEndian: header.withUnsafeBytes {
- $0.loadUnaligned(fromByteOffset: 16, as: UInt32.self)
- }))
- let sizeOfCommands = Int(UInt32(littleEndian: header.withUnsafeBytes {
- $0.loadUnaligned(fromByteOffset: 20, as: UInt32.self)
- }))
+ let numberOfCommands = Int(
+ UInt32(
+ littleEndian: header.withUnsafeBytes {
+ $0.loadUnaligned(fromByteOffset: 16, as: UInt32.self)
+ }))
+ let sizeOfCommands = Int(
+ UInt32(
+ littleEndian: header.withUnsafeBytes {
+ $0.loadUnaligned(fromByteOffset: 20, as: UInt32.self)
+ }))
// A load command is 8 bytes at its smallest (cmd + cmdsize), so a header
// claiming more commands than that much room is lying about one of the two.
@@ -95,20 +99,20 @@ struct VPhoneCustomFirmwarePatchSeputilCommand: ParsableCommand {
commandName: "patch-seputil",
abstract: "Pin seputil's gigalocker path to /AA.gl instead of the device UUID",
discussion: """
- seputil builds the gigalocker filename from the format string
- "/%s.gl", filling %s with the device's UUID. Rewriting those two bytes
- to "AA" makes the path /mnt7/AA.gl on every guest, which is what lets
- the install ship one pre-made .gl file instead of one per device.
-
- The literal is found in __TEXT,__cstring and confirmed by an adrp+add
- pair in __TEXT,__text that computes its address — the Python takes the
- first substring hit anywhere in the file. Both land on the same byte in
- this firmware; this one cannot land on a coincidence in the next.
-
- Idempotent: a binary already reading "/AA.gl" is reported and left
- alone. The Python exits 1 there, because the string it searches for is
- no longer in the file.
- """,
+ seputil builds the gigalocker filename from the format string
+ "/%s.gl", filling %s with the device's UUID. Rewriting those two bytes
+ to "AA" makes the path /mnt7/AA.gl on every guest, which is what lets
+ the install ship one pre-made .gl file instead of one per device.
+
+ The literal is found in __TEXT,__cstring and confirmed by an adrp+add
+ pair in __TEXT,__text that computes its address — the Python takes the
+ first substring hit anywhere in the file. Both land on the same byte in
+ this firmware; this one cannot land on a coincidence in the next.
+
+ Idempotent: a binary already reading "/AA.gl" is reported and left
+ alone. The Python exits 1 there, because the string it searches for is
+ no longer in the file.
+ """,
)
@Argument(help: "Path to the seputil Mach-O, patched in place", transform: URL.init(fileURLWithPath:))
@@ -129,21 +133,21 @@ struct VPhoneCustomFirmwarePatchLaunchdCacheLoaderCommand: ParsableCommand {
commandName: "patch-launchd-cache-loader",
abstract: "Open the launchd_unsecure_cache gate so a modified launchd.plist loads",
discussion: """
- /usr/libexec/launchd_cache_loader refuses a launch-daemon cache it did
- not validate unless the boot arg `launchd_unsecure_cache=` is set.
- NOPping the branch that reads that boot arg takes the guest down the
- unsecure path unconditionally, which is how the injected daemons get
- loaded without a boot-args change.
-
- The branch is reached from the boot-arg string's adrp+add xref, and it
- is checked to actually consume the call's result and jump forward out
- of the unsecure path before anything is written. The Python NOPs the
- first conditional branch after the call, whatever it tests.
-
- Idempotent: a gate already holding a NOP is reported and left alone.
- The Python exits 1 there — a NOP is not one of the branches it looks
- for.
- """,
+ /usr/libexec/launchd_cache_loader refuses a launch-daemon cache it did
+ not validate unless the boot arg `launchd_unsecure_cache=` is set.
+ NOPping the branch that reads that boot arg takes the guest down the
+ unsecure path unconditionally, which is how the injected daemons get
+ loaded without a boot-args change.
+
+ The branch is reached from the boot-arg string's adrp+add xref, and it
+ is checked to actually consume the call's result and jump forward out
+ of the unsecure path before anything is written. The Python NOPs the
+ first conditional branch after the call, whatever it tests.
+
+ Idempotent: a gate already holding a NOP is reported and left alone.
+ The Python exits 1 there — a NOP is not one of the branches it looks
+ for.
+ """,
)
@Argument(help: "Path to the launchd_cache_loader Mach-O, patched in place", transform: URL.init(fileURLWithPath:))
@@ -168,19 +172,19 @@ struct VPhoneCustomFirmwarePatchMobileactivationdCommand: ParsableCommand {
commandName: "patch-mobileactivationd",
abstract: "Force -[DeviceType should_hactivate] to return YES",
discussion: """
- The guest has no path to Apple's activation service, so activation has
- to be answered locally. Overwriting the getter's prologue with
- `mov x0, #1 ; ret` is safe: it returns to the caller's unsigned LR
- without ever pushing a frame.
-
- The implementation is resolved twice — through LC_SYMTAB and through
- the ObjC metadata chain (selector -> selref -> method list -> IMP) —
- and when both resolve they must agree. The Python takes whichever
- answers first.
-
- Idempotent: a getter already reading `mov x0, #1 ; ret` is reported and
- the file is not rewritten, so even its mtime survives.
- """,
+ The guest has no path to Apple's activation service, so activation has
+ to be answered locally. Overwriting the getter's prologue with
+ `mov x0, #1 ; ret` is safe: it returns to the caller's unsigned LR
+ without ever pushing a frame.
+
+ The implementation is resolved twice — through LC_SYMTAB and through
+ the ObjC metadata chain (selector -> selref -> method list -> IMP) —
+ and when both resolve they must agree. The Python takes whichever
+ answers first.
+
+ Idempotent: a getter already reading `mov x0, #1 ; ret` is reported and
+ the file is not rewritten, so even its mtime survives.
+ """,
)
@Argument(help: "Path to the mobileactivationd Mach-O, patched in place", transform: URL.init(fileURLWithPath:))
@@ -200,20 +204,20 @@ struct VPhoneCustomFirmwarePatchLaunchdJetsamCommand: ParsableCommand {
commandName: "patch-launchd-jetsam",
abstract: "Bypass the jetsam panic guard in /sbin/launchd",
discussion: """
- launchd panics when its jetsam configuration does not add up, which a
- JB guest's rearranged daemon set reliably triggers. The conditional
- branch that guards the panic is rewritten to an unconditional `b` to
- the same target, so the function always takes its return path.
-
- The site is reached from the panic string's adrp+add xref, walking back
- to the conditional branch whose target is the enclosing function's
- return block.
-
- Idempotent: an unconditional branch into the return block already
- sitting ahead of every conditional one means a previous run did the
- work, and nothing is written. Neither implementation would otherwise
- pick the same site twice.
- """,
+ launchd panics when its jetsam configuration does not add up, which a
+ JB guest's rearranged daemon set reliably triggers. The conditional
+ branch that guards the panic is rewritten to an unconditional `b` to
+ the same target, so the function always takes its return path.
+
+ The site is reached from the panic string's adrp+add xref, walking back
+ to the conditional branch whose target is the enclosing function's
+ return block.
+
+ Idempotent: an unconditional branch into the return block already
+ sitting ahead of every conditional one means a previous run did the
+ work, and nothing is written. Neither implementation would otherwise
+ pick the same site twice.
+ """,
)
@Argument(help: "Path to the /sbin/launchd Mach-O, patched in place", transform: URL.init(fileURLWithPath:))
@@ -234,22 +238,22 @@ struct VPhoneCustomFirmwarePatchWatchdogdCommand: ParsableCommand {
commandName: "patch-watchdogd",
abstract: "Stop watchdogd caching kern.hv_vmm_present as true",
discussion: """
- watchdogd reads `kern.hv_vmm_present` through sysctlbyname and caches
- the answer in a __DATA global. On the EXP variant the kernel already
- lies about that sysctl, but watchdogd's cached copy is written from the
- call's success path, so the NOP here plus a forced `mov wN, #1` leaves
- the cache reading "not a VM" whatever the call returns.
-
- Each site is confirmed five ways — the literal, its adrp+add, the
- `bl _sysctlbyname`, Capstone's decoded condition code on the gate, and
- a `strb` into a __DATA-segment global — before a byte moves.
-
- Exits 0 whether it patched or found every site already patched, which
- is what `scripts/patch_hv_vmm_userland.sh` expects; only an
- unparseable binary or a missing anchor is fatal. Unlike the other five
- verbs this one re-attests the pages it dirties, because its Python does
- too.
- """,
+ watchdogd reads `kern.hv_vmm_present` through sysctlbyname and caches
+ the answer in a __DATA global. On the EXP variant the kernel already
+ lies about that sysctl, but watchdogd's cached copy is written from the
+ call's success path, so the NOP here plus a forced `mov wN, #1` leaves
+ the cache reading "not a VM" whatever the call returns.
+
+ Each site is confirmed five ways — the literal, its adrp+add, the
+ `bl _sysctlbyname`, Capstone's decoded condition code on the gate, and
+ a `strb` into a __DATA-segment global — before a byte moves.
+
+ Exits 0 whether it patched or found every site already patched, which
+ is what `scripts/patch_hv_vmm_userland.sh` expects; only an
+ unparseable binary or a missing anchor is fatal. Unlike the other five
+ verbs this one re-attests the pages it dirties, because its Python does
+ too.
+ """,
)
@Argument(help: "Path to the watchdogd Mach-O, patched in place", transform: URL.init(fileURLWithPath:))
@@ -271,17 +275,17 @@ struct VPhoneCustomFirmwarePatchDiskimagesiodCommand: ParsableCommand {
commandName: "patch-diskimagesiod",
abstract: "Force -[DIDiskArb isMountCompleteWithExpectedCount:diskTracker:] to return YES",
discussion: """
- MobileStorageMounter waits for a disk-arbitration mount count the guest
- never reaches, and blocks boot until it times out. Returning YES from
- the completion check lets the mount finish.
+ MobileStorageMounter waits for a disk-arbitration mount count the guest
+ never reaches, and blocks boot until it times out. Returning YES from
+ the completion check lets the mount finish.
- The same two-anchor resolution as patch-mobileactivationd: LC_SYMTAB
- first, then the ObjC metadata chain, with the prologue overwritten by
- `mov x0, #1 ; ret`.
+ The same two-anchor resolution as patch-mobileactivationd: LC_SYMTAB
+ first, then the ObjC metadata chain, with the prologue overwritten by
+ `mov x0, #1 ; ret`.
- Idempotent: a prologue already reading `mov x0, #1 ; ret` is reported
- and the file is left byte-for-byte alone.
- """,
+ Idempotent: a prologue already reading `mov x0, #1 ; ret` is reported
+ and the file is left byte-for-byte alone.
+ """,
)
@Argument(help: "Path to the diskimagesiod Mach-O, patched in place", transform: URL.init(fileURLWithPath:))
@@ -302,12 +306,14 @@ enum VPhoneCustomFirmwareMachOVerbs {
///
/// Ordered as `cfw.py`'s dispatch table lists them, so `--help` and the
/// Python's usage block read in the same order.
- static var all: [ParsableCommand.Type] { [
- VPhoneCustomFirmwarePatchSeputilCommand.self,
- VPhoneCustomFirmwarePatchLaunchdCacheLoaderCommand.self,
- VPhoneCustomFirmwarePatchMobileactivationdCommand.self,
- VPhoneCustomFirmwarePatchLaunchdJetsamCommand.self,
- VPhoneCustomFirmwarePatchWatchdogdCommand.self,
- VPhoneCustomFirmwarePatchDiskimagesiodCommand.self,
- ] }
+ static var all: [ParsableCommand.Type] {
+ [
+ VPhoneCustomFirmwarePatchSeputilCommand.self,
+ VPhoneCustomFirmwarePatchLaunchdCacheLoaderCommand.self,
+ VPhoneCustomFirmwarePatchMobileactivationdCommand.self,
+ VPhoneCustomFirmwarePatchLaunchdJetsamCommand.self,
+ VPhoneCustomFirmwarePatchWatchdogdCommand.self,
+ VPhoneCustomFirmwarePatchDiskimagesiodCommand.self,
+ ]
+ }
}
diff --git a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Host/VPhoneHostPreflight.swift b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Host/VPhoneHostPreflight.swift
index db09d53a..bb0036a9 100644
--- a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Host/VPhoneHostPreflight.swift
+++ b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/Host/VPhoneHostPreflight.swift
@@ -11,7 +11,7 @@ enum VPhoneHostPreflight {
URL(fileURLWithPath: "/usr/sbin/sysctl"), ["-n", "kern.hv_vmm_present"],
)
if probe.succeeded,
- probe.stdout.trimmingCharacters(in: .whitespacesAndNewlines) == "1"
+ probe.stdout.trimmingCharacters(in: .whitespacesAndNewlines) == "1"
{
throw ValidationError("Nested virtualization is unavailable for this VM")
}
@@ -26,7 +26,6 @@ struct VPhoneHostCommand: ParsableCommand {
)
}
-
struct VPhoneHostPreflightCommand: ParsableCommand {
static let configuration = CommandConfiguration(
commandName: "preflight",
diff --git a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCommand.swift b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCommand.swift
index 0892066e..2ccff757 100644
--- a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCommand.swift
+++ b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCommand.swift
@@ -55,9 +55,11 @@ struct VPhoneVirtualMachineWriteManifestCommand: ParsableCommand {
func run() throws {
var isDirectory: ObjCBool = false
- guard FileManager.default.fileExists(
- atPath: vmDirectory.path, isDirectory: &isDirectory,
- ), isDirectory.boolValue else {
+ guard
+ FileManager.default.fileExists(
+ atPath: vmDirectory.path, isDirectory: &isDirectory,
+ ), isDirectory.boolValue
+ else {
throw ValidationError("VM directory does not exist: \(vmDirectory.path)")
}
@@ -71,7 +73,7 @@ struct VPhoneVirtualMachineWriteManifestCommand: ParsableCommand {
// An existing VM must already be v2; do not turn a legacy VM into
// a v2 VM by replacing only its manifest.
_ = try VPhoneVirtualMachineManifest.load(from: configURL)
- } else if !((try FileManager.default.contentsOfDirectory(atPath: vmDirectory.path)).isEmpty) {
+ } else if try !((FileManager.default.contentsOfDirectory(atPath: vmDirectory.path)).isEmpty) {
throw ValidationError(
"The VM directory contains data but has no config.plist. Recreate the VM in a new directory; "
+ "write-manifest cannot upgrade an existing VM.",
@@ -86,11 +88,13 @@ struct VPhoneVirtualMachineWriteManifestCommand: ParsableCommand {
// MARK: - Shared options
struct VPhoneLibraryOption: ParsableArguments {
- @Option(name: [.customShort("l"), .long], help: "VM library root (default: ~/.vphone/machines or $VPHONE_LIBRARY_ROOT)")
+ @Option(
+ name: [.customShort("l"), .long], help: "VM library root (default: ~/.vphone/machines or $VPHONE_LIBRARY_ROOT)")
var libraryRoot: String?
var library: VPhoneLibrary {
- let root = libraryRoot.map { URL(fileURLWithPath: $0, isDirectory: true) }
+ let root =
+ libraryRoot.map { URL(fileURLWithPath: $0, isDirectory: true) }
?? VPhoneLibrary.defaultRoot()
return VPhoneLibrary(root: root)
}
@@ -118,7 +122,8 @@ struct VPhoneVirtualMachineListCommand: ParsableCommand {
print("(no VMs in \(library.root.path))")
} else {
for r in reports {
- var line = "\(r.name) \(r.cpuCount) CPU \(r.memoryMB) MB \(r.diskSizeBytes / (1024 * 1024 * 1024)) GB disk"
+ var line =
+ "\(r.name) \(r.cpuCount) CPU \(r.memoryMB) MB \(r.diskSizeBytes / (1024 * 1024 * 1024)) GB disk"
if let info = r.restoreInfo {
line += " iOS \(info.ios.version) / cloudOS \(info.cloudOS.version)"
}
@@ -221,8 +226,9 @@ struct VPhoneVirtualMachineConfigCommand: ParsableCommand {
bridgeInterface: bridgeInterface,
)
let m = updated.manifest
- print("updated \(updated.name): \(m.cpuCount) CPU, \(m.memorySize / (1024 * 1024)) MB, "
- + "net=\(describeNetwork(m.networkConfig))")
+ print(
+ "updated \(updated.name): \(m.cpuCount) CPU, \(m.memorySize / (1024 * 1024)) MB, "
+ + "net=\(describeNetwork(m.networkConfig))")
}
private static func parseMode(_ s: String)
@@ -278,7 +284,10 @@ struct VPhoneVirtualMachineDeleteCommand: ParsableCommand {
let name = try VPhoneVirtualMachineSelection.resolveExisting(name, in: lib.library)
if !force {
print("Delete '\(name)' and all its files? [y/N] ", terminator: "")
- guard (readLine() ?? "").lowercased() == "y" else { print("aborted"); return }
+ guard (readLine() ?? "").lowercased() == "y" else {
+ print("aborted")
+ return
+ }
}
try VPhoneBundleOperations.delete(bundleNamed: name, in: lib.library)
print("deleted \(name)")
diff --git a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreator.swift b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreator.swift
index f137092a..319786e8 100644
--- a/VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreator.swift
+++ b/VPhoneExecutable/VPhoneCommand/VPhoneCommand/VirtualMachine/VPhoneVirtualMachineCreator.swift
@@ -24,26 +24,26 @@ private enum VPhoneVirtualMachineCreationError: Error, CustomStringConvertible {
switch self {
case .nestedVirtualization:
"Guest boot is unavailable inside a VM. Run vm create on a macOS 15 or later host that is not itself a VM."
- case let .identityTimedOut(path):
+ case .identityTimedOut(let path):
"Device identity file not found: \(path.path). Run vm create again to regenerate it."
- case let .invalidUDID(v):
+ case .invalidUDID(let v):
"Invalid UDID in the device identity file: '\(v)'. Run vm create again to regenerate it."
- case let .invalidECID(v):
+ case .invalidECID(let v):
"Invalid ECID in the device identity file: '\(v)'. Run vm create again to regenerate it."
- case let .udidECIDMismatch(udid, ecid):
+ case .udidECIDMismatch(let udid, let ecid):
"The UDID and ECID in the device identity file do not match: \(udid) vs 0x\(ecid). "
+ "Run vm create again to regenerate it."
case .recoveryTimeout:
"Timed out waiting for the device to enter recovery mode."
// No exit code any more: the restore backend is in this process, so
// what a failure carries is the reason it gave.
- case let .restoreUpdateFailed(reason):
+ case .restoreUpdateFailed(let reason):
"Device restore failed: \(reason)"
- case let .cfwInstallFailed(code):
+ case .cfwInstallFailed(let code):
"Custom firmware installation failed (exit code \(code))."
case .bootAnalysisPanic:
"Boot analysis failed: the guest panicked."
- case let .bootAnalysisExited(code):
+ case .bootAnalysisExited(let code):
"Boot check ended before vphoned connected (exit code \(code))."
case .bootAnalysisTimeout:
"Boot check timed out waiting for vphoned."
@@ -105,16 +105,18 @@ public struct VPhoneVirtualMachineCreator {
defer {
if let invokingUser, !ownershipRestored {
for output in ownedOutputs {
- do { try invokingUser.restoreOwnership(at: output) }
- catch { fputs("warning: could not restore ownership of \(output.path): \(error)\n", stderr) }
+ do { try invokingUser.restoreOwnership(at: output) } catch {
+ fputs("warning: could not restore ownership of \(output.path): \(error)\n", stderr)
+ }
}
try? invokingUser.restoreOwnerOfDirectory(at: library.root)
try? invokingUser.restoreOwnerOfDirectory(at: VPhoneResources.userDataRoot())
}
if !permissionsRestored {
for output in ownedOutputs {
- do { try VPhoneHostFilePermissions.makeAccessible(at: output) }
- catch { fputs("warning: could not set permissions on \(output.path): \(error)\n", stderr) }
+ do { try VPhoneHostFilePermissions.makeAccessible(at: output) } catch {
+ fputs("warning: could not set permissions on \(output.path): \(error)\n", stderr)
+ }
}
try? VPhoneHostFilePermissions.makeDirectoryAccessible(at: library.root)
try? VPhoneHostFilePermissions.makeDirectoryAccessible(at: VPhoneResources.userDataRoot())
@@ -124,7 +126,6 @@ public struct VPhoneVirtualMachineCreator {
throw VPhoneLibraryError.alreadyExists(name: options.name)
}
-
print("\n=== vm new ===")
let spec = VPhoneBundleOperations.NewBundleConfiguration(
name: options.name,
@@ -157,7 +158,7 @@ public struct VPhoneVirtualMachineCreator {
// CFW install is the last consumer of the built restore tree (it copies
// the SystemOS/AppOS cryptexes from it onto Disk.img); reclaim it now.
if !options.keepArtifacts, let bundle = try? VPhoneBundle.load(at: bundleURL),
- let removed = try? VPhoneRestoreInfo.removeBuiltFirmware(fromBundle: bundle)
+ let removed = try? VPhoneRestoreInfo.removeBuiltFirmware(fromBundle: bundle)
{
print("[+] Removed built firmware \(removed)/ to save space (--keep-artifacts to keep)")
}
@@ -165,12 +166,16 @@ public struct VPhoneVirtualMachineCreator {
print("\n=== First boot check ===")
try runBootAnalysis(bundleURL: bundleURL, verbosity: v)
if let invokingUser {
- for output in ownedOutputs { try invokingUser.restoreOwnership(at: output) }
+ for output in ownedOutputs {
+ try invokingUser.restoreOwnership(at: output)
+ }
try invokingUser.restoreOwnerOfDirectory(at: library.root)
try invokingUser.restoreOwnerOfDirectory(at: VPhoneResources.userDataRoot())
}
ownershipRestored = true
- for output in ownedOutputs { try VPhoneHostFilePermissions.makeAccessible(at: output) }
+ for output in ownedOutputs {
+ try VPhoneHostFilePermissions.makeAccessible(at: output)
+ }
try VPhoneHostFilePermissions.makeDirectoryAccessible(at: library.root)
try VPhoneHostFilePermissions.makeDirectoryAccessible(at: VPhoneResources.userDataRoot())
permissionsRestored = true
@@ -304,15 +309,16 @@ public struct VPhoneVirtualMachineCreator {
/// restore already succeeded, so a metadata miss is a warning, not a failure.
private func recordRestoreVersions(bundleURL: URL) {
guard let bundle = try? VPhoneBundle.load(at: bundleURL),
- let info = VPhoneRestoreInfo.derive(fromBundle: bundle)
+ let info = VPhoneRestoreInfo.derive(fromBundle: bundle)
else {
print("[!] Could not record restore versions (metadata not found)")
return
}
do {
try info.write(toBundle: bundle)
- print("[+] Recorded versions: iOS \(info.ios.version) (\(info.ios.build)), "
- + "cloudOS \(info.cloudOS.version) (\(info.cloudOS.build))")
+ print(
+ "[+] Recorded versions: iOS \(info.ios.version) (\(info.ios.build)), "
+ + "cloudOS \(info.cloudOS.version) (\(info.cloudOS.build))")
} catch {
print("[!] Could not write restore-info.json: \(error)")
}
@@ -333,7 +339,7 @@ public struct VPhoneVirtualMachineCreator {
var ecid = ""
for line in text.split(whereSeparator: \.isNewline) {
guard let eq = line.firstIndex(of: "=") else { continue }
- let key = line[line.startIndex ..< eq]
+ let key = line[line.startIndex..<eq]
let value = String(line[line.index(after: eq)...])
if key == "UDID" {
udid = value.uppercased()
@@ -365,7 +371,7 @@ public struct VPhoneVirtualMachineCreator {
/// wait is now one `irecv_open_with_ecid_and_attempts` poll per round.
private func waitForRecovery(ecid: UInt64?, verbosity v: VPhoneVerbosity) throws {
print("[*] Waiting for recovery/DFU endpoint...")
- for _ in 1 ... 90 {
+ for _ in 1...90 {
if let device = try? VPhoneRestoreService.recoveryProbe(ecid: ecid, timeout: 2) {
print("[+] Device endpoint is reachable")
trace("recovery-probe: \(device.productType ?? "device") in \(device.mode)", v)
@@ -392,7 +398,7 @@ public struct VPhoneVirtualMachineCreator {
guard code == 0 else { throw VPhoneVirtualMachineCreationError.cfwInstallFailed(code) }
print("[+] JB CFW installed.")
if let bundle = try? VPhoneBundle.load(at: bundleURL),
- let info = try? VPhoneRestoreInfo.recordVariant("jb", toBundle: bundle), info.variant != nil
+ let info = try? VPhoneRestoreInfo.recordVariant("jb", toBundle: bundle), info.variant != nil
{
print("[+] Recorded variant jb, device \(info.device ?? "?")")
}
@@ -419,7 +425,7 @@ public struct VPhoneVirtualMachineCreator {
case .matched:
print("[-] Boot analysis: panic detected, stopping VM.")
throw VPhoneVirtualMachineCreationError.bootAnalysisPanic
- case let .exited(code):
+ case .exited(let code):
print("[-] Boot analysis: VM process exited before success marker.")
throw VPhoneVirtualMachineCreationError.bootAnalysisExited(code)
case .timedOut:
diff --git a/VPhoneExecutable/VPhoneVirtualization/Build/StageBundle.sh b/VPhoneExecutable/VPhoneVirtualization/Build/StageBundle.sh
index ff10e6f4..8b30ffb6 100755
--- a/VPhoneExecutable/VPhoneVirtualization/Build/StageBundle.sh
+++ b/VPhoneExecutable/VPhoneVirtualization/Build/StageBundle.sh
@@ -66,6 +66,13 @@ fi
/bin/cp "$guest_products/camfix/libcamfix.plist" "$resources/guest/libcamfix.plist"
/bin/cp "$guest_products/vcamcaptured/libvcamcaptured.plist" "$resources/guest/libvcamcaptured.plist"
+"${0:a:h}/SyncStrings.sh"
+for catalog in Localizable InfoPlist; do
+ /usr/bin/xcrun xcstringstool compile \
+ "$root/VPhoneExecutable/VPhoneVirtualization/Resources/$catalog.xcstrings" \
+ --output-directory "$resources"
+done
+
# vphone-vm needs Swift's span back-deployment library on macOS 15. Xcode's
# generic bundle has no main executable. Use a private load name for the VM child.
compatibility_library="$(/usr/bin/xcrun swift-stdlib-tool --print \
diff --git a/VPhoneExecutable/VPhoneVirtualization/Build/SyncStrings.sh b/VPhoneExecutable/VPhoneVirtualization/Build/SyncStrings.sh
new file mode 100755
index 00000000..5295d0b0
--- /dev/null
+++ b/VPhoneExecutable/VPhoneVirtualization/Build/SyncStrings.sh
@@ -0,0 +1,22 @@
+#!/bin/zsh
+# vphone-tier: build
+set -euo pipefail
+
+root="$(cd "${0:a:h}/../../.." && pwd)"
+catalog="$root/VPhoneExecutable/VPhoneVirtualization/Resources/Localizable.xcstrings"
+stringsdata="$root/.build/localization-stringsdata"
+sources=("$root"/VPhoneExecutable/VPhoneVirtualization/UI/**/*.swift(N))
+
+/bin/mkdir -p "$stringsdata"
+/bin/rm -f "$stringsdata"/*.stringsdata(N)
+/usr/bin/xcrun xcstringstool extract \
+ --SwiftUI --legacy-localizable-strings --modern-localizable-strings \
+ "${sources[@]}" --output-directory "$stringsdata"
+data_files=("$stringsdata"/*.stringsdata(N))
+if (( ${#data_files} )); then
+ arguments=()
+ for file in "${data_files[@]}"; do
+ arguments+=(--stringsdata "$file")
+ done
+ /usr/bin/xcrun xcstringstool sync "$catalog" "${arguments[@]}" --skip-marking-strings-stale
+fi
diff --git a/VPhoneExecutable/VPhoneVirtualization/Resources/InfoPlist.xcstrings b/VPhoneExecutable/VPhoneVirtualization/Resources/InfoPlist.xcstrings
new file mode 100644
index 00000000..65d175b8
--- /dev/null
+++ b/VPhoneExecutable/VPhoneVirtualization/Resources/InfoPlist.xcstrings
@@ -0,0 +1,108 @@
+{
+ "sourceLanguage": "en",
+ "strings": {
+ "NSLocationUsageDescription": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Shares your location with the virtual iPhone so apps running inside it see the same location."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "将您的位置共享给虚拟 iPhone,使其中运行的应用能获取相同的位置。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "位置情報を仮想 iPhone と共有し、その中のアプリにも同じ位置情報を提供します。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "가상 iPhone과 위치를 공유하여 그 안에서 실행되는 앱이 동일한 위치를 사용하도록 합니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Chia sẻ vị trí của bạn với iPhone ảo để các ứng dụng bên trong sử dụng cùng vị trí."
+ }
+ }
+ }
+ },
+ "NSLocationWhenInUseUsageDescription": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Shares your location with the virtual iPhone so apps running inside it see the same location."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "将您的位置共享给虚拟 iPhone,使其中运行的应用能获取相同的位置。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "位置情報を仮想 iPhone と共有し、その中のアプリにも同じ位置情報を提供します。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "가상 iPhone과 위치를 공유하여 그 안에서 실행되는 앱이 동일한 위치를 사용하도록 합니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Chia sẻ vị trí của bạn với iPhone ảo để các ứng dụng bên trong sử dụng cùng vị trí."
+ }
+ }
+ }
+ },
+ "NSLocationAlwaysAndWhenInUseUsageDescription": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Shares your location with the virtual iPhone so apps running inside it see the same location."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "将您的位置共享给虚拟 iPhone,使其中运行的应用能获取相同的位置。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "位置情報を仮想 iPhone と共有し、その中のアプリにも同じ位置情報を提供します。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "가상 iPhone과 위치를 공유하여 그 안에서 실행되는 앱이 동일한 위치를 사용하도록 합니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Chia sẻ vị trí của bạn với iPhone ảo để các ứng dụng bên trong sử dụng cùng vị trí."
+ }
+ }
+ }
+ }
+ },
+ "version": "1.3"
+}
diff --git a/VPhoneExecutable/VPhoneVirtualization/Resources/Localizable.xcstrings b/VPhoneExecutable/VPhoneVirtualization/Resources/Localizable.xcstrings
new file mode 100644
index 00000000..2d13b679
--- /dev/null
+++ b/VPhoneExecutable/VPhoneVirtualization/Resources/Localizable.xcstrings
@@ -0,0 +1,9155 @@
+{
+ "sourceLanguage": "en",
+ "strings": {
+ ", low power": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": ", low power"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": ",低电量模式"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "、低電力モード"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": ", 저전력 모드"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": ", chế độ nguồn điện thấp"
+ }
+ }
+ }
+ },
+ "(protected)": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "(protected)"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "(受保护)"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "(保護されています)"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "(보호됨)"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "(được bảo vệ)"
+ }
+ }
+ }
+ },
+ "(unnamed)": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "(unnamed)"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "(未命名)"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "(名前なし)"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "(이름 없음)"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "(chưa đặt tên)"
+ }
+ }
+ }
+ },
+ "[%@ binary]": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "[%@ binary]"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "[%@ 二进制数据]"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "[%@ バイナリ]"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "[%@ 바이너리]"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "[%@ dữ liệu nhị phân]"
+ }
+ }
+ }
+ },
+ "%@ / %@": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ / %@"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ / %@"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ / %@"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ / %@"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ / %@"
+ }
+ }
+ }
+ },
+ "%@ apps": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ apps"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ 个应用"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ 件のアプリ"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "앱 %@개"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ ứng dụng"
+ }
+ }
+ }
+ },
+ "%@ entries": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ entries"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ 条记录"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ 件の記録"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "항목 %@개"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ mục"
+ }
+ }
+ }
+ },
+ "%@ items": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ items"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ 项"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ 項目"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "항목 %@개"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ mục"
+ }
+ }
+ }
+ },
+ "%@ items (filtered)": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ items (filtered)"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "已筛选 %@ 项"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ 項目(絞り込み中)"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@개 항목(필터 적용)"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ mục (đã lọc)"
+ }
+ }
+ }
+ },
+ "%@/%@ items": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@/%@ items"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@/%@ 项"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@/%@ 項目"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@/%@개 항목"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@/%@ mục"
+ }
+ }
+ }
+ },
+ "1 app": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "1 app"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "1 个应用"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "1 件のアプリ"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "앱 1개"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "1 ứng dụng"
+ }
+ }
+ }
+ },
+ "1 item": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "1 item"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "1 项"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "1 項目"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "항목 1개"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "1 mục"
+ }
+ }
+ }
+ },
+ "Access Group": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Access Group"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "访问组"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "アクセスグループ"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "접근 그룹"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Nhóm truy cập"
+ }
+ }
+ }
+ },
+ "Account": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Account"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "账户"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "アカウント"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "계정"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Tài khoản"
+ }
+ }
+ }
+ },
+ "Actions": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Actions"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "操作"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "操作"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "작업"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Thao tác"
+ }
+ }
+ }
+ },
+ "Add Test Item": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Add Test Item"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "添加测试项目"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "テスト項目を追加"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "테스트 항목 추가"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Thêm mục thử nghiệm"
+ }
+ }
+ }
+ },
+ "AfterFirstUnlock": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "AfterFirstUnlock"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "首次解锁后"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "初回ロック解除後"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "최초 잠금 해제 후"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Sau lần mở khóa đầu tiên"
+ }
+ }
+ }
+ },
+ "AfterFirstUnlock (ThisDevice)": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "AfterFirstUnlock (ThisDevice)"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "首次解锁后(此设备)"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "初回ロック解除後(このデバイス)"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "최초 잠금 해제 후(이 기기)"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Sau lần mở khóa đầu tiên (thiết bị này)"
+ }
+ }
+ }
+ },
+ "All": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "All"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "全部"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "すべて"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "전체"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Tất cả"
+ }
+ }
+ }
+ },
+ "Always": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Always"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "始终"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "常に"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "항상"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Luôn luôn"
+ }
+ }
+ }
+ },
+ "Always (ThisDevice)": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Always (ThisDevice)"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "始终(此设备)"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "常に(このデバイス)"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "항상(이 기기)"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Luôn luôn (thiết bị này)"
+ }
+ }
+ }
+ },
+ "An item named %@ already exists.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "An item named %@ already exists."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "名为 %@ 的项目已存在。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ という名前の項目は既に存在します。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "이름이 %@인 항목이 이미 있습니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đã có mục tên %@."
+ }
+ }
+ }
+ },
+ "App Browser": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "App Browser"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "应用浏览器"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "アプリブラウザ"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "앱 브라우저"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Trình duyệt ứng dụng"
+ }
+ }
+ }
+ },
+ "App Type": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "App Type"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "应用类型"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "アプリの種類"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "앱 유형"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Loại ứng dụng"
+ }
+ }
+ }
+ },
+ "Apple Park (Cupertino)": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Apple Park (Cupertino)"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Apple Park(库比蒂诺)"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Apple Park(クパチーノ)"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Apple Park(쿠퍼티노)"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Apple Park (Cupertino)"
+ }
+ }
+ }
+ },
+ "Apps": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Apps"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "应用"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "アプリ"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "앱"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Ứng dụng"
+ }
+ }
+ }
+ },
+ "Back": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Back"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "返回"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "戻る"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "뒤로"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Quay lại"
+ }
+ }
+ }
+ },
+ "Battery": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Battery"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "电池"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "バッテリー"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "배터리"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Pin"
+ }
+ }
+ }
+ },
+ "Boolean": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Boolean"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "布尔值"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "真偽値"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "불리언"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Boolean"
+ }
+ }
+ }
+ },
+ "Boolean accepts true or false. Numeric values use decimal notation.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Boolean accepts true or false. Numeric values use decimal notation."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "布尔值可填 true 或 false。数值使用十进制格式。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "真偽値には true または false を指定します。数値には 10 進表記を使用します。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "불리언은 true 또는 false를 사용합니다. 숫자는 십진수로 입력합니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Boolean nhận true hoặc false. Giá trị số dùng ký pháp thập phân."
+ }
+ }
+ }
+ },
+ "Build: %@": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Build: %@"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "构建:%@"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ビルド: %@"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "빌드: %@"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Bản dựng: %@"
+ }
+ }
+ }
+ },
+ "Bundle ID": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Bundle ID"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "包标识符"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "バンドル ID"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "번들 ID"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ID gói"
+ }
+ }
+ }
+ },
+ "Camera": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Camera"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "摄像头"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "カメラ"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "카메라"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Camera"
+ }
+ }
+ }
+ },
+ "Camera server: connected": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Camera server: connected"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "摄像头服务:已连接"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "カメラサーバー: 接続済み"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "카메라 서버: 연결됨"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Máy chủ camera: đã kết nối"
+ }
+ }
+ }
+ },
+ "Camera server: disconnected": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Camera server: disconnected"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "摄像头服务:未连接"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "カメラサーバー: 未接続"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "카메라 서버: 연결 끊김"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Máy chủ camera: chưa kết nối"
+ }
+ }
+ }
+ },
+ "Cancel": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Cancel"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "取消"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "キャンセル"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "취소"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Hủy"
+ }
+ }
+ }
+ },
+ "Capture": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Capture"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "截取"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "キャプチャ"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "캡처"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Chụp và ghi"
+ }
+ }
+ }
+ },
+ "Certificate": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Certificate"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "证书"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "証明書"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "인증서"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Chứng chỉ"
+ }
+ }
+ }
+ },
+ "Certificates": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Certificates"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "证书"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "証明書"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "인증서"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Chứng chỉ"
+ }
+ }
+ }
+ },
+ "Change Count": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Change Count"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "更改次数"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "変更回数"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "변경 횟수"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Số lần thay đổi"
+ }
+ }
+ }
+ },
+ "Characters: %@": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Characters: %@"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "字符数:%@"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "文字数: %@"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "문자 수: %@"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Ký tự: %@"
+ }
+ }
+ }
+ },
+ "charging": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "charging"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "充电中"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "充電中"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "충전 중"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "đang sạc"
+ }
+ }
+ }
+ },
+ "Charging": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Charging"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "充电中"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "充電中"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "충전 중"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đang sạc"
+ }
+ }
+ }
+ },
+ "Choose an IPA or TIPA package to install in the guest.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Choose an IPA or TIPA package to install in the guest."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "选择要安装到客体中的 IPA 或 TIPA 包。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストにインストールする IPA または TIPA パッケージを選択してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트에 설치할 IPA 또는 TIPA 패키지를 선택하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Chọn gói IPA hoặc TIPA để cài đặt trong máy khách."
+ }
+ }
+ }
+ },
+ "Choose Refresh to read the guest clipboard.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Choose Refresh to read the guest clipboard."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "选择“刷新”以读取客体剪贴板。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "「更新」を選択してゲストのクリップボードを読み取ってください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "새로 고침을 선택하여 게스트 클립보드를 읽으세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Chọn Làm mới để đọc bảng nhớ tạm của máy khách."
+ }
+ }
+ }
+ },
+ "Choose Video File": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Choose Video File"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "选择视频文件"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "動画ファイルを選択"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "동영상 파일 선택"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Chọn tệp video"
+ }
+ }
+ }
+ },
+ "Class": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Class"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "类别"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "クラス"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "클래스"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Lớp"
+ }
+ }
+ }
+ },
+ "Clipboard": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Clipboard"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "剪贴板"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "クリップボード"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "클립보드"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Bảng nhớ tạm"
+ }
+ }
+ }
+ },
+ "Clipboard & Settings": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Clipboard & Settings"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "剪贴板与设置"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "クリップボードと設定"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "클립보드 및 설정"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Bảng nhớ tạm và cài đặt"
+ }
+ }
+ }
+ },
+ "Close": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Close"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "关闭"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "閉じる"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "닫기"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đóng"
+ }
+ }
+ }
+ },
+ "Copied to the Mac clipboard.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Copied to the Mac clipboard."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "已复制到 Mac 剪贴板。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Mac のクリップボードにコピーしました。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Mac 클립보드에 복사했습니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đã sao chép vào bảng nhớ tạm của Mac."
+ }
+ }
+ }
+ },
+ "Copy": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Copy"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "复制"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "コピー"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "복사"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Sao chép"
+ }
+ }
+ }
+ },
+ "Copy Access Group": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Copy Access Group"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "复制访问组"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "アクセスグループをコピー"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "접근 그룹 복사"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Sao chép nhóm truy cập"
+ }
+ }
+ }
+ },
+ "Copy Account": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Copy Account"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "复制账户"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "アカウントをコピー"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "계정 복사"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Sao chép tài khoản"
+ }
+ }
+ }
+ },
+ "Copy Bundle ID": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Copy Bundle ID"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "复制包标识符"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "バンドル ID をコピー"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "번들 ID 복사"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Sao chép ID gói"
+ }
+ }
+ }
+ },
+ "Copy diagnostics to clipboard": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Copy diagnostics to clipboard"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "将诊断信息复制到剪贴板"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "診断情報をクリップボードにコピー"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "진단 정보를 클립보드에 복사"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Sao chép chẩn đoán vào bảng nhớ tạm"
+ }
+ }
+ }
+ },
+ "Copy Image": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Copy Image"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "复制图像"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "画像をコピー"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "이미지 복사"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Sao chép ảnh"
+ }
+ }
+ }
+ },
+ "Copy Name": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Copy Name"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "复制名称"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "名前をコピー"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "이름 복사"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Sao chép tên"
+ }
+ }
+ }
+ },
+ "Copy Path": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Copy Path"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "复制路径"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "パスをコピー"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "경로 복사"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Sao chép đường dẫn"
+ }
+ }
+ }
+ },
+ "Copy Protection": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Copy Protection"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "复制保护级别"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "保護クラスをコピー"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "보호 등급 복사"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Sao chép mức bảo vệ"
+ }
+ }
+ }
+ },
+ "Copy Result": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Copy Result"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "复制结果"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "結果をコピー"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "결과 복사"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Sao chép kết quả"
+ }
+ }
+ }
+ },
+ "Copy Row (TSV)": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Copy Row (TSV)"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "复制行(TSV)"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "行をコピー(TSV)"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "행 복사(TSV)"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Sao chép hàng (TSV)"
+ }
+ }
+ }
+ },
+ "Copy Screenshot to Mac Clipboard": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Copy Screenshot to Mac Clipboard"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "将截屏复制到 Mac 剪贴板"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "スクリーンショットを Mac のクリップボードにコピー"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "스크린샷을 Mac 클립보드에 복사"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Sao chép ảnh màn hình vào bảng nhớ tạm của Mac"
+ }
+ }
+ }
+ },
+ "Copy Selected Rows": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Copy Selected Rows"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "复制所选行"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "選択した行をコピー"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "선택한 행 복사"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Sao chép hàng đã chọn"
+ }
+ }
+ }
+ },
+ "Copy Service": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Copy Service"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "复制服务"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "サービスをコピー"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "서비스 복사"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Sao chép dịch vụ"
+ }
+ }
+ }
+ },
+ "Copy Text": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Copy Text"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "复制文本"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "テキストをコピー"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "텍스트 복사"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Sao chép văn bản"
+ }
+ }
+ }
+ },
+ "Copy Value": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Copy Value"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "复制值"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "値をコピー"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "값 복사"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Sao chép giá trị"
+ }
+ }
+ }
+ },
+ "Could not read \"%@\" from disk.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Could not read \"%@\" from disk."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "无法从磁盘读取“%@”。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ディスクから「%@」を読み取れません。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "디스크에서 \"%@\"을(를) 읽을 수 없습니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không thể đọc \"%@\" từ ổ đĩa."
+ }
+ }
+ }
+ },
+ "Create": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Create"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "创建"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "作成"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "생성"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Tạo"
+ }
+ }
+ }
+ },
+ "Create directory failed: %@": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Create directory failed: %@"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "创建目录失败:%@"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ディレクトリの作成に失敗しました: %@"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "디렉터리 생성 실패: %@"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Tạo thư mục thất bại: %@"
+ }
+ }
+ }
+ },
+ "Create folder failed: %@": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Create folder failed: %@"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "创建文件夹失败:%@"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "フォルダの作成に失敗しました: %@"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "폴더 생성 실패: %@"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Tạo thư mục thất bại: %@"
+ }
+ }
+ }
+ },
+ "Cut": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Cut"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "剪切"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "カット"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "잘라내기"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Cắt"
+ }
+ }
+ }
+ },
+ "Delete": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Delete"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "删除"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "削除"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "삭제"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Xóa"
+ }
+ }
+ }
+ },
+ "Delete failed: %@": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Delete failed: %@"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "删除失败:%@"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "削除に失敗しました: %@"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "삭제 실패: %@"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Xóa thất bại: %@"
+ }
+ }
+ }
+ },
+ "Developer Mode": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Developer Mode"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "开发者模式"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "デベロッパモード"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "개발자 모드"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Chế độ nhà phát triển"
+ }
+ }
+ }
+ },
+ "Developer Mode is disabled.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Developer Mode is disabled."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "开发者模式未启用。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "デベロッパモードは無効です。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "개발자 모드가 꺼져 있습니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Chế độ nhà phát triển đã tắt."
+ }
+ }
+ }
+ },
+ "Developer Mode is enabled.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Developer Mode is enabled."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "开发者模式已启用。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "デベロッパモードは有効です。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "개발자 모드가 켜져 있습니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Chế độ nhà phát triển đã bật."
+ }
+ }
+ }
+ },
+ "Developer Mode Status": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Developer Mode Status"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "开发者模式状态"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "デベロッパモードの状態"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "개발자 모드 상태"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Trạng thái chế độ nhà phát triển"
+ }
+ }
+ }
+ },
+ "Device Overrides": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Device Overrides"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "设备覆盖设置"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "デバイス設定の上書き"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "기기 설정 재정의"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Ghi đè thiết bị"
+ }
+ }
+ }
+ },
+ "Diagnostics": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Diagnostics"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "诊断"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "診断"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "진단"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Chẩn đoán"
+ }
+ }
+ }
+ },
+ "Directory link creates a cycle at %@.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Directory link creates a cycle at %@."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "目录链接在 %@ 形成循环。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ディレクトリのリンクが %@ で循環しています。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "디렉터리 링크가 %@에서 순환합니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Liên kết thư mục tạo vòng lặp tại %@."
+ }
+ }
+ }
+ },
+ "Disconnected": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Disconnected"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "未连接"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "未接続"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "연결 끊김"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đã ngắt kết nối"
+ }
+ }
+ }
+ },
+ "Domain": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Domain"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "域"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ドメイン"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "도메인"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Miền"
+ }
+ }
+ }
+ },
+ "Download": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Download"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "下载"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ダウンロード"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "다운로드"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Tải xuống"
+ }
+ }
+ }
+ },
+ "Download failed: %@": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Download failed: %@"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "下载失败:%@"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ダウンロードに失敗しました: %@"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "다운로드 실패: %@"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Tải xuống thất bại: %@"
+ }
+ }
+ }
+ },
+ "Download requires an updated guest agent to follow %@.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Download requires an updated guest agent to follow %@."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "下载 %@ 需要更新客体代理,以便跟随链接。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ をたどってダウンロードするにはゲストエージェントの更新が必要です。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ 링크를 따라 다운로드하려면 게스트 에이전트를 업데이트해야 합니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Cần cập nhật tác nhân máy khách để tải xuống theo liên kết %@."
+ }
+ }
+ }
+ },
+ "Edit": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Edit"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "编辑"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "編集"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "편집"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Sửa"
+ }
+ }
+ }
+ },
+ "Enter a domain and choose Read Setting.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Enter a domain and choose Read Setting."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "输入域并选择“读取设置”。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ドメインを入力して「設定を読み取る」を選択してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "도메인을 입력하고 설정 읽기를 선택하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Nhập miền rồi chọn Đọc cài đặt."
+ }
+ }
+ }
+ },
+ "Enter a domain and key.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Enter a domain and key."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "输入域和键。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ドメインとキーを入力してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "도메인과 키를 입력하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Nhập miền và khóa."
+ }
+ }
+ }
+ },
+ "Enter a finite number.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Enter a finite number."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "请输入有限数值。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "有限の数値を入力してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "유한한 숫자를 입력하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Nhập một số hữu hạn."
+ }
+ }
+ }
+ },
+ "Enter a URL to open on the guest.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Enter a URL to open on the guest."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "输入要在客体中打开的 URL。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストで開く URL を入力してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트에서 열 URL을 입력하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Nhập URL cần mở trong máy khách."
+ }
+ }
+ }
+ },
+ "Enter a valid integer.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Enter a valid integer."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "请输入有效的整数。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "有効な整数を入力してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "올바른 정수를 입력하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Nhập số nguyên hợp lệ."
+ }
+ }
+ }
+ },
+ "Enter true or false for a Boolean value.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Enter true or false for a Boolean value."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "布尔值请输入 true 或 false。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "真偽値には true または false を入力してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "불리언 값에는 true 또는 false를 입력하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Nhập true hoặc false cho giá trị Boolean."
+ }
+ }
+ }
+ },
+ "Error": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Error"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "错误"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "エラー"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "오류"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Lỗi"
+ }
+ }
+ }
+ },
+ "File Browser": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "File Browser"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "文件浏览器"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ファイルブラウザ"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "파일 브라우저"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Trình duyệt tệp"
+ }
+ }
+ }
+ },
+ "Files": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Files"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "文件"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ファイル"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "파일"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Tệp"
+ }
+ }
+ }
+ },
+ "Filter apps by type": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Filter apps by type"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "按类型筛选应用"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "種類でアプリを絞り込む"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "유형별로 앱 필터링"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Lọc ứng dụng theo loại"
+ }
+ }
+ }
+ },
+ "Filter files": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Filter files"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "筛选文件"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ファイルを絞り込む"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "파일 필터링"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Lọc tệp"
+ }
+ }
+ }
+ },
+ "Filter keychain items by type": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Filter keychain items by type"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "按类型筛选钥匙串项目"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "種類でキーチェーン項目を絞り込む"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "유형별로 키체인 항목 필터링"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Lọc mục Chuỗi khóa theo loại"
+ }
+ }
+ }
+ },
+ "Find…": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Find…"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "查找…"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "検索…"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "찾기…"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Tìm…"
+ }
+ }
+ }
+ },
+ "Float": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Float"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "浮点数"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "浮動小数点数"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "실수"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Số thực"
+ }
+ }
+ }
+ },
+ "Folder name": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Folder name"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "文件夹名称"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "フォルダ名"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "폴더 이름"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Tên thư mục"
+ }
+ }
+ }
+ },
+ "Forward": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Forward"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "前进"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "進む"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "앞으로"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Tiếp"
+ }
+ }
+ }
+ },
+ "Get Clipboard": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Get Clipboard"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "读取剪贴板"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "クリップボードを取得"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "클립보드 가져오기"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Lấy bảng nhớ tạm"
+ }
+ }
+ }
+ },
+ "Guest": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Guest"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "客体"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲスト"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Máy khách"
+ }
+ }
+ }
+ },
+ "Guest Agent Hash": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Guest Agent Hash"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "客体代理哈希"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストエージェントのハッシュ"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트 에이전트 해시"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Hàm băm tác nhân máy khách"
+ }
+ }
+ }
+ },
+ "Guest clipboard image": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Guest clipboard image"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "客体剪贴板图像"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストのクリップボード画像"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트 클립보드 이미지"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Ảnh trong bảng nhớ tạm của máy khách"
+ }
+ }
+ }
+ },
+ "Guest is not connected.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Guest is not connected."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "客体未连接。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストに接続されていません。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트가 연결되지 않았습니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Máy khách chưa kết nối."
+ }
+ }
+ }
+ },
+ "Guest Tools": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Guest Tools"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "客体工具"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストツール"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트 도구"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Công cụ máy khách"
+ }
+ }
+ }
+ },
+ "GUEST TOOLS": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "GUEST TOOLS"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "客体工具"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストツール"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트 도구"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "CÔNG CỤ MÁY KHÁCH"
+ }
+ }
+ }
+ },
+ "Home": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Home"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "主屏幕"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ホーム"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "홈"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Màn hình chính"
+ }
+ }
+ }
+ },
+ "Home Button": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Home Button"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "主屏幕按钮"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ホームボタン"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "홈 버튼"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Nút Home"
+ }
+ }
+ }
+ },
+ "Home Screen": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Home Screen"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "主屏幕"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ホーム画面"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "홈 화면"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Màn hình chính"
+ }
+ }
+ }
+ },
+ "Identity": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Identity"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "身份"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ID"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "신원"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Danh tính"
+ }
+ }
+ }
+ },
+ "Image": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Image"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "图像"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "画像"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "이미지"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Ảnh"
+ }
+ }
+ }
+ },
+ "Image copied to the Mac clipboard.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Image copied to the Mac clipboard."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "图像已复制到 Mac 剪贴板。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "画像を Mac のクリップボードにコピーしました。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "이미지를 Mac 클립보드에 복사했습니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đã sao chép ảnh vào bảng nhớ tạm của Mac."
+ }
+ }
+ }
+ },
+ "Inspect the guest clipboard and copy its text to your Mac.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Inspect the guest clipboard and copy its text to your Mac."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "查看客体剪贴板,并将文本复制到 Mac。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストのクリップボードを確認し、テキストを Mac にコピーします。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트 클립보드를 확인하고 텍스트를 Mac에 복사합니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Xem bảng nhớ tạm của máy khách và sao chép văn bản sang Mac."
+ }
+ }
+ }
+ },
+ "Install": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Install"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "安装"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "インストール"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "설치"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Cài đặt"
+ }
+ }
+ }
+ },
+ "Install App Package": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Install App Package"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "安装应用包"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "アプリパッケージをインストール"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "앱 패키지 설치"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Cài đặt gói ứng dụng"
+ }
+ }
+ }
+ },
+ "Install App Package…": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Install App Package…"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "安装应用包…"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "アプリパッケージをインストール…"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "앱 패키지 설치…"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Cài đặt gói ứng dụng…"
+ }
+ }
+ }
+ },
+ "Installed %@.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Installed %@."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "已安装 %@。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ をインストールしました。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ 설치 완료."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đã cài đặt %@."
+ }
+ }
+ }
+ },
+ "Installed %@.\n\n%@": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Installed %@.\n\n%@"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "已安装 %@。\n\n%@"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ をインストールしました。\n\n%@"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ 설치 완료.\n\n%@"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đã cài đặt %@.\n\n%@"
+ }
+ }
+ }
+ },
+ "Integer": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Integer"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "整数"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "整数"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "정수"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Số nguyên"
+ }
+ }
+ }
+ },
+ "Internet": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Internet"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "互联网"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "インターネット"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "인터넷"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Internet"
+ }
+ }
+ }
+ },
+ "Item Type": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Item Type"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "项目类型"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "項目の種類"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "항목 유형"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Loại mục"
+ }
+ }
+ }
+ },
+ "Key": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Key"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "密钥"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "キー"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "키"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Khóa"
+ }
+ }
+ }
+ },
+ "Key (Optional)": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Key (Optional)"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "键(可选)"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "キー(任意)"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "키(선택 사항)"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Khóa (tùy chọn)"
+ }
+ }
+ }
+ },
+ "Keychain": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Keychain"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "钥匙串"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "キーチェーン"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "키체인"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Chuỗi khóa"
+ }
+ }
+ }
+ },
+ "Keychain Actions": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Keychain Actions"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "钥匙串操作"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "キーチェーンの操作"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "키체인 작업"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Thao tác Chuỗi khóa"
+ }
+ }
+ }
+ },
+ "Keychain Browser": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Keychain Browser"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "钥匙串浏览器"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "キーチェーンブラウザ"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "키체인 브라우저"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Trình duyệt Chuỗi khóa"
+ }
+ }
+ }
+ },
+ "Keys": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Keys"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "按键"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "キー"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "키"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Phím"
+ }
+ }
+ }
+ },
+ "Leave empty for all keys": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Leave empty for all keys"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "留空以读取所有键"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "空欄にするとすべてのキーを読み取ります"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "비워 두면 모든 키를 읽습니다"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Để trống để đọc tất cả các khóa"
+ }
+ }
+ }
+ },
+ "List directory failed: %@": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "List directory failed: %@"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "列出目录失败:%@"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ディレクトリの一覧表示に失敗しました: %@"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "디렉터리 목록 조회 실패: %@"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Liệt kê thư mục thất bại: %@"
+ }
+ }
+ }
+ },
+ "Location": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Location"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "位置"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "位置情報"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "위치"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Vị trí"
+ }
+ }
+ }
+ },
+ "Minimize": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Minimize"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "最小化"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "しまう"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "최소화"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Thu nhỏ"
+ }
+ }
+ }
+ },
+ "Modified": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Modified"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "修改时间"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "更新日時"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "수정됨"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đã sửa đổi"
+ }
+ }
+ }
+ },
+ "Name": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Name"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "名称"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "名前"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "이름"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Tên"
+ }
+ }
+ }
+ },
+ "New Folder": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "New Folder"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "新建文件夹"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "新規フォルダ"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "새 폴더"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Thư mục mới"
+ }
+ }
+ }
+ },
+ "New Folder…": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "New Folder…"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "新建文件夹…"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "新規フォルダ…"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "새 폴더…"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Thư mục mới…"
+ }
+ }
+ }
+ },
+ "No Apps": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "No Apps"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "没有应用"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "アプリがありません"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "앱 없음"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không có ứng dụng"
+ }
+ }
+ }
+ },
+ "No apps are available for this filter.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "No apps are available for this filter."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "此筛选条件下没有应用。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "このフィルターに該当するアプリはありません。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "이 필터에 해당하는 앱이 없습니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không có ứng dụng nào cho bộ lọc này."
+ }
+ }
+ }
+ },
+ "No apps match your search.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "No apps match your search."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "没有与搜索匹配的应用。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "検索に一致するアプリはありません。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "검색과 일치하는 앱이 없습니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không có ứng dụng nào khớp với tìm kiếm."
+ }
+ }
+ }
+ },
+ "No items": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "No items"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "没有项目"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "項目がありません"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "항목 없음"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không có mục nào"
+ }
+ }
+ }
+ },
+ "No text in the guest clipboard. Copy text in the guest, then refresh.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "No text in the guest clipboard. Copy text in the guest, then refresh."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "客体剪贴板中没有文本。请在客体中复制文本后刷新。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストのクリップボードにテキストがありません。ゲストでテキストをコピーしてから更新してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트 클립보드에 텍스트가 없습니다. 게스트에서 텍스트를 복사한 후 새로 고침하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Bảng nhớ tạm của máy khách không có văn bản. Hãy sao chép văn bản trong máy khách rồi làm mới."
+ }
+ }
+ }
+ },
+ "No VM window is open. Start a VM, then try again.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "No VM window is open. Start a VM, then try again."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "没有打开的虚拟机窗口。请启动虚拟机后重试。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "VM ウインドウが開いていません。VM を起動して再試行してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "열린 VM 창이 없습니다. VM을 시작한 후 다시 시도하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không có cửa sổ máy ảo nào đang mở. Hãy khởi động máy ảo rồi thử lại."
+ }
+ }
+ }
+ },
+ "None": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "None"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "无"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "なし"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "없음"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không có"
+ }
+ }
+ }
+ },
+ "not charging": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "not charging"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "未充电"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "充電していません"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "충전 중 아님"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "không sạc"
+ }
+ }
+ }
+ },
+ "Not running": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Not running"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "未运行"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "実行していません"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "실행 중 아님"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không chạy"
+ }
+ }
+ }
+ },
+ "Not set": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Not set"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "未设置"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "未設定"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "설정되지 않음"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Chưa đặt"
+ }
+ }
+ }
+ },
+ "OK": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "OK"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "确定"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "OK"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "확인"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "OK"
+ }
+ }
+ }
+ },
+ "Open": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Open"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "打开"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "開く"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "열기"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Mở"
+ }
+ }
+ }
+ },
+ "Open Guest Spotlight": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Open Guest Spotlight"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "打开客体聚焦搜索"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストの Spotlight を開く"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트 Spotlight 열기"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Mở Spotlight trên máy khách"
+ }
+ }
+ }
+ },
+ "Open URL": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Open URL"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "打开 URL"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "URL を開く"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "URL 열기"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Mở URL"
+ }
+ }
+ }
+ },
+ "Open URL…": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Open URL…"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "打开 URL…"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "URL を開く…"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "URL 열기…"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Mở URL…"
+ }
+ }
+ }
+ },
+ "Opened %@": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Opened %@"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "已打开 %@"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ を開きました"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ 열기 완료"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đã mở %@"
+ }
+ }
+ }
+ },
+ "Password": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Password"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "密码"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "パスワード"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "암호"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Mật khẩu"
+ }
+ }
+ }
+ },
+ "Passwords": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Passwords"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "密码"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "パスワード"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "암호"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Mật khẩu"
+ }
+ }
+ }
+ },
+ "Paste": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Paste"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "粘贴"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ペースト"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "붙여넣기"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Dán"
+ }
+ }
+ }
+ },
+ "Permissions": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Permissions"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "权限"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "アクセス権"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "권한"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Quyền"
+ }
+ }
+ }
+ },
+ "Ping": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Ping"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Ping"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Ping"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "핑"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Ping"
+ }
+ }
+ }
+ },
+ "Power": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Power"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "电源"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "電源"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "전원"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Nguồn"
+ }
+ }
+ }
+ },
+ "Preference key": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Preference key"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "偏好设置键"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "設定キー"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "설정 키"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Khóa tùy chọn"
+ }
+ }
+ }
+ },
+ "Present": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Present"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "存在"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "あり"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "있음"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Có"
+ }
+ }
+ }
+ },
+ "Preset Location": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Preset Location"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "预设位置"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "位置のプリセット"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "위치 사전 설정"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Vị trí đặt sẵn"
+ }
+ }
+ }
+ },
+ "Protected": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Protected"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "受保护"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "保護されています"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "보호됨"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Được bảo vệ"
+ }
+ }
+ }
+ },
+ "Protection": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Protection"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "保护级别"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "保護クラス"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "보호 등급"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Mức bảo vệ"
+ }
+ }
+ }
+ },
+ "Quick Look download failed: %@": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Quick Look download failed: %@"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "“快速查看”下载失败:%@"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "クイックルックのダウンロードに失敗しました: %@"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "훑어보기 다운로드 실패: %@"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Tải xuống Xem nhanh thất bại: %@"
+ }
+ }
+ }
+ },
+ "Quit vphone": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Quit vphone"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "退出 vphone"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "vphone を終了"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "vphone 종료"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Thoát vphone"
+ }
+ }
+ }
+ },
+ "Read %@.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Read %@."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "已读取 %@。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ を読み取りました。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@을(를) 읽었습니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đã đọc %@."
+ }
+ }
+ }
+ },
+ "Read one preference key, or leave the key empty to read all keys in the domain.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Read one preference key, or leave the key empty to read all keys in the domain."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "读取一个偏好设置键;留空可读取域中的所有键。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "設定キーを 1 つ読み取ります。空欄にするとドメイン内のすべてのキーを読み取ります。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "설정 키 하나를 읽거나 키를 비워 두어 도메인의 모든 키를 읽습니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đọc một khóa tùy chọn, hoặc để trống để đọc tất cả các khóa trong miền."
+ }
+ }
+ }
+ },
+ "Read Setting": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Read Setting"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "读取设置"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "設定を読み取る"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "설정 읽기"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đọc cài đặt"
+ }
+ }
+ }
+ },
+ "Read Setting…": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Read Setting…"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "读取设置…"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "設定を読み取る…"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "설정 읽기…"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đọc cài đặt…"
+ }
+ }
+ }
+ },
+ "Reading guest clipboard…": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Reading guest clipboard…"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "正在读取客体剪贴板…"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストのクリップボードを読み取り中…"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트 클립보드 읽는 중…"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đang đọc bảng nhớ tạm của máy khách…"
+ }
+ }
+ }
+ },
+ "Recording": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Recording"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "录制"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "録画"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "녹화"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Ghi hình"
+ }
+ }
+ }
+ },
+ "Refresh": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Refresh"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "刷新"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "更新"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "새로 고침"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Làm mới"
+ }
+ }
+ }
+ },
+ "Refresh app list": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Refresh app list"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "刷新应用列表"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "アプリ一覧を更新"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "앱 목록 새로 고침"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Làm mới danh sách ứng dụng"
+ }
+ }
+ }
+ },
+ "Remove Test Item": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Remove Test Item"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "移除测试项目"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "テスト項目を削除"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "테스트 항목 제거"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Xóa mục thử nghiệm"
+ }
+ }
+ }
+ },
+ "Rename": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Rename"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "重命名"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "名前を変更"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "이름 변경"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đổi tên"
+ }
+ }
+ }
+ },
+ "Rename failed: %@": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Rename failed: %@"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "重命名失败:%@"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "名前の変更に失敗しました: %@"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "이름 변경 실패: %@"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đổi tên thất bại: %@"
+ }
+ }
+ }
+ },
+ "Rename…": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Rename…"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "重命名…"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "名前を変更…"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "이름 변경…"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đổi tên…"
+ }
+ }
+ }
+ },
+ "Result": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Result"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "结果"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "結果"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "결과"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Kết quả"
+ }
+ }
+ }
+ },
+ "Reveal in Finder": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Reveal in Finder"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "在访达中显示"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Finder で表示"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Finder에서 보기"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Hiển thị trong Finder"
+ }
+ }
+ }
+ },
+ "Running": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Running"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "运行中"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "実行中"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "실행 중"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đang chạy"
+ }
+ }
+ }
+ },
+ "Running · PID %@": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Running · PID %@"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "运行中 · PID %@"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "実行中 · PID %@"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "실행 중 · PID %@"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đang chạy · PID %@"
+ }
+ }
+ }
+ },
+ "Save Here": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Save Here"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "保存到此处"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ここに保存"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "여기에 저장"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Lưu tại đây"
+ }
+ }
+ }
+ },
+ "Save Screenshot to File": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Save Screenshot to File"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "将截屏存为文件"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "スクリーンショットをファイルに保存"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "스크린샷을 파일로 저장"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Lưu ảnh màn hình vào tệp"
+ }
+ }
+ }
+ },
+ "Saved to %@": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Saved to %@"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "已保存至 %@"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ に保存しました"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@에 저장함"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đã lưu vào %@"
+ }
+ }
+ }
+ },
+ "Screenshot": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Screenshot"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "截屏"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "スクリーンショット"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "스크린샷"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Ảnh màn hình"
+ }
+ }
+ }
+ },
+ "Screenshot copied to the Mac clipboard.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Screenshot copied to the Mac clipboard."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "截屏已复制到 Mac 剪贴板。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "スクリーンショットを Mac のクリップボードにコピーしました。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "스크린샷을 Mac 클립보드에 복사했습니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đã sao chép ảnh màn hình vào bảng nhớ tạm của Mac."
+ }
+ }
+ }
+ },
+ "Search Apps": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Search Apps"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "搜索应用"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "アプリを検索"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "앱 검색"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Tìm ứng dụng"
+ }
+ }
+ }
+ },
+ "Search Keychain": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Search Keychain"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "搜索钥匙串"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "キーチェーンを検索"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "키체인 검색"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Tìm trong Chuỗi khóa"
+ }
+ }
+ }
+ },
+ "Select All": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Select All"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "全选"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "すべてを選択"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "모두 선택"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Chọn tất cả"
+ }
+ }
+ }
+ },
+ "Send text from your Mac to the guest clipboard.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Send text from your Mac to the guest clipboard."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "将 Mac 上的文本发送到客体剪贴板。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Mac のテキストをゲストのクリップボードに送信します。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Mac의 텍스트를 게스트 클립보드로 보냅니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Gửi văn bản từ Mac vào bảng nhớ tạm của máy khách."
+ }
+ }
+ }
+ },
+ "Service": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Service"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "服务"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "サービス"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "서비스"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Dịch vụ"
+ }
+ }
+ }
+ },
+ "Set Clipboard Text": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Set Clipboard Text"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "设置剪贴板文本"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "クリップボードのテキストを設定"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "클립보드 텍스트 설정"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đặt văn bản bảng nhớ tạm"
+ }
+ }
+ }
+ },
+ "Set Clipboard Text…": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Set Clipboard Text…"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "设置剪贴板文本…"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "クリップボードのテキストを設定…"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "클립보드 텍스트 설정…"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đặt văn bản bảng nhớ tạm…"
+ }
+ }
+ }
+ },
+ "Settings": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Settings"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "设置"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "設定"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "설정"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Cài đặt"
+ }
+ }
+ }
+ },
+ "SF Ferry Building": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "SF Ferry Building"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "旧金山渡轮大厦"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "サンフランシスコ・フェリービルディング"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "샌프란시스코 페리 빌딩"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Tòa nhà phà San Francisco"
+ }
+ }
+ }
+ },
+ "Shibuya Crossing (Tokyo)": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Shibuya Crossing (Tokyo)"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "涩谷十字路口(东京)"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "渋谷スクランブル交差点(東京)"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "시부야 스크램블 교차로(도쿄)"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Ngã tư Shibuya (Tokyo)"
+ }
+ }
+ }
+ },
+ "Show Diagnostics": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Show Diagnostics"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "显示诊断信息"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "診断情報を表示"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "진단 정보 표시"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Hiện chẩn đoán"
+ }
+ }
+ }
+ },
+ "Size": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Size"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "大小"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "サイズ"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "크기"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Kích thước"
+ }
+ }
+ }
+ },
+ "Source: Off": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Source: Off"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "来源:关闭"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ソース: オフ"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "소스: 끔"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Nguồn: Tắt"
+ }
+ }
+ }
+ },
+ "Source: Test Pattern": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Source: Test Pattern"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "来源:测试图案"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ソース: テストパターン"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "소스: 테스트 패턴"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Nguồn: Mẫu thử"
+ }
+ }
+ }
+ },
+ "Source: Video File…": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Source: Video File…"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "来源:视频文件…"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ソース: 動画ファイル…"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "소스: 동영상 파일…"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Nguồn: Tệp video…"
+ }
+ }
+ }
+ },
+ "Start Recording": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Start Recording"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "开始录制"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "録画を開始"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "녹화 시작"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Bắt đầu ghi hình"
+ }
+ }
+ }
+ },
+ "Start Route Replay": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Start Route Replay"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "开始路线回放"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ルート再生を開始"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "경로 재생 시작"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Bắt đầu phát lại lộ trình"
+ }
+ }
+ }
+ },
+ "Start Streaming": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Start Streaming"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "开始推流"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "配信を開始"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "스트리밍 시작"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Bắt đầu truyền hình"
+ }
+ }
+ }
+ },
+ "Status": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Status"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "状态"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "状態"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "상태"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Trạng thái"
+ }
+ }
+ }
+ },
+ "Status: —": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Status: —"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "状态:—"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "状態: —"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "상태: —"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Trạng thái: —"
+ }
+ }
+ }
+ },
+ "Status: %@%% (%@)": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Status: %@%% (%@)"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "状态:%@%%(%@)"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "状態: %@%%(%@)"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "상태: %@%% (%@)"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Trạng thái: %@%% (%@)"
+ }
+ }
+ }
+ },
+ "Status: no host battery": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Status: no host battery"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "状态:主机没有电池"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "状態: ホストにバッテリーがありません"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "상태: 호스트 배터리 없음"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Trạng thái: máy chủ không có pin"
+ }
+ }
+ }
+ },
+ "Stop Recording": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Stop Recording"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "停止录制"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "録画を停止"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "녹화 중지"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Dừng ghi hình"
+ }
+ }
+ }
+ },
+ "Stop Route Replay": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Stop Route Replay"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "停止路线回放"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ルート再生を停止"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "경로 재생 중지"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Dừng phát lại lộ trình"
+ }
+ }
+ }
+ },
+ "Stop Streaming": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Stop Streaming"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "停止推流"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "配信を停止"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "스트리밍 중지"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Dừng truyền hình"
+ }
+ }
+ }
+ },
+ "String": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "String"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "字符串"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "文字列"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "문자열"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Chuỗi"
+ }
+ }
+ }
+ },
+ "Sync Host Location": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Sync Host Location"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "同步主机位置"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ホストの位置情報を同期"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "호스트 위치 동기화"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đồng bộ vị trí máy chủ"
+ }
+ }
+ }
+ },
+ "Sync with Host": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Sync with Host"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "与主机同步"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ホストと同期"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "호스트와 동기화"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đồng bộ với máy chủ"
+ }
+ }
+ }
+ },
+ "System": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "System"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "系统"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "システム"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "시스템"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Hệ thống"
+ }
+ }
+ }
+ },
+ "Text": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Text"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "文本"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "テキスト"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "텍스트"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Văn bản"
+ }
+ }
+ }
+ },
+ "Text for guest clipboard": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Text for guest clipboard"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "要写入客体剪贴板的文本"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストのクリップボードに設定するテキスト"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트 클립보드에 넣을 텍스트"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Văn bản cho bảng nhớ tạm của máy khách"
+ }
+ }
+ }
+ },
+ "Text set on the guest clipboard.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Text set on the guest clipboard."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "文本已写入客体剪贴板。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストのクリップボードにテキストを設定しました。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트 클립보드에 텍스트를 설정했습니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đã đặt văn bản vào bảng nhớ tạm của máy khách."
+ }
+ }
+ }
+ },
+ "The guest agent is not connected. Wait for it to connect, then try again.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "The guest agent is not connected. Wait for it to connect, then try again."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "客体代理未连接。请等待连接后重试。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストエージェントに接続されていません。接続を待ってから再試行してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트 에이전트가 연결되지 않았습니다. 연결을 기다린 후 다시 시도하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Tác nhân máy khách chưa kết nối. Hãy chờ kết nối rồi thử lại."
+ }
+ }
+ }
+ },
+ "The guest did not respond. Check that the guest agent is connected, then try again.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "The guest did not respond. Check that the guest agent is connected, then try again."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "客体未响应。请检查客体代理连接后重试。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストから応答がありません。ゲストエージェントの接続を確認して再試行してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트가 응답하지 않았습니다. 게스트 에이전트 연결을 확인한 후 다시 시도하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Máy khách không phản hồi. Hãy kiểm tra kết nối của tác nhân máy khách rồi thử lại."
+ }
+ }
+ }
+ },
+ "The guest is not connected. Start a VM, then try again.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "The guest is not connected. Start a VM, then try again."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "客体未连接。请启动虚拟机后重试。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストに接続されていません。VM を起動して再試行してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트가 연결되지 않았습니다. VM을 시작한 후 다시 시도하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Máy khách chưa kết nối. Hãy khởi động máy ảo rồi thử lại."
+ }
+ }
+ }
+ },
+ "The guest responded.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "The guest responded."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "客体已响应。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストから応答がありました。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트가 응답했습니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Máy khách đã phản hồi."
+ }
+ }
+ }
+ },
+ "Times Square (NYC)": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Times Square (NYC)"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "时代广场(纽约)"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "タイムズスクエア(ニューヨーク)"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "타임스 스퀘어(뉴욕)"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Quảng trường Thời đại (New York)"
+ }
+ }
+ }
+ },
+ "Touch ID Home Forwarding": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Touch ID Home Forwarding"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "转发 Touch ID 主屏幕键"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Touch ID ホーム操作を転送"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Touch ID 홈 동작 전달"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Chuyển tiếp nút Home Touch ID"
+ }
+ }
+ }
+ },
+ "Transferring…": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Transferring…"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "传输中…"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "転送中…"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "전송 중…"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đang truyền…"
+ }
+ }
+ }
+ },
+ "true or false": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "true or false"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "true 或 false"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "true または false"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "true 또는 false"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "true hoặc false"
+ }
+ }
+ }
+ },
+ "Type": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Type"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "类型"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "種類"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "유형"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Loại"
+ }
+ }
+ }
+ },
+ "Type ASCII from Mac Clipboard": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Type ASCII from Mac Clipboard"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "输入 Mac 剪贴板中的 ASCII 文本"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Mac のクリップボードから ASCII を入力"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Mac 클립보드의 ASCII 입력"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Nhập ASCII từ bảng nhớ tạm của Mac"
+ }
+ }
+ }
+ },
+ "Types": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Types"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "类型"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "種類"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "유형"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Loại"
+ }
+ }
+ }
+ },
+ "Unable to add the keychain item. Try again.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Unable to add the keychain item. Try again."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "无法添加钥匙串项目。请重试。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "キーチェーン項目を追加できません。再試行してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "키체인 항목을 추가할 수 없습니다. 다시 시도하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không thể thêm mục Chuỗi khóa. Hãy thử lại."
+ }
+ }
+ }
+ },
+ "Unable to copy the screenshot. Try again.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Unable to copy the screenshot. Try again."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "无法复制截屏。请重试。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "スクリーンショットをコピーできません。再試行してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "스크린샷을 복사할 수 없습니다. 다시 시도하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không thể sao chép ảnh màn hình. Hãy thử lại."
+ }
+ }
+ }
+ },
+ "Unable to install the app package. Check the file and guest connection, then try again.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Unable to install the app package. Check the file and guest connection, then try again."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "无法安装应用包。请检查文件和客体连接后重试。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "アプリパッケージをインストールできません。ファイルとゲスト接続を確認して再試行してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "앱 패키지를 설치할 수 없습니다. 파일과 게스트 연결을 확인한 후 다시 시도하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không thể cài đặt gói ứng dụng. Hãy kiểm tra tệp và kết nối máy khách rồi thử lại."
+ }
+ }
+ }
+ },
+ "Unable to load keychain items. Check that the guest agent is connected, then try again.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Unable to load keychain items. Check that the guest agent is connected, then try again."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "无法加载钥匙串项目。请检查客体代理连接后重试。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "キーチェーン項目を読み込めません。ゲストエージェントの接続を確認して再試行してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "키체인 항목을 불러올 수 없습니다. 게스트 에이전트 연결을 확인한 후 다시 시도하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không thể tải các mục Chuỗi khóa. Hãy kiểm tra kết nối tác nhân máy khách rồi thử lại."
+ }
+ }
+ }
+ },
+ "Unable to open the URL on the guest. Check the URL and guest connection, then try again.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Unable to open the URL on the guest. Check the URL and guest connection, then try again."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "无法在客体中打开 URL。请检查 URL 和客体连接后重试。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストで URL を開けません。URL とゲスト接続を確認して再試行してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트에서 URL을 열 수 없습니다. URL과 게스트 연결을 확인한 후 다시 시도하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không thể mở URL trong máy khách. Hãy kiểm tra URL và kết nối rồi thử lại."
+ }
+ }
+ }
+ },
+ "Unable to read Developer Mode status. Check that the guest agent is connected, then try again.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Unable to read Developer Mode status. Check that the guest agent is connected, then try again."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "无法读取开发者模式状态。请检查客体代理连接后重试。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "デベロッパモードの状態を読み取れません。ゲストエージェントの接続を確認して再試行してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "개발자 모드 상태를 읽을 수 없습니다. 게스트 에이전트 연결을 확인한 후 다시 시도하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không thể đọc trạng thái Chế độ nhà phát triển. Hãy kiểm tra kết nối tác nhân máy khách rồi thử lại."
+ }
+ }
+ }
+ },
+ "Unable to read that setting. Check the domain and key, then try again.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Unable to read that setting. Check the domain and key, then try again."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "无法读取该设置。请检查域和键后重试。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "設定を読み取れません。ドメインとキーを確認して再試行してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "설정을 읽을 수 없습니다. 도메인과 키를 확인한 후 다시 시도하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không thể đọc cài đặt đó. Hãy kiểm tra miền và khóa rồi thử lại."
+ }
+ }
+ }
+ },
+ "Unable to read the dropped items. Drag files from Finder, then try again.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Unable to read the dropped items. Drag files from Finder, then try again."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "无法读取拖放的项目。请从访达拖入文件后重试。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ドロップした項目を読み取れません。Finder からファイルをドラッグして再試行してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "드롭한 항목을 읽을 수 없습니다. Finder에서 파일을 드래그한 후 다시 시도하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không thể đọc các mục đã thả. Hãy kéo tệp từ Finder rồi thử lại."
+ }
+ }
+ }
+ },
+ "Unable to read the guest agent hash. Check that the guest agent is connected, then try again.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Unable to read the guest agent hash. Check that the guest agent is connected, then try again."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "无法读取客体代理哈希。请检查客体代理连接后重试。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストエージェントのハッシュを読み取れません。ゲストエージェントの接続を確認して再試行してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트 에이전트 해시를 읽을 수 없습니다. 게스트 에이전트 연결을 확인한 후 다시 시도하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không thể đọc hàm băm của tác nhân máy khách. Hãy kiểm tra kết nối rồi thử lại."
+ }
+ }
+ }
+ },
+ "Unable to read the guest clipboard. Check the connection and try again.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Unable to read the guest clipboard. Check the connection and try again."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "无法读取客体剪贴板。请检查连接后重试。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストのクリップボードを読み取れません。接続を確認して再試行してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트 클립보드를 읽을 수 없습니다. 연결을 확인한 후 다시 시도하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không thể đọc bảng nhớ tạm của máy khách. Hãy kiểm tra kết nối rồi thử lại."
+ }
+ }
+ }
+ },
+ "Unable to remove the test keychain item. Try again.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Unable to remove the test keychain item. Try again."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "无法移除测试钥匙串项目。请重试。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "テスト用キーチェーン項目を削除できません。再試行してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "테스트 키체인 항목을 제거할 수 없습니다. 다시 시도하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không thể xóa mục Chuỗi khóa thử nghiệm. Hãy thử lại."
+ }
+ }
+ }
+ },
+ "Unable to save the screenshot. Try again.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Unable to save the screenshot. Try again."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "无法保存截屏。请重试。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "スクリーンショットを保存できません。再試行してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "스크린샷을 저장할 수 없습니다. 다시 시도하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không thể lưu ảnh màn hình. Hãy thử lại."
+ }
+ }
+ }
+ },
+ "Unable to set the guest clipboard. Check the connection and try again.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Unable to set the guest clipboard. Check the connection and try again."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "无法设置客体剪贴板。请检查连接后重试。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストのクリップボードを設定できません。接続を確認して再試行してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트 클립보드를 설정할 수 없습니다. 연결을 확인한 후 다시 시도하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không thể đặt bảng nhớ tạm của máy khách. Hãy kiểm tra kết nối rồi thử lại."
+ }
+ }
+ }
+ },
+ "Unable to start recording. Try again.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Unable to start recording. Try again."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "无法开始录制。请重试。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "録画を開始できません。再試行してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "녹화를 시작할 수 없습니다. 다시 시도하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không thể bắt đầu ghi hình. Hãy thử lại."
+ }
+ }
+ }
+ },
+ "Unable to write that setting. Check the connection and try again.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Unable to write that setting. Check the connection and try again."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "无法写入该设置。请检查连接后重试。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "設定を書き込めません。接続を確認して再試行してください。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "설정을 쓸 수 없습니다. 연결을 확인한 후 다시 시도하세요."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Không thể ghi cài đặt đó. Hãy kiểm tra kết nối rồi thử lại."
+ }
+ }
+ }
+ },
+ "unknown": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "unknown"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "未知"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "不明"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "알 수 없음"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "không rõ"
+ }
+ }
+ }
+ },
+ "Upload": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Upload"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "上传"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "アップロード"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "업로드"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Tải lên"
+ }
+ }
+ }
+ },
+ "Upload failed for \"%@\": %@": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Upload failed for \"%@\": %@"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "上传“%@”失败:%@"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "「%@」のアップロードに失敗しました: %@"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "\"%@\" 업로드 실패: %@"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Tải \"%@\" lên thất bại: %@"
+ }
+ }
+ }
+ },
+ "Upload…": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Upload…"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "上传…"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "アップロード…"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "업로드…"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Tải lên…"
+ }
+ }
+ }
+ },
+ "URL to open on the guest": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "URL to open on the guest"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "要在客体中打开的 URL"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストで開く URL"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트에서 열 URL"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "URL cần mở trong máy khách"
+ }
+ }
+ }
+ },
+ "Use as Camera Source": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Use as Camera Source"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "用作摄像头来源"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "カメラソースとして使用"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "카메라 소스로 사용"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Dùng làm nguồn camera"
+ }
+ }
+ }
+ },
+ "User": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "User"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "用户"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ユーザー"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "사용자"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Người dùng"
+ }
+ }
+ }
+ },
+ "Value": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Value"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "值"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "値"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "값"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Giá trị"
+ }
+ }
+ }
+ },
+ "Version": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Version"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "版本"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "バージョン"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "버전"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Phiên bản"
+ }
+ }
+ }
+ },
+ "Volume Down": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Volume Down"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "调低音量"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "音量を下げる"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "음량 낮추기"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Giảm âm lượng"
+ }
+ }
+ }
+ },
+ "Volume Up": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Volume Up"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "调高音量"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "音量を上げる"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "음량 높이기"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Tăng âm lượng"
+ }
+ }
+ }
+ },
+ "vphone — Connected": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "vphone — Connected"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "vphone — 已连接"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "vphone — 接続済み"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "vphone — 연결됨"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "vphone — Đã kết nối"
+ }
+ }
+ }
+ },
+ "vphone — Disconnected": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "vphone — Disconnected"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "vphone — 未连接"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "vphone — 未接続"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "vphone — 연결 끊김"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "vphone — Chưa kết nối"
+ }
+ }
+ }
+ },
+ "vphone — Starting…": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "vphone — Starting…"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "vphone — 启动中…"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "vphone — 起動中…"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "vphone — 시작 중…"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "vphone — Đang khởi động…"
+ }
+ }
+ }
+ },
+ "WhenPasscodeSet (ThisDevice)": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "WhenPasscodeSet (ThisDevice)"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "设置密码时(此设备)"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "パスコード設定時(このデバイス)"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "암호 설정 시(이 기기)"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Khi đã đặt mật mã (thiết bị này)"
+ }
+ }
+ }
+ },
+ "WhenUnlocked": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "WhenUnlocked"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "解锁时"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ロック解除時"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "잠금 해제 시"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Khi mở khóa"
+ }
+ }
+ }
+ },
+ "WhenUnlocked (ThisDevice)": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "WhenUnlocked (ThisDevice)"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "解锁时(此设备)"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ロック解除時(このデバイス)"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "잠금 해제 시(이 기기)"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Khi mở khóa (thiết bị này)"
+ }
+ }
+ }
+ },
+ "Window": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Window"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "窗口"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ウインドウ"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "윈도우"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Cửa sổ"
+ }
+ }
+ }
+ },
+ "Write a typed value to a guest preference key.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Write a typed value to a guest preference key."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "向客体偏好设置键写入指定类型的值。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "ゲストの設定キーに型を指定して値を書き込みます。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "게스트 설정 키에 유형이 지정된 값을 씁니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Ghi giá trị có kiểu vào một khóa tùy chọn của máy khách."
+ }
+ }
+ }
+ },
+ "Write Setting": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Write Setting"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "写入设置"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "設定を書き込む"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "설정 쓰기"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Ghi cài đặt"
+ }
+ }
+ }
+ },
+ "Write Setting…": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Write Setting…"
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "写入设置…"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "設定を書き込む…"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "설정 쓰기…"
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Ghi cài đặt…"
+ }
+ }
+ }
+ },
+ "Wrote %@.": {
+ "localizations": {
+ "en": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Wrote %@."
+ }
+ },
+ "zh-Hans": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "已写入 %@。"
+ }
+ },
+ "ja": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@ に書き込みました。"
+ }
+ },
+ "ko": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "%@에 기록했습니다."
+ }
+ },
+ "vi": {
+ "stringUnit": {
+ "state": "translated",
+ "value": "Đã ghi %@."
+ }
+ }
+ }
+ },
+ "": {
+ "shouldTranslate": false
+ }
+ },
+ "version": "1.3"
+}
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift b/VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift
index 2e96a876..93fb8555 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControl.swift
@@ -16,9 +16,9 @@ final class VPhoneGuestControl {
var description: String {
switch self {
case .notConnected: "not connected to vphoned"
- case let .unsupportedCapability(value): "guest does not support capability: \(value)"
- case let .protocolError(value): "API protocol error: \(value)"
- case let .guestError(value): value
+ case .unsupportedCapability(let value): "guest does not support capability: \(value)"
+ case .protocolError(let value): "API protocol error: \(value)"
+ case .guestError(let value): value
}
}
}
@@ -46,7 +46,7 @@ final class VPhoneGuestControl {
var useGuestTouchInjection: Bool {
guard isConnected, guestCapabilities.contains("touch"),
- let major = guestIOSVersion.flatMap({ Int($0.split(separator: ".").first ?? "") })
+ let major = guestIOSVersion.flatMap({ Int($0.split(separator: ".").first ?? "") })
else { return false }
return major < 26
}
@@ -77,13 +77,13 @@ final class VPhoneGuestControl {
do {
let response = try await http(method: "GET", path: "/v1/health")
guard response.status == 200,
- let info = try JSONSerialization.jsonObject(with: response.body) as? [String: Any],
- info["api_version"] as? Int == 1
+ let info = try JSONSerialization.jsonObject(with: response.body) as? [String: Any],
+ info["api_version"] as? Int == 1
else {
throw ControlError.protocolError("incompatible guest API")
}
if let binary = guestBinaryURL,
- let data = try? Data(contentsOf: binary, options: .mappedIfSafe)
+ let data = try? Data(contentsOf: binary, options: .mappedIfSafe)
{
let hash = SHA256.hash(data: data).map { String(format: "%02x", $0) }.joined()
if hash != info["binary_hash"] as? String {
@@ -143,7 +143,12 @@ final class VPhoneGuestControl {
}
func sendTouch(phase: Int, x: Double, y: Double) {
- let name = switch phase { case 0: "down"; case 1: "move"; default: "up" }
+ let name =
+ switch phase {
+ case 0: "down"
+ case 1: "move"
+ default: "up"
+ }
enqueueInput("input.touch", params: ["phase": name, "x": x, "y": y, "normalized": true])
}
@@ -152,8 +157,7 @@ final class VPhoneGuestControl {
orderedInput = Task {
await previous?.value
guard !Task.isCancelled else { return }
- do { _ = try await call(method, params: params) }
- catch { print("[control] \(method): \(error)") }
+ do { _ = try await call(method, params: params) } catch { print("[control] \(method): \(error)") }
}
}
@@ -174,9 +178,9 @@ final class VPhoneGuestControl {
func screenshotJPEG() async throws -> Data {
let result = try await call("screen.screenshot")
guard result["mime_type"] as? String == "image/jpeg",
- let encoded = result["data"] as? String,
- let data = Data(base64Encoded: encoded),
- data.starts(with: [0xFF, 0xD8])
+ let encoded = result["data"] as? String,
+ let data = Data(base64Encoded: encoded),
+ data.starts(with: [0xFF, 0xD8])
else {
throw ControlError.protocolError("invalid guest screenshot")
}
@@ -194,7 +198,8 @@ final class VPhoneGuestControl {
}
if type == "clipboard_get" {
var info = try await call("clipboard.get")
- let image = (info["has_image"] as? Bool == true)
+ let image =
+ (info["has_image"] as? Bool == true)
? try await http(method: "GET", path: "/v1/clipboard/image").body : nil
info["ok"] = true
return (info, image)
@@ -331,8 +336,12 @@ final class VPhoneGuestControl {
]
// CoreLocation uses negative values for unavailable speed and course.
// IcliKit expects those fields to be absent in that case.
- if speed >= 0 { params["speed"] = speed }
- if course >= 0 { params["course"] = course }
+ if speed >= 0 {
+ params["speed"] = speed
+ }
+ if course >= 0 {
+ params["course"] = course
+ }
enqueueLocation("location.set", params: params)
}
@@ -347,8 +356,7 @@ final class VPhoneGuestControl {
orderedLocation = Task {
await previous?.value
guard !Task.isCancelled, generation == locationGeneration else { return }
- do { _ = try await call(method, params: params) }
- catch { print("[control] \(method): \(error)") }
+ do { _ = try await call(method, params: params) } catch { print("[control] \(method): \(error)") }
}
}
@@ -392,8 +400,9 @@ final class VPhoneGuestControl {
)
return try await withCheckedThrowingContinuation { continuation in
DispatchQueue.global(qos: .userInitiated).async {
- do { try continuation.resume(returning: transaction.run()) }
- catch { continuation.resume(throwing: error) }
+ do { try continuation.resume(returning: transaction.run()) } catch {
+ continuation.resume(throwing: error)
+ }
}
}
}
@@ -438,14 +447,18 @@ private final class VPhoneHTTPTransaction: @unchecked Sendable {
throw VPhoneGuestControl.ControlError.notConnected
}
var timeout = timeval(tv_sec: 120, tv_usec: 0)
- guard setsockopt(fd, SOL_SOCKET, SO_RCVTIMEO, &timeout,
- socklen_t(MemoryLayout<timeval>.size)) == 0,
- setsockopt(fd, SOL_SOCKET, SO_SNDTIMEO, &timeout,
- socklen_t(MemoryLayout<timeval>.size)) == 0
+ guard
+ setsockopt(
+ fd, SOL_SOCKET, SO_RCVTIMEO, &timeout,
+ socklen_t(MemoryLayout<timeval>.size)) == 0,
+ setsockopt(
+ fd, SOL_SOCKET, SO_SNDTIMEO, &timeout,
+ socklen_t(MemoryLayout<timeval>.size)) == 0
else {
throw VPhoneGuestControl.ControlError.notConnected
}
- let headers = "\(method) \(path) HTTP/1.1\r\nHost: vphoned\r\nConnection: close\r\nContent-Type: \(contentType)\r\nContent-Length: \(body.count)\r\n\r\n"
+ let headers =
+ "\(method) \(path) HTTP/1.1\r\nHost: vphoned\r\nConnection: close\r\nContent-Type: \(contentType)\r\nContent-Length: \(body.count)\r\n\r\n"
try write(fd, data: Data(headers.utf8))
if !body.isEmpty {
try write(fd, data: body)
@@ -466,8 +479,8 @@ private final class VPhoneHTTPTransaction: @unchecked Sendable {
throw VPhoneGuestControl.ControlError.protocolError("invalid HTTP status")
}
guard let lengthLine = lines.first(where: { $0.lowercased().hasPrefix("content-length:") }),
- let length = Int(lengthLine.split(separator: ":", maxSplits: 1)[1].trimmingCharacters(in: .whitespaces)),
- length >= 0, length <= 2_147_483_647
+ let length = Int(lengthLine.split(separator: ":", maxSplits: 1)[1].trimmingCharacters(in: .whitespaces)),
+ length >= 0, length <= 2_147_483_647
else {
throw VPhoneGuestControl.ControlError.protocolError("missing HTTP content length")
}
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControlApps.swift b/VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControlApps.swift
index 73828fa1..f9fb7c4e 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControlApps.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/GuestCommunication/VPhoneGuestControlApps.swift
@@ -12,7 +12,9 @@ extension VPhoneGuestControl {
let pid: Int
let path: String
- var id: String { bundleId }
+ var id: String {
+ bundleId
+ }
}
func appList(filter: String = "all") async throws -> [AppInfo] {
@@ -34,7 +36,7 @@ extension VPhoneGuestControl {
}
func appLaunch(bundleId: String, url: String? = nil) async throws -> (
- pid: Int, frontmostVerified: Bool, warning: String?
+ pid: Int, frontmostVerified: Bool, warning: String?,
) {
var req: [String: Any] = ["t": "app_launch", "bundle_id": bundleId]
if let url {
@@ -53,7 +55,7 @@ extension VPhoneGuestControl {
}
func appForeground() async throws -> (
- bundleId: String, name: String, pid: Int, verified: Bool, source: String
+ bundleId: String, name: String, pid: Int, verified: Bool, source: String,
) {
let (resp, _) = try await sendRequest(["t": "app_foreground"])
return (
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Apps/VPhoneAppBrowserView.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Apps/VPhoneAppBrowserView.swift
index a6b2041b..3f9288fb 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Apps/VPhoneAppBrowserView.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Apps/VPhoneAppBrowserView.swift
@@ -26,7 +26,11 @@ struct VPhoneAppBrowserView: View {
"Error",
isPresented: .init(
get: { model.error != nil },
- set: { if !$0 { model.error = nil } },
+ set: {
+ if !$0 {
+ model.error = nil
+ }
+ },
),
) {
Button("OK") { model.error = nil }
@@ -61,13 +65,17 @@ struct VPhoneAppBrowserView: View {
.width(min: 70, ideal: 90, max: 120)
TableColumn("Type", value: \.type) { app in
- Text(app.type.capitalized)
+ Text(VPhoneLocalization.text(app.type.capitalized))
}
.width(min: 60, ideal: 80, max: 100)
TableColumn("Status", value: \.pid) { app in
- Text(app.pid > 0 ? "Running · PID \(app.pid)" : "Not running")
- .foregroundStyle(app.pid > 0 ? .primary : .secondary)
+ Text(
+ app.pid > 0
+ ? VPhoneLocalization.format("Running · PID %@", String(app.pid))
+ : VPhoneLocalization.text("Not running")
+ )
+ .foregroundStyle(app.pid > 0 ? .primary : .secondary)
}
.width(min: 120, ideal: 150, max: 180)
} rows: {
@@ -92,9 +100,10 @@ struct VPhoneAppBrowserView: View {
"No Apps",
systemImage: "app.dashed",
description: Text(
- model.searchText.isEmpty
- ? "No apps are available for this filter."
- : "No apps match your search.",
+ VPhoneLocalization.text(
+ model.searchText.isEmpty
+ ? "No apps are available for this filter."
+ : "No apps match your search."),
),
)
}
@@ -107,9 +116,13 @@ struct VPhoneAppBrowserView: View {
.fill(model.control.isConnected ? Color.green : Color.orange)
.frame(width: 8, height: 8)
- Text(model.filteredApps.count == 1 ? "1 app" : "\(model.filteredApps.count) apps")
- .font(.system(size: 11, design: .monospaced))
- .foregroundStyle(.secondary)
+ Text(
+ model.filteredApps.count == 1
+ ? VPhoneLocalization.text("1 app")
+ : VPhoneLocalization.format("%@ apps", String(model.filteredApps.count))
+ )
+ .font(.system(size: 11, design: .monospaced))
+ .foregroundStyle(.secondary)
Spacer()
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Apps/VPhoneAppWindowController.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Apps/VPhoneAppWindowController.swift
index b2d28ca7..73807695 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Apps/VPhoneAppWindowController.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Apps/VPhoneAppWindowController.swift
@@ -11,7 +11,9 @@ class VPhoneAppWindowController: NSObject, NSToolbarDelegate {
private var model: VPhoneAppBrowserModel?
private var searchItem: NSSearchToolbarItem?
- var isKeyWindow: Bool { window?.isKeyWindow == true }
+ var isKeyWindow: Bool {
+ window?.isKeyWindow == true
+ }
func showWindow(control: VPhoneGuestControl) {
if let window {
@@ -30,7 +32,7 @@ class VPhoneAppWindowController: NSObject, NSToolbarDelegate {
backing: .buffered,
defer: false,
)
- window.title = "Apps"
+ window.title = VPhoneLocalization.text("Apps")
window.contentView = NSHostingView(rootView: view)
window.contentMinSize = NSSize(width: 700, height: 300)
window.center()
@@ -92,11 +94,11 @@ class VPhoneAppWindowController: NSObject, NSToolbarDelegate {
private func makeFilterItem() -> NSToolbarItem {
let item = NSToolbarItem(itemIdentifier: Self.filterItemID)
- item.label = "App Type"
- item.toolTip = "Filter apps by type"
+ item.label = VPhoneLocalization.text("App Type")
+ item.toolTip = VPhoneLocalization.text("Filter apps by type")
item.visibilityPriority = .high
- let labels = VPhoneAppBrowserModel.AppFilter.allCases.map { $0.rawValue.capitalized }
+ let labels = ["All", "Running", "User", "System"].map(VPhoneLocalization.text)
let control = NSSegmentedControl(
labels: labels,
trackingMode: .selectOne,
@@ -111,12 +113,12 @@ class VPhoneAppWindowController: NSObject, NSToolbarDelegate {
private func makeSearchItem() -> NSToolbarItem {
let item = NSSearchToolbarItem(itemIdentifier: Self.searchItemID)
- item.label = "Search Apps"
+ item.label = VPhoneLocalization.text("Search Apps")
item.visibilityPriority = .high
item.preferredWidthForSearchField = 220
let field = NSSearchField()
- field.placeholderString = "Search Apps"
+ field.placeholderString = VPhoneLocalization.text("Search Apps")
field.sendsSearchStringImmediately = true
field.target = self
field.action = #selector(searchChanged(_:))
@@ -127,9 +129,10 @@ class VPhoneAppWindowController: NSObject, NSToolbarDelegate {
private func makeRefreshItem() -> NSToolbarItem {
let item = NSToolbarItem(itemIdentifier: Self.refreshItemID)
- item.label = "Refresh"
- item.toolTip = "Refresh app list"
- item.image = NSImage(systemSymbolName: "arrow.clockwise", accessibilityDescription: "Refresh")
+ item.label = VPhoneLocalization.text("Refresh")
+ item.toolTip = VPhoneLocalization.text("Refresh app list")
+ item.image = NSImage(
+ systemSymbolName: "arrow.clockwise", accessibilityDescription: VPhoneLocalization.text("Refresh"))
item.target = self
item.action = #selector(refresh)
return item
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileBrowserModel.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileBrowserModel.swift
index 9dadc22e..3bba9481 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileBrowserModel.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileBrowserModel.swift
@@ -61,11 +61,12 @@ class VPhoneFileBrowserModel {
var statusText: String {
let count = filteredFiles.count
- let suffix = count == 1 ? "item" : "items"
if !searchText.isEmpty {
- return "\(count) \(suffix) (filtered)"
+ return VPhoneLocalization.format("%@ items (filtered)", String(count))
}
- return "\(count) \(suffix)"
+ return count == 1
+ ? VPhoneLocalization.text("1 item")
+ : VPhoneLocalization.format("%@ items", String(count))
}
// MARK: - Navigation
@@ -120,8 +121,8 @@ class VPhoneFileBrowserModel {
func quickLookSelected() {
guard let id = selection.first,
- let file = filteredFiles.first(where: { $0.id == id }),
- !file.isDirectoryLike
+ let file = filteredFiles.first(where: { $0.id == id }),
+ !file.isDirectoryLike
else { return }
quickLookTask?.cancel()
@@ -133,7 +134,7 @@ class VPhoneFileBrowserModel {
quickLookController.open(data: data, filename: file.name)
} catch {
guard !Task.isCancelled else { return }
- self.error = "Quick Look download failed: \(error)"
+ self.error = VPhoneLocalization.format("Quick Look download failed: %@", String(describing: error))
}
quickLookTask = nil
}
@@ -194,7 +195,7 @@ class VPhoneFileBrowserModel {
try data.write(to: dest)
print("[files] downloaded \(remotePath) (\(data.count) bytes)")
} catch {
- self.error = "Download failed: \(error)"
+ self.error = VPhoneLocalization.format("Download failed: %@", String(describing: error))
}
}
@@ -204,12 +205,12 @@ class VPhoneFileBrowserModel {
ancestors: Set<String>,
) async {
guard !file.isSymbolicLink || file.resolvedPath != nil else {
- error = "Download requires an updated guest agent to follow \(file.path)."
+ error = VPhoneLocalization.format("Download requires an updated guest agent to follow %@.", file.path)
return
}
let resolvedPath = file.resolvedPath ?? file.path
guard !ancestors.contains(resolvedPath) else {
- error = "Directory link creates a cycle at \(file.path)."
+ error = VPhoneLocalization.format("Directory link creates a cycle at %@.", file.path)
return
}
let ancestors = ancestors.union([resolvedPath])
@@ -217,7 +218,7 @@ class VPhoneFileBrowserModel {
do {
try FileManager.default.createDirectory(at: localDir, withIntermediateDirectories: true)
} catch {
- self.error = "Create directory failed: \(error)"
+ self.error = VPhoneLocalization.format("Create directory failed: %@", String(describing: error))
return
}
@@ -225,7 +226,7 @@ class VPhoneFileBrowserModel {
do {
entries = try await control.listFiles(path: file.path)
} catch {
- self.error = "List directory failed: \(error)"
+ self.error = VPhoneLocalization.format("List directory failed: %@", String(describing: error))
return
}
@@ -254,7 +255,7 @@ class VPhoneFileBrowserModel {
// Mapped: this is a drag-and-drop target, so the size is the
// user's choice and the transfer chunks it anyway.
guard let data = try? Data(contentsOf: url, options: .mappedIfSafe) else {
- uploadError = "Could not read \"\(name)\" from disk."
+ uploadError = VPhoneLocalization.format("Could not read \"%@\" from disk.", name)
break
}
let dest = (currentPath as NSString).appendingPathComponent(name)
@@ -266,7 +267,7 @@ class VPhoneFileBrowserModel {
transferCurrent = Int64(data.count)
print("[files] uploaded \(name) (\(data.count) bytes)")
} catch {
- uploadError = "Upload failed for \"\(name)\": \(error)"
+ uploadError = VPhoneLocalization.format("Upload failed for \"%@\": %@", name, String(describing: error))
break
}
}
@@ -280,7 +281,7 @@ class VPhoneFileBrowserModel {
func createNewFolder(name: String) async {
guard !files.contains(where: { $0.name == name }) else {
- error = "An item named \(name) already exists."
+ error = VPhoneLocalization.format("An item named %@ already exists.", name)
return
}
let path = (currentPath as NSString).appendingPathComponent(name)
@@ -288,7 +289,7 @@ class VPhoneFileBrowserModel {
try await control.createDirectory(path: path)
await refresh()
} catch {
- self.error = "Create folder failed: \(error)"
+ self.error = VPhoneLocalization.format("Create folder failed: %@", String(describing: error))
}
}
@@ -298,7 +299,7 @@ class VPhoneFileBrowserModel {
do {
try await control.deleteFile(path: file.path)
} catch {
- self.error = "Delete failed: \(error)"
+ self.error = VPhoneLocalization.format("Delete failed: %@", String(describing: error))
return
}
}
@@ -309,7 +310,7 @@ class VPhoneFileBrowserModel {
func renameFile(_ file: VPhoneRemoteFile, to newName: String) async {
guard newName != file.name else { return }
guard !files.contains(where: { $0.dir == file.dir && $0.name == newName }) else {
- error = "An item named \(newName) already exists."
+ error = VPhoneLocalization.format("An item named %@ already exists.", newName)
return
}
let newPath = (file.dir as NSString).appendingPathComponent(newName)
@@ -317,7 +318,7 @@ class VPhoneFileBrowserModel {
try await control.renameFile(from: file.path, to: newPath)
await refresh()
} catch {
- self.error = "Rename failed: \(error)"
+ self.error = VPhoneLocalization.format("Rename failed: %@", String(describing: error))
}
}
}
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileBrowserView.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileBrowserView.swift
index 1c24ce1b..88516d9d 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileBrowserView.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileBrowserView.swift
@@ -171,7 +171,10 @@ struct VPhoneFileBrowserView: View {
.lineLimit(1)
Spacer()
if model.transferTotal > 0 {
- Text("\(formatBytes(model.transferCurrent)) / \(formatBytes(model.transferTotal))")
+ Text(
+ VPhoneLocalization.format(
+ "%@ / %@", formatBytes(model.transferCurrent), formatBytes(model.transferTotal)
+ ))
}
}
.font(.system(.footnote, design: .monospaced))
@@ -322,7 +325,7 @@ struct VPhoneFileBrowserView: View {
func primaryAction(for ids: Set<VPhoneRemoteFile.ID>) {
guard let id = ids.first,
- let file = model.filteredFiles.first(where: { $0.id == id })
+ let file = model.filteredFiles.first(where: { $0.id == id })
else { return }
model.openItem(file)
}
@@ -341,7 +344,7 @@ struct VPhoneFileBrowserView: View {
panel.allowsMultipleSelection = false
panel.canChooseFiles = false
panel.canChooseDirectories = true
- panel.prompt = "Save Here"
+ panel.prompt = VPhoneLocalization.text("Save Here")
guard panel.runModal() == .OK, let url = panel.url else { return }
Task { await model.downloadSelected(to: url) }
}
@@ -377,7 +380,8 @@ struct VPhoneFileBrowserView: View {
}
}
if urls.isEmpty {
- model.error = "Unable to read the dropped items. Drag files from Finder, then try again."
+ model.error = VPhoneLocalization.text(
+ "Unable to read the dropped items. Drag files from Finder, then try again.")
} else {
await model.uploadFiles(urls: urls)
}
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileWindowController.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileWindowController.swift
index 8f31adec..b063d342 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileWindowController.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Files/VPhoneFileWindowController.swift
@@ -26,7 +26,7 @@ class VPhoneFileWindowController {
backing: .buffered,
defer: false,
)
- window.title = "Files"
+ window.title = VPhoneLocalization.text("Files")
window.subtitle = "vphone"
window.contentViewController = hostingController
window.contentMinSize = NSSize(width: 500, height: 300)
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainBrowserModel.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainBrowserModel.swift
index 6ebdceea..725d521a 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainBrowserModel.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainBrowserModel.swift
@@ -46,14 +46,15 @@ class VPhoneKeychainBrowserModel {
var statusText: String {
let count = filteredItems.count
let total = items.count
- let suffix = count == 1 ? "item" : "items"
if count != total {
- return "\(count)/\(total) \(suffix)"
+ return VPhoneLocalization.format("%@/%@ items", String(count), String(total))
}
if count == 0, !diagnostics.isEmpty {
- return "No items"
+ return VPhoneLocalization.text("No items")
}
- return "\(count) \(suffix)"
+ return count == 1
+ ? VPhoneLocalization.text("1 item")
+ : VPhoneLocalization.format("%@ items", String(count))
}
static let classFilters: [(label: String, value: String?)] = [
@@ -83,7 +84,7 @@ class VPhoneKeychainBrowserModel {
print("[keychain] test item added, refreshing...")
await refresh()
} catch {
- self.error = "Unable to add the keychain item. Try again."
+ self.error = VPhoneLocalization.text("Unable to add the keychain item. Try again.")
print("[keychain] add failed: \(error)")
}
}
@@ -93,7 +94,7 @@ class VPhoneKeychainBrowserModel {
_ = try await control.deleteKeychainItem(account: "vphone-test", service: "vphone")
await refresh()
} catch {
- self.error = "Unable to remove the test keychain item. Try again."
+ self.error = VPhoneLocalization.text("Unable to remove the test keychain item. Try again.")
print("[keychain] remove failed: \(error)")
}
}
@@ -102,7 +103,7 @@ class VPhoneKeychainBrowserModel {
func refresh() async {
guard control.isConnected else {
- error = "The guest agent is not connected. Wait for it to connect, then try again."
+ error = VPhoneLocalization.text("The guest agent is not connected. Wait for it to connect, then try again.")
return
}
isLoading = true
@@ -115,7 +116,8 @@ class VPhoneKeychainBrowserModel {
print("[keychain] 0 items, diag: \(diagnostics)")
}
} catch {
- self.error = "Unable to load keychain items. Check that the guest agent is connected, then try again."
+ self.error = VPhoneLocalization.text(
+ "Unable to load keychain items. Check that the guest agent is connected, then try again.")
items = []
}
isLoading = false
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainBrowserView.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainBrowserView.swift
index d4156715..8e3c31eb 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainBrowserView.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainBrowserView.swift
@@ -61,16 +61,24 @@ struct VPhoneKeychainBrowserView: View {
.width(min: 60, ideal: 80, max: 100)
TableColumn("Account", value: \.account) { item in
- Text(item.account.isEmpty ? (item.protectedMetadata ? "Protected" : "-") : item.account)
- .lineLimit(1)
- .help(item.account)
+ Text(
+ item.account.isEmpty
+ ? (item.protectedMetadata ? VPhoneLocalization.text("Protected") : "-")
+ : item.account
+ )
+ .lineLimit(1)
+ .help(item.account)
}
.width(min: 80, ideal: 150, max: .infinity)
TableColumn("Service", value: \.service) { item in
- Text(item.service.isEmpty ? (item.protectedMetadata ? "Protected" : "-") : item.service)
- .lineLimit(1)
- .help(item.service)
+ Text(
+ item.service.isEmpty
+ ? (item.protectedMetadata ? VPhoneLocalization.text("Protected") : "-")
+ : item.service
+ )
+ .lineLimit(1)
+ .help(item.service)
}
.width(min: 80, ideal: 150, max: .infinity)
@@ -151,7 +159,7 @@ struct VPhoneKeychainBrowserView: View {
Spacer()
- Text("\(model.diagnostics.count) entries")
+ Text(VPhoneLocalization.format("%@ entries", String(model.diagnostics.count)))
.font(.system(size: 10, design: .monospaced))
.foregroundStyle(.tertiary)
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainItem.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainItem.swift
index 51d1b301..4e71cafd 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainItem.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainItem.swift
@@ -18,11 +18,11 @@ struct VPhoneKeychainItem: Identifiable, Hashable {
var displayClass: String {
switch itemClass {
- case "genp": "Password"
- case "inet": "Internet"
- case "cert": "Certificate"
- case "keys": "Key"
- case "idnt": "Identity"
+ case "genp": VPhoneLocalization.text("Password")
+ case "inet": VPhoneLocalization.text("Internet")
+ case "cert": VPhoneLocalization.text("Certificate")
+ case "keys": VPhoneLocalization.text("Key")
+ case "idnt": VPhoneLocalization.text("Identity")
default: itemClass
}
}
@@ -40,13 +40,16 @@ struct VPhoneKeychainItem: Identifiable, Hashable {
var displayValue: String {
if valueEncoding == "protected" {
- return "Protected"
+ return VPhoneLocalization.text("Protected")
}
if value.isEmpty {
return "-"
}
if valueEncoding == "base64" {
- return "[\(ByteCountFormatter.string(fromByteCount: Int64(valueSize), countStyle: .file)) binary]"
+ return VPhoneLocalization.format(
+ "[%@ binary]",
+ ByteCountFormatter.string(fromByteCount: Int64(valueSize), countStyle: .file)
+ )
}
return value
}
@@ -65,20 +68,20 @@ struct VPhoneKeychainItem: Identifiable, Hashable {
return server
}
if protectedMetadata {
- return "(protected)"
+ return VPhoneLocalization.text("(protected)")
}
- return "(unnamed)"
+ return VPhoneLocalization.text("(unnamed)")
}
var protectionDescription: String {
switch protection {
- case "ak": "WhenUnlocked"
- case "ck": "AfterFirstUnlock"
- case "dk": "Always"
- case "aku": "WhenUnlocked (ThisDevice)"
- case "cku": "AfterFirstUnlock (ThisDevice)"
- case "dku": "Always (ThisDevice)"
- case "akpu": "WhenPasscodeSet (ThisDevice)"
+ case "ak": VPhoneLocalization.text("WhenUnlocked")
+ case "ck": VPhoneLocalization.text("AfterFirstUnlock")
+ case "dk": VPhoneLocalization.text("Always")
+ case "aku": VPhoneLocalization.text("WhenUnlocked (ThisDevice)")
+ case "cku": VPhoneLocalization.text("AfterFirstUnlock (ThisDevice)")
+ case "dku": VPhoneLocalization.text("Always (ThisDevice)")
+ case "akpu": VPhoneLocalization.text("WhenPasscodeSet (ThisDevice)")
default: protection
}
}
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainWindowController.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainWindowController.swift
index 9cc9e4c2..387adb0f 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainWindowController.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Browsers/Keychain/VPhoneKeychainWindowController.swift
@@ -11,7 +11,9 @@ class VPhoneKeychainWindowController: NSObject, NSToolbarDelegate {
private var model: VPhoneKeychainBrowserModel?
private var searchItem: NSSearchToolbarItem?
- var isKeyWindow: Bool { window?.isKeyWindow == true }
+ var isKeyWindow: Bool {
+ window?.isKeyWindow == true
+ }
func showWindow(control: VPhoneGuestControl) {
if let window {
@@ -30,7 +32,7 @@ class VPhoneKeychainWindowController: NSObject, NSToolbarDelegate {
backing: .buffered,
defer: false,
)
- window.title = "Keychain"
+ window.title = VPhoneLocalization.text("Keychain")
window.contentView = NSHostingView(rootView: view)
window.contentMinSize = NSSize(width: 700, height: 300)
window.center()
@@ -92,11 +94,11 @@ class VPhoneKeychainWindowController: NSObject, NSToolbarDelegate {
private func makeClassItem() -> NSToolbarItem {
let item = NSToolbarItem(itemIdentifier: Self.classItemID)
- item.label = "Item Type"
- item.toolTip = "Filter keychain items by type"
+ item.label = VPhoneLocalization.text("Item Type")
+ item.toolTip = VPhoneLocalization.text("Filter keychain items by type")
item.visibilityPriority = .high
- let labels = VPhoneKeychainBrowserModel.classFilters.map(\.label)
+ let labels = VPhoneKeychainBrowserModel.classFilters.map { VPhoneLocalization.text($0.label) }
let control = NSSegmentedControl(
labels: labels,
trackingMode: .selectOne,
@@ -111,12 +113,12 @@ class VPhoneKeychainWindowController: NSObject, NSToolbarDelegate {
private func makeSearchItem() -> NSToolbarItem {
let item = NSSearchToolbarItem(itemIdentifier: Self.searchItemID)
- item.label = "Search Keychain"
+ item.label = VPhoneLocalization.text("Search Keychain")
item.visibilityPriority = .high
item.preferredWidthForSearchField = 190
let field = NSSearchField()
- field.placeholderString = "Search Keychain"
+ field.placeholderString = VPhoneLocalization.text("Search Keychain")
field.sendsSearchStringImmediately = true
field.target = self
field.action = #selector(searchChanged(_:))
@@ -127,10 +129,11 @@ class VPhoneKeychainWindowController: NSObject, NSToolbarDelegate {
private func makeActionsItem() -> NSToolbarItem {
let item = NSMenuToolbarItem(itemIdentifier: Self.actionsItemID)
- item.label = "Actions"
- item.image = NSImage(systemSymbolName: "ellipsis.circle", accessibilityDescription: "Actions")
+ item.label = VPhoneLocalization.text("Actions")
+ item.image = NSImage(
+ systemSymbolName: "ellipsis.circle", accessibilityDescription: VPhoneLocalization.text("Actions"))
- let menu = NSMenu(title: "Keychain Actions")
+ let menu = NSMenu(title: VPhoneLocalization.text("Keychain Actions"))
menu.addItem(actionItem("Refresh", action: #selector(refresh)))
menu.addItem(actionItem("Copy Selected Rows", action: #selector(copySelectedRows)))
menu.addItem(actionItem("Show Diagnostics", action: #selector(toggleDiagnostics)))
@@ -142,7 +145,7 @@ class VPhoneKeychainWindowController: NSObject, NSToolbarDelegate {
}
private func actionItem(_ title: String, action: Selector) -> NSMenuItem {
- let item = NSMenuItem(title: title, action: action, keyEquivalent: "")
+ let item = NSMenuItem(title: VPhoneLocalization.text(title), action: action, keyEquivalent: "")
item.target = self
return item
}
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneGuestToolsWindowController.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneGuestToolsWindowController.swift
index 9f812de1..375a9301 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneGuestToolsWindowController.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneGuestToolsWindowController.swift
@@ -7,14 +7,16 @@ enum VPhoneGuestToolPage: String, CaseIterable, Identifiable {
case readSetting
case writeSetting
- var id: Self { self }
+ var id: Self {
+ self
+ }
var title: String {
switch self {
- case .getClipboard: "Get Clipboard"
- case .setClipboard: "Set Clipboard Text"
- case .readSetting: "Read Setting"
- case .writeSetting: "Write Setting"
+ case .getClipboard: VPhoneLocalization.text("Get Clipboard")
+ case .setClipboard: VPhoneLocalization.text("Set Clipboard Text")
+ case .readSetting: VPhoneLocalization.text("Read Setting")
+ case .writeSetting: VPhoneLocalization.text("Write Setting")
}
}
@@ -48,8 +50,8 @@ final class VPhoneGuestToolsWindowController: NSObject, NSWindowDelegate {
backing: .buffered,
defer: false,
)
- window.title = "Guest Tools"
- window.subtitle = "Clipboard & Settings"
+ window.title = VPhoneLocalization.text("Guest Tools")
+ window.subtitle = VPhoneLocalization.text("Clipboard & Settings")
window.contentViewController = NSHostingController(rootView: VPhoneGuestToolsView(model: model))
window.contentMinSize = NSSize(width: 680, height: 440)
window.setContentSize(NSSize(width: 840, height: 560))
@@ -82,14 +84,16 @@ final class VPhoneGuestToolsModel {
case int
case float
- var id: Self { self }
+ var id: Self {
+ self
+ }
var title: String {
switch self {
- case .string: "String"
- case .bool: "Boolean"
- case .int: "Integer"
- case .float: "Float"
+ case .string: VPhoneLocalization.text("String")
+ case .bool: VPhoneLocalization.text("Boolean")
+ case .int: VPhoneLocalization.text("Integer")
+ case .float: VPhoneLocalization.text("Float")
}
}
}
@@ -132,7 +136,8 @@ final class VPhoneGuestToolsModel {
clipboardChangeCount = content.changeCount
hasClipboardResult = true
} catch {
- showError("Unable to read the guest clipboard. Check the connection and try again.")
+ showError(
+ VPhoneLocalization.text("Unable to read the guest clipboard. Check the connection and try again."))
}
}
@@ -142,9 +147,9 @@ final class VPhoneGuestToolsModel {
defer { isBusy = false }
do {
try await control.clipboardSet(text: clipboardInput)
- showSuccess("Text set on the guest clipboard.")
+ showSuccess(VPhoneLocalization.text("Text set on the guest clipboard."))
} catch {
- showError("Unable to set the guest clipboard. Check the connection and try again.")
+ showError(VPhoneLocalization.text("Unable to set the guest clipboard. Check the connection and try again."))
}
}
@@ -162,11 +167,11 @@ final class VPhoneGuestToolsModel {
let data = try JSONSerialization.data(withJSONObject: value, options: [.prettyPrinted, .sortedKeys])
settingResult = String(data: data, encoding: .utf8) ?? String(describing: value)
} else {
- settingResult = value.map { String(describing: $0) } ?? "Not set"
+ settingResult = value.map { String(describing: $0) } ?? VPhoneLocalization.text("Not set")
}
- showSuccess("Read \(domain)\(key.isEmpty ? "" : ".\(key)").")
+ showSuccess(VPhoneLocalization.format("Read %@.", domain + (key.isEmpty ? "" : ".\(key)")))
} catch {
- showError("Unable to read that setting. Check the domain and key, then try again.")
+ showError(VPhoneLocalization.text("Unable to read that setting. Check the domain and key, then try again."))
}
}
@@ -175,7 +180,7 @@ final class VPhoneGuestToolsModel {
let key = writeKey.trimmingCharacters(in: .whitespacesAndNewlines)
guard !isBusy else { return }
guard !domain.isEmpty, !key.isEmpty else {
- showError("Enter a domain and key.")
+ showError(VPhoneLocalization.text("Enter a domain and key."))
return
}
@@ -189,18 +194,18 @@ final class VPhoneGuestToolsModel {
case "true", "yes", "1": value = true
case "false", "no", "0": value = false
default:
- showError("Enter true or false for a Boolean value.")
+ showError(VPhoneLocalization.text("Enter true or false for a Boolean value."))
return
}
case .int:
guard let number = Int64(rawValue) else {
- showError("Enter a valid integer.")
+ showError(VPhoneLocalization.text("Enter a valid integer."))
return
}
value = number
case .float:
guard let number = Double(rawValue), number.isFinite else {
- showError("Enter a finite number.")
+ showError(VPhoneLocalization.text("Enter a finite number."))
return
}
value = number
@@ -210,23 +215,23 @@ final class VPhoneGuestToolsModel {
defer { isBusy = false }
do {
try await control.settingsSet(domain: domain, key: key, value: value, type: writeType.rawValue)
- showSuccess("Wrote \(domain).\(key).")
+ showSuccess(VPhoneLocalization.format("Wrote %@.", "\(domain).\(key)"))
} catch {
- showError("Unable to write that setting. Check the connection and try again.")
+ showError(VPhoneLocalization.text("Unable to write that setting. Check the connection and try again."))
}
}
func copy(_ text: String) {
NSPasteboard.general.clearContents()
NSPasteboard.general.setString(text, forType: .string)
- showSuccess("Copied to the Mac clipboard.")
+ showSuccess(VPhoneLocalization.text("Copied to the Mac clipboard."))
}
func copyImage() {
guard let clipboardImageData, let image = NSImage(data: clipboardImageData) else { return }
NSPasteboard.general.clearContents()
NSPasteboard.general.writeObjects([image])
- showSuccess("Image copied to the Mac clipboard.")
+ showSuccess(VPhoneLocalization.text("Image copied to the Mac clipboard."))
}
private func showSuccess(_ message: String) {
@@ -319,10 +324,11 @@ struct VPhoneGuestToolsView: View {
private var pageDescription: String {
switch model.page {
- case .getClipboard: "Inspect the guest clipboard and copy its text to your Mac."
- case .setClipboard: "Send text from your Mac to the guest clipboard."
- case .readSetting: "Read one preference key, or leave the key empty to read all keys in the domain."
- case .writeSetting: "Write a typed value to a guest preference key."
+ case .getClipboard: VPhoneLocalization.text("Inspect the guest clipboard and copy its text to your Mac.")
+ case .setClipboard: VPhoneLocalization.text("Send text from your Mac to the guest clipboard.")
+ case .readSetting:
+ VPhoneLocalization.text("Read one preference key, or leave the key empty to read all keys in the domain.")
+ case .writeSetting: VPhoneLocalization.text("Write a typed value to a guest preference key.")
}
}
@@ -349,11 +355,19 @@ struct VPhoneGuestToolsView: View {
}
if model.hasClipboardResult {
HStack(spacing: 24) {
- metadata("Types", model.clipboardTypes.isEmpty ? "None" : model.clipboardTypes.joined(separator: ", "))
- metadata("Image", model.clipboardHasImage ? "Present" : "None")
+ metadata(
+ "Types",
+ model.clipboardTypes.isEmpty
+ ? VPhoneLocalization.text("None") : model.clipboardTypes.joined(separator: ", "))
+ metadata(
+ "Image",
+ model.clipboardHasImage ? VPhoneLocalization.text("Present") : VPhoneLocalization.text("None"))
metadata("Change Count", String(model.clipboardChangeCount))
}
- resultBox(model.clipboardText ?? "No text in the guest clipboard. Copy text in the guest, then refresh.")
+ resultBox(
+ model.clipboardText
+ ?? VPhoneLocalization.text(
+ "No text in the guest clipboard. Copy text in the guest, then refresh."))
if let data = model.clipboardImageData, let image = NSImage(data: data) {
Image(nsImage: image)
.resizable()
@@ -381,7 +395,7 @@ struct VPhoneGuestToolsView: View {
.accessibilityLabel("Text for guest clipboard")
.overlay(RoundedRectangle(cornerRadius: 6).stroke(Color(nsColor: .separatorColor)))
HStack {
- Text("Characters: \(model.clipboardInput.count)")
+ Text(VPhoneLocalization.format("Characters: %@", String(model.clipboardInput.count)))
.font(.system(.caption, design: .monospaced))
.foregroundStyle(.secondary)
Spacer()
@@ -451,8 +465,8 @@ struct VPhoneGuestToolsView: View {
private var valuePrompt: String {
switch model.writeType {
- case .string: "Text"
- case .bool: "true or false"
+ case .string: VPhoneLocalization.text("Text")
+ case .bool: VPhoneLocalization.text("true or false")
case .int: "42"
case .float: "3.14"
}
@@ -460,8 +474,8 @@ struct VPhoneGuestToolsView: View {
private func field(_ title: String, text: Binding<String>, prompt: String) -> some View {
VStack(alignment: .leading, spacing: 6) {
- Text(title).font(.headline)
- TextField(title, text: text, prompt: Text(prompt))
+ Text(VPhoneLocalization.text(title)).font(.headline)
+ TextField(VPhoneLocalization.text(title), text: text, prompt: Text(VPhoneLocalization.text(prompt)))
.textFieldStyle(.roundedBorder)
.font(.system(.body, design: .monospaced))
}
@@ -470,7 +484,7 @@ struct VPhoneGuestToolsView: View {
private func metadata(_ title: String, _ value: String) -> some View {
VStack(alignment: .leading, spacing: 4) {
- Text(title.uppercased())
+ Text(VPhoneLocalization.text(title).uppercased())
.font(.system(.caption, design: .monospaced, weight: .semibold))
.foregroundStyle(.secondary)
Text(value)
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuApps.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuApps.swift
index 6496767e..16aee6ed 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuApps.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuApps.swift
@@ -56,7 +56,9 @@ extension VPhoneMenuController {
@objc func installIPAFromDisk() {
guard control.isConnected else {
- VPhoneAlert.run(title: "Install App Package", message: "The guest is not connected. Start a VM, then try again.", style: .warning)
+ VPhoneAlert.run(
+ title: "Install App Package", message: "The guest is not connected. Start a VM, then try again.",
+ style: .warning)
return
}
@@ -65,8 +67,8 @@ extension VPhoneMenuController {
panel.canChooseDirectories = false
panel.allowsMultipleSelection = false
panel.allowedContentTypes = VPhoneInstallPackage.allowedContentTypes
- panel.prompt = "Install"
- panel.message = "Choose an IPA or TIPA package to install in the guest."
+ panel.prompt = VPhoneLocalization.text("Install")
+ panel.message = VPhoneLocalization.text("Choose an IPA or TIPA package to install in the guest.")
let response = panel.runModal()
guard response == .OK, let url = panel.url else { return }
@@ -77,14 +79,17 @@ extension VPhoneMenuController {
print("[install] \(result)")
VPhoneAlert.run(
title: "Install App Package",
- message: VPhoneInstallPackage.successMessage(
+ message: VPhoneLocalization.installedMessage(
for: url.lastPathComponent,
detail: result,
),
style: .informational,
)
} catch {
- VPhoneAlert.run(title: "Install App Package", message: "Unable to install the app package. Check the file and guest connection, then try again.", style: .warning)
+ VPhoneAlert.run(
+ title: "Install App Package",
+ message: "Unable to install the app package. Check the file and guest connection, then try again.",
+ style: .warning)
}
}
}
@@ -92,14 +97,14 @@ extension VPhoneMenuController {
@objc func openURL() {
let field = NSTextField(frame: NSRect(x: 0, y: 0, width: 360, height: 24))
field.placeholderString = "https://example.com"
- field.setAccessibilityLabel("URL to open on the guest")
+ field.setAccessibilityLabel(VPhoneLocalization.text("URL to open on the guest"))
let alert = NSAlert()
- alert.messageText = "Open URL"
- alert.informativeText = "Enter a URL to open on the guest."
+ alert.messageText = VPhoneLocalization.text("Open URL")
+ alert.informativeText = VPhoneLocalization.text("Enter a URL to open on the guest.")
alert.accessoryView = field
- alert.addButton(withTitle: "Open")
- alert.addButton(withTitle: "Cancel")
+ alert.addButton(withTitle: VPhoneLocalization.text("Open"))
+ alert.addButton(withTitle: VPhoneLocalization.text("Cancel"))
alert.window.initialFirstResponder = field
guard alert.runModal() == .alertFirstButtonReturn, !field.stringValue.isEmpty else { return }
@@ -107,11 +112,14 @@ extension VPhoneMenuController {
Task {
do {
try await control.openURL(url)
- VPhoneAlert.run(title: "Open URL", message: "Opened \(url)", style: .informational)
+ VPhoneAlert.run(
+ title: "Open URL", message: VPhoneLocalization.format("Opened %@", url), style: .informational)
} catch {
- VPhoneAlert.run(title: "Open URL", message: "Unable to open the URL on the guest. Check the URL and guest connection, then try again.", style: .warning)
+ VPhoneAlert.run(
+ title: "Open URL",
+ message: "Unable to open the URL on the guest. Check the URL and guest connection, then try again.",
+ style: .warning)
}
}
}
-
}
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuBattery.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuBattery.swift
index 3a452718..dab9f76a 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuBattery.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuBattery.swift
@@ -103,7 +103,7 @@ extension VPhoneMenuController {
func syncBatteryFromHost() {
guard batterySyncEnabled else { return }
guard let (charge, connectivity) = hostBatteryState() else {
- batterySyncStatusItem?.title = "Status: no host battery"
+ batterySyncStatusItem?.title = VPhoneLocalization.text("Status: no host battery")
return
}
vm?.setBattery(charge: charge, connectivity: connectivity)
@@ -115,10 +115,13 @@ extension VPhoneMenuController {
let snapshot = IOPSCopyPowerSourcesInfo().takeRetainedValue()
let sources = IOPSCopyPowerSourcesList(snapshot).takeRetainedValue() as [CFTypeRef]
for source in sources {
- guard let info = IOPSGetPowerSourceDescription(snapshot, source)?
- .takeUnretainedValue() as? [String: Any] else { continue }
+ guard
+ let info = IOPSGetPowerSourceDescription(snapshot, source)?
+ .takeUnretainedValue() as? [String: Any]
+ else { continue }
guard let type = info[kIOPSTypeKey as String] as? String,
- type == kIOPSInternalBatteryType else { continue }
+ type == kIOPSInternalBatteryType
+ else { continue }
let capacity = info[kIOPSCurrentCapacityKey as String] as? Int ?? 100
let state = info[kIOPSPowerSourceStateKey as String] as? String ?? kIOPSACPowerValue
let connectivity = (state == kIOPSACPowerValue) ? 1 : 2
@@ -135,7 +138,7 @@ extension VPhoneMenuController {
Task {
do {
try await control.lowPowerMode(enabled: enabled)
- syncBatteryFromHost() // refresh status label with updated LPM state
+ syncBatteryFromHost() // refresh status label with updated LPM state
print("[battery] sync LPM: \(enabled)")
} catch {
print("[battery] sync LPM failed: \(error)")
@@ -149,14 +152,15 @@ extension VPhoneMenuController {
stopPowerSourceMonitoring()
let rawPtr = Unmanaged.passRetained(self).toOpaque()
powerSourceRetainedPtr = rawPtr
- let source = IOPSNotificationCreateRunLoopSource({ rawContext in
- guard let ctx = rawContext else { return }
- Task { @MainActor in
- Unmanaged<VPhoneMenuController>.fromOpaque(ctx)
- .takeUnretainedValue()
- .syncBatteryFromHost()
- }
- }, rawPtr)
+ let source = IOPSNotificationCreateRunLoopSource(
+ { rawContext in
+ guard let ctx = rawContext else { return }
+ Task { @MainActor in
+ Unmanaged<VPhoneMenuController>.fromOpaque(ctx)
+ .takeUnretainedValue()
+ .syncBatteryFromHost()
+ }
+ }, rawPtr)
guard let runLoopSource = source?.takeRetainedValue() else { return }
powerSourceRunLoopSource = runLoopSource
CFRunLoopAddSource(CFRunLoopGetMain(), runLoopSource, .defaultMode)
@@ -196,9 +200,13 @@ extension VPhoneMenuController {
// MARK: - Status Label
private func updateStatusLabel(charge: Double, connectivity: Int) {
- let connLabel = connectivity == 1 ? "charging" : "not charging"
- let lpmLabel = ProcessInfo.processInfo.isLowPowerModeEnabled ? ", low power" : ""
- batterySyncStatusItem?.title = "Status: \(Int(charge))% (\(connLabel)\(lpmLabel))"
+ let connLabel = VPhoneLocalization.text(connectivity == 1 ? "charging" : "not charging")
+ let lpmLabel =
+ ProcessInfo.processInfo.isLowPowerModeEnabled
+ ? VPhoneLocalization.text(", low power") : ""
+ batterySyncStatusItem?.title = VPhoneLocalization.format(
+ "Status: %@%% (%@)", String(Int(charge)), connLabel + lpmLabel
+ )
}
// MARK: - Helpers
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuCamera.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuCamera.swift
index 97481339..6ba1b66e 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuCamera.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuCamera.swift
@@ -53,11 +53,10 @@ extension VPhoneMenuController {
}
func updateCameraConnectionState(connected: Bool) {
- cameraStatusItem?.title = connected
- ? "Camera server: connected"
- : "Camera server: disconnected"
- cameraStartStopItem?.isEnabled = connected &&
- (cameraServer?.sourceKind ?? .off) != .off
+ cameraStatusItem?.title = VPhoneLocalization.text(
+ connected ? "Camera server: connected" : "Camera server: disconnected"
+ )
+ cameraStartStopItem?.isEnabled = connected && (cameraServer?.sourceKind ?? .off) != .off
}
private func refreshCameraSourceCheckmarks() {
@@ -74,7 +73,7 @@ extension VPhoneMenuController {
cameraServer?.setSource(.off)
refreshCameraSourceCheckmarks()
cameraStartStopItem?.isEnabled = false
- cameraStartStopItem?.title = "Start Streaming"
+ cameraStartStopItem?.title = VPhoneLocalization.text("Start Streaming")
}
@objc func setCameraSourceTestPattern() {
@@ -96,25 +95,24 @@ extension VPhoneMenuController {
UTType(filenameExtension: "mp4") ?? .movie,
UTType(filenameExtension: "m4v") ?? .movie,
]
- panel.prompt = "Use as Camera Source"
- panel.title = "Choose Video File"
+ panel.prompt = VPhoneLocalization.text("Use as Camera Source")
+ panel.title = VPhoneLocalization.text("Choose Video File")
panel.runModal()
guard let url = panel.url else { return }
cameraServer?.setSource(.videoFile, videoURL: url)
refreshCameraSourceCheckmarks()
cameraStartStopItem?.isEnabled =
- (cameraServer?.isConnected ?? false) &&
- (cameraServer?.sourceKind ?? .off) == .videoFile
+ (cameraServer?.isConnected ?? false) && (cameraServer?.sourceKind ?? .off) == .videoFile
}
@objc func toggleCameraStreaming() {
guard let server = cameraServer else { return }
- if cameraStartStopItem?.title == "Start Streaming" {
+ if cameraStartStopItem?.title == VPhoneLocalization.text("Start Streaming") {
server.startStreaming()
- cameraStartStopItem?.title = "Stop Streaming"
+ cameraStartStopItem?.title = VPhoneLocalization.text("Stop Streaming")
} else {
server.stopStreaming()
- cameraStartStopItem?.title = "Start Streaming"
+ cameraStartStopItem?.title = VPhoneLocalization.text("Start Streaming")
}
}
}
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuConnect.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuConnect.swift
index 71cb4899..de8c847b 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuConnect.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuConnect.swift
@@ -190,5 +190,4 @@ extension VPhoneMenuController {
@objc func writeSetting() {
guestToolsWindowController.show(.writeSetting)
}
-
}
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuController.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuController.swift
index 8824b70b..03be0c7c 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuController.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuController.swift
@@ -69,8 +69,12 @@ class VPhoneMenuController {
let appMenuItem = NSMenuItem()
let appMenu = NSMenu(title: "vphone")
let buildHash = Bundle.main.object(forInfoDictionaryKey: "VPhoneBuildHash") as? String
- let buildTitle = buildHash.flatMap { $0.isEmpty ? nil : $0 } ?? "unknown"
- let buildItem = NSMenuItem(title: "Build: \(buildTitle)", action: nil, keyEquivalent: "")
+ let buildTitle = buildHash.flatMap { $0.isEmpty ? nil : $0 } ?? VPhoneLocalization.text("unknown")
+ let buildItem = NSMenuItem(
+ title: VPhoneLocalization.format("Build: %@", buildTitle),
+ action: nil,
+ keyEquivalent: "",
+ )
buildItem.isEnabled = false
appMenu.addItem(buildItem)
appMenu.addItem(NSMenuItem.separator())
@@ -121,6 +125,7 @@ class VPhoneMenuController {
mainMenu.addItem(windowMenuItem)
NSApp.windowsMenu = windowMenu
+ VPhoneLocalization.menu(mainMenu)
NSApp.mainMenu = mainMenu
}
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuRecord.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuRecord.swift
index 38dcbcdc..339fcb16 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuRecord.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Menu/VPhoneMenuRecord.swift
@@ -25,7 +25,7 @@ extension VPhoneMenuController {
if screenRecorder?.isRecording == true {
Task { @MainActor in
let url = await screenRecorder?.stopRecording()
- recordingItem?.title = "Start Recording"
+ recordingItem?.title = VPhoneLocalization.text("Start Recording")
if let url {
showRecordingSavedAlert(url: url)
}
@@ -41,7 +41,7 @@ extension VPhoneMenuController {
}
do {
try screenRecorder?.startRecording(view: view)
- recordingItem?.title = "Stop Recording"
+ recordingItem?.title = VPhoneLocalization.text("Stop Recording")
} catch {
showCaptureAlert(title: "Recording", message: "Unable to start recording. Try again.", style: .warning)
}
@@ -63,9 +63,11 @@ extension VPhoneMenuController {
do {
let image = try await control.screenshotJPEG()
try recorder.copyScreenshotToPasteboard(jpegData: image)
- showCaptureAlert(title: "Screenshot", message: "Screenshot copied to the Mac clipboard.", style: .informational)
+ showCaptureAlert(
+ title: "Screenshot", message: "Screenshot copied to the Mac clipboard.", style: .informational)
} catch {
- showCaptureAlert(title: "Screenshot", message: "Unable to copy the screenshot. Try again.", style: .warning)
+ showCaptureAlert(
+ title: "Screenshot", message: "Unable to copy the screenshot. Try again.", style: .warning)
}
}
}
@@ -85,9 +87,12 @@ extension VPhoneMenuController {
do {
let image = try await control.screenshotJPEG()
let url = try recorder.saveScreenshot(jpegData: image)
- showCaptureAlert(title: "Screenshot", message: "Saved to \(url.path)", style: .informational)
+ showCaptureAlert(
+ title: "Screenshot", message: VPhoneLocalization.format("Saved to %@", url.path),
+ style: .informational)
} catch {
- showCaptureAlert(title: "Screenshot", message: "Unable to save the screenshot. Try again.", style: .warning)
+ showCaptureAlert(
+ title: "Screenshot", message: "Unable to save the screenshot. Try again.", style: .warning)
}
}
}
@@ -109,7 +114,7 @@ extension VPhoneMenuController {
private func showRecordingSavedAlert(url: URL) {
VPhoneAlert.present(
title: "Recording",
- message: "Saved to \(url.path)",
+ message: VPhoneLocalization.format("Saved to %@", url.path),
style: .informational,
attachedTo: NSApp.keyWindow ?? activeCaptureView()?.window,
buttons: ["OK", "Reveal in Finder"],
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneAlert.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneAlert.swift
index d165c05b..2acc2071 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneAlert.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneAlert.swift
@@ -35,11 +35,11 @@ enum VPhoneAlert {
buttons: [String],
) -> NSAlert {
let alert = NSAlert()
- alert.messageText = title
- alert.informativeText = message
+ alert.messageText = VPhoneLocalization.text(title)
+ alert.informativeText = VPhoneLocalization.text(message)
alert.alertStyle = style
for button in buttons {
- alert.addButton(withTitle: button)
+ alert.addButton(withTitle: VPhoneLocalization.text(button))
}
return alert
}
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneLocalization.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneLocalization.swift
new file mode 100644
index 00000000..e6aaa166
--- /dev/null
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneLocalization.swift
@@ -0,0 +1,39 @@
+import AppKit
+
+enum VPhoneLocalization {
+ static let bundle: Bundle = {
+ let executable = (Bundle.main.executableURL ?? URL(fileURLWithPath: CommandLine.arguments[0]))
+ .resolvingSymlinksInPath()
+ let bundleURL = executable.deletingLastPathComponent().deletingLastPathComponent().deletingLastPathComponent()
+ return Bundle(url: bundleURL) ?? .main
+ }()
+
+ static func text(_ key: String) -> String {
+ bundle.localizedString(forKey: key, value: key, table: "Localizable")
+ }
+
+ static func format(_ key: String, _ arguments: CVarArg...) -> String {
+ String(format: text(key), locale: .current, arguments: arguments)
+ }
+
+ static func installedMessage(for fileName: String, detail: String) -> String {
+ let detail = detail.trimmingCharacters(in: .whitespacesAndNewlines)
+ if detail.isEmpty {
+ return format("Installed %@.", fileName)
+ }
+ if detail.localizedCaseInsensitiveContains(fileName) {
+ return detail
+ }
+ return format("Installed %@.\n\n%@", fileName, detail)
+ }
+
+ static func menu(_ menu: NSMenu) {
+ menu.title = text(menu.title)
+ for item in menu.items {
+ item.title = text(item.title)
+ if let submenu = item.submenu {
+ self.menu(submenu)
+ }
+ }
+ }
+}
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneVirtualMachineWindowController.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneVirtualMachineWindowController.swift
index fe239752..b4d2fcd2 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneVirtualMachineWindowController.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/VPhoneVirtualMachineWindowController.swift
@@ -52,7 +52,7 @@ class VPhoneVirtualMachineWindowController: NSObject, NSToolbarDelegate {
window.isReleasedWhenClosed = false
window.level = .normal
window.contentAspectRatio = windowSize
- window.title = "vphone — Starting…"
+ window.title = VPhoneLocalization.text("vphone — Starting…")
window.subtitle = makeSubtitle(ip: nil)
window.contentView = vmView
if let ecid {
@@ -88,7 +88,9 @@ class VPhoneVirtualMachineWindowController: NSObject, NSToolbarDelegate {
[weak self, weak window] _ in
Task { @MainActor in
guard let self, let window, let control = self.control else { return }
- window.title = control.isConnected ? "vphone — Connected" : "vphone — Disconnected"
+ window.title = VPhoneLocalization.text(
+ control.isConnected ? "vphone — Connected" : "vphone — Disconnected"
+ )
window.subtitle = self.makeSubtitle(ip: control.isConnected ? control.guestIPAddress : nil)
}
}
@@ -96,9 +98,9 @@ class VPhoneVirtualMachineWindowController: NSObject, NSToolbarDelegate {
private func makeSubtitle(ip: String?) -> String {
switch (ecid, ip) {
- case let (ecid?, ip?): "\(ecid) — \(ip)"
- case let (ecid?, nil): ecid
- case let (nil, ip?): ip
+ case (let ecid?, let ip?): "\(ecid) — \(ip)"
+ case (let ecid?, nil): ecid
+ case (nil, let ip?): ip
case (nil, nil): ""
}
}
@@ -113,11 +115,11 @@ class VPhoneVirtualMachineWindowController: NSObject, NSToolbarDelegate {
MainActor.assumeIsolated {
if itemIdentifier == Self.homeItemID {
let item = NSToolbarItem(itemIdentifier: itemIdentifier)
- item.label = "Home"
- item.toolTip = "Home Button"
+ item.label = VPhoneLocalization.text("Home")
+ item.toolTip = VPhoneLocalization.text("Home Button")
item.image = NSImage(
systemSymbolName: "circle.circle",
- accessibilityDescription: "Home",
+ accessibilityDescription: VPhoneLocalization.text("Home"),
)
item.target = self
item.action = #selector(homePressed)
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachineView.swift b/VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachineView.swift
index b0413dc6..4094c4b5 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachineView.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/VirtualMachine/VPhoneVirtualMachineView.swift
@@ -1,8 +1,8 @@
import AppKit
import Dynamic
import Foundation
-import Virtualization
import VPhoneCoreKit
+import Virtualization
class VPhoneVirtualMachineView: VZVirtualMachineView {
var keySender: VPhoneVirtualMachineKeySender?
@@ -17,7 +17,7 @@ class VPhoneVirtualMachineView: VZVirtualMachineView {
private var multiTouchDevice: AnyObject? {
guard let vm = virtualMachine else { return nil }
guard let devices = Dynamic(vm)._multiTouchDevices.asObject as? NSArray,
- devices.count > 0
+ devices.count > 0
else {
return nil
}
@@ -118,7 +118,7 @@ class VPhoneVirtualMachineView: VZVirtualMachineView {
print("[install] \(result)")
VPhoneAlert.run(
title: "Install App Package",
- message: VPhoneInstallPackage.successMessage(
+ message: VPhoneLocalization.installedMessage(
for: url.lastPathComponent,
detail: result,
),
@@ -133,12 +133,14 @@ class VPhoneVirtualMachineView: VZVirtualMachineView {
private func droppedInstallPackageURL(from sender: any NSDraggingInfo) -> URL? {
let options: [NSPasteboard.ReadingOptionKey: Any] = [
- .urlReadingFileURLsOnly: true,
+ .urlReadingFileURLsOnly: true
]
- guard let urls = sender.draggingPasteboard.readObjects(
- forClasses: [NSURL.self],
- options: options,
- ) as? [URL] else {
+ guard
+ let urls = sender.draggingPasteboard.readObjects(
+ forClasses: [NSURL.self],
+ options: options,
+ ) as? [URL]
+ else {
return nil
}
return urls.first(where: VPhoneInstallPackage.isSupportedFile)
@@ -227,7 +229,7 @@ class VPhoneVirtualMachineView: VZVirtualMachineView {
mouseDown(with: downEvent)
}
- for i in 1 ... steps {
+ for i in 1...steps {
let t = Double(i) / Double(steps)
let x = startWindow.x + (endWindow.x - startWindow.x) * t
let y = startWindow.y + (endWindow.y - startWindow.y) * t
@@ -267,7 +269,7 @@ class VPhoneVirtualMachineView: VZVirtualMachineView {
}
guard let device = multiTouchDevice,
- virtualMachine != nil
+ virtualMachine != nil
else { return false }
let touch = Dynamic._VZTouch(
@@ -325,21 +327,21 @@ class VPhoneVirtualMachineView: VZVirtualMachineView {
let distBottom = isFlipped ? (h - point.y) : point.y
var minDist = distLeft
- var edgeCode = 8 // Left
+ var edgeCode = 8 // Left
if distRight < minDist {
minDist = distRight
- edgeCode = 4 // Right
+ edgeCode = 4 // Right
}
if distBottom < minDist {
minDist = distBottom
- edgeCode = 2 // Bottom (Home bar swipe up)
+ edgeCode = 2 // Bottom (Home bar swipe up)
}
if distTop < minDist {
minDist = distTop
- edgeCode = 1 // Top (Notification Center)
+ edgeCode = 1 // Top (Notification Center)
}
return minDist < edgeThreshold ? edgeCode : 0
diff --git a/VPhoneExecutable/VPhoneVirtualization/VPhoneVirtualization.xcodeproj/project.pbxproj b/VPhoneExecutable/VPhoneVirtualization/VPhoneVirtualization.xcodeproj/project.pbxproj
index 5aa9bdd6..046a0e61 100644
--- a/VPhoneExecutable/VPhoneVirtualization/VPhoneVirtualization.xcodeproj/project.pbxproj
+++ b/VPhoneExecutable/VPhoneVirtualization/VPhoneVirtualization.xcodeproj/project.pbxproj
@@ -344,6 +344,7 @@
CODE_SIGNING_ALLOWED = NO;
MACOSX_DEPLOYMENT_TARGET = 15.0;
SDKROOT = macosx;
+ SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 6.0;
};
name = Debug;
@@ -356,6 +357,7 @@
CODE_SIGNING_ALLOWED = NO;
MACOSX_DEPLOYMENT_TARGET = 15.0;
SDKROOT = macosx;
+ SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 6.0;
};
name = Release;
diff --git a/VPhoneGuestComponents/LaunchHook/launchdhook-vphone.c b/VPhoneGuestComponents/LaunchHook/launchdhook-vphone.c
index 8db604e3..b419d2a7 100644
--- a/VPhoneGuestComponents/LaunchHook/launchdhook-vphone.c
+++ b/VPhoneGuestComponents/LaunchHook/launchdhook-vphone.c
@@ -1,8 +1,10 @@
-#include <dlfcn.h>
-#include <dirent.h>
+#include "../Shared/InjectionEnvironment.h"
#include <ctype.h>
+#include <dirent.h>
+#include <dlfcn.h>
#include <fcntl.h>
#include <limits.h>
+#include <spawn.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -11,6 +13,61 @@
#include <unistd.h>
#include <xpc/xpc.h>
+static int (*vpOriginalSpawn)(pid_t *restrict, const char *restrict, const posix_spawn_file_actions_t *restrict,
+ const posix_spawnattr_t *restrict, char *const argv[restrict],
+ char *const envp[restrict]);
+static char vpBootRoot[PATH_MAX];
+
+static void vpLogInjection(const char *event, const char *path, int status) {
+ int fd = open("/var/mobile/Library/Caches/vphone-launchdhook-injection.log",
+ O_WRONLY | O_CREAT | O_APPEND | O_CLOEXEC, 0644);
+ if (fd < 0)
+ return;
+ dprintf(fd, "%s path=%s status=%d\n", event, path ? path : "<null>", status);
+ close(fd);
+}
+
+static int vpSpawn(pid_t *restrict pid, const char *restrict path, const posix_spawn_file_actions_t *restrict actions,
+ const posix_spawnattr_t *restrict attributes, char *const argv[restrict],
+ char *const envp[restrict]) {
+ size_t rootLength = strlen(vpBootRoot);
+ int bootstrapProgram =
+ path && ((rootLength && strncmp(path, vpBootRoot, rootLength) == 0 && path[rootLength] == '/') ||
+ strncmp(path, "/var/jb/", 8) == 0);
+ if (!path || (strcmp(path, "/usr/libexec/xpcproxy") != 0 && !bootstrapProgram) || vpInjectionDisabled(envp)) {
+ return vpOriginalSpawn(pid, path, actions, attributes, argv, envp);
+ }
+ VPInjectionEnvironment injected = vpInsertHook(envp);
+ int status = vpOriginalSpawn(pid, path, actions, attributes, argv, injected.values ? injected.values : envp);
+ vpLogInjection(injected.values ? "inserted" : "unchanged", path, status);
+ vpFreeEnvironment(&injected);
+ return status;
+}
+
+static void vpInstallSpawnHook(const char *root) {
+ static int installed;
+ if (installed || access(VP_SYSTEM_HOOK, R_OK) != 0)
+ return;
+ char path[PATH_MAX];
+ int used = snprintf(path, sizeof(path), "%s/usr/lib/libellekit.dylib", root);
+ if (used <= 0 || (size_t)used >= sizeof(path) || access(path, R_OK) != 0)
+ return;
+ void *ellekit = dlopen(path, RTLD_NOW | RTLD_LOCAL);
+ if (!ellekit) {
+ vpLogInjection("ellekit-dlopen-failed", path, 0);
+ return;
+ }
+ void (*hook)(void *, void *, void **) = dlsym(ellekit, "MSHookFunction");
+ if (!hook) {
+ vpLogInjection("ellekit-symbol-missing", path, 0);
+ return;
+ }
+ snprintf(vpBootRoot, sizeof(vpBootRoot), "%s", root);
+ hook((void *)posix_spawn, (void *)vpSpawn, (void **)&vpOriginalSpawn);
+ installed = vpOriginalSpawn != NULL;
+ vpLogInjection(installed ? "installed" : "install-failed", path, 0);
+}
+
// Neither bootstrap exists on the first boot. RootHide is chosen once and
// keeps one randomized root across later boots; ambiguity disables discovery.
static int vpFindJBRoot(char root[PATH_MAX]) {
@@ -20,28 +77,35 @@ static int vpFindJBRoot(char root[PATH_MAX]) {
}
const char *parent = "/private/var/containers/Bundle/Application";
DIR *directory = opendir(parent);
- if (!directory) return 0;
+ if (!directory)
+ return 0;
int matches = 0;
struct dirent *entry;
while ((entry = readdir(directory))) {
- if (strncmp(entry->d_name, ".jbroot-", 8) != 0 || strlen(entry->d_name) != 24) continue;
+ if (strncmp(entry->d_name, ".jbroot-", 8) != 0 || strlen(entry->d_name) != 24)
+ continue;
int valid = 1;
for (unsigned index = 8; index < 24; index++) {
- if (!isxdigit((unsigned char)entry->d_name[index])) valid = 0;
+ if (!isxdigit((unsigned char)entry->d_name[index]))
+ valid = 0;
}
- if (!valid) continue;
+ if (!valid)
+ continue;
char candidate[PATH_MAX];
int length = snprintf(candidate, sizeof(candidate), "%s/%s", parent, entry->d_name);
- if (length < 0 || (size_t)length >= sizeof(candidate)) continue;
+ if (length < 0 || (size_t)length >= sizeof(candidate))
+ continue;
char library[PATH_MAX];
length = snprintf(library, sizeof(library), "%s/usr/lib", candidate);
- if (length < 0 || (size_t)length >= sizeof(library) ||
- stat(library, &info) != 0 || !S_ISDIR(info.st_mode)) continue;
- if (!realpath(candidate, root)) continue;
+ if (length < 0 || (size_t)length >= sizeof(library) || stat(library, &info) != 0 || !S_ISDIR(info.st_mode))
+ continue;
+ if (!realpath(candidate, root))
+ continue;
matches++;
}
closedir(directory);
- if (matches != 1) root[0] = '\0';
+ if (matches != 1)
+ root[0] = '\0';
return matches == 1;
}
@@ -53,76 +117,85 @@ extern int memorystatus_control(uint32_t, int32_t, uint32_t, void *, size_t);
enum { VPSetJetsamHighWaterMark = 5, VPSetJetsamTaskLimit = 6 };
static int vpPhysicalProgram(const char *program, const char *root, char physical[PATH_MAX]) {
- if (!program || program[0] != '/') return 0;
+ if (!program || program[0] != '/')
+ return 0;
size_t rootLength = strlen(root);
- if (strncmp(program, root, rootLength) == 0 && program[rootLength] == '/') return 0;
+ if (strncmp(program, root, rootLength) == 0 && program[rootLength] == '/')
+ return 0;
char canonical[PATH_MAX];
- if (realpath(program, canonical) &&
- strncmp(canonical, root, rootLength) == 0 && canonical[rootLength] == '/') return 0;
- int used = strncmp(program, "/rootfs/", 8) == 0
- ? snprintf(physical, PATH_MAX, "%s", program + 7)
- : snprintf(physical, PATH_MAX, "%s%s", root, program);
+ if (realpath(program, canonical) && strncmp(canonical, root, rootLength) == 0 && canonical[rootLength] == '/')
+ return 0;
+ int used = strncmp(program, "/rootfs/", 8) == 0 ? snprintf(physical, PATH_MAX, "%s", program + 7)
+ : snprintf(physical, PATH_MAX, "%s%s", root, program);
return used > 0 && used < PATH_MAX;
}
static void vpPatchProgram(xpc_object_t plist, const char *root) {
// RootHide's bootstrap paths are relative to jbroot. launchd is outside
// vroot, so its executable must be passed as a physical kernel path.
- if (!strstr(root, "/.jbroot-") || xpc_dictionary_get_bool(plist, "__Patched")) return;
+ if (!strstr(root, "/.jbroot-") || xpc_dictionary_get_bool(plist, "__Patched"))
+ return;
xpc_object_t args = xpc_dictionary_get_value(plist, "ProgramArguments");
if (args && xpc_get_type(args) == XPC_TYPE_ARRAY && xpc_array_get_count(args) > 0) {
const char *program = xpc_array_get_string(args, 0);
char physical[PATH_MAX];
- if (vpPhysicalProgram(program, root, physical)) xpc_array_set_string(args, 0, physical);
+ if (vpPhysicalProgram(program, root, physical))
+ xpc_array_set_string(args, 0, physical);
}
const char *program = xpc_dictionary_get_string(plist, "Program");
char physical[PATH_MAX];
- if (vpPhysicalProgram(program, root, physical)) xpc_dictionary_set_string(plist, "Program", physical);
+ if (vpPhysicalProgram(program, root, physical))
+ xpc_dictionary_set_string(plist, "Program", physical);
}
-static void vpAddPlist(xpc_object_t dictionary, const char *path,
- const char *key, const char *root) {
+static void vpAddPlist(xpc_object_t dictionary, const char *path, const char *key, const char *root) {
VPPlistDecoder decode = (VPPlistDecoder)dlsym(RTLD_DEFAULT, "xpc_create_from_plist");
- if (!decode) return;
+ if (!decode)
+ return;
int fd = open(path, O_RDONLY | O_CLOEXEC | O_NOFOLLOW);
- if (fd < 0) return;
+ if (fd < 0)
+ return;
struct stat info;
- if (fstat(fd, &info) != 0 || !S_ISREG(info.st_mode) ||
- info.st_size <= 0 || info.st_size >= 1024 * 1024) {
+ if (fstat(fd, &info) != 0 || !S_ISREG(info.st_mode) || info.st_size <= 0 || info.st_size >= 1024 * 1024) {
close(fd);
return;
}
void *bytes = mmap(NULL, (size_t)info.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
close(fd);
- if (bytes == MAP_FAILED) return;
+ if (bytes == MAP_FAILED)
+ return;
xpc_object_t plist = decode(bytes, (size_t)info.st_size);
munmap(bytes, (size_t)info.st_size);
- if (!plist) return;
+ if (!plist)
+ return;
if (xpc_get_type(plist) == XPC_TYPE_DICTIONARY) {
vpPatchProgram(plist, root);
xpc_dictionary_set_value(dictionary, key, plist);
+ vpLogInjection("daemon-plist", path, 0);
}
xpc_release(plist);
}
-static void vpAddDaemons(xpc_object_t dictionary, const char *directory,
- const char *source, const char *root) {
+static void vpAddDaemons(xpc_object_t dictionary, const char *directory, const char *source, const char *root) {
DIR *stream = opendir(directory);
- if (!stream) return;
+ if (!stream)
+ return;
struct dirent *entry;
while ((entry = readdir(stream))) {
size_t length = strlen(entry->d_name);
- if (length < 6 || strcmp(entry->d_name + length - 6, ".plist") != 0) continue;
+ if (length < 6 || strcmp(entry->d_name + length - 6, ".plist") != 0)
+ continue;
char path[PATH_MAX];
int used = snprintf(path, sizeof(path), "%s/%s", directory, entry->d_name);
- if (used <= 0 || (size_t)used >= sizeof(path)) continue;
+ if (used <= 0 || (size_t)used >= sizeof(path))
+ continue;
// On the tested iOS 26 cache loader, /var/jb and /Library keys are
// ignored, while a System LaunchDaemon key is imported. Keep the
// real plist on the bootstrap volume and use a distinct cache key.
char key[PATH_MAX];
- used = snprintf(key, sizeof(key), "/System/Library/LaunchDaemons/vphone.%s.%s",
- source, entry->d_name);
- if (used > 0 && (size_t)used < sizeof(key)) vpAddPlist(dictionary, path, key, root);
+ used = snprintf(key, sizeof(key), "/System/Library/LaunchDaemons/vphone.%s.%s", source, entry->d_name);
+ if (used > 0 && (size_t)used < sizeof(key))
+ vpAddPlist(dictionary, path, key, root);
}
closedir(stream);
}
@@ -131,50 +204,56 @@ static void vpAddDaemons(xpc_object_t dictionary, const char *directory,
// interposes other images. dlsym would return the replacement and recurse.
static xpc_object_t vpGetValue(xpc_object_t dictionary, const char *key) {
xpc_object_t value = xpc_dictionary_get_value(dictionary, key);
- if (getpid() != 1 || !value || !key ||
- (strcmp(key, "Paths") != 0 && strcmp(key, "LaunchDaemons") != 0)) {
+ if (getpid() != 1 || !value || !key || (strcmp(key, "Paths") != 0 && strcmp(key, "LaunchDaemons") != 0)) {
return value;
}
+ vpLogInjection("cache-key", key, 0);
char root[PATH_MAX];
- if (!vpFindJBRoot(root)) return value;
+ if (!vpFindJBRoot(root)) {
+ vpLogInjection("bootstrap-unavailable", key, 0);
+ return value;
+ }
+ vpInstallSpawnHook(root);
char path[PATH_MAX];
int used = snprintf(path, sizeof(path), "%s/Library/LaunchDaemons", root);
- if (used < 0 || (size_t)used >= sizeof(path)) return value;
+ if (used < 0 || (size_t)used >= sizeof(path))
+ return value;
if (strcmp(key, "Paths") == 0 && xpc_get_type(value) == XPC_TYPE_ARRAY) {
xpc_array_set_string(value, XPC_ARRAY_APPEND, path);
used = snprintf(path, sizeof(path), "%s/basebin/LaunchDaemons", root);
if (used > 0 && (size_t)used < sizeof(path) && access(path, F_OK) == 0) {
xpc_array_set_string(value, XPC_ARRAY_APPEND, path);
}
- } else if (strcmp(key, "LaunchDaemons") == 0 &&
- xpc_get_type(value) == XPC_TYPE_DICTIONARY) {
+ } else if (strcmp(key, "LaunchDaemons") == 0 && xpc_get_type(value) == XPC_TYPE_DICTIONARY) {
vpAddDaemons(value, path, "jb", root);
used = snprintf(path, sizeof(path), "%s/basebin/LaunchDaemons", root);
- if (used > 0 && (size_t)used < sizeof(path)) vpAddDaemons(value, path, "basebin", root);
+ if (used > 0 && (size_t)used < sizeof(path))
+ vpAddDaemons(value, path, "basebin", root);
}
return value;
}
-static int vpMemoryStatus(uint32_t command, int32_t pid, uint32_t flags,
- void *buffer, size_t size) {
+static int vpMemoryStatus(uint32_t command, int32_t pid, uint32_t flags, void *buffer, size_t size) {
if (getpid() == 1 && command == VPSetJetsamTaskLimit && (pid == 1 || pid == 0)) {
return 0;
}
return memorystatus_control(command, pid, flags, buffer, size);
}
-__attribute__((constructor))
-static void vpLaunchHookInit(void) {
- if (getpid() != 1) return;
+__attribute__((constructor)) static void vpLaunchHookInit(void) {
+ if (getpid() != 1)
+ return;
// The firmware panic-guard patch does not remove a limit already on PID 1.
memorystatus_control(VPSetJetsamTaskLimit, 1, (uint32_t)-1, NULL, 0);
memorystatus_control(VPSetJetsamHighWaterMark, 1, (uint32_t)-1, NULL, 0);
}
-// This image is loaded by launchd's LC_LOAD_WEAK_DYLIB. Child injection is
-// deliberately deferred until SystemHook has its own process policy.
-__attribute__((used, section("__DATA,__interpose")))
-static const struct { const void *replacement; const void *replacee; } vpInterpose[] = {
+// This image is loaded by launchd's LC_LOAD_WEAK_DYLIB. The spawn hook handles
+// xpcproxy and direct bootstrap executables; SystemHook owns xpcproxy's exec.
+__attribute__((used, section("__DATA,__interpose"))) static const struct {
+ const void *replacement;
+ const void *replacee;
+} vpInterpose[] = {
{(const void *)vpGetValue, (const void *)xpc_dictionary_get_value},
{(const void *)vpMemoryStatus, (const void *)memorystatus_control},
};
diff --git a/VPhoneGuestComponents/Makefile b/VPhoneGuestComponents/Makefile
index 62c42d7d..007ed2c8 100644
--- a/VPhoneGuestComponents/Makefile
+++ b/VPhoneGuestComponents/Makefile
@@ -9,25 +9,26 @@ GUEST_C_FLAGS := -arch arm64e -miphoneos-version-min=26.0 -Os
COMMON_FLAGS := $(GUEST_C_FLAGS) -fobjc-arc
CAMFIX := $(STAGE)/camfix/libcamfix.dylib
+CAMFIX_SOURCES := $(wildcard CamFix/*.m)
+CAMFIX_INCLUDES := $(wildcard CamFix/*.h CamFix/*.inc VCamCaptured/*.h)
VCAMCAPTURED := $(STAGE)/vcamcaptured/libvcamcaptured.dylib
-VCAMCAPTURED_SOURCES := VCamCaptured/libvcamcaptured.m \
- VCamCaptured/VCamImageResolution.inc \
- VCamCaptured/VCamSourceInstallation.inc \
- VCamCaptured/VCamCaptureObservation.inc \
- VCamCaptured/VCamSyntheticDevice.inc \
- VCamCaptured/VCamSyntheticStreams.inc \
- VCamCaptured/VCamViewfinderHooks.inc \
- VCamCaptured/VCamSessionHooks.inc \
- VCamCaptured/VCamStillSink.inc \
- VCamCaptured/VCamFrameReceiver.inc \
- VCamCaptured/VCamFrameProtocol.h
+VCAMCAPTURED_SOURCES := $(wildcard VCamCaptured/*.m)
+VCAMCAPTURED_INCLUDES := $(wildcard VCamCaptured/*.h VCamCaptured/*.inc)
LAUNCHHOOK := $(STAGE)/launchhook/launchdhook-vphone.dylib
+LAUNCHHOOK_SOURCES := $(wildcard LaunchHook/*.c)
+LAUNCHHOOK_INCLUDES := $(wildcard LaunchHook/*.h LaunchHook/*.inc Shared/*.h)
SYSTEMHOOK := $(STAGE)/systemhook/SystemHook-vphone.dylib
+SYSTEMHOOK_SOURCES := $(wildcard SystemHook/*.c)
+SYSTEMHOOK_INCLUDES := $(wildcard SystemHook/*.h SystemHook/*.inc Shared/*.h)
GPU_PLUGIN := $(STAGE)/gpu/libAppleParavirtCompilerPluginIOGPUFamily.dylib
+GPU_PLUGIN_SOURCES := $(wildcard GraphicLoader/*.mm)
+GPU_PLUGIN_INCLUDES := $(wildcard GraphicLoader/*.h GraphicLoader/*.hpp GraphicLoader/*.inc)
ARTIFACTS := $(CAMFIX) $(VCAMCAPTURED) $(LAUNCHHOOK) $(SYSTEMHOOK) $(GPU_PLUGIN)
PLISTS := $(STAGE)/camfix/libcamfix.plist $(STAGE)/vcamcaptured/libvcamcaptured.plist
GPU_PROVENANCE := $(STAGE)/gpu/README.md
+# Directory timestamps also catch files removed from the wildcard inputs.
+
.PHONY: all gpu package clean
all: $(ARTIFACTS) $(PLISTS) $(GPU_PROVENANCE)
@@ -42,40 +43,40 @@ package: all
$(STAGE)/camfix $(STAGE)/vcamcaptured $(STAGE)/launchhook $(STAGE)/systemhook $(STAGE)/gpu:
@mkdir -p $@
-$(CAMFIX): CamFix/libcamfix.m VCamCaptured/VCamFrameProtocol.h | $(STAGE)/camfix
+$(CAMFIX): $(CAMFIX_SOURCES) $(CAMFIX_INCLUDES) CamFix VCamCaptured | $(STAGE)/camfix
$(CLANG) $(COMMON_FLAGS) -dynamiclib \
-install_name @rpath/libcamfix.dylib \
- -o $@ $< \
+ -o $@ $(CAMFIX_SOURCES) \
-framework Foundation -framework AVFoundation -framework ImageIO \
-framework IOSurface -framework CoreMedia -framework CoreVideo \
-framework CoreGraphics -framework QuartzCore
@codesign --force --sign - $@
-$(VCAMCAPTURED): $(VCAMCAPTURED_SOURCES) | $(STAGE)/vcamcaptured
+$(VCAMCAPTURED): $(VCAMCAPTURED_SOURCES) $(VCAMCAPTURED_INCLUDES) VCamCaptured | $(STAGE)/vcamcaptured
$(CLANG) $(COMMON_FLAGS) -dynamiclib \
-install_name @rpath/libvcamcaptured.dylib \
- -o $@ $< \
+ -o $@ $(VCAMCAPTURED_SOURCES) \
-framework Foundation -framework CoreMedia -framework CoreVideo
@codesign --force --sign - $@
-$(LAUNCHHOOK): LaunchHook/launchdhook-vphone.c | $(STAGE)/launchhook
+$(LAUNCHHOOK): $(LAUNCHHOOK_SOURCES) $(LAUNCHHOOK_INCLUDES) LaunchHook Shared | $(STAGE)/launchhook
$(CLANG) $(GUEST_C_FLAGS) -dynamiclib \
-install_name /usr/lib/launchdhook-vphone.dylib \
- -o $@ $< -Wl,-not_for_dyld_shared_cache
+ -o $@ $(LAUNCHHOOK_SOURCES) -Wl,-not_for_dyld_shared_cache
@codesign --force --sign - $@
-$(SYSTEMHOOK): SystemHook/SystemHook-vphone.c | $(STAGE)/systemhook
+$(SYSTEMHOOK): $(SYSTEMHOOK_SOURCES) $(SYSTEMHOOK_INCLUDES) SystemHook Shared | $(STAGE)/systemhook
$(CLANG) $(GUEST_C_FLAGS) -dynamiclib \
-install_name /usr/lib/SystemHook-vphone.dylib \
- -o $@ $<
+ -o $@ $(SYSTEMHOOK_SOURCES) -Wl,-not_for_dyld_shared_cache
@codesign --force --sign - $@
-$(GPU_PLUGIN): GraphicLoader/main.mm | $(STAGE)/gpu
+$(GPU_PLUGIN): $(GPU_PLUGIN_SOURCES) $(GPU_PLUGIN_INCLUDES) GraphicLoader | $(STAGE)/gpu
xcrun --sdk iphoneos clang++ -arch arm64e -miphoneos-version-min=26.1 \
-std=c++17 -O2 -dynamiclib -Wl,-undefined,dynamic_lookup \
-Wl,-not_for_dyld_shared_cache \
-install_name /System/Library/Extensions/AppleParavirtGPUMetalIOGPUFamily.bundle/libAppleParavirtCompilerPluginIOGPUFamily.dylib \
- -o $@ $<
+ -o $@ $(GPU_PLUGIN_SOURCES)
@codesign --force --sign - $@
$(STAGE)/camfix/libcamfix.plist: CamFix/libcamfix.plist | $(STAGE)/camfix
diff --git a/VPhoneGuestComponents/Shared/InjectionEnvironment.h b/VPhoneGuestComponents/Shared/InjectionEnvironment.h
new file mode 100644
index 00000000..99edea0f
--- /dev/null
+++ b/VPhoneGuestComponents/Shared/InjectionEnvironment.h
@@ -0,0 +1,91 @@
+#ifndef VPHONE_INJECTION_ENVIRONMENT_H
+#define VPHONE_INJECTION_ENVIRONMENT_H
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#define VP_SYSTEM_HOOK "/usr/lib/SystemHook-vphone.dylib"
+
+typedef struct {
+ char **values;
+ char *inserted;
+} VPInjectionEnvironment;
+
+static int vpEnvIsOne(char *const env[], const char *name) {
+ if (!env)
+ return 0;
+ size_t length = strlen(name);
+ for (size_t i = 0; env[i]; i++) {
+ if (strncmp(env[i], name, length) == 0 && env[i][length] == '=') {
+ return strcmp(env[i] + length + 1, "1") == 0;
+ }
+ }
+ return 0;
+}
+
+static int vpInjectionDisabled(char *const env[]) {
+ return vpEnvIsOne(env, "DISABLE_TWEAKS") || vpEnvIsOne(env, "_SafeMode") || vpEnvIsOne(env, "_MSSafeMode");
+}
+
+static int vpHasHook(const char *paths) {
+ if (!paths)
+ return 0;
+ const size_t length = strlen(VP_SYSTEM_HOOK);
+ for (const char *start = paths; *start;) {
+ const char *end = strchr(start, ':');
+ size_t count = end ? (size_t)(end - start) : strlen(start);
+ if (count == length && strncmp(start, VP_SYSTEM_HOOK, count) == 0)
+ return 1;
+ if (!end)
+ break;
+ start = end + 1;
+ }
+ return 0;
+}
+
+// Returns an owned environment only when the hook needs to be added.
+static VPInjectionEnvironment vpInsertHook(char *const env[]) {
+ VPInjectionEnvironment result = {0};
+ size_t count = 0;
+ size_t dyld = (size_t)-1;
+ if (env) {
+ while (count < 4096 && env[count]) {
+ if (strncmp(env[count], "DYLD_INSERT_LIBRARIES=", 22) == 0)
+ dyld = count;
+ count++;
+ }
+ if (count == 4096)
+ return result;
+ }
+ const char *existing = dyld == (size_t)-1 ? NULL : env[dyld] + 22;
+ if (vpHasHook(existing))
+ return result;
+ size_t size = strlen("DYLD_INSERT_LIBRARIES=") + strlen(VP_SYSTEM_HOOK) + 1;
+ if (existing && *existing)
+ size += strlen(existing) + 1;
+ result.inserted = malloc(size);
+ result.values = calloc(count + (dyld == (size_t)-1 ? 2 : 1), sizeof(char *));
+ if (!result.inserted || !result.values) {
+ free(result.inserted);
+ free(result.values);
+ return (VPInjectionEnvironment){0};
+ }
+ if (existing && *existing) {
+ snprintf(result.inserted, size, "DYLD_INSERT_LIBRARIES=%s:%s", VP_SYSTEM_HOOK, existing);
+ } else {
+ snprintf(result.inserted, size, "DYLD_INSERT_LIBRARIES=%s", VP_SYSTEM_HOOK);
+ }
+ for (size_t i = 0; i < count; i++)
+ result.values[i] = i == dyld ? result.inserted : env[i];
+ if (dyld == (size_t)-1)
+ result.values[count] = result.inserted;
+ return result;
+}
+
+static void vpFreeEnvironment(VPInjectionEnvironment *environment) {
+ free(environment->values);
+ free(environment->inserted);
+}
+
+#endif
diff --git a/VPhoneGuestComponents/SystemHook/SystemHook-vphone.c b/VPhoneGuestComponents/SystemHook/SystemHook-vphone.c
index a86826d4..02d485fb 100644
--- a/VPhoneGuestComponents/SystemHook/SystemHook-vphone.c
+++ b/VPhoneGuestComponents/SystemHook/SystemHook-vphone.c
@@ -1,21 +1,57 @@
+#include "../Shared/InjectionEnvironment.h"
+#include <crt_externs.h>
#include <fcntl.h>
#include <limits.h>
#include <mach-o/dyld.h>
+#include <spawn.h>
#include <stdio.h>
+#include <string.h>
#include <unistd.h>
+static int vpInXPCProxy;
+
+static int vpSpawnP(pid_t *restrict pid, const char *restrict path, const posix_spawn_file_actions_t *restrict actions,
+ const posix_spawnattr_t *restrict attributes, char *const argv[restrict],
+ char *const envp[restrict]) {
+ if (!vpInXPCProxy)
+ return posix_spawnp(pid, path, actions, attributes, argv, envp);
+ int fd =
+ open("/var/mobile/Library/Caches/vphone-systemhook-spawn.log", O_WRONLY | O_CREAT | O_APPEND | O_CLOEXEC, 0644);
+ if (fd >= 0) {
+ dprintf(fd, "pid=%d entry=posix_spawnp path=%s\n", getpid(), path ? path : "<null>");
+ close(fd);
+ }
+ if (!path || vpInjectionDisabled(envp)) {
+ return posix_spawnp(pid, path, actions, attributes, argv, envp);
+ }
+ VPInjectionEnvironment injected = vpInsertHook(envp);
+ int status = posix_spawnp(pid, path, actions, attributes, argv, injected.values ? injected.values : envp);
+ vpFreeEnvironment(&injected);
+ return status;
+}
+
// Diagnostic only: confirm which processes actually load SystemHook.
-__attribute__((constructor))
-static void vpLogProcess(void) {
+__attribute__((constructor)) static void vpLogProcess(void) {
char path[PATH_MAX];
uint32_t length = sizeof(path);
- if (_NSGetExecutablePath(path, &length) != 0) return;
+ if (_NSGetExecutablePath(path, &length) != 0)
+ return;
+ vpInXPCProxy = strcmp(path, "/usr/libexec/xpcproxy") == 0;
- int fd = open("/var/mobile/Library/Caches/vphone-systemhook.log",
- O_WRONLY | O_CREAT | O_APPEND | O_CLOEXEC, 0644);
- if (fd < 0) return;
- dprintf(fd, "pid=%d path=%s\n", getpid(), path);
+ int fd = open("/var/mobile/Library/Caches/vphone-systemhook.log", O_WRONLY | O_CREAT | O_APPEND | O_CLOEXEC, 0644);
+ if (fd < 0)
+ return;
+ char **arguments = *_NSGetArgv();
+ dprintf(fd, "pid=%d path=%s label=%s\n", getpid(), path,
+ vpInXPCProxy && arguments && arguments[1] ? arguments[1] : "-");
close(fd);
}
int vphone_systemhook_version(void) { return 1; }
+
+__attribute__((used, section("__DATA,__interpose"))) static const struct {
+ const void *replacement;
+ const void *replacee;
+} vpInterpose[] = {
+ {(const void *)vpSpawnP, (const void *)posix_spawnp},
+};
diff --git a/VPhoneKit/VPhoneCoreKit/Process/VPhoneHostFilePermissions.swift b/VPhoneKit/VPhoneCoreKit/Process/VPhoneHostFilePermissions.swift
index 89a1fffa..d9969b0c 100644
--- a/VPhoneKit/VPhoneCoreKit/Process/VPhoneHostFilePermissions.swift
+++ b/VPhoneKit/VPhoneCoreKit/Process/VPhoneHostFilePermissions.swift
@@ -9,7 +9,9 @@ public enum VPhoneHostFilePermissions {
public static func makeAccessible(at url: URL) throws {
let descriptor = open(url.path, O_RDONLY | O_NOFOLLOW | O_CLOEXEC | O_NONBLOCK)
guard descriptor >= 0 else {
- if errno == ENOENT { return }
+ if errno == ENOENT {
+ return
+ }
throw POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
}
defer { close(descriptor) }
@@ -19,7 +21,9 @@ public enum VPhoneHostFilePermissions {
public static func makeDirectoryAccessible(at url: URL) throws {
let descriptor = open(url.path, O_RDONLY | O_NOFOLLOW | O_CLOEXEC)
guard descriptor >= 0 else {
- if errno == ENOENT { return }
+ if errno == ENOENT {
+ return
+ }
throw POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
}
defer { close(descriptor) }
@@ -42,7 +46,9 @@ public enum VPhoneHostFilePermissions {
for name in try FileManager.default.contentsOfDirectory(atPath: path) {
let child = openat(descriptor, name, O_RDONLY | O_NOFOLLOW | O_CLOEXEC | O_NONBLOCK)
if child < 0 {
- if errno == ELOOP || errno == ENOENT { continue }
+ if errno == ELOOP || errno == ENOENT {
+ continue
+ }
throw POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
}
do {
diff --git a/VPhoneKit/VPhoneCoreKit/Process/VPhoneInvokingUser.swift b/VPhoneKit/VPhoneCoreKit/Process/VPhoneInvokingUser.swift
index dc189e1e..26f5ce11 100644
--- a/VPhoneKit/VPhoneCoreKit/Process/VPhoneInvokingUser.swift
+++ b/VPhoneKit/VPhoneCoreKit/Process/VPhoneInvokingUser.swift
@@ -10,10 +10,10 @@ public struct VPhoneInvokingUser: Sendable {
public static var current: VPhoneInvokingUser? {
guard geteuid() == 0,
- let uidText = ProcessInfo.processInfo.environment["SUDO_UID"],
- let gidText = ProcessInfo.processInfo.environment["SUDO_GID"],
- let uid = uid_t(uidText), let gid = gid_t(gidText),
- uid != 0, let account = getpwuid(uid), let directory = account.pointee.pw_dir
+ let uidText = ProcessInfo.processInfo.environment["SUDO_UID"],
+ let gidText = ProcessInfo.processInfo.environment["SUDO_GID"],
+ let uid = uid_t(uidText), let gid = gid_t(gidText),
+ uid != 0, let account = getpwuid(uid), let directory = account.pointee.pw_dir
else { return nil }
return VPhoneInvokingUser(uid: uid, gid: gid, home: URL(fileURLWithPath: String(cString: directory)))
}
@@ -25,7 +25,9 @@ public struct VPhoneInvokingUser: Sendable {
public func restoreOwnership(at url: URL) throws {
var metadata = stat()
guard lstat(url.path, &metadata) == 0 else {
- if errno == ENOENT { return }
+ if errno == ENOENT {
+ return
+ }
throw POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
}
if (metadata.st_mode & S_IFMT) == S_IFDIR {
@@ -41,7 +43,9 @@ public struct VPhoneInvokingUser: Sendable {
public func restoreOwnerOfDirectory(at url: URL) throws {
var metadata = stat()
guard lstat(url.path, &metadata) == 0 else {
- if errno == ENOENT { return }
+ if errno == ENOENT {
+ return
+ }
throw POSIXError(POSIXErrorCode(rawValue: errno) ?? .EIO)
}
guard (metadata.st_mode & S_IFMT) == S_IFDIR else { return }
diff --git a/VPhoneKit/VPhoneCoreKit/Process/VPhoneProcessRunner.swift b/VPhoneKit/VPhoneCoreKit/Process/VPhoneProcessRunner.swift
index c75d5666..893e6fc4 100644
--- a/VPhoneKit/VPhoneCoreKit/Process/VPhoneProcessRunner.swift
+++ b/VPhoneKit/VPhoneCoreKit/Process/VPhoneProcessRunner.swift
@@ -28,11 +28,15 @@ public enum VPhoneProcessRunner {
private let lock = NSLock()
private var data = Data()
func append(_ chunk: Data) {
- lock.lock(); data.append(chunk); lock.unlock()
+ lock.lock()
+ data.append(chunk)
+ lock.unlock()
}
func take() -> Data {
- lock.lock(); defer { lock.unlock() }; return data
+ lock.lock()
+ defer { lock.unlock() }
+ return data
}
}
@@ -72,7 +76,8 @@ public enum VPhoneProcessRunner {
outPipe.fileHandleForReading.readabilityHandler = { handle in
let chunk = handle.availableData
if chunk.isEmpty {
- handle.readabilityHandler = nil; group.leave()
+ handle.readabilityHandler = nil
+ group.leave()
} else {
outBox.append(chunk)
}
@@ -80,7 +85,8 @@ public enum VPhoneProcessRunner {
errPipe.fileHandleForReading.readabilityHandler = { handle in
let chunk = handle.availableData
if chunk.isEmpty {
- handle.readabilityHandler = nil; group.leave()
+ handle.readabilityHandler = nil
+ group.leave()
} else {
errBox.append(chunk)
}
@@ -181,7 +187,9 @@ public enum VPhoneProcessRunner {
if isatty(ttyFD) == 0 {
let fd = open("/dev/tty", O_RDWR)
guard fd >= 0 else {
- try process.run(); process.waitUntilExit(); return process.terminationStatus
+ try process.run()
+ process.waitUntilExit()
+ return process.terminationStatus
}
ttyFD = fd
openedTTY = true
@@ -201,12 +209,11 @@ public enum VPhoneProcessRunner {
}
try process.run()
- _ = tcsetpgrp(ttyFD, process.processIdentifier) // hand the tty to the child
+ _ = tcsetpgrp(ttyFD, process.processIdentifier) // hand the tty to the child
process.waitUntilExit()
if savedFg > 0 {
_ = tcsetpgrp(ttyFD, savedFg)
- } // take it back
+ } // take it back
return process.terminationStatus
}
-
}
diff --git a/VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneVirtualMachineManifest.swift b/VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneVirtualMachineManifest.swift
index 5a39fb04..b9e9d8d8 100644
--- a/VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneVirtualMachineManifest.swift
+++ b/VPhoneKit/VPhoneCoreKit/VirtualMachine/VPhoneVirtualMachineManifest.swift
@@ -13,17 +13,17 @@ public enum VPhoneManifestError: Error {
extension VPhoneManifestError: CustomStringConvertible, LocalizedError {
public var description: String {
switch self {
- case let .loadFailed(path):
+ case .loadFailed(let path):
"Unable to read the VM configuration at \(path). Check that the file exists and try again."
- case let .parseFailed(path):
+ case .parseFailed(let path):
"The VM configuration at \(path) is not valid. Recreate the VM, or restore a backup of config.plist."
- case let .unsupportedSchema(path, found):
+ case .unsupportedSchema(let path, let found):
"The VM configuration at \(path) has \(found.map { "schema version \($0)" } ?? "no valid schema version"). "
+ "vphone 2.x requires schema version 2. Recreate this VM with `vphone-cli vm create`."
- case let .unsupportedRuntimeVersion(version):
+ case .unsupportedRuntimeVersion(let version):
"This vphone build reports version \(version). VMs with schema version 2 require vphone 2.x. "
+ "Install a vphone 2.x build before launching this VM."
- case let .writeFailed(path):
+ case .writeFailed(let path):
"Unable to save the VM configuration to \(path). Check that the file is writable and try again."
}
}
@@ -40,13 +40,13 @@ enum VPhoneRuntimeVersion {
static var current: String {
let contents = VPhoneResources.runningExecutable().deletingLastPathComponent().deletingLastPathComponent()
guard contents.lastPathComponent == "Contents",
- contents.deletingLastPathComponent().pathExtension == "app"
+ contents.deletingLastPathComponent().pathExtension == "app"
else { return unbundledVersion }
let infoURL = contents.appendingPathComponent("Info.plist")
guard let data = try? Data(contentsOf: infoURL),
- let plist = (try? PropertyListSerialization.propertyList(from: data, format: nil)) as? [String: Any],
- let version = plist["CFBundleShortVersionString"] as? String
+ let plist = (try? PropertyListSerialization.propertyList(from: data, format: nil)) as? [String: Any],
+ let version = plist["CFBundleShortVersionString"] as? String
else { return "unknown" }
return version
}
@@ -201,7 +201,7 @@ public struct VPhoneVirtualMachineManifest: Codable, Sendable {
romImages: ROMImages?,
sepStorage: String = "SEPStorage",
) {
- self.schemaVersion = Self.currentSchemaVersion
+ schemaVersion = Self.currentSchemaVersion
self.platformType = platformType
self.platformFusing = platformFusing
self.machineIdentifier = machineIdentifier