cuberite / android

Official Android app for Cuberite
Apache License 2.0
69 stars 6 forks source link

Rework storage management #45

Closed mathiascode closed 3 years ago

mathiascode commented 4 years ago

We're now using the app's own external storage folder for server files. This complies with Android 10, and we no longer have to ask for write permission, which is a good idea when we run executables. NOTE: since we can no longer access the external storage, this breaks backwards compatibility with earlier versions of the app, but I think it's a necessary evil.

Support for saving server files on SD cards has been added. Fixes #43.

Crashes related to selecting files from some cloud storage providers have been fixed. An input stream is now opened directly from the file URI, instead of relying on hacky ways to get the full file path for URIs.

APK for testing: app-debug.zip

mathiascode commented 4 years ago

I will finish this in the near future, but it's currently on the back burner due to work.

mathiascode commented 4 years ago

With the exception of #48, I'm postponing these changes until the storage changes in Android 11 are finalized.

mathiascode commented 3 years ago

Seems like Android 11 will restrict access to /Android/data, effectively killing this idea, so I'm scrapping these changes. Sticking with target API version 28 for as long as possible.

SD card support will be incorporated in another way.