[PATCH] framework: fix screenshot and rotation animation for devices
 with abnormal hw rotation