Ledger Nano X - The secure hardware wallet
SHARE
TWEET

ADB Android Screen Rotation

metalx1000 May 23rd, 2020 1,361 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top