iOS orientation set HID
ios_orientation_set_hidPut the device in an exact orientation (no automation session needed; works even while the iOS orientation lock is on). orientation: portrait | portraitUpsideDown | landscapeLeft | landscapeRight | faceUp | faceDown. Returns JSON {orientation, non_flat_orientation, locked} as the device now reports it. An iPhone does not draw its Home screen upside down, so portraitUpsideDown may leave the screen portrait. Returns "no HID available" on iOS 17.x / no-tunnel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| udid | Yes | iOS device UDID | |
| orientation | Yes | The orientation to put the device in |