# Unreal Engine 5.7 Android packaged game lock orientation bug

**URL:** <https://forums.unrealengine.com/t/unreal-engine-5-7-android-packaged-game-lock-orientation-bug/2745071>\
**Category:** Programming & Scripting\
**Tags:** Android-Packaging, unreal-engine\
**Created:** [August 19, 2026, 3:02pm UTC](https://forums.unrealengine.com/t/unreal-engine-5-7-android-packaged-game-lock-orientation-bug/2745071 "2026-08-19T15:02:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![3dstuff](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@3dstuff](https://forums.unrealengine.com/u/3dstuff)\
**Post date:** [August 19, 2026, 3:02pm UTC](https://forums.unrealengine.com/t/unreal-engine-5-7-android-packaged-game-lock-orientation-bug/2745071/1 "2026-08-19T15:02:45Z")

</div>

Hello, i see a problem on Android packaged game, orientation lock not working anymore, i don’t know but seems a UE5.7 bug, because i have the package from UE5.5 version and is working orientation is locked(Landscape), in UE5.7 Android package can’t lock orientation mode to Landscape, i packaged almost 5 times my Android App deleting the cache everytime, nothing seems to work also with different options and scripts, i tryed all know solutions below:

- In projects settings platforms/Android in the “orientation” drop down is “Landscape” or “Sensor Landscape”- PACKAGED GAME ORIENTATION NOT WORKING.
- in “Extra settings for section” i added android:screenOrientation=“landscape” - PACKAGED GAME ORIENTATION NOT WORKING

Seems is stuck in SENSOR mode and it continue to rotate.  
Someone encountered the same bug?

---

<div class="post-metadata">

**Author:** ![3dstuff](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@3dstuff](https://forums.unrealengine.com/u/3dstuff)\
**Post date:** [August 20, 2026, 4:28pm UTC](https://forums.unrealengine.com/t/unreal-engine-5-7-android-packaged-game-lock-orientation-bug/2745071/2 "2026-08-20T16:28:53Z")

</div>

Hello seem i discovered why orientation is ignored:

> **[Restrictions on orientation and resizability are ignored  |  Android Developers](https://developer.android.com/about/versions/17/changes/ff-restrictions-ignored)**
>
> For apps targeting Android 17 or higher, orientation, resizability, and aspect ratio restrictions no longer apply on large displays (sw600dp and larger), pushing developers to build adaptive apps.

The solution can be:

android:screenOrientation=“portrait” is not deprecated it is **Discouraged**

Android Lint will warn you about it but you can disable that by adding “DiscouragedApi” to the `tools:ignore` attribute list the manifest xml

e.g.

```auto
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
    tools:ignore="DiscouragedApi">

```

you can override **onActivityCreated** method and set the orientation there.

```auto
@Override
public void onActivityCreated(Activity activity, Bundle bundle) {
      activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
}

```

How to implement all of this in Unreal Engine 5.7? Please anyone?

---

<div class="post-metadata">

**Author:** ![BWGGames](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BWGGames](https://forums.unrealengine.com/u/BWGGames)\
**Post date:** [October 2, 2026, 5:56pm UTC](https://forums.unrealengine.com/t/unreal-engine-5-7-android-packaged-game-lock-orientation-bug/2745071/3 "2026-10-02T17:56:07Z")

</div>

Android 16 ignores orientation locks on large screens for apps targeting SDK 36, but games can opt out. Add `android:appCategory="game"` to the `<application>` element (we do it in our project’s UPL, Android only) and the lock should apply again. We haven’t tested it on a tablet ourselves, so tell me if it doesn’t work.

---

<div class="post-metadata">

**Author:** ![3dstuff](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@3dstuff](https://forums.unrealengine.com/u/3dstuff)\
**Post date:** [October 7, 2026, 7:33pm UTC](https://forums.unrealengine.com/t/unreal-engine-5-7-android-packaged-game-lock-orientation-bug/2745071/4 "2026-10-07T19:33:48Z")

</div>

Hello, thank you so much, we try and i let you know!

---

<div class="post-metadata">

**Author:** ![3dstuff](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@3dstuff](https://forums.unrealengine.com/u/3dstuff)\
**Post date:** [October 9, 2026, 8:13am UTC](https://forums.unrealengine.com/t/unreal-engine-5-7-android-packaged-game-lock-orientation-bug/2745071/5 "2026-10-09T08:13:23Z")

</div>

Unfortunately it not working, it start in portrait and it rotates only manually, is not fixed in landscape, seems it ignore the commands added in project settings/Android, i am working on normal phone.

 ![Untitled-1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/c/63cb95da67fe445fba62e42356cfcf6b62e8611f.jpeg)
