summaryrefslogtreecommitdiffstats
path: root/src/com/android/providers/downloads/OpenHelper.java
Commit message (Collapse)AuthorAgeFilesLines
* Launch APKs using content:// Uri with grant.Jeff Sharkey2016-10-041-13/+4
| | | | | | | | | | PackageInstaller now supports reading from content://, so always launch using that path. Include URI permission grants so the receiver can access the contents. Test: installed downloaded APK Bug: 31807780 Change-Id: I488d14872e80ce4a092e7db6e1c58f3fe54a54c6
* Allow viewing content:// Uris from Downloads.Tomasz Mikolajewski2016-05-091-4/+1
| | | | | Bug: 28476442 Change-Id: I12a35a2c35c16ddf899637dfb85c30006c169fd7
* Migrate the DownloadProvider's trampoline to use SAF Uris.Tomasz Mikolajewski2016-02-031-4/+7
| | | | Change-Id: I551f830637e023f810a08ba549ecbb7f717b4e9c
* Temporary hack to keep file:// Uris working.Jeff Sharkey2016-01-281-0/+4
| | | | | Bug: 26860922 Change-Id: I9e6d513dedd6c82bd4a582542a9094394d74db5d
* Opening downloads also needs filename access.Jeff Sharkey2016-01-081-0/+1
| | | | | Bug: 26454235 Change-Id: I61d68f694e6460b46a56b111092094a3111c291b
* 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