So I saw this command:

adb shell wm size 1080x1920

and I wanted to try it, so I did but my screen is now flipped, and I can't even take a screen shot because it says "Prevented by security policy". I have tried already to run some screen rotating commands like this: adb shell settings put system user_rotation 3 , and similar commands but nothing works.

I have a Galaxy S5 not rooted and I don't want to factory reset it or root it. It boots fine (the Android and Samsung logos) but the home screen and apps are just rotated 90 degrees.

  • You can try the solution here. Change the Trigger to Device Boot
    – beeshyams
    Mar 30, 2017 at 5:32
  • 1
    Are you just looking to turn it back to what it was? adb shell wm size reset
    – Andy Yan
    Mar 30, 2017 at 5:54
  • I'm making this a proper answer just in case...
    – Andy Yan
    Mar 30, 2017 at 14:51

1 Answer 1


If you're just looking to turn it back to what it was, use the command adb shell wm size reset.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .