FIXED: rotation fixes for devices with broken rotation
- fixes rotation and screenshot for devices that have broken rotation (like the p1)
- forward-ported from jb-mr1