4 ms·
On the contrary, the Storage Access Framework is an awesome development and how Google should integrate more of its play services: by having a provider agnostic
by magicalist 13y ago
On the contrary, the Storage Access Framework is an awesome development and how Google should integrate more of its play services: by having a provider agnostic API that fits their service as well as any other.
Anyone can be a SAF file provider by implementing the interface, and it's as easy as Intents to switch between them. It's silly to have "external" storage with special behavior at this point. Storage should act like storage, and apps should access that data consistently, without users having to remember which storage they're using for any particular purpose.
https://developer.android.com/guide/topics/providers/document-provider.html https://developer.android.com/guide/topics/providers/documen...
- x0054 13y agoHowever, this new infrastructure precludes file management apps.
- bdonlan 13y agoI 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).