Skip to content

Run a virtual iPhone on an Apple Silicon Mac.

Swift

Clarify rootless environment in device info

Lakr418ecc2ee834
diff --git a/VPhoneExecutable/VPhoneVirtualization/Resources/Localizable.xcstrings b/VPhoneExecutable/VPhoneVirtualization/Resources/Localizable.xcstrings
index 300c703c..04aabc36 100644
--- a/VPhoneExecutable/VPhoneVirtualization/Resources/Localizable.xcstrings
+++ b/VPhoneExecutable/VPhoneVirtualization/Resources/Localizable.xcstrings
@@ -19134,34 +19134,6 @@
}
}
},
- "Rootfs Prefix" : {
- "localizations" : {
- "ja" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Rootfs プレフィックス"
- }
- },
- "ko" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Rootfs 접두사"
- }
- },
- "vi" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Tiền tố rootfs"
- }
- },
- "zh-Hans" : {
- "stringUnit" : {
- "state" : "translated",
- "value" : "Rootfs 前缀"
- }
- }
- }
- },
"roothide" : {
"localizations" : {
"en" : {
@@ -23058,6 +23030,34 @@
}
}
},
+ "System Root Path" : {
+ "localizations" : {
+ "ja" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "システムルートパス"
+ }
+ },
+ "ko" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "시스템 루트 경로"
+ }
+ },
+ "vi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Đường dẫn gốc hệ thống"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "系统根路径"
+ }
+ }
+ }
+ },
"Tab" : {
"localizations" : {
"ja" : {
diff --git a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/DeviceInfo/VPhoneDeviceInfoModel.swift b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/DeviceInfo/VPhoneDeviceInfoModel.swift
index 204f1d4a..85cbbdf6 100644
--- a/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/DeviceInfo/VPhoneDeviceInfoModel.swift
+++ b/VPhoneExecutable/VPhoneVirtualization/UI/UserInterface/Panels/DeviceInfo/VPhoneDeviceInfoModel.swift
@@ -305,9 +305,12 @@ final class VPhoneDeviceInfoModel {
let present = tools.keys.filter { tools.bool($0) == true }.sorted()
let missing = tools.keys.filter { tools.bool($0) != true }.sorted()
let basebin = report.string("basebin_version") ?? ""
+ let layout = report.string("layout")
return VPhoneDeviceInfoSection(kind: .environment, title: Self.text("Jailbreak Environment"), rows: [
+ VPhoneDeviceInfoRow(label: Self.text("Jailbreak Layout"), value: layout ?? Self.text("Not Detected"), tone: layout == nil ? nil : .info),
+ VPhoneDeviceInfoRow(label: Self.text("jbroot"), value: Self.value(report.string("jbroot"))),
VPhoneDeviceInfoRow(label: Self.text("jbroot Source"), value: Self.value(report.string("jbroot_source"))),
- VPhoneDeviceInfoRow(label: Self.text("Rootfs Prefix"), value: Self.value(report.string("rootfs_prefix"))),
+ VPhoneDeviceInfoRow(label: Self.text("System Root Path"), value: Self.value(report.string("rootfs_prefix"))),
VPhoneDeviceInfoRow(label: Self.text("Markers"), value: markers.isEmpty ? Self.text("None") : markers.joined(separator: ", ")),
VPhoneDeviceInfoRow(label: Self.text("BaseBin Version"), value: basebin.isEmpty ? "—" : basebin),
VPhoneDeviceInfoRow(label: Self.text("Bootstrap Tools"), value: present.isEmpty ? Self.text("None") : present.joined(separator: ", ")),