I would know the answer to this question, if the device was a Windows device. 🙂
So, I'm going to post that, even though i know it's not the answer you seek, but it might still be interesting for others to learn that it exists.
You could use gamUploader, a compilable python script I created for Windows.
You associate csv with gamUploader and when you double-click a csv file, it will upload the file to your Drive and open it in the appropriate app in Chrome.
https://github.com/NoSubstitute/gamUploader
Since it is pure python, it can probably be compiled for other platforms than Windows, but I haven't tried. Nor have I tried using it as pure python.
--
https://wheretofind.me/@NoSubstitute