Advertisement
metalx1000

ADB Android Screen Rotation

May 23rd, 2020
2,451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.58 KB | None | 0 0
  1. #ADB Android Rotate screen
  2.  
  3. #first disable accelerometer rotation
  4. adb shell settings put system accelerometer_rotation 0
  5.  
  6. #rotate screen
  7. adb shell settings put system accelerometer_rotation 0
  8. adb shell settings put system accelerometer_rotation 1
  9. adb shell settings put system accelerometer_rotation 2
  10. adb shell settings put system accelerometer_rotation 3
  11.  
  12. #settings
  13. 0           # Protrait
  14. 1           # Landscape
  15. 2           # Protrait Reversed
  16. 3           # Landscape Reversed
  17.  
  18.  
  19. #re-enable accelerometer rotation
  20. adb shell settings put system accelerometer_rotation 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement