Skip to content

Survey: Jesvi-iOS commits worth porting to the Exynos 9810 (with SHAs and effort) #423

Backlog

Description

@claudiusthebot

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

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 test tools/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 tests tools/aod/test_*.{c,py,m} and tools/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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions