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
Two things about DENY that are method, not facts about one daemon
vcvkkfff242d63a3b
diff --git a/README.md b/README.mdindex 562bcb5..d80235c 100644--- a/README.md+++ b/README.md@@ -1115,6 +1115,16 @@ REST=1 userland/build.sh`REST=1` добавляет ~375 штатных служб iOS «по требованию» (без них часть приложений зависает на старте;с корнем на флеше — на семь больше, см. `FLASHBOOT=1` ниже);список исключений — `DENY` в `userland/mkjobs.py`, пропустить службу из него для опыта: `ALLOW="слово"`.+Две вещи про этот список стоит знать заранее. Во-первых, демон может вести себя плохо **из-за другой строки+того же списка**, и судить о нём по одному слову за раз нельзя: `cloudd` выглядел службой, которая стоит+домашнего экрана — и на телефоне, и в QEMU, — пока не выяснилось, что он тысячами переспрашивает+`com.apple.nsurlsessiond`, которого в образе не было, потому что тот стоял в том же `DENY`. Убрали одно+слово — `cloudd` перестал крутиться и домашний экран вернулся. Всё, что написано про демона ниже, измерено+при том наборе запретов, какой был тогда; если с тех пор какое-то слово ушло, измеряйте заново.+Во-вторых, сравнивать надо с опытом того же дня. Все неудачные прогоны оказались позже всех удачных, а на+машине в это время крутился чужой QEMU, и напрашивалось объяснение «машина занята». Оно было неверным:+один удачный прогон стоял ровно между двумя неудачными. Порядок во времени — не причина; рядом с изменением+должен стоять контроль.Остальные переменные (`JOBS`, `OSLOG`, `INJECT`, `RC_JOBS`) описаны в начале `userland/build.sh`.**Служба push-уведомлений (`apsd`).** Из всех служб, которых в образе не было, её спрашивали чаще всех:diff --git a/userland/mkjobs.py b/userland/mkjobs.pyindex 7891367..90deaa3 100755--- a/userland/mkjobs.py+++ b/userland/mkjobs.py@@ -40,7 +40,21 @@ import osimport plistlibimport sys-# substrings of labels. (nsurlsessiond is not among them either, taken out in the sileo2 copy: it is the+# Substrings of labels -- and two things to know before adding to this list or believing anything in it.+#+# A daemon here may be misbehaving BECAUSE OF ANOTHER ENTRY, so the tuple cannot be judged one line at a+# time. cloudd was the proof: it looked like a daemon that cost the home screen, on the phone as well as in+# QEMU, until it turned out to be retrying com.apple.nsurlsessiond thousands of times because nsurlsessiond+# was itself denied. With that one word gone, cloudd stops spinning and the home screen comes back. Anything+# written below about a daemon was measured against whatever else was denied at the time, which may no longer+# be what is denied now -- when a note here was written before a word came out, retest before trusting it.+#+# And measure against a control from the same afternoon. Every stalled run of mine happened to be later than+# every good one, and another session's QEMU was running on the same machine, so the obvious reading was that+# the machine was loaded rather than that the daemons did it. It was not: one good run sat squarely between+# two stalled ones. A time-ordered pattern is not a cause; put a control next to the thing you changed.+#+# (nsurlsessiond is not among them either, taken out in the sileo2 copy: it is the# daemon that carries out background URLSession downloads, and without it an application's download never# starts and never fails -- Sileo sits on "Queued" for ever. It matters here for a second reason, below:# cloudd spins on it when it is missing.