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

chore: drop the mentions of another project from code comments (#138)

Qinghe Li45553344e3fa
diff --git a/crates/ictl-ax/src/session.rs b/crates/ictl-ax/src/session.rs
index 9e1b2a3..a359652 100644
--- a/crates/ictl-ax/src/session.rs
+++ b/crates/ictl-ax/src/session.rs
@@ -4,7 +4,7 @@
//! The handshake matters: the phone asks the host `hostAPIVersion` and wants every message acknowledged. A host
//! that doesn't answer still gets a first tree but no more pushes once WebDriverAgent isn't running (our rounds 1
//! and 2, `docs/dev/ios27-native.md`). Answering as Xcode does (7), acknowledging, and waiting for
-//! `deviceAPIVersion` before `clientNeedsAccessibility:` is what Pinky does (DIYgod/pinky `rax.go`, Apache-2.0).
+//! `deviceAPIVersion` before `clientNeedsAccessibility:` keeps it answering without WDA (round 3).
use std::collections::{HashMap, HashSet, VecDeque};
use std::sync::atomic::{AtomicU32, Ordering};
@@ -385,8 +385,8 @@ impl<S: AsyncRead + AsyncWrite + Unpin + Send + 'static> Session<S> {
/// any of the traits `prune` are listed, but not walked into. Also says whether the walk got to the end.
///
/// This is how the screen is read: the phone pushes a tree by itself only when the frontmost app changes (and on
- /// connecting), not when an app changes its own screen (iPhone 15 Pro Max, iOS 27.2.1, 2026-11-15; Pinky reads
- /// the same way, DIYgod/pinky `rax.go`). Asking for a tree dump (request type 11) closes the connection
+ /// connecting), not when an app changes its own screen (iPhone 15 Pro Max, iOS 27.2.1, 2026-11-15).
+ /// Asking for a tree dump (request type 11) closes the connection
pub async fn walk(
&self,
root: ObjectRef,
diff --git a/crates/ictl-ax/src/tree.rs b/crates/ictl-ax/src/tree.rs
index 7791100..d523327 100644
--- a/crates/ictl-ax/src/tree.rs
+++ b/crates/ictl-ax/src/tree.rs
@@ -1,8 +1,7 @@
//! Elements as remoteAXService describes them, and the trees the phone pushes.
//!
-//! Attribute numbers are AccessibilityPlatformTranslation's, as iOS 27 answers them (not public; the same numbers
-//! as Pinky, DIYgod/pinky `internal/driver/ios/rax.go`, Apache-2.0, and our own round of experiments,
-//! `docs/dev/ios27-native.md`).
+//! Attribute numbers are AccessibilityPlatformTranslation's, as iOS 27 answers them (not public; found in our own
+//! rounds of experiments, `docs/dev/ios27-native.md`).
use std::collections::{HashMap, HashSet};
diff --git a/crates/ictl-ax/src/xml.rs b/crates/ictl-ax/src/xml.rs
index d5634fe..8458183 100644
--- a/crates/ictl-ax/src/xml.rs
+++ b/crates/ictl-ax/src/xml.rs
@@ -6,7 +6,6 @@
//! hosting them, which carries [`trait_bit::REMOTE_HOST`] and comes right before them; they are moved to screen
//! points by that host. Those without a host (home screen widgets) can't be placed and are left out. A process
//! whose elements are mostly single characters is the on-screen keyboard: it becomes one `Keyboard` element.
-//! The same rules as Pinky (DIYgod/pinky `observe_rax.go`, Apache-2.0).
use std::collections::{HashMap, HashSet};
use std::fmt::Write;
@@ -192,8 +191,7 @@ fn place(els: &[Element], keyboard: &HashSet<i64>, web: &HashSet<i64>) -> Vec<Op
Some((dx, dy)) => out.push(Some((x + dx, y + dy, w, h))),
// the keyboard is kept (it marks the keyboard as shown) even when its keys can't be placed
None if keyboard.contains(&e.pid()) => out.push(Some((0.0, 0.0, 0.0, 0.0))),
- // a page (WebKit's web content process) is listed without a host, in screen points (Pinky
- // `webcontent.go`)
+ // a page (WebKit's web content process) is listed without a host, in screen points
None if web.contains(&e.pid()) => out.push(Some((x, y, w, h))),
None => out.push(None),
}
diff --git a/crates/ictl-device/src/ax.rs b/crates/ictl-device/src/ax.rs
index e6d4e27..263fca2 100644
--- a/crates/ictl-device/src/ax.rs
+++ b/crates/ictl-device/src/ax.rs
@@ -12,7 +12,7 @@ pub type AxSession = ictl_ax::Session<Box<dyn ReadWrite>>;
/// The handshake answers in tens of milliseconds over USB
const CONNECT_WAIT: Duration = Duration::from_secs(8);
-/// A walk of the app reads at most this many elements, within this long (Pinky's bounds over USB)
+/// A walk of the app reads at most this many elements, within this long
const WALK_LIMIT: usize = 400;
const WALK_BUDGET: Duration = Duration::from_secs(4);
/// At most this many of SpringBoard's elements are read over the app (the status bar and what covers the app)
@@ -166,7 +166,7 @@ impl Tunnel {
}
// SpringBoard's application element answers whichever app is in front: its children are the status bar's items
-// and whatever it draws over the app (Pinky, DIYgod/pinky `springboard.go`); see `Tunnel::ax_overlays`
+// and whatever it draws over the app; see `Tunnel::ax_overlays`
/// The frontmost app's element, asked again for up to `wait` while the phone has none (between two apps)
async fn frontmost(s: &AxSession, wait: Duration) -> Result<ObjectRef> {
diff --git a/crates/ictl-device/src/coredevice.rs b/crates/ictl-device/src/coredevice.rs
index b9b7d44..f7bb2ca 100644
--- a/crates/ictl-device/src/coredevice.rs
+++ b/crates/ictl-device/src/coredevice.rs
@@ -24,7 +24,7 @@ impl RsdService for AppService {
}
/// The launch request (`com.apple.coredevice.feature.launchapplication`), with `url` as the payload URL when given
-/// (as `devicectl device process launch --payload-url`; the same fields as Pinky's `launchInput`)
+/// (as `devicectl device process launch --payload-url`)
pub(crate) fn launch_request(bundle_id: &str, url: Option<&str>) -> Dictionary {
let mut platform = Vec::new();
// an empty dictionary into memory: cannot fail
diff --git a/crates/ictl-device/src/pasteboard.rs b/crates/ictl-device/src/pasteboard.rs
index 3c93ad5..c5e8e25 100644
--- a/crates/ictl-device/src/pasteboard.rs
+++ b/crates/ictl-device/src/pasteboard.rs
@@ -95,8 +95,7 @@ static WRITES: AtomicI64 = AtomicI64::new(0);
///
/// 一定要带 `sourceMetadata`:手机上的 dtpasteboardd 只在有它时才按「只写本机」写入(UIPasteboard
/// `setItemProviders:localOnly:expirationDate:`,Xcode 从电脑同步剪贴板也这样)。不带的话,写进去的内容会经「通用剪贴板」
-/// 提供给机主的其他苹果设备,把那边的剪贴板也换掉。字段同 Pinky(DIYgod/pinky `internal/driver/ios/pasteboard.go`,
-/// Apache-2.0):写入方的 nonce、名字、递增的计数
+/// 提供给机主的其他苹果设备,把那边的剪贴板也换掉。字段:写入方的 nonce、名字、递增的计数
fn set_message(items: &[Item]) -> XPCObject {
let items = items
.iter()