Is it possible to replace GameActivity with a custom Activity? If so, how to do it?

I need a custom Activity to be used in my game on my phone, or I need to know how to extend GameActivity. I tried to replace the default Activity, but it didn’t work. In Build/Android, I created an AndroidManifest.xml:

<activity 
android:name="com.YourCompany.MobileTest.MainActivity" 
android:exported="true" 
android:label="@string/app_name" 
android:theme="@style/UnrealSplashTheme"| 
android:configChanges="mcc|mnc|uiMode|density|screenSize|smallestScreenSize|screenLayout|orientation|keyboardHidden|keyboard|navigation|touchscreen|locale|fontScale 
ayoutDirection" 
android:resizeableActivity="false" 
android:launchMode="singleTask" 
android:screenOrientation="sensorLandscape" 
android:debuggable="true"> 
<intent-filter> 
<action android:name="android.intent.action. MAIN" /> 
<category android:name="android.intent.category.LAUNCHER" /> 
</intent-filter> 
<meta-data android:name="android.app.lib_name" android:value="Unreal" /> 
</activity>

I also added to DefaultEngine.ini:

[/Script/AndroidRuntimeSettings.AndroidRuntimeSettings] 
StoreVersionOffsetArm64=1 
StoreVersionOffsetX8664=1 
bPackageDatalnsideApk=True 
bDisableVerifyOBBOnsStartUp=True 
bBuildForES31=True 
GameActivityClassName=com.YourCompany.DroneOnMission.MainActivity 
bBuildForX8664=False

but when I build a project, I always use <activity android:name=“com.epicgames.unreal.GameActivity”
And, by the way, if I call some function from MainActivity from c++, it will be visible and it will work. And I don’t know what to do anymore.

Thanks