Skip to content

feat(port): SM8850 input, read-only brightness probe and display diagnostics - #1

Merged
YMGPwcca merged 491 commits into
mainfrom
feat/oneios-sm8850-m3q
Nov 23, 2026
Merged

YMGPwcca merged 491 commits into
mainfrom
feat/oneios-sm8850-m3q

Conversation

@YMGPwcca

@YMGPwcca YMGPwcca commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Galaxy S26 Ultra / SM-S948B / m3q — hardware host port

Verified physical evidence

  • CPU topology: eight online cores (6 at capacity 741, 2 at 1024); host CPU bridge runs. GPU gpuctl v0.1.9 nodes/routes/probe/submit/large all PASS, zero GPU faults or async errors.
  • Internal display 1440×3120 up to 120Hz; sec_touchscreen has native direct MT axes. Connected HUAWEI Band also advertises direct MT, so internal screen must be prioritized.
  • Real S Pen event trace 17.82 s: 3,507 frames; BTN_DIGI(0x140) DOWN is BTN_TOOL_PEN (same Linux code). Two complete hover/contact/lift/leave cycles observed. Retained strict pen recognition and added real-trace tests; no special override needed.

Changes implemented

  • CPU fixture and regression checks; companion OneOS submodule points to the development fork.
  • Input scanner prefers sec_touchscreen over a paired wearable's virtual direct touchscreen, regardless of unstable event numbers.
  • brightctl inspect is a passive read-only sysfs snapshot, separate from brightctl info (which calls br_bright_open() and may write brightness, touch power or ALS). S26 fixture tests check zero-max panel, positive-max panel0-backlight with zero current/actual brightness, and unchanged fake sysfs checksums.
  • displayctl test refuses --takeover even if forwarded after --. Existing visual overlay test and new no-takeover test run without touching the real phone.
  • Dedicated host CI jobs for input, bridges, brightness passive probe and display safety, ASan/UBSan where available.
  • Documentation: docs/SM8850_PORT.md, brightness and display READMEs.

Security/safety boundary

  • OneOS diagnostics-only app and root allowlists still block any SM8850 hot-switch; no hosted XNU boot, display takeover, sysfs writes or One UI framework shutdown has been attempted on this device.
  • brightctl info/levels/als remain unapproved for S26; only the new inspect path is eligible for physical read-only testing after build.
  • Runtime build + host CI must be green before handing a diagnostic binary to the phone; physical brightness, display pattern, input-to-guest and recovery still unverified.
  • No Apple images or firmware included.

Companion OneOS: YMGPwcca/OneOS#1

S26 Ultra brightness calibration (2026-11-16)

  • Normal manual slider: Android screen_brightness 49 → sysfs panel0-backlight/brightness 512; 115 → 1228; 222 → 2300; full 255/255 → 2300.
  • The backlight node's max_brightness=12750 is a driver maximum, not the verified manual slider maximum. The purpose and safety of >2300 are not established.
  • Proposed opt-in cap for future supervised SM8850 brightness tests: ONEIOS_BRIGHT_MAX=2300; new fake-sysfs test confirms o.ceiling=2300 without changing the S24 default.
  • No active brightctl info/levels, sysfs brightness writes, hot-switch or guest boot on SM8850.

Physical S26 display diagnostic and zero-frame fix (2026-11-16)

  • The user verified the SHA-256 of the CI runtime artifact and staged only the diagnostic tools under /data/local/tmp/oneios-m3q-diag.
  • On-phone brightctl inspect PASS: panel0-backlight max 12750, brightness 645 at capture, actual 0, bl_power 0, and clean read-only exit.
  • On-phone first displayctl test --seconds 5: detected native 1440×3120/120Hz panel, sRGB SurfaceFlinger layer created and removed, but 0 frames posted despite 482 pattern flushes. This is not yet a visual display PASS.
  • Root cause: standalone displayctl incorrectly launched the helper with --session DIR; oneios-display then waited for DIR/ready (created by XNU on actual guest boot, absent in a standalone test). Corrected displayctl to use --socket PATH so its built-in no-ready-hold path posts the first diagnostic frame immediately.
  • Added host tests for --socket argument wiring, protocol and cleanup, and fail-closed validation of forwarded flags: --takeover, --session, --socket, --wait, --lib, --logical are rejected in displayctl test.
  • Later resolved: the new binary posted frames and rendered visible color bars/white square on SM8850; after the one-union-flush-per-step fix the user's repeat physical test confirmed no flicker. The real XNU --session first-frame hold remains unchanged.

Second physical display diagnostic — 578 posted frames on SM8850

  • With the previously staged, checksum-verified runtime, a temporary diagnostic-only shell wrapper converted the old displayctl --session DIR argument into oneios-display --socket DIR/display.sock. This exercises the exact existing no-ready-hold path that the new displayctl now calls directly; the newly compiled ARM64 diagnostic binary itself was not yet tested.
  • On-phone output: oneios-display: first frame posted (1440×3120, BGRA_8888, sRGB), the socket closed after 578 frames, layer removed, and displayctl: 387 frames in 5.01 s / displayctl: ok.
  • Host frame submission and automatic layer teardown PASS; visual confirmation followed in the next physical tests. XNU boot, iOS Metal and recovery remain untested.

Visible output verified; diagnostic animation flicker mitigation

  • The S26 Ultra owner saw the color bars and a white square move on the actual panel, and the layer returned to One UI. Display diagnostic visual rendering PASS. Motion looked smooth at 120 Hz but the user reported flicker on the square; 387 pattern updates/5.01s versus 578 buffer posts do not establish 120 application FPS.
  • Root-cause candidate from code: displayctl sent two independent damage flushes per movement, enabling partial interim buffers and stale square edges. Changed the diagnostic to send one union damage rectangle only after background restoration and new-square drawing.
  • New host regression checks raw wire flush count: exactly one initial full flush plus one partial flush per completed pattern step for BGRX and RGBA16F. Does not change production XNU frame transport; a producer/consumer shared-memfd race may still cause flicker and requires separate investigation if the retest fails.
  • Physical acceptance PASS: verified checksum of new ARM64 runtime artifact from Actions run 43799119719; the updated displayctl was run without the socket wrapper, showed real color bars and moving square, and the user confirmed no flicker. oneios-display posted 369 buffers; displayctl reported 377 animation steps in 5.01 s; layer cleanup/One UI restoration succeeded. No hot-switch.

Native FP16 physical display verification (2026-11-16)

  • User ran displayctl test --seconds 5 --format rgba16f on the S26 Ultra's internal 1440×3120 panel with One UI still active; no takeover.
  • oneios-display actually posted native RGBA_FP16 format 22 buffers (stride 1472), scRGB-linear dataspace 0x18410000, 459 buffer posts, then layer removed, exit 0. Sender reported 496 moving-pattern steps over 5.00s. No RGB8 fallback.
  • PASS for FP16 allocation, tagging, posting and teardown; not yet validated by the user visually for P3 gamut separation, HDR headroom or FP16 flicker. 120 Hz is reported panel capability, not proven sustained 120 application FPS.
  • Next: read-only SM8850 battery and thermal inventory, then selective reversible bridge testing and recovery design. No XNU boot/hot-switch.

S26 Ultra battery + thermal inventory (2026-11-16)

  • batteryctl Samsung/sysfs backend PASS on the phone: 90%, discharging, 30.1°C, 4327 mV, -270 mA, 5000 mAh full/design, 28 cycles; 1000 minutes is only an instantaneous estimate.
  • thermalctl on the original runtime misclassified cpu-hw-trip-0 / cpu-hw-trip-1 as live CPU temperatures because of broad cpu-* matching. Both expose 105000 m°C while live CPU max was 37.4°C, GPU max 35.9°C, DDR 35.5°C, LRP case 32.1°C and battery 30.1°C. The result was false SoC 105°C / iOS trapping (40); host CPU thermal step remained 0.
  • Added exact-family exclusion cpu-hw-trip-* to the Samsung thermal sysfs classifier. Host fixtures assert the two pseudo-zones do not create false pressure, a real CPU sensor at 105.5°C still triggers TRAPPING, and the observed cool S26 readings return nominal (0). Existing S24 limits and thermal-safety behavior unchanged.
  • On-device retest PASS: SHA256-verified ARM64 runtime from Actions run 43802356785; updated read-only thermalctl reported 28 accepted zones, CPU/SoC 40.5°C (cpu-0-5-1), GPU/DDR 37.4°C, AP 33.3°C, case LRP 32.4°C, battery 29.6°C, level nominal (0) / all pressure rules 0 / step 0. The former 105°C pseudo-zone and false trapping have disappeared. Existing host regression tests preserve true overheat alerts. Host CI push & PR + runtime build succeeded at original thermal-fix commit d84ecc4. Hot-switch remains prohibited.

SM8850 Wi-Fi status probe (2026-11-16)

  • The owner ran the checksum-verified wifictl status on a real S26 Ultra, with One UI still connected to Wi-Fi. PASS: wlan0, Supplicant AIDL android.hardware.wifi.supplicant.ISupplicant/default, matching interface/station addresses (MAC omitted), one network ID 0, -49 dBm signal, TX/RX link rates 468/526 Mb/s, 5805 MHz (5 GHz channel 161), command exited ok.
  • This validates only AIDL service lookup, station status and signal poll, not guest Wi-Fi association or IP data transfer. The wifictl scan implementation issues NL80211_CMD_TRIGGER_SCAN and GET_SCAN, with possible transient latency but no network removal; passive-to-active scan is next only after status PASS.
  • Physical scan PASS (2026-11-16): wifictl scan 6 wlan0 returned 46 BSS/network entries across 2.4/5 GHz with WPA2, mixed WPA2/WPA3 and hidden-SSID results, ending scan: 46 networks and ok. All SSIDs/BSSIDs were redacted. No network join or One UI ownership change was requested; guest en0, DHCP and data path remain unverified.
  • join and restore remain off-limits until separately planned reversible testing and recovery checks; XNU hot-switch is still gated.

S26 Ultra post-scan Wi-Fi + passive haptic inventory (2026-11-16)

  • A second wifictl status after scanning 46 BSS entries remained PASS: same connected network ID 0 / wlan0 / AIDL Supplicant, -55 dBm, TX/RX link rates 234/433 Mb/s, 5805 MHz. The station MAC matched the prior snapshot but is deliberately omitted from this public report. No association loss was observed.
  • Read-only getevent -pl found /dev/input/event7 sec_vibrator_inputff with FF_PERIODIC, FF_SINE, FF_CUSTOM, FF_GAIN (no FF_RUMBLE). The Samsung haptic backend matches device names/capabilities while enumerating event*, so the S24 example's event8 versus S26 event7 requires no code change.
  • Haptic capability PASS; actual vibration NOT yet tested. bridgectl haptic opens evdev and sends FF_GAIN=10000, uploads an effect and plays it; a brief low-intensity user-observed test is next, with haptic-pattern and Bluetooth controller takeover still deferred.

S26 Ultra active haptic test: EINVAL — diagnose, do not retry stronger effects (2026-11-16)

  • With SHA256-verified bridgectl from the existing runtime, ONEIOS_HW_BACKEND_HAPTICS=samsung bridgectl haptic 80 150 found the correct /dev/input/event7 sec_vibrator_inputff node, but printed request (80 ms, intensity 150) failed: Invalid argument, 0 effects played, 1 failed. The original CLI misleadingly exited ok.
  • This is active haptic FAIL; capability detection had passed earlier. The mapped sine is FF_PERIODIC/FF_SINE, 80 ms / period 6 ms / level 72. Original logging merges EVIOCSFF upload with EV_FF play, so the actual failed step is still unknown; do not assume S24-specific waveform constraints apply to the S26 driver.
  • Diagnostic commits add stage-aware worker error logs (effect upload vs play, parameter values, gain failures), fail-closed CLI result when no effect played or any effect failed, fake-backend EINVAL tests covering both failure phases, and bridgectl haptic-inspect, an O_RDONLY-only evdev query of name, waveform support and effect slots. No haptic waveform/driver behavior was changed.
  • Next gate: latest host/Android CI, then on-phone passive haptic-inspect and possibly read-only kernel log inspection. Defer all further active pulses, patterns, HAL takeover and hot-switch until driver contract and the failed operation are identified.

S26 haptic-inspect physical acceptance (2026-11-16)

  • The owner downloaded checksum-verified runtime from Actions 43821960082 and ran the new read-only bridgectl haptic-inspect on the physical S26 Ultra. PASS: /dev/input/event7, name sec_vibrator_inputff, supported FF_PERIODIC / FF_SINE / FF_CUSTOM / FF_GAIN, max_effects=4, and exit ok. Four slots is a capacity, not a count of currently available slots, and does not explain the earlier EINVAL.
  • Filtered dmesg showed cs40l26 53-0040 routine system suspend/resume and IRQ on/off but no explicit FF upload or playback error in the captured tail; the attempted sysfs event7/device readlink produced no target.
  • Public Linux FF specification separates EVIOCSFF upload from EV_FF playback; generic CS40L26 driver sources do not prove Samsung's exact S26 contract. The instrumented bridgectl on the phone now logs the rejected stage, effect parameters and fails the CLI correctly. Active haptic remains FAIL, no hardware waveform fix yet.
  • Next optional diagnostic: exactly one repeat of the previously attempted 80 ms / 150 intensity request using this new binary, with no higher amplitude, pattern, takeover or hot-switch; inspect the stage-specific error before deciding on a Samsung-specific fix.

Actual S26 failure isolated: FF_SINE ioctl upload EINVAL (2026-11-16)

  • The updated stage-aware bridgectl was run once with the same 80 ms / intensity 150 parameters. Exact result: effect upload failed: Invalid argument (80 ms, intensity 150, period 6 ms, level 72, effect id -1), 0 effects played / 1 failed, CLI exit 1. Thus ioctl(EVIOCSFF) fails before a playback event can be issued. The new fail-closed status has been physically confirmed.
  • In dmesg, Android's normal haptics successfully call cs40l26_custom_upload (custom_len=2), then cs40l26_playback_effect for effect ID 0, with start/stop transitions. Firmware trigger indices in logs do not establish a safe FF_CUSTOM payload or mapping. Four slots advertised does not establish free capacity; kernel ff-core typically returns ENOSPC for exhausted slots, not this EINVAL.
  • No speculative change to the physical waveform or production bridge. Added a new bridgectl haptic-hal-inspect which accesses android.hardware.vibrator.IVibrator/default through the existing AIDL client, reads interface version and getCapabilities() only, then releases its binder handle without on(), off(), setAmplitude(), FF_GAIN or EVIOCSFF. Fake-binder phone tests verify no active HAL calls. It returns an error without automatically falling back to active evdev when HAL is missing.
  • Next: CI pass, new checksum-verified ARM64 runtime, passive haptic-hal-inspect on S26 and optional service list / dumpsys vibrator; only then decide whether a separately authorized brief HAL actuation trial is justified. Haptic playback is still FAIL; no hot-switch, no FF_CUSTOM guesses.

S26 Ultra Vibrator HAL probe: AIDL v3, capabilities 0x3c (2026-11-16)

  • The real S26 Ultra registers android.hardware.vibrator.IVibrator/default, IVibratorManager/default, IVibratorControlService/default, plus external_vibrator_service and vibrator_manager.
  • Owner verified SHA256 of Actions 43824202427 runtime, staged its new bridgectl and ran passive haptic-hal-inspect. Output: android.hardware.vibrator.IVibrator/default version 3 capabilities 0x3c (amplitude=yes); getCapabilities only; no on, off, amplitude or FF events; exit ok. Vibrator HAL lookup/version/capabilities PASS; no active actuation performed.
  • The 0x3c AOSP bitmask means normal amplitude control (0x04), external control capability (0x08), amplitude in external mode (0x10) and effect composition (0x20). AIDL v3 does not establish haptic quality or iOS compatibility; there is no reason to enter external control for normal on(ms).
  • The Samsung FF_SINE path remains FAIL at EVIOCSFF, though the platform's FF_CUSTOM path works for Android. Next optional supervised active test is a single ONEIOS_HW_BACKEND_HAPTICS=treble ONEIOS_HW_FALLBACK=0 bridgectl haptic 80 150 on an otherwise idle phone; this will call HAL on/amplitude and off on closure and might interrupt a concurrent Android buzz. Tactile confirmation + stage logs required. Do not switch production defaults, guess FF_CUSTOM ids, or hot-switch before physical confirmation.

S26 Ultra haptic HAL active playback PASS; perceived effect faint (2026-11-16)

  • User explicitly ran ONEIOS_HW_BACKEND_HAPTICS=treble ONEIOS_HW_FALLBACK=0 bridgectl haptic 80 150 on the S26 Ultra. Real AIDL IVibrator/default v3 (0x3c) accepted the on/amplitude requests: 1 effect played, 0 failed, exit code 0. User confirmed a vibration was physically present but almost imperceptible.
  • The software's S24-based linear intensity mapping produces magnitude 72/255 ≈ 28.2% requested HAL amplitude for 150/1000; 80 ms is short. Neither the amplitude request nor HAL success establishes motor displacement or subjective strength. HAL's 6 ms period value is logged but unused by on(ms). The current order is on(80) then setAmplitude(0.282), and onset latency is unmeasured.
  • Next supervised calibration: one treble-only, no-fallback 200 ms / intensity 400 pulse (126/255 ≈ 49.4% requested amplitude), then document perceived strength. Do not run patterns, guess Samsung FF_CUSTOM trigger IDs, change the production default or hot-switch.
  • The former samsung evdev backend still FAILS at FF_SINE EVIOCSFF upload with EINVAL on SM8850; Vibrator HAL is the proven functional alternate path, but tactile calibration and iOS-like pulse quality are still pending. CAP_COMPOSE_EFFECTS (0x20) is an untested candidate for later finer-grained effects.

S26 HAL strength calibration: second test still very weak (2026-11-16)

  • User reports ONEIOS_HW_BACKEND_HAPTICS=treble ONEIOS_HW_FALLBACK=0 bridgectl haptic 200 400 is still very weak, despite longer duration (80 → 200 ms) and mapped HAL amplitude request rising from 72/255 (28.2%) to 126/255 (49.4%). The second command's detailed CLI logs/exit code were not supplied; do not infer a second verified zero-error transaction from the subjective report alone.
  • HAL AIDL v3 discovery, primitive capabilities mask 0x3c and the first 80 ms / intensity 150 real playback succeeded, but tactile calibration is not yet usable.
  • Existing Treble code executes on() before setAmplitude(); HAL on() ignores the software sine period. More force cannot responsibly be treated as the fix without measuring behavior and checking vendor native haptic profiles.
  • Next: read-only vibrator dumpsys and relevant settings get/list inspection, compare default One UI haptic feel, then consider read-only AIDL supported primitive/duration inspection followed by an explicitly authorized bounded compose() test. No FF_CUSTOM guesses, full-scale amplitude sweep, haptic-pattern, production default switch, or hot-switch.

S26 system vibration settings; native AIDL primitive inventory (2026-11-16)

  • Read-only settings probe: haptic_feedback_enabled=1, keyboard_vibration_enabled=1, SEM_VIBRATION_FORCE_TOUCH_INTENSITY=4, SEM_VIBRATION_NOTIFICATION_INTENSITY=5, media_vibration_intensity=5. Do not interpret Samsung values as percentages or conclude the system haptics are disabled. dumpsys vibrator returned Can't find service because the registered framework service is vibrator_manager; use dumpsys vibrator_manager for the follow-up.
  • Still-open issue: IVibrator.on(ms) via Treble AIDL is barely perceptible at both 80 ms / intensity 150 (28.2% requested amplitude) and 200 ms / intensity 400 (49.4% requested amplitude). Android's native FF_CUSTOM driver playback works; no vendor trigger IDs are guessed.
  • Added bridgectl haptic-hal-primitives, a read-only AIDL v3 query of getCapabilities(), composition delay/size limits, getSupportedPrimitives(), duration per reported primitive and getSupportedEffects(). It does not call on/off/setAmplitude/perform/compose/setExternalControl, and does not open evdev for writes. New fake HAL responses and host phone-mock acceptance checks assert no state-changing calls. CI and on-phone primitive inventory remain pending.
  • Wait for actual supported AIDL primitives/preset effects before authorizing any one-shot vendor-native effect trial. Do not change production backend defaults or hot-switch.

GitHub Actions optimized: no APK builds (2026-11-16)

  • Updated .github/workflows/release.yml on this draft branch: removed the Ubuntu apk job and the macOS apk-macos job completely, plus Gradle/SDK/setup-java steps, APK artifact handling, APK-related release conditions and both/runtime only/apk only manual dispatch choices.
  • The workflow retains plan, runtime, release. PR/main builds still publish checksum-verified oneios-runtime Actions artifacts; main tags or manual dispatches release runtime + sha256 only, preserving immutable asset digest checks and main-commit verification.
  • The actual new Actions run 43832017741 was inspected: only plan (success) and runtime (running), with no APK jobs. This prevents expensive MacOS/Gradle/Android APK builds on hardware bridge changes.
  • Latest user-supplied read-only S26 HAL native effect inventory: IVibrator AIDL v3 mask 0x3c, composition delay max 1000 ms, composition size max 10, eight primitives CLICK (20 ms), THUD (300), SPIN (130), QUICK_RISE (150), SLOW_RISE (500), QUICK_FALL (100), LIGHT_TICK (20), LOW_TICK (20); four supported preset effect IDs 0,1,2,5. Probe returned ok, checksum verified. No active composition attempted; prior on(ms) pulses remain too faint.

SM8850 next haptic stage — gated native preset CLICK (2026-11-16)

  • On-device dumpsys vibrator_manager confirmed vibrateOn=true, defaultVibrationAmplitude=255, VibratorInfo loaded, and four effects CLICK / DOUBLE_CLICK / TICK / HEAVY_CLICK. Samsung keyboard/touch typically invokes SemHaptic vendor effects. Do not reinterpret those vendor IDs as AIDL/FF_CUSTOM payloads.
  • SHA256-verified Android runtime 43830452598 physically queried AIDL v3 getSupportedPrimitives, getPrimitiveDuration, getSupportedEffects without playback: 8 primitives (CLICK 20ms, THUD 300ms, SPIN 130ms, QUICK_RISE 150ms, SLOW_RISE 500ms, QUICK_FALL 100ms, LIGHT_TICK 20ms, LOW_TICK 20ms), 4 presets (IDs 0,1,2,5), composition delay max 1000ms, size max 10; all PASS.
  • Added bridgectl haptic-hal-click: a single, explicit opt-in ACTIVE IVibrator.perform(Effect.CLICK=0, EffectStrength.MEDIUM=1, callback=null) test, gated by ONEIOS_HAPTIC_ACTIVE_TEST=1, with an on-device getSupportedEffects preflight. No on/off, setAmplitude, compose, external control, direct evdev, fallback, looping or guesswork. Waits for reported duration + short margin; returns failure for unsupported effect or Binder error. AOSP CAP_PERFORM_CALLBACK not set, so null callback is appropriate. AIDL semantics: https://android.googlesource.com/platform/hardware/interfaces/+/refs/heads/android16-release/vibrator/aidl/android/hardware/vibrator/IVibrator.aidl
  • Fake HAL and regression tests cover missing opt-in (zero actuation), exactly one successful CLICK/MEDIUM with no off, and CLICK missing from the supported list (zero actuation). Physical CLICK/MEDIUM acceptance is documented below; runtime and CI for subsequent strong-preset code succeeded (runs 43834684098 and 43834684178).
  • Next gate after CI/runtime artifact: one user-observed click on idle S26 and comparison to native Samsung keyboard feedback. Do not enable default treble haptics or boot/hot-switch XNU until tactile validation; compose() requires a correctly implemented completion callback, which has not been added.

S26 on-device native CLICK acceptance and strong preset calibration (2026-11-16)

  • Real S26 Ultra ran checksum-verified ARM64 runtime from 43833060687 and explicit ONEIOS_HAPTIC_ACTIVE_TEST=1 bridgectl haptic-hal-click: HAL returned perform(CLICK, MEDIUM) duration 60 ms, ok, ADB exit 0; owner confirms a real short, crisp haptic-style pulse, though still very faint. Preset playback PASS; useful tactile strength remains OPEN. The returned preset 60 ms is distinct from CompositePrimitive.CLICK's reported 20 ms.
  • Added bridgectl haptic-hal-heavy-click for exactly one AIDL perform(HEAVY_CLICK=5, STRONG=2, null); requires ONEIOS_HAPTIC_ACTIVE_TEST=1 and a fresh getSupportedEffects check that ID 5 remains supported. No loops, on/off, gain/amplitude, external control, compose or evdev, and no fallback; duration sanity-checked. Mock regression covers explicit gating, one perform 5 2, and unsupported effect rejection without actuation.
  • Physical strong-preset trial PASS (2026-11-16): on real Galaxy S26 Ultra, ONEIOS_HAPTIC_ACTIVE_TEST=1 bridgectl haptic-hal-heavy-click returned HAL accepted one HEAVY_CLICK STRONG (reported duration 110 ms), done, ok and ADB exit 0; the owner felt one distinct, stronger tick followed by silence. This is precisely the one-shot effect's expected behavior, not a persistent vibration. It demonstrates a usable native strong tick; full haptic UX/profile mapping is not yet validated. No production backend switch / guest boot / hot-switch.

Haptics next integration milestone (after physical HEAVY_CLICK PASS)

  • Evidence: Continuous on(ms)+setAmplitude was weak on S26; FF_SINE rejected at EVIOCSFF/EINVAL; native perform(CLICK, MEDIUM) succeeded but was faint (60 ms), while perform(HEAVY_CLICK, STRONG) produced a clearly perceptible single tick (110 ms). HAL-reported duration does not establish calibrated motor acceleration.
  • Architectural gap: br_haptic_vib(h, on_ms, intensity, frequency_hz) only receives duration/intensity/frequency, and the production Treble backend still maps these to HAL on(ms) followed by setAmplitude(). The proven perform() path exists only in bridgectl diagnostic code; it is not yet connected to guest haptics.
  • Next code milestone: design an optional SM8850 native preset route for discrete impact events, with explicit event semantics, supported-effects preflight, no blind fallback to Samsung FF_SINE and correct stop/cancellation/lifetime behavior. Preserve duration-based motor control for continuous vibration and existing behavior on non-SM8850 devices. Add fake-HAL regression before any production default change.
  • CI economy: record this physical acceptance in the PR description, not a docs-only commit, so no unnecessary runtime build.

Implemented: opt-in end-to-end native impact events (2026-11-16)

  • Commits: 159493473f3f44fe931ace1d08c9745cacc2d0b4 (16-file guest/host/protocol and tests) and e69cac8490d00e6c41e12f23e45637a68f6eccb9 (fix: merge the HAL backend and the serialized impact worker into the same source). The original CI caught a missing impact_enabled member; fixed, regression CI running on the new head.
  • Guest source: native tap classifier is off by default; oneios_native_impacts=1 opt-in only if host advertises OB_FEAT_HAPTIC_IMPACT. The 48kHz Actuator path classifies isolated under-30ms bursts after 10ms silence into one semantic OB_HAPTIC_IMPACT. Long bursts retain VIB/STOP and incur a bounded experimental initial classification delay when enabled. FigVibrator and other legacy duration/frequency paths are unchanged. Host's HELLO extends from 8 to 12 bytes only when supported; old guests/hosts use the original 8 bytes and protocol v1.
  • Host source: hw-backend-haptics=treble + ONEIOS_HAPTIC_NATIVE_IMPACTS=1 + native getSupportedEffects preflight for TICK, CLICK and HEAVY_CLICK are all required to advertise the new feature. Impact queue shares the existing worker; maps LIGHT→TICK/LIGHT, MEDIUM→CLICK/MEDIUM, HEAVY→HEAVY_CLICK/STRONG. Only HEAVY has a physically confirmed strong tactile response on this S26; other mappings remain experimental. No guessed FF_CUSTOM / FF_SINE fallback.
  • Safety and tests: explicit STOP interrupts only an impact still inside the HAL-returned duration; after its lifetime ends, STOP and close avoid a late HAL off() that could interrupt new One UI effects. Host fake motor, fake AIDL binder, protocol and Actuator host tests include one click/tap, continuous vibration, cancellation, invalid payload and capability/opt-in denial. The legacy non-native HAL shutdown path is preserved. No XNU boot/hot-switch or on-device guest integration test has occurred.
  • Status: current-head SM8850 CI SUCCESS 4/4 (run 43838772950; 346 host bridge checks, 0 failed). Important limitation: runner lacks binderfs; test_hal_binder was compiled but its runtime was SKIPPED, so these green checks do not yet establish real native-impact HAL-backed bridge play. ARM64 runtime packaging at run 43838772788 remains in progress at last check. Keep this PR Draft and the feature disabled by default until a further passive S26 HAL preflight and separately authorized guest validation.

S26 production native-impact preflight — read-only gate (2026-11-16)

  • Prior integration HEAD e69cac8 passed 4/4 SM8850 CI (run 43838772950) and ARM64 runtime packaging SUCCESS (run 43838772788, artifact oneios-runtime). Host bridge test counted 346 checks, zero failures. However test-binder was SKIPPED (no binderfs on GitHub runner), so success does not establish runtime AIDL Binder interaction for the new production bridge.
  • Commit 6d9decc4e8adeb7d6bb7b5f6f2fa69f9312ddd01 adds bridgectl haptic-native-inspect to check the actual production Treble bridge with the real vendor's getCapabilities() and getSupportedEffects(). It explicitly requires ONEIOS_HAPTIC_NATIVE_IMPACTS=1, rejects fallback=1, makes no on/off/perform/setAmplitude/evdev calls and closes without off() even if required presets are absent and no continuous effect was started. Legacy haptic mode still retains its stop-on-close behavior. Fake-HAL phone tests cover gated/ready/fail-closed cases, without physical actuation.
  • Current-head status: SM8850 CI SUCCESS 4/4 (run 43840335467; head 6d9decc); Android ARM64 packaging workflow 43840347573 is still running at last check. Do not use an older runtime to run this new CLI. Once current-head ARM64 artifact is SHA256-verified, the next on-device acceptance is one passive ONEIOS_HAPTIC_NATIVE_IMPACTS=1 ONEIOS_HW_FALLBACK=0 bridgectl haptic-native-inspect command on S26; no guest boot and no active haptics.

@YMGPwcca YMGPwcca changed the title test(cpu): add Galaxy S26 Ultra SM8850 host fixture fix(input): begin SM8850 S26 Ultra host port with safe hardware diagnostics Nov 16, 2026
@YMGPwcca YMGPwcca changed the title fix(input): begin SM8850 S26 Ultra host port with safe hardware diagnostics fix(input): validate S26 Ultra pen hover and native touchscreen priority Nov 16, 2026
@YMGPwcca YMGPwcca changed the title fix(input): validate S26 Ultra pen hover and native touchscreen priority feat(port): SM8850 input, read-only brightness probe and display diagnostics Nov 16, 2026
… runtime, probe APK, Metal bundle and hashes
… pins, JUnit evidence and docs-only parent drift
…un only changed OneOS Gradle with preserved JUnit
@YMGPwcca
YMGPwcca merged commit fc3bfd2 into main Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant