Skip to content

Control a real USB-connected iPhone from Linux (no Mac, no paid developer account) and expose it to AI agents as MCP tools

自动解锁:键盘上有残留输入时用删除键逐位删掉

Derrors6c6e8cb20174
diff --git a/crates/ictl-unlock/src/fake.rs b/crates/ictl-unlock/src/fake.rs
index 20754da..637e8fe 100644
--- a/crates/ictl-unlock/src/fake.rs
+++ b/crates/ictl-unlock/src/fake.rs
@@ -3,6 +3,7 @@
//! - 键盘元素一直在元素树里(不管是否显示)
//! - 只有「按 Home 后上滑」之后键盘才真正显示,显示前按键落空
//! - 整串输完:对了就解锁,错了算一次输错并清空
+//! - 按 Home 不清空半截输入(iOS 27 真机);右下角删除键每按一下删一位
use std::sync::Mutex;
use std::time::Duration;
@@ -24,6 +25,8 @@ const KEYS: [(i64, i64); 10] = [
(215, 587),
(327, 587),
];
+/// lockscreen.xml 里右下角按钮(有输入时是「删除」)的中心
+const DELETE: (i64, i64) = (327, 857);
#[derive(Debug, Clone, Default)]
pub struct State {
@@ -65,6 +68,13 @@ impl FakeLockScreen {
self.st.lock().unwrap().swipes_to_ignore = n;
}
+ /// 键盘已打开、留着 n 位残留输入(别人按了一半)
+ pub fn leave_residual(&self, digits: &[u8]) {
+ let mut s = self.st.lock().unwrap();
+ s.shown = true;
+ s.entered = digits.to_vec();
+ }
+
/// 接下来 n 次上滑 WDA 报 500(真机:熄屏锁屏刚唤醒时 `point.x != INFINITY`)
pub fn swipe_errors(&self, n: u32) {
self.st.lock().unwrap().swipe_errors = n;
@@ -88,11 +98,8 @@ impl FakeLockScreen {
s.idle = (b["waitForIdleTimeout"].as_f64().unwrap(), b["animationCoolOffTimeout"].as_f64().unwrap());
Value::Null
}
- ("POST", "/wda/pressButton") => {
- s.shown = false;
- s.entered.clear();
- Value::Null
- }
+ // iOS 27:Home 只唤醒/收起键,半截输入还在,键盘界面也还在(键隐藏但仍能按)
+ ("POST", "/wda/pressButton") => Value::Null,
("POST", "/actions") => {
s.requests_to_actions += 1;
let idle = s.idle;
@@ -115,6 +122,12 @@ impl FakeLockScreen {
} else {
s.presses_per_action_max = s.presses_per_action_max.max(downs);
let (x, y) = (steps[0]["x"].as_f64().unwrap() as i64, steps[0]["y"].as_f64().unwrap() as i64);
+ if (x, y) == DELETE {
+ if s.shown {
+ s.entered.pop();
+ }
+ return (200, json!({"value": null, "sessionId": "S"}));
+ }
let digit = KEYS.iter().position(|k| *k == (x, y)).expect("按在键盘以外") as u8;
if s.shown {
s.press_count += 1;
diff --git a/crates/ictl-unlock/src/lib.rs b/crates/ictl-unlock/src/lib.rs
index a445221..8564d5d 100644
--- a/crates/ictl-unlock/src/lib.rs
+++ b/crates/ictl-unlock/src/lib.rs
@@ -3,7 +3,8 @@
//! 规则全部来自 toolkit 实测(docs/capability-matrix.md §5):
//! 1. 先读 `/wda/locked`,没锁直接返回;WDA 不可用也直接返回(交给后面的调用去报错)
//! 2. 每轮固定:按 Home → 等 1.0s → 底部上滑 → 等 1.5s。不以「树里有键盘」判断:键盘收起时按键元素也常驻树中
-//! 3. 读密码栏「共N位数,已输入M位」:总位数和配置不符一位都不输;有残留输入就下一轮(Home 会清空)
+//! 3. 读密码栏「共N位数,已输入M位」:总位数和配置不符一位都不输;有残留输入先用右下角删除键逐位删到 0
+//! (iOS 27 上 Home 不会清空残留),删不掉就下一轮
//! 4. 每位一个独立 W3C 手势(按下 80ms),按完核对已输入位数正好 +1,不符立即停——输入不完整不算输错。
//! 多位合成一个手势会漏键;`/wda/tap` 在锁屏上每次约 2.9 秒,太慢
//! 5. 解锁期间 waitForIdleTimeout=1、animationCoolOffTimeout=0.2(0 会唤醒失败),结束后恢复
@@ -143,6 +144,22 @@ async fn press<T: Transport>(wda: &mut WdaClient<T>, at: (i64, i64), t: &Timing)
Ok(wda.actions(&tap_steps(at.0 as f64, at.1 as f64, t.key_press_ms)).await?)
}
+/// 用删除键把 `entered` 位残留删到 0;找不到删除键或某次没删掉返回 false(这轮作废,一位没输)
+async fn clear_residual<T: Transport>(
+ wda: &mut WdaClient<T>,
+ delete: Option<(i64, i64)>,
+ entered: u32,
+ t: &Timing,
+) -> Result<bool> {
+ let Some(del) = delete else { return Ok(false) };
+ for left in (0..entered).rev() {
+ if tap_key(wda, del, left, t).await? != left as i64 {
+ return Ok(false);
+ }
+ }
+ Ok(true)
+}
+
/// 按一个数字键,等密码栏已输入位数变成 `expect`;返回实际位数(读不到密码栏为 -1)
async fn tap_key<T: Transport>(wda: &mut WdaClient<T>, at: (i64, i64), expect: u32, t: &Timing) -> Result<i64> {
press(wda, at, t).await?;
@@ -164,7 +181,7 @@ async fn unlock<T: Transport>(wda: &mut WdaClient<T>, cfg: &UnlockConfig, code:
let mut keys = None;
for _ in 0..FIRST_DIGIT_ROUNDS {
- // Home 唤醒;键盘已打开时会收起并清空半截输入
+ // Home 唤醒(键盘已打开时 iOS 27 只是把键收起,半截输入还在,下面用删除键处理)
// 熄屏锁屏刚唤醒时上滑偶尔卡十几秒后报 `point.x != INFINITY`(WDA 还拿不到界面尺寸):一位没输,算这轮落空重来
let woke = async {
wda.press_button("home").await?;
@@ -186,17 +203,17 @@ async fn unlock<T: Transport>(wda: &mut WdaClient<T>, cfg: &UnlockConfig, code:
if !wda.locked().await? {
return Ok(Outcome::Unlocked);
}
- let (Some(pad), Some((total, entered))) =
- (elements::keypad(&wda.elements().await?), wda.passcode_field().await?)
- else {
+ let els = wda.elements().await?;
+ let (Some(pad), Some((total, entered))) = (elements::keypad(&els), wda.passcode_field().await?) else {
continue;
};
- if entered != 0 {
- continue;
- }
if total != len {
return Err(UnlockError::LengthMismatch { expected: total, configured: len });
}
+ // 有残留输入:iOS 27 上 Home 不会清空,用右下角「删除」逐位删掉,每删一位核对一次
+ if entered != 0 && !clear_residual(wda, elements::delete_key(&els, &pad), entered, t).await? {
+ continue;
+ }
match tap_key(wda, pad[digit(0)], 1, t).await? {
1 => {
keys = Some(pad);
@@ -315,6 +332,18 @@ mod tests {
std::fs::remove_dir_all(dir).unwrap();
}
+ /// 键盘上留着别人按的半截(可能是错的):先删干净再输,不能接在后面凑成一次输错
+ #[tokio::test]
+ async fn residual_input_is_deleted_before_typing() {
+ let fake = FakeLockScreen::new("123456");
+ fake.leave_residual(&[9, 9]);
+ let (cfg, dir) = cfg(Some("123456"));
+ assert_eq!(ensure_unlocked(&mut WdaClient::new(&fake), &cfg).await.unwrap(), Outcome::Unlocked);
+ assert_eq!(fake.state().failed_attempts, 0);
+ assert!(!cfg.disabled_flag.exists());
+ std::fs::remove_dir_all(dir).unwrap();
+ }
+
#[tokio::test]
async fn swipe_error_right_after_wake_retries_round() {
let fake = FakeLockScreen::new("123456");
diff --git a/crates/ictl-wda/src/elements.rs b/crates/ictl-wda/src/elements.rs
index 63f6f3d..aedbf79 100644
--- a/crates/ictl-wda/src/elements.rs
+++ b/crates/ictl-wda/src/elements.rs
@@ -133,6 +133,17 @@ pub fn keypad(elements: &[Element]) -> Option<[(i64, i64); 10]> {
Some(out)
}
+/// 密码键盘右下角的按钮:有输入时是「删除」(每按一下删一位),没输入时是「取消」。
+/// 标签随语言变,按位置认:和 9 同一列、在 0 下面的 Button
+pub fn delete_key(elements: &[Element], pad: &[(i64, i64); 10]) -> Option<(i64, i64)> {
+ let (col, row0) = (pad[9].0, pad[0].1);
+ elements
+ .iter()
+ .filter(|e| e.kind == "Button" && (e.center.0 - col).abs() <= 10 && e.center.1 > row0 + 50)
+ .map(|e| e.center)
+ .next()
+}
+
/// 锁屏密码栏的值形如「共6位数,已输入2位」或英文「6-digit passcode, 2 entered」,返回 (总位数, 已输入位数)
pub fn parse_passcode_value(value: &str) -> Option<(u32, u32)> {
let nums: Vec<u32> =
@@ -176,6 +187,16 @@ mod tests {
const LOCK_IOS27: &str = include_str!("../tests/fixtures/lockscreen-ios27.xml");
const PIN_IOS27: &str = include_str!("../tests/fixtures/passcode-view-ios27.xml");
const NC_IOS27: &str = include_str!("../tests/fixtures/notification-center-ios27.xml");
+ const PARTIAL_IOS27: &str = include_str!("../tests/fixtures/passcode-partial-ios27.xml");
+
+ #[test]
+ fn delete_key_found_by_position_on_real_keypad() {
+ let els = parse(PARTIAL_IOS27, SCREEN);
+ let pad = keypad(&els).unwrap();
+ assert_eq!(delete_key(&els, &pad), Some((327, 857)));
+ // 「紧急情况」在左下,不能认成删除
+ assert!(els.iter().any(|e| e.label == "紧急情况"));
+ }
#[test]
fn cover_sheet_kinds_from_real_trees() {
diff --git a/crates/ictl-wda/tests/fixtures/lockscreen.xml b/crates/ictl-wda/tests/fixtures/lockscreen.xml
index f732d4a..542fbb4 100644
--- a/crates/ictl-wda/tests/fixtures/lockscreen.xml
+++ b/crates/ictl-wda/tests/fixtures/lockscreen.xml
@@ -16,6 +16,8 @@
<XCUIElementTypeKey type="XCUIElementTypeKey" label="8" x="159" y="533" width="112" height="108"/>
<XCUIElementTypeKey type="XCUIElementTypeKey" label="9" x="271" y="533" width="112" height="108"/>
<XCUIElementTypeKey type="XCUIElementTypeKey" label="0" x="159" y="641" width="112" height="108"/>
+ <XCUIElementTypeButton type="XCUIElementTypeButton" label="紧急情况" x="47" y="803" width="112" height="108"/>
+ <XCUIElementTypeButton type="XCUIElementTypeButton" label="取消" x="271" y="803" width="112" height="108"/>
</XCUIElementTypeOther>
</XCUIElementTypeWindow>
</XCUIElementTypeApplication>
diff --git a/crates/ictl-wda/tests/fixtures/passcode-partial-ios27.xml b/crates/ictl-wda/tests/fixtures/passcode-partial-ios27.xml
new file mode 100644
index 0000000..48eeaff
--- /dev/null
+++ b/crates/ictl-wda/tests/fixtures/passcode-partial-ios27.xml
@@ -0,0 +1,282 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- iOS 27.0.1 真机密码键盘留有 2 位残留输入(按 Home 不会清空;键盘隐藏但仍在树里,右下按钮变成「删除」)(2026-11-01 抓取) -->
+<XCUIElementTypeApplication type="XCUIElementTypeApplication" name=" " label=" " x="0" y="0" width="430" height="932" processId="37" bundleId="com.apple.springboard">
+ <XCUIElementTypeWindow type="XCUIElementTypeWindow" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932"/>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932"/>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="152" y="11" width="126" height="37">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="152" y="11" width="126" height="37"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeWindow>
+ <XCUIElementTypeWindow type="XCUIElementTypeWindow" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="112" y="10" width="206" height="52">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="110" y="8" width="210" height="56"/>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="112" y="10" width="206" height="52"/>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="112" y="10" width="206" height="52">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="112" y="10" width="206" height="52"/>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="113" y="11" width="204" height="50"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="112" y="10" width="206" height="52">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="113" y="11" width="204" height="51"/>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="152" y="11" width="126" height="37">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="152" y="11" width="126" height="37"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" name="jindo-container-view:1,client-identifier:com.apple.springboard,element-identifier:systemApertureElementIdentifierLock" x="112" y="10" width="206" height="52">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="102" y="10" width="226" height="62"/>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="112" y="10" width="206" height="52">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="112" y="10" width="206" height="52">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="112" y="10" width="206" height="52">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="112" y="10" width="206" height="52">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" name="regular.view" label="向上轻扫以解锁" x="112" y="10" width="206" height="52">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="112" y="10" width="206" height="52">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" name="proud-lock" label="向上轻扫以解锁" x="129" y="24" width="18" height="24">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="129" y="24" width="18" height="24">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="128" y="23" width="20" height="27">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="128" y="23" width="20" height="27">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" name="已锁定" label="已锁定" x="128" y="23" width="20" height="27"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="273" y="17" width="38" height="38">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="273" y="17" width="38" height="38"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="124" y="24" width="18" height="24">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="124" y="24" width="18" height="24"/>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="124" y="24" width="18" height="24">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="124" y="24" width="18" height="24"/>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="268" y="17" width="38" height="38">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="268" y="17" width="38" height="38"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="112" y="10" width="206" height="52"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="232" y="25" width="9" height="10"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeWindow>
+ <XCUIElementTypeWindow type="XCUIElementTypeWindow" x="0" y="0" width="1290" height="2796">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="1290" height="2796">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="1290" height="2796"/>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="1290" height="2796"/>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="1290" height="2796"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeWindow>
+ <XCUIElementTypeWindow type="XCUIElementTypeWindow" x="0" y="0" width="1290" height="2796">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="1290" height="2796"/>
+ </XCUIElementTypeWindow>
+ <XCUIElementTypeWindow type="XCUIElementTypeWindow" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeWindow>
+ <XCUIElementTypeWindow type="XCUIElementTypeWindow" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeWindow>
+ <XCUIElementTypeWindow type="XCUIElementTypeWindow" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeWindow>
+ <XCUIElementTypeWindow type="XCUIElementTypeWindow" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeWindow>
+ <XCUIElementTypeWindow type="XCUIElementTypeWindow" x="0" y="0" width="1290" height="2796">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="1573" y="-300" width="17" height="17"/>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="1573" y="-300" width="17" height="17"/>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="457" y="34" width="376" height="110"/>
+ </XCUIElementTypeWindow>
+ <XCUIElementTypeWindow type="XCUIElementTypeWindow" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="0" height="0"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeWindow>
+ <XCUIElementTypeWindow type="XCUIElementTypeWindow" name="SBCoverSheetWindow" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-932" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-932" width="430" height="1864">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-932" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-932" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-932" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-932" width="430" height="932"/>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-932" width="430" height="932"/>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-932" width="430" height="932"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-932" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-932" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-932" width="430" height="100"/>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-932" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-134" width="430" height="134">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-134" width="430" height="134">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-134" width="430" height="134">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-134" width="430" height="134">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-134" width="430" height="134">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-134" width="430" height="134">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-134" width="430" height="134"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-134" width="430" height="134">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-134" width="430" height="134"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeButton type="XCUIElementTypeButton" value="关闭" name="flashlight-orb-button" label="手电筒" x="36" y="-134" width="94" height="94">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="-11" y="-181" width="188" height="188"/>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="54" y="-116" width="58" height="58">
+ <XCUIElementTypeImage type="XCUIElementTypeImage" name="flashlight.off.fill" label="手电筒" x="73" y="-106" width="21" height="38"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeButton>
+ <XCUIElementTypeButton type="XCUIElementTypeButton" name="system-orb-button-com.apple.camera.deeplink.button" label="相机" x="300" y="-134" width="94" height="94">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="253" y="-181" width="188" height="188"/>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="318" y="-116" width="58" height="58">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="318" y="-116" width="58" height="58">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="318" y="-116" width="58" height="58">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="318" y="-116" width="58" height="58">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="318" y="-116" width="58" height="58">
+ <XCUIElementTypeImage type="XCUIElementTypeImage" name="camera.fill" label="相机" x="332" y="-99" width="30" height="24"/>
+ <XCUIElementTypeImage type="XCUIElementTypeImage" name="circle" label="圆形" x="334" y="-100" width="26" height="26"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeButton>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-932" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-932" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-932" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="334" y="-889" width="61" height="4"/>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="334" y="-860" width="61" height="3"/>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-932" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-932" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-932" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" name="主屏幕指示器" label="主屏幕指示器" x="138" y="-13" width="154" height="5">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="138" y="-13" width="154" height="5">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="138" y="-13" width="154" height="5">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="138" y="-13" width="154" height="5">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="138" y="-13" width="154" height="5"/>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="138" y="-13" width="154" height="5"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="164" y="-62" width="102" height="19"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="-932" width="430" height="932"/>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" name="passcode-view" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeStaticText type="XCUIElementTypeStaticText" value="输入密码" name="输入密码" label="输入密码" x="173" y="175" width="84" height="27"/>
+ <XCUIElementTypeSecureTextField type="XCUIElementTypeSecureTextField" value="共6位数,已输入2位" name="密码栏" label="密码栏" x="0" y="220" width="430" height="13"/>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="297" width="430" height="655">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="297" width="430" height="655">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="297" width="430" height="655">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="297" width="430" height="655">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="297" width="430" height="655">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="297" width="430" height="655">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="297" width="430" height="655"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="297" width="430" height="655">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="297" width="430" height="655"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="317" width="430" height="615">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="47" y="317" width="336" height="432">
+ <XCUIElementTypeKey type="XCUIElementTypeKey" name="1" label="1" x="47" y="317" width="112" height="108"/>
+ <XCUIElementTypeKey type="XCUIElementTypeKey" name="2" label="2" x="159" y="317" width="112" height="108"/>
+ <XCUIElementTypeKey type="XCUIElementTypeKey" name="3" label="3" x="271" y="317" width="112" height="108"/>
+ <XCUIElementTypeKey type="XCUIElementTypeKey" name="4" label="4" x="47" y="425" width="112" height="108"/>
+ <XCUIElementTypeKey type="XCUIElementTypeKey" name="5" label="5" x="159" y="425" width="112" height="108"/>
+ <XCUIElementTypeKey type="XCUIElementTypeKey" name="6" label="6" x="271" y="425" width="112" height="108"/>
+ <XCUIElementTypeKey type="XCUIElementTypeKey" name="7" label="7" x="47" y="533" width="112" height="108"/>
+ <XCUIElementTypeKey type="XCUIElementTypeKey" name="8" label="8" x="159" y="533" width="112" height="108"/>
+ <XCUIElementTypeKey type="XCUIElementTypeKey" name="9" label="9" x="271" y="533" width="112" height="108"/>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="47" y="641" width="112" height="108"/>
+ <XCUIElementTypeKey type="XCUIElementTypeKey" name="0" label="0" x="159" y="641" width="112" height="108"/>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="271" y="641" width="112" height="108"/>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeButton type="XCUIElementTypeButton" name="紧急情况" label="紧急情况" x="47" y="803" width="112" height="108">
+ <XCUIElementTypeStaticText type="XCUIElementTypeStaticText" value="紧急情况" name="紧急情况" label="紧急情况" x="71" y="847" width="64" height="20"/>
+ </XCUIElementTypeButton>
+ <XCUIElementTypeButton type="XCUIElementTypeButton" name="删除" label="删除" x="271" y="803" width="112" height="108">
+ <XCUIElementTypeStaticText type="XCUIElementTypeStaticText" value="删除" name="删除" label="删除" x="311" y="847" width="32" height="20"/>
+ </XCUIElementTypeButton>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="1864"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeWindow>
+ <XCUIElementTypeWindow type="XCUIElementTypeWindow" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeStatusBar type="XCUIElementTypeStatusBar" x="0" y="0" width="430" height="54">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="54">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="54">
+ <XCUIElementTypeStaticText type="XCUIElementTypeStaticText" value="14:44" name="14:44" label="14:44" x="38" y="19" width="47" height="21"/>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" value="信号强度:3(共4格)" name="蜂窝网络" label="蜂窝网络" x="325" y="21" width="22" height="15"/>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" value="SSID, 3(共3格Wi-Fi信号)" name="3(共3格Wi-Fi信号)" x="351" y="22" width="20" height="14">
+ <XCUIElementTypeImage type="XCUIElementTypeImage" name="wifi" label="Wi-Fi" x="350" y="20" width="22" height="18"/>
+ </XCUIElementTypeOther>
+ <XCUIElementTypeOther type="XCUIElementTypeOther" value="正在充电" name="电池电量80%" label="电池电量80%" x="376" y="21" width="30" height="15"/>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeOther>
+ </XCUIElementTypeStatusBar>
+ </XCUIElementTypeWindow>
+ <XCUIElementTypeWindow type="XCUIElementTypeWindow" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932"/>
+ </XCUIElementTypeWindow>
+ <XCUIElementTypeWindow type="XCUIElementTypeWindow" x="0" y="0" width="430" height="932">
+ <XCUIElementTypeOther type="XCUIElementTypeOther" x="0" y="0" width="430" height="932"/>
+ </XCUIElementTypeWindow>
+</XCUIElementTypeApplication>