wingedrobin give right answer. If you want use internal storage for UE4Game set true “Use ExternalFilesDir for UE4Game files” and in shipment will be using internal storage. In another build will be using external storage.
You can see is UE4 sources.
https://github.com/EpicGames/UnrealEngine/blob/c3caf7b6bf12ae4c8e09b606f10a09776b4d1f38/Engine/Source/Runtime/Launch/Private//AndroidJNI.cpp
in JNI_OnLoad setting GFilePathBase
GFilePathBase = FJavaHelper::FStringFromLocalRef(Env, (jstring)Env->CallObjectMethod(*externalStoragePath, getFilePath, nullptr));
And GFilePathBase use for set on platform FilePathBase and BasePath when bUseExternalFilesDir is true
in Java_com_epicgames_ue4_GameActivity_nativeSetGlobalActivity
if (bUseExternalFilesDir)
{
#if UE_BUILD_SHIPPING
GFilePathBase = GInternalFilePath;
GOverrideAndroidLogDir = bPublicLogFiles;
#else
GFilePathBase = GExternalFilePath;
#endif
FPlatformMisc::LowLevelOutputDebugStringf(TEXT("GFilePathBase Path override to'%s'\n"), *GFilePathBase);
}