Stream cabled iPhones below iOS 27 (or without Xcode 27) through USB capture
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- macos, typescript
- Lĩnh vực
- backend, developer-experience, mobile-dev
Hướng nghiên cứu
Read the proposed spec at https://github.com/arifali123/simlock/issues/1 and ADR draft at https://github.com/arifali123/simlock/pull/2, then inspect the existing code at af8054f and ADR 0031. The issue proposes a separate simlock-usb-capture program and four tasks, but does not identify repository paths or tests. Done means cabled iPhones on iOS 17 or later can stream through USB when CoreDevice cannot, with the stated permission, fallback, and capture-sharing behavior.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
The problem
A physical iPhone or iPad on iOS 17 to 26 can be enrolled and leased, but its screen can't be watched. The stream answers 503 "Physical iPhone streams need iOS 27 or later on the iPhone". On a worker without Xcode 27, no physical iPhone streams at all, because simlock-device-capture only builds there. CoreDevice's media stream (ADR 0031) is the only source simlock has for a physical iPhone.
macOS has a public path to a cabled iPhone's screen: CoreMediaIO, the one QuickTime uses. ADR 0031 rejected it "for now", because the proof of concept never showed sustained frames and the process needs the Camera permission. agent-device now records through it (callstack/agent-device#5201, #5293, #5308, all merged): about 59 fps at 1180×2556 on iOS 18.5, two phones with the same name at once, and a clean end on unplug.
Who runs into this
- Operators who watch a worker's cabled iPhones in the console.
- Lease holders (agents and people) whose leased iPhone runs iOS below 27, or whose worker has no Xcode 27. Most real test phones are on older iOS.
What you would like to happen
- A cabled iPhone or iPad on iOS 17 or later streams on a worker that has granted the Camera permission, with or without Xcode 27.
- Phones that stream today through CoreDevice (iOS 27 and Xcode 27) don't change, and need no Camera permission. CoreDevice stays first; USB capture is used only where CoreDevice can't serve the phone.
- The Camera permission is granted once at the Mac with a command (proposed:
simlock device allow-camera), andsimlock doctorreports when it's missing. The daemon never shows a dialog itself, since workers are often unattended. - A stream that can't start says why: grant the permission, check the cable, rename one of two same-named phones, or retry.
- A stream never takes the phone away from another capture of it, such as an agent-device recording or Xcode's device window.
Anything else
I've written this up as a full spec, following docs/internal/templates/feature.md, with an ADR draft, on my fork. Use as much or as little of it as is useful:
- Spec (problem, examples, behaviours, stored state, interfaces, existing code at
af8054f, four tasks): https://github.com/arifali123/simlock/issues/1 - ADR 0101 draft (Proposed; narrows ADR 0031 §1, §3 and its CoreMediaIO alternative): https://github.com/arifali123/simlock/pull/2
- Measurements on three cabled iPhones (iOS 18.5, 18.6.2, 27.2.1): https://github.com/arifali123/simlock/issues/1#issuecomment-7340555278
Findings from the measurements that shape the design:
- Two USB captures of the same phone run side by side at full rate, and so do a USB capture and a CoreDevice stream. No owner or claim is needed for a phone's screen.
- macOS attributes the Camera permission to the responsible process. Under launchd that is the daemon's
node, so the capture helper exits "not authorized". If the program re-spawns itself with the disclaim attribute (responsibility_spawnattrs_setdisclaim, a private libSystem call), macOS asks about the program itself, and that works from a launchd job too. - The grant is tied to the exact binary. An ad-hoc rebuild, or a copy at another path, is asked again. Releases would need a Developer ID signature for the grant to survive updates. The draft ships ad-hoc with a warning until such credentials exist.
The design proposes a third program, simlock-usb-capture, rather than adding the source to simlock-device-capture, because that program builds only with Xcode 27. It also proposes porting only the capture-source half of agent-device's helper (discovery, matching, the shared host-wide start lock, unplug). Simlock's own encoder and frame envelope stay.
I'm happy to change any of this, or to open the ADR and the implementation here if you want them.
Written by an agent.
- Ngôn ngữ chính
- TypeScript
- Star
- 730
- Fork
- 44
- Merge trung bình
- 15 giờ 28 phút
- Pull request đã merge (30 ngày)
- 387
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của callstackincubator/simlock
-
bug:new
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
callstackincubator/simlock#2088 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug:new
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
callstackincubator/simlock#2080 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
task:ready
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
callstackincubator/simlock#2079 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
platform:ios task:ready
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 18/100
callstackincubator/simlock#2078 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
iOS copy: keep the app database at the copy's own UDIDCó thể đã có người làm @V3RON đã nhận hôm nay. Đang mởplatform:ios task:ready
callstackincubator/simlock#2077 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của callstackincubator/simlock
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
earendil-works/gondolin#222 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
endora-commerce/endora-commerce#2203 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement priority:medium ready-for-human
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
wondermoney/wondermoney#1079 ·
Maintainer thường phản hồi trong vòng 1 ngày