openintents / filemanager

OpenIntents file manager
http://www.openintents.org/filemanager
Apache License 2.0
339 stars 218 forks source link

What's your plan for Android Q? #134

Open staltz opened 5 years ago

staltz commented 5 years ago

Hello fellow FOSS developer, I build the Manyverse app which is also on F-Droid.

Have you heard of Google's schedule to deprecate shared external directories? See this article.

Your app uses Environment.getExternalStorageDirectory() which Google is [deprecating in API level 29](https://developer.android.com/reference/android/os/Environment#getExternalStorageDirectory()).

https://github.com/openintents/filemanager/blob/d432d84dbc26b7f12ea4b907f73fb3455a690db6/FileManager/src/org/openintents/filemanager/FileManagerActivity.java#L122

I think this is terrible news from Google, and I'd like to use getExternalStorageDirectory() too. This change in Android Q will affect all File Managers and significantly change the UX and possible features for users. I would like to know if you have any ideas what could be done.

friedger commented 5 years ago

@staltz Probably the only solution is to ask the user for the root uri through the StorageAccessFramework.

marcoscgdev commented 4 years ago

A temporary fix could be adding this flag into the manifest:

android:requestLegacyExternalStorage="true"