summaryrefslogtreecommitdiffstats
path: root/src/com/android/providers/downloads/OpenHelper.java
Commit message (Collapse)AuthorAgeFilesLines
* Open images with content://media/ instead of content://downloads/ URI.Thomas Wendt2016-01-241-0/+9
| | | | | | | This allows images to be shared directly after opening them with the DownloadManager. Change-Id: I65c79923b7aef4c1113e572030c9c7f750b73df0
* Fixed application/octet-stream to guess mimetypeherriojr2015-09-291-0/+9
| | | | | | | | | | | | When being downloaded, some files were being classified as application/octet-stream in the response even though they are a valid mimetype. This adds in guessing the mimetype before sending off the intent. It was chosen to put this here instead of when it is downloaded to make it backwards compatible with files that already exist in people's downloads. Change-Id: Id5fc9a3cca6851677b066854fcdccb5ae4fade7c Issue-Id: CYNGNOS-1153
* Allow all downloads to be writable.Jeff Sharkey2013-10-011-1/+3
| | | | | Bug: 10943812 Change-Id: Ib0cb3e608c1f40a2e2fcd6e493c8f920d8b4221b
* Unified handling of errors around opening.Jeff Sharkey2013-09-181-8/+28
| | | | | | | Handle both missing downloads and missing activities. Bug: 10799449, 10713636 Change-Id: I592b07fc5cf530526803379d7f7a99e8a6b207c4
* Cleaner I/O.Jeff Sharkey2012-12-131-2/+8
| | | | | | | | | | | | This cleans up writing of downloaded data by always writing through OutputStream interface, which applies DRM if needed. Hands I/O streams along with method calls to give clearer chain of ownership. Only retry writes once after verifying free space. Remove checkCanHandleDownload() check, since most downloads are now using public API. Release DrmManagerClient sessions when finished. Change-Id: I49e479089a8218690b556d31ec65a030930ad368
* Bring back DRM mimetypes.Jeff Sharkey2012-10-191-1/+4
| | | | | | | I don't like DRM, but other people do. Bug: 7370549 Change-Id: I44220404eab6e6cc85ea16cfcf58474135c03f83
* Merge "Remove FLAG_ACTIVITY_NEW_TASK from the VIEW intent." into jb-mr1-devRuben Brunk2012-09-281-1/+1
|\
| * Remove FLAG_ACTIVITY_NEW_TASK from the VIEW intent.Ruben Brunk2012-09-261-1/+1
| | | | | | | | | | | | | | | | | | Bug: 7164238 Bug: 7237908 Got rid of FLAG_ACTIVITY_NEW_TASK for proper back behavior Change-Id: I50af9aeafb27d6079bda4f81f4a116b6bb600676
* | Send uid of the application that initiated the downloadBen Gruver2012-09-271-0/+17
|/ | | | | Bug: 6923241 Change-Id: Idf4037b4e360cb6453b315d1cc95608762c9e0c8
* Send ORIGINATING_URI and REFERRER to installer.Jeff Sharkey2012-08-271-0/+105
When building PackageInstaller intents, include ORIGINATING_URI and REFERRER extras. Unify view intent building for both notifications and list UI. Bug: 6900672 Change-Id: I18435e0f8aa549880ec594f82b6a250232706135