When the camera previews, it shows portrait, how to change portrait to landscape, when the camera previews
adb shell settings put system accelerometer_rotation 0 #disable auto-rotate
adb shell settings put system user_rotation 3 #270° clockwise
the commands below are for portraid, you can change the rotation number for landscape mode