device_gesture_path
Replay a freeform stroke as ONE continuous touch — the polyline lands exactly as given, so use it for curves, arcs, signatures, unlock patterns, or any gesture a straight device_swipe cannot express. points is an ordered list of {x, y}; the first is touch-down, the last is lift. Minimum 2 points. Waypoints are sent AS GIVEN and not densified — the polyline you pass IS the gesture, so pass enough points to describe the curve. Prefers the HID touchscreen and falls back to injected MotionEvents. Coordinates are PHYSICAL pixels — same as device_page_source bounds. The iOS counterpart is ios_gesture_path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | Device serial number (UDID) | |
| points | Yes | Ordered waypoints of the stroke (first = touch-down, last = lift) | |
| durationMs | No | Total stroke time in ms, split evenly across segments (default 400) |