mirror of
https://github.com/ppy/osu.git
synced 2026-05-13 20:33:35 +08:00
644495e939
The main goal of this PR is to fix opening files outside of osu! without having to share or import it through the osu! interface, partially related to https://github.com/ppy/osu/issues/11911. It should hopefully avoid people getting confused on how to import certain files such as https://osu.ppy.sh/community/forums/topics/1823096. From what I understand the main problem is how certain applications pass the content URI to the file as mentioned on this [Stack Overflow post](https://stackoverflow.com/a/61331776/13629413) and it's why I added the broader MIME types. From what I gathered, [Files by Google](https://play.google.com/store/apps/details?id=com.google.android.apps.nbu.files&hl=en) views the osu! files as `application/octet-stream`, and that's why you couldn't open it normally before this PR. However, [Material Files](https://play.google.com/store/apps/details?id=me.zhanghai.android.files&hl=en) does also see it as a `application/octet-stream`, but I assume the content URI ends with the correct file extension. I also added labels when opening/sharing the file to osu!, as can be seen in this screenshot from opening the files with Material Files: <img width="3199" height="876" alt="osu android file handling" src="https://github.com/user-attachments/assets/8e997a26-7e6b-4ce8-ba2f-d06fcd9f518d" />
644495e939
·
2026-05-11 14:39:28 +02:00
History