- Disable auto-rotate:
content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0
- Rotate:
content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:1
content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:0
0 # Protrait
1 # Landscape
2 # Protrait Reversed
3 # Landscape Reversed
Or
settings put system user_rotation 3
网友评论