Repository navigation
Description
Survey of Jesvi-iOS (iOS 16.5 on the Galaxy S20, Exynos 990, same HakiOS base; author jesvi-eulah) for work that could move to the Exynos 9810 phones (S9 starlte, S9+ star2lte, Note9 crownlte). This is a list only, with no code. The owner approved cherry-picks with authorship kept on 2026-11-26.
Licences: Jesvi's xnu/hakios.patch and xnu/files/ are APSL-2.0, and everything else is MIT. Anything ported keeps its notice, the author (git commit --author="jesvi-eulah <jesvi22j@gmail.com>") and the source SHA, plus a NOTICE line. That is how #421 and #422 were done.
Effort scale: S is under a day, M is 1-3 days, L is a week or more. All estimates are for the 9810, including a phone test.
Already taken
- Charging: SIOP / computer-port cap / no 9 V with a host. Ideas from fc07d1b, 3a4db07, fb882cf and a57b321; the S9 values come from its own DTS. See max77705: S9 charger guard for iOS 16.5 (max77705_chg=, off by default): Samsung's 5 V limits, temperature bands, SIOP #421.
- microSD driver + IOMedia: b35cfdc (
redwood_sdcard.c) and 0b6bce9 / d838091 (RedwoodSDMedia.cpp), made read only for the S9. See microSD on the Galaxy S9, read only (sdcard=, off by default): Jesvi-iOS's dw-mshc driver + IOMedia moved to the 9810 #422.
1. Files: lifs.kext loader (needed for microSD in Files) — L
Apple's lifs.kext is loaded at run time by the kernel; livefileproviderd and userfsd then come up.
- 28369ab:
redwood_kextload.c,redwood_kextsyms.c,RedwoodKextLoad.cpp. - Fixes on top: 911ea25, 835365f, cb98124, d82f737, 86d3bcb, b94aa37 / 8d605be.
- 4b5cff1: lifs starts.
- cb1fae7: works.
- d838091: loaded at boot.
- 6139189: microSD mounted through LiveFiles at boot (the userfsd start-up wrapper,
prebuilt/userland/sd-userfs-start). - ece3e81: state notes.
The kernel side is SoC-neutral, but it relocates against the kernel's own symbols, so the import list (tools/kext/mksyms.py) must be redone for Scion's fork. There are page-table subtleties too (PXNTable, 16 KB pages). It pairs with #422.
2. Auto-brightness policy and software True Tone — M
- d311ce2: adaptive brightness policy and optional software True Tone bridge (
userland/src/brightness_policy.h, AOSP-style hysteresis and debounce, original C; host testtools/tests/brightness_policy.c). - b19285b and 81e548f: debounce, warmth serialisation, resume after wake.
- cc4fe03: ALSCurveInfo published on the light service.
- 2c6e7a4 and 189f727: the True Tone guard on CBABModuleiOS.
- cc2da5f: auto-brightness back in Settings (ALS in IORegistry), perceptual slider.
- 03bae7c and 7daacec: light sensor every 1 s with the display on.
- Doc:
docs/devices/x1slte/auto-brightness.md.
The S9 already reports lux to CoreBrightness through the sensor hub (scion-starlte SENSORS.md, step 6). The policy is user space and portable; the curve anchors need S9 panel nits (s6e3ha8). True Tone needs a CCT source: the S9's light sensor reports lux only through our hub driver today, so it would stay the software approximation.
3. Always-On Display — M/L
- 62d0a99: AOD merge, native, default off.
- eab6c8a: panel dim in AOD (
kern.redwood.display_aod), lift-to-wake, Low Power Mode handling. - 8c6d17b, 19621d7, 00b3d66, a7e9e0f: AOD brightness rules.
- c1c5d0e: the sysctl.
- 5068976, b19207e, 4a9d807: the CoverSheet appearance test and persisted settings.
- 75dbfbb / 700ef5a / 0a4c962: screen-off/AOD power — small cores only, 500 ms governor tick.
tools/aod/(MIT), with host teststools/aod/test_*.{c,py,m}andtools/aod/panel/alpm.h.
The user-space part (tools/aod) is portable. The panel part is not: the S20 uses a different panel. For the S9's s6e3ha8 it needs Samsung's ALPM/HLPM commands from the S9 BSP panel driver, read for facts only. The governor half maps onto hakios.scion_gov.c.
4. Finder / file access over USB — S/M
- aecd230: Finder local management and unprotected app documents.
- 2e0b573, 8c616be, d4fb6b1: the Finder sharing host as a hidden native user app; the shared folder is On My iPhone.
- 49be133, 2d6bd39, c23c5f3:
register_finder_host, which registers the Files extensions with LaunchServices. - 820c955 and 0f5de5b: Finder after a restart.
- e6fc727: the USB mux worker sleeps when quiet (an idle-heat fix: 880 big-core wake-ups a second). This one is also worth having on its own for Scion's usbmux, if it polls the same way.
Mostly user space and image build. It depends on Scion's usbmux path; check whether Scion's hakios.dwc3.c / usbmux poll the same way first.
5. Camera ISP tooling — S (tools) / L (use)
- fd4773d: Samsung ISP block schema recovered; CCM, shading and black-level fields decoded.
- 5e32a58: S20 stock sensor tables audited; ISP tuning containers decoded.
- 2a7f1fb, 8f21cb9, 23e4ed4: frame black-state and rear exposure controls (
tools/camera/test_isp_frame_state.c). - 2e5b7df and 0480d7d: a foreground-only display brightness rule for the camera (
tools/camera/brightness/,RedwoodCameraBrightness.dylib). xnu/files/bsd/dev/redwood_camera_regdump.h.
The decoders apply to Samsung's tuning containers in general, so they are worth a look for the 9810's IS_ISP / 2L3 / 3M3 tuning (see docs/exynos9810-cameras.md). The S20 sensor tables themselves do not apply. The brightness rule is small and portable.
6. Smaller items
- Charging: 0496582 (respect the USB PD source current limit) and a13e406 (9 V retry after a temperature fallback). These are for the later AFC/PD step after max77705: S9 charger guard for iOS 16.5 (max77705_chg=, off by default): Samsung's 5 V limits, temperature bands, SIOP #421. They are S20 PD details, but the logic transfers.
- Status bar: 6aef6b0 and 838661d (status-bar island charging item). Cosmetic, S.
- Thermistors: a35118c (thermistors on the Exynos ADC with Samsung's tables). Scion already reads the battery thermistor (ch 4); the charger (ch 3) and USB-port (ch 1) channels would be new for the S9. They need the S9 DTS tables. S. Worth doing before AFC (max77705: S9 charger guard for iOS 16.5 (max77705_chg=, off by default): Samsung's 5 V limits, temperature bands, SIOP #421 follow-up), because Samsung's 9 V rule uses the charger thermistor (46 °C).
Activity