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.