adb_orientation
Read current screen orientation or set it to portrait, landscape, reverse orientations, or restore auto-rotate on Android devices.
Instructions
Get or set screen orientation. Can lock to portrait, landscape, reverse portrait, reverse landscape, or restore auto-rotate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | 'get' to read current orientation, 'set' to change it | |
| orientation | No | Orientation to set (required when action='set'): auto=sensor, portrait=0°, landscape=90°, reverse_portrait=180°, reverse_landscape=270° | |
| device | No | Device serial |