Skip to content

Apple's open-source XNU kernel on Android phones: its own loader and drivers, Metal on the Adreno. Runs from RAM; a reboot gives the phone back to Android.

C

fairplayd, checked on the phone: it runs, it does not stay, and it was never the reason

vcvkk175527eff664
diff --git a/README.md b/README.md
index 330e315..3b72d84 100644
--- a/README.md
+++ b/README.md
@@ -144,7 +144,19 @@ codec DMA TX_CDC_DMA_TX_3 и звуковой процессор в поток,
`RC_JOBS=rc.jobs.net`, при загрузке просит об этом штатный configd (`userland/src/net_test.m`), после чего у
системы есть адрес, работают DNS (через mDNSResponder) и HTTPS (CFNetwork). Штатные службы тут же начинают
ходить на серверы Apple (в первые минуты около 30 МБ данных Карт), а приложения Apple — Погода, App Store,
- Подкасты — данных всё равно не получают: им нужна служба `fairplayd`, которой в образе нет. В Настройках
+ Подкасты — данных всё равно не получают. Раньше здесь было написано, что им нужна служба `fairplayd`,
+ которой в образе нет; это оказалось неверно. С корнем на флеше `fairplayd` в образе теперь есть
+ (`mkjobs.py --root-volume`), и на телефоне проверено: ненайденных обращений к `com.apple.fairplayd` больше
+ нет ни одного, но и работать она не остаётся — запускается, тут же выходит с кодом 0, ничего не сказав в
+ журнал, и launchd поднимает её снова раз в 10 секунд (`KeepAlive`, 22 запуска за сеанс; ни одной аварии по
+ сигналу — это не падение, а отказ работать). Скорее всего потому, что ей нужен драйвер ядра:
+ пользовательский клиент IOKit `com_apple_driver_FairPlayIOKitUserClient`, который она называет в своём
+ праве `com.apple.security.iokit-user-client-class`, а такого драйвера здесь нет.
+ Главное же: витрины пусты не из-за неё. В том же сеансе Погода и её виджет не спрашивали `fairplayd`
+ вообще — им не хватало `com.apple.kvsd` (61 обращение; это `syncdefaultsd`) и
+ `com.apple.locationd.synchronous`/`.registration` (у погоды просто нет места, для которого её показывать),
+ а App Store, который запустился, не хватало ровно одной службы — `com.apple.appstored.xpc.request`, то есть
+ `appstored`. И то и другое — слова в `DENY`, а не железо. В Настройках
Wi-Fi остаётся «Выкл.» (это не Wi-Fi). По умолчанию сети нет, и без `QEMU_NET=1` ничего не меняется.
- **Связка ключей (Keychain).** Работает так, как если бы у устройства не было код-пароля и оно всегда было
разблокировано: программы записывают в неё пароли и читают их обратно (wifid — пароли сетей, подключённых из
diff --git a/userland/mkjobs.py b/userland/mkjobs.py
index 798f269..0381ad3 100755
--- a/userland/mkjobs.py
+++ b/userland/mkjobs.py
@@ -17,7 +17,11 @@ left out as too big really is absent. With the iOS volume on the phone's flash a
FLASHBOOT=1), the root is Apple's whole volume: --root-volume names the technical listing of its image
(ios165/rootfs.slt) and a program counts as there if Apple ships it. Seven jobs turn on that --
fairplayd, identityservicesd, passd, assistantd, callservicesd, lskdd, searchpartyd -- and were being
-refused on a flash boot for a reason true only of the thinned copy here. Eight more, Safari's and
+refused on a flash boot for a reason true only of the thinned copy here. (fairplayd now runs on the phone
+and is never missed from a lookup again, but it does not stay: it exits 0 the moment it starts, says nothing,
+and KeepAlive brings it back every ten seconds -- 22 times in a session, not one signal. It wants the IOKit
+user client com_apple_driver_FairPlayIOKitUserClient, which this kernel has not got. The empty App Store and
+Weather were never its doing: see the network section of README.md.) Eight more, Safari's and
AuthenticationServicesAgent, hang on the App cryptex being unpacked beside it at all (see CRYPTEXES
below); a workspace used to lose those silently, which tools/new-workspace.sh no longer does.