cdafda9f0228e8cb160a7c873d130dea4bbfea7c |
|
08-Mar-2013 |
Jeff Sharkey <jsharkey@android.com> |
Provider to share private files between apps. Apps should generally avoid sending raw filesystem paths across process boundaries, since the receiving app may not have the same access as the sender. Instead, apps should send Uris and rely on platform features like grantUriPermission() to control access. This provider is a simple implementation that services Uris which are backed by raw files on disk. It relies on ContentProvider to enforce the grants, and supports reading, writing, and deleting. It responds to OpenableColumns and tries answering getType() using file extensions. Apps define supported paths in <meta-data> associated with their <provider> manifest entries. Bug: 7005318 Change-Id: Iceb4f2ce996221d2d85e009b62c856dcdf5eca14
/frameworks/support/v4/java/android/support/v4/content/FileProvider.java
|