|
| 1 | +# HarmonyOS gesture pan transport correction, 2026-11-12 |
| 2 | + |
| 3 | +Evidence for #4239: this file corrects and replaces |
| 4 | +`harmonyos-trajectory-slider-2026-11-08.md` (deleted from the head). The 11-08 |
| 5 | +run drove the slider through the uiInput endpoint swipe and its oracle passed, |
| 6 | +but the file presented that pass as evidence of the panel-evdev trajectory |
| 7 | +chain. It was not: the run omitted `--json`, so it could not name the executed |
| 8 | +route, and the only available device denies every input node, so the |
| 9 | +trajectory chain could not have executed. The slider oracle also passes on the |
| 10 | +plain swipe, so it cannot separate the two transports by construction. |
| 11 | + |
| 12 | +## The device denies the input nodes |
| 13 | + |
| 14 | +- HUAWEI 畅享 90 Plus, model `JDY-AL50`, HarmonyOS 7.0.0.111 (SP10C00E111R4P3), API 26 |
| 15 | +- Serial `77TYD26826028730`, USB, `hdc shell` as uid 2000 (shell) |
| 16 | + |
| 17 | +```sh |
| 18 | +$ hdc -t 77TYD26826028730 shell "id; cat /proc/bus/input/devices; ls -l /dev/input/" |
| 19 | +uid=2000(shell) gid=2000(shell) groups=2000(shell),1006(file_manager),1007(log),1097(netsys_socket),3009(readproc) context=u:r:sh:s0 |
| 20 | +/bin/sh: cat: /proc/bus/input/devices: Permission denied |
| 21 | +ls: /dev/input/: Permission denied |
| 22 | +``` |
| 23 | + |
| 24 | +The listing is denied at uid 2000, so the transport resolver answers |
| 25 | +`touch-node-listing-unreadable` on this device and every pan takes the |
| 26 | +endpoint swipe. The .109 build showed the same denial. No run on this device |
| 27 | +can ever reach the panel node, and the existence and argument order of |
| 28 | +`uinput sendevent` remain unverified on HarmonyOS. |
| 29 | + |
| 30 | +## What the command reports at the reshaped head |
| 31 | + |
| 32 | +With the sendevent route dropped, the pan reports its one real transport |
| 33 | +verbatim (`agent-device` head `740ae321c`, the sources this correction builds; |
| 34 | +surface |
| 35 | +`com.stringzhao.captchaab`, slider-puzzle page, round 2 fresh |
| 36 | +(`ROUND=2 RESULT=NONE`), knob at the track's left edge over track center |
| 37 | +y=1066, puzzle gap scored 525 px right of the knob): |
| 38 | + |
| 39 | +```json |
| 40 | +{ |
| 41 | + "kind": "pan", |
| 42 | + "durationMs": 900, |
| 43 | + "pointerCount": 1, |
| 44 | + "from": { "x": 167, "y": 1066 }, |
| 45 | + "to": { "x": 692, "y": 1066 }, |
| 46 | + "backend": "harmonyos-hdc-uiinput", |
| 47 | + "command": "swipe", |
| 48 | + "velocity": 583, |
| 49 | + "viewport": { "x": 0, "y": 108, "width": 1080, "height": 2298 }, |
| 50 | + "executionProfile": "timed-pan", |
| 51 | + "message": "Panned (167, 1066) by (525, 0)" |
| 52 | +} |
| 53 | +``` |
| 54 | + |
| 55 | +The machine-readable verdict row after the pan: |
| 56 | + |
| 57 | +``` |
| 58 | +ROUND=2 RESULT=PASS DETAIL=offset=2px tol=20 PASS=2 FAIL=0 TYPE=slider |
| 59 | +``` |
| 60 | + |
| 61 | +This pass evidences the endpoint swipe route — the only one this hardware |
| 62 | +exposes. It says nothing about a densified sample chain, because no sample |
| 63 | +chain runs on this build. |
| 64 | + |
| 65 | +## Consequence for the PR |
| 66 | + |
| 67 | +The sendevent trajectory route is dropped until a device with a readable |
| 68 | +input listing exists. The densify loop the route would have shared moves to |
| 69 | +`densifyGesturePath` in `packages/contracts/gesture-plan.ts` with Android's |
| 70 | +`lowerAndroidTouchPlan` as its caller, so the sampled-path rule keeps one |
| 71 | +owner. The PR no longer claims a trajectory backend for HarmonyOS pan; the |
| 72 | +command's `--json` names `harmonyos-hdc-uiinput` and reports no fallback |
| 73 | +field, because there is nothing left to fall back from. |
0 commit comments