When I connect a USB hard drive or flash drive my S9 tries to charge it. My wife has exactly the same phone and it connects straight away. Any ideas?
You could try Settings, Developer Options, Default USB Configuration (it's a fair way down under Networking) and change the default to Transfer Files. I can't test it as mine works fine.