3 ms·
I don't see why you couldn't have a file management app that uses the new storage access framework to access external storage in the same way as online or inter
by bdonlan 13y ago
I don't see why you couldn't have a file management app that uses the new storage access framework to access external storage in the same way as online or internal storage - shouldn't it just be a matter of switching to the new API?
- radley 13y agoThere's no write in the new API. Only read: "The SAF makes it simple for users to browse and open documents, images, and other files across all of their their preferred document storage providers."
- tadfisher 13y agoThat's not true, you can ask any DocumentsProvider to delete or edit a file resource given a valid URI. Whether or not the DocumentsProvider that owns the resource will acknowledge your request is up to the DocumentsProvider.
- tadfisher 13y agoNo, the Storage Access Framework does not expose the filesystem. All access is through DocumentsProvider implementations in the various apps that you have installed. WRITE_EXTERNAL_STORAGE now grants read-only access to secondary storage, and only system-level apps can request the WRITE_MEDIA_STORAGE permission that is necessary for read-write.
- bdonlan 13y agoHm, is there no system-level app installed by default that provides an implementation of DocumentsProvider that provides read/write access to the external SD card?
- tadfisher 13y agoThe entire card? No. The MediaStore provider provides access to the standard media storage directories (DCIM/, Music/, etc) and each individual app may provide a DocumentsProvider for their private storage (/data/<your.app>/ or whatever they've moved it to).