Android 14, SDK 34, Black screen on startup

Hope the solution for black screen at startup is already known… just updating the solution for anyone that helps!
I tested it on UE 5.3.2 for Android targetAPI=34, CompileAPI=33, Build Tools=34.0.0, minAPI & NDK API=28 .

============== Add RECEIVER_EXPORTED flag in registerReceiver() ==============

…\Engine\Build\Android\Java\src\com\epicgames\unreal\GameActivity.java.template

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
registerReceiver(consoleCmdReceiver, new IntentFilter(Intent.ACTION_RUN), RECEIVER_EXPORTED);
} else {
registerReceiver(consoleCmdReceiver, new IntentFilter(Intent.ACTION_RUN));
}

…\Engine\Build\Android\Java\src\com\epicgames\unreal\BatteryReceiver.java
…\Engine\Build\Android\Java\src\com\epicgames\unreal\HeadsetReceiver.java
…\Engine\Build\Android\Java\src\com\epicgames\unreal\VolumeReceiver.java
…\Engine\Build\Android\Java\src\com\google\android\vending\expansion\downloader\impl\DownloaderService.java

import android.os.Build;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
activity.registerReceiver(receiver, filter, android.content.Context.RECEIVER_EXPORTED);
} else {
activity.registerReceiver(receiver, filter);
}


============== Update billing library version from 6.0.0 to 7.0.0 ==============
…\Engine\Plugins\Online\Android\OnlineSubsystemGooglePlay\Source\OnlineSubsystemGooglePlay_UPL.xml

implementation ‘com.android.billingclient:billing:7.0.0’


1 Like