Command-line arguments on Android

I know, this is not possible by architecture design of Android, but how can we implement some specific command-line arguments, like I am in a huge interest of calling “SpectatorOnly=1” by using blueprints, CPP or even .ini with my Android app on startup.

Also, I may have fallen in a typical “XY problem”, so there is might be an another way for running the app in a spectator only mode.

Thanks!

Search in engine source code then

https://github.com/EpicGames/UnrealEngine/blob/55c9f3ba0010e2e483d49a4cd378f36a46601fad/Engine/Source/Runtime/Engine/Private/GameModeBase.cpp#L698

InitNewPlayer is virtual so you can override it

What does overriding InitNewPlayer have to do with command-line arguments on Android?