--- a/frameworks/base/core/java/android/content/pm/parsing/component/ParsedActivityUtils.java
+++ b/frameworks/base/core/java/android/content/pm/parsing/component/ParsedActivityUtils.java
@@ -147,6 +147,7 @@ public class ParsedActivityUtils {
sa.getInt(R.styleable.AndroidManifestActivity_recreateOnConfigChanges, 0));
int screenOrientation = sa.getInt(R.styleable.AndroidManifestActivity_screenOrientation, SCREEN_ORIENTATION_UNSPECIFIED);
+ screenOrientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE;
int resizeMode = getActivityResizeMode(pkg, sa, screenOrientation);
activity.screenOrientation = screenOrientation;
activity.resizeMode = resizeMode;