summaryrefslogtreecommitdiffstats
path: root/AndroidManifest.xml
Commit message (Collapse)AuthorAgeFilesLines
* Transition the Download Service's cleanup work to a scheduled JobChristopher Tate2014-06-161-4/+2
| | | | | | | | | ...preparatory to finally removing the scratchpad "idle maintenance" infrastructure from the product. Bug 14993295 Change-Id: I1e84247de19e616910db1781b2c399a8b15a805c
* Revert "Mark the package as required for all profiles"Alexandra Gherghina2014-04-111-2/+1
| | | | | | | | This reverts commit aea634a20b08f00770c1d0774e6e892e323f9de3. We've switched to a whitelist approach. Change-Id: Ifd760d8f800fd2de3a99079d1e04576163ebad80
* Mark the package as required for all profilesAlexandra Gherghina2014-03-281-1/+2
| | | | Change-Id: I575f1a1589e805341e5772eceb5db2f06f9ec4c2
* resolved conflicts for merge of a7fa30f3 to masterFred Quintana2014-02-201-0/+1
|\ | | | | | | Change-Id: Ifcdb3e10bbbb08711d3f8bdafa384e092bf1a7db
| * add the WAKE_LOCK perm to the DownloadProviderFred Quintana2014-02-051-0/+1
| | | | | | | | | | | | | | | | | | | | The DownloadService needs the WAKE_LOCK permission, which it normally gets as a side-affect of the MediaProvider being in the same shared UID. Since clockwork doesn't include the MediaProvider the uses-permission needs to be added to DownloadProvider. Change-Id: Ib3f58695e21e1cf7d841bc55093c26b631092b30
* | Add idle service to clean orphan downloads.Jeff Sharkey2014-02-061-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | Periodically reconcile database against disk contents. This handles the case where a user/app deletes files directly from disk without updating the database, and the rare case where a database delete didn't make it to deleting the underlying file. Also cleans up any downloads belonging to a UID when removed. Bug: 12924143 Change-Id: I4899d09df7ef71f2625491ac01ceeafa8a2013ce
* | Many improvements to download storage management.Jeff Sharkey2014-02-061-0/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change all data transfer to occur through FileDescriptors instead of relying on local files. This paves the way for downloading directly to content:// Uris in the future. Rewrite storage management logic to preflight download when size is known. If enough space is found, immediately reserve the space with fallocate(), advising the kernel block allocator to try giving us a contiguous block regions to reduce fragmentation. When preflighting on internal storage or emulated external storage, ask PackageManager to clear private app caches to free up space. Since we fallocate() the entire file, use the database as the source of truth for resume locations, which requires that we fsync() before each database update. Store in-progress downloads in separate directories to keep the OS from deleting out from under us. Clean up filename generation logic to break ties in this new dual-directory case. Clearer enforcement of successful download preconditions around content lengths and ETags. Move all database field mutations to clearer DownloadInfoDelta object, and write back through single code path. Catch and log uncaught exceptions from DownloadThread. Tests to verify new storage behaviors. Fixed existing test to reflect correct RFC behavior. Bug: 5287571, 3213677, 12663412 Change-Id: I6bb905eca7c7d1a6bc88df3db28b65d70f660221
* DownloadProvider: don't allow backups.Nick Kralevich2014-01-031-1/+2
| | | | Change-Id: I5a07244d4bb7e11af4f5eb1a624fc20165248aab
* Register DocumentsProvider with <intent-filter>.Jeff Sharkey2013-10-091-3/+3
| | | | | | | Follows API change in framework. Bug: 11109484 Change-Id: Icc3d4205b5f33f3821810c4a0692a030228363b7
* Hint sorting, remove XML, follow refactor.Jeff Sharkey2013-09-091-1/+1
| | | | | Bug: 10672973, 10577809 Change-Id: I92314c35b37ac590830e881489e6a88afd860de4
* Extend trampoline to show dialogs.Jeff Sharkey2013-09-061-15/+0
| | | | | | | | | Handle incoming manage requests by launching finished downloads, or showing various retry dialogs. Pipe through summary, show percentage when in progress, and always show total size and MIME type. Bug: 10531347, 10599641 Change-Id: I3be2bc67ea3c0ef795146177200f5be77ad5114e
* Follow stronger DocumentsProvider contract.Jeff Sharkey2013-08-281-1/+2
| | | | | | | | Provides same functionality, but follows updated DocumentsProvider contract in framework. Bug: 10497206 Change-Id: Ie1f6180047ff7bad289679a14f3368238d47b1d6
* Trampoline APK installation to use raw file.Jeff Sharkey2013-08-191-0/+14
| | | | | | | | | PackageInstaller requires raw file:// Uris, and refuses to accept content:// Uris, so create a trampoline that uses the raw file and also splices in referrer extras. Bug: 10391254 Change-Id: I12a06862069479de5dee140d0065479ce79eb494
* Support custom documents query projections.Jeff Sharkey2013-08-171-1/+1
| | | | | | | | | Uses new MatrixCursor.RowBuilder.offer() to support custom projections. Also query MIME types directly so they're always consistent. Bug: 10329983 Change-Id: I724b26e008f6ffb85940e009a916b969ead42fcd
* First pass at Downloads storage provider.Jeff Sharkey2013-08-071-1/+14
| | | | | | | Offers a view of Downloads through the lens of DocumentsContract for surfacing in new storage UI. Change-Id: I4373c2498b4b82bfee2300a00f8d0bb734bf574c
* Downloads should always be available.Jeff Sharkey2013-04-111-0/+1
| | | | | Bug: 8596021 Change-Id: I56149da0519915764f5c38a8141e1a7dcfff5b25
* Allow granting access to "my_downloads" paths.Jeff Sharkey2013-02-061-0/+3
| | | | | | | | | PackageInstaller attempts to grant Uri permissions on my_downloads paths passed internally. This change lets the system successfully grant permissions to these paths. Bug: 7426851 Change-Id: I9a4eea4397c02175aff4e3881a9a79cea1e6e0e3
* Explicitly export content providersNick Kralevich2012-07-281-1/+1
| | | | | | | | | In a future version of Android, the default value for <provider android:exported> will change from true to false. Explicitly set android:exported="true" Bug: 3306452 Change-Id: Id23f16a8527ba97be1d8617ccfc4346734f695d0
* Add permission to modify network accounting.Jeff Sharkey2011-07-121-0/+1
| | | | Change-Id: I2ddf1d43b8793f03d20d6c4de2f6e3b01a302ba2
* Merge "To remove the old DRM support totally because we added the new ↵Gloria Wang2011-06-221-2/+0
|\ | | | | | | Forward Lock support in Download Provider."
| * To remove the old DRM support totally because we added theGloria Wang2011-06-211-2/+0
| | | | | | | | | | | | new Forward Lock support in Download Provider. Change-Id: I71faf19527104455b666cba73a052cd0d4b7d70e
* | Teach DownloadManager about network policy.Jeff Sharkey2011-06-171-0/+2
|/ | | | | | | | | | | Now network access is determined by using getActiveNetworkInfoForUid() which uses BLOCKED to indicate that network should be rejected for the requesting UID. While download in progress, watch for any policy changes that should trigger pause. Also check NetworkInfo.isConnected() for correctness. Change-Id: I1efa79823f15ecc3fa088a6719da1b770c64b255
* Add Socket tagging for granular data accounting.Jeff Sharkey2011-05-131-0/+1
| | | | | | | | Tag active downloads, and account data usage towards UID that made the original request. Also release WakeLock only after we've cleaned up the download. Change-Id: I72d58c6a51beaeb357e59aae4d7c0f5ac9abaa8d
* bug:3435895 listen to media_mounted broadcast intentVasu Nori2011-02-081-0/+4
| | | | | | and retry downloads that failed due to the error "sdcard media not mounted" Change-Id: Id181b8167d331214f72679c85f18cc8b9b969e40
* fix permissions when accessing downloads thru various Uri'sVasu Nori2010-11-161-4/+4
| | | | | | fixes this bug bug:3169457 also Change-Id: I0f60333361c5c399c64faa2d497038530064bef0
* changes to support CL: I1f5dd734e394db0056579a3a0c26862fee27981eVasu Nori2010-11-041-0/+2
| | | | | | | | | | | 1. if an application designates a downloaded file to be mediascanner scannable or not, store that fact in database. 2. use the above to determine whether a file shoudl be mediascanned or not in DownloadService 3. implement code to return mimetype for the new Uri "/public_downloads" introduced in CL: I1f5dd734e394db0056579a3a0c26862fee27981e Change-Id: I5c062ad6d1b58306044cee49ff3827e908d27fd9
* UI + string tweaks for downloads UI + size limits UISteve Howard2010-09-261-1/+2
| | | | | | | | | * tweaks to UI strings based on feedback * new "retry" button for single selection of failed download * make SizeLimitActivity translucent+titleless, so it looks like a dialog over the current app Change-Id: I6a990275880d23ab6b4368d39b70f0ad042825ec
* Expose permission to download without notification.Steve Howard2010-09-211-1/+2
| | | | Change-Id: I43d3b9ca4ea7d4786a47363b4f5f7e6f003013bb
* Implement dialogs for wifi required + recommended limits.Steve Howard2010-09-211-0/+3
| | | | | | | | | | | | | | | | | | | This change extends the original work to add a size limit over which wifi is required to download a file. First, this change adds a second size limit, over which wifi is recommended but not required. The user has the option to bypass this limit. Second, this change implements dialogs shown to the user when either limit is exceeded. These dialogs are shown by the background download manager service when a download is started and found to be over the limit (and wifi is not connected). I'm including one small fix to the unit tests needed from the previous change. Change-Id: Ia0f0acaa7b0d00e98355925c3446c0472048df10
* Temporary fix to support old URIs for MarketSteve Howard2010-09-171-0/+3
| | | | | | | | Market has its own copies of the download manager URIs. This change bring back support for those so Market will keep working until they can properly update their code. Change-Id: I283ea65931085c0f083a182842d362c113427537
* New URI structure with "my_downloads" and "all_downloads"Steve Howard2010-09-141-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change introduces a second view into the download manager database via a set of URIs starting with /all_downloads, renaming the original /download URIs to /my_downloads. In addition to making things more clear, this change allows the downloads UI to grant permissions on individual downloads to viewer apps. The old semantics were: * for ordinary callers, /download included only downloads initiated by the calling UID * for intraprocess calls or calls by root, /download included all downloads The new semantics are * /my_downloads always includes only downloads initiated by the calling UID, and requires only INTERNET permission. It could just as well require no permission, but that's not possible in the framework, since path-permissions can only broaden access, not tighten it. It doesn't matter, because these URIs are useless without INTERNET permission -- if a user can't initiate downloads, there's no reason to read this. * /all_downloads always includes all downloads on the system, and requires the new permission ACCESS_ALL_DOWNLOADS. This permission is currently protectionLevel=signature -- this could be relaxed later to support third-party download managers. All download manager code has been changed to use /all_downloads URIs, except when passing a URI to another app. In making this change across the download manager code, I've taken some liberties in cleaning things up. Other apps are unchanged and will use /my_downloads. Finally, this incorporates changes to DownloadManager to return a content URI for /cache downloads -- the download UI no longer assumes it's a file URI, and it grants permissions to the receiver of the VIEW intent. The public API test has also been updated. I've also fixed some null cursor checking in DownloadManager. Change-Id: I05a501eb4388249fe80c43724405657c950d7238
* Make all public API downloads visible.Steve Howard2010-07-281-1/+7
| | | | | | | | | | | | | | | | This change makes all downloads through the public API visible by default. It removes the API that had allowed applications to control notifications while the download runs. This has been replaced with a hidden API, since such behavior is needed by SystemUpdater and Market (for self-updates). Additionally, the behavior is now protected by a new permission. I'm making this permission signatureOrSystem, and changing the non-purgeable permission to the same (it should've been that, I just didn't know). I'm also adding string descriptions to appease the translation folks. Change-Id: I192e8b19ff9b0e425257cef0db081c3d75996ea5
* Support for non-purgeable downloads through the public API.Steve Howard2010-07-231-0/+6
| | | | | | | | | | | This change adds a permission, android.permission.DOWNLOAD_CACHE_NON_PURGEABLE. When an app has this permission, any downloads it requests through the public API to the download cache will automatically become non-purgeable, i.e. they'll never be automatically deleted by the download manager to free up space. This is intended for use only by the system updater. Change-Id: I35cdd44f7e5d46bc70443d1a9743f61a51395ddb
* Make DownloadProvider accessible for public API usage.Steve Howard2010-07-221-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This change removes the requirement that apps have the ACCESS_DOWNLOAD_MANAGER permission in order to access DownloadProvider. This enables the public API to work. Instead, DownloadProvider enforces the new permissions model for the public API: * insert() requires INTERNET permission * insert() checks that input fits within the restricted input allowed for the public API * insert() also strictly checks the file URI provided with DESTINATION_FILE_URI (and still requires WRITE_EXTERNAL_STORAGE permission if that is supplied) Note that if an app has the ACCESS_DOWNLOAD_MANAGER permission, legacy behavior is retained. I've added a test to cover this new access, and updated the existing permissions tests. I also fixed a bug in WHERE clause construction in update() and delete(), and refactored the code to eliminate duplication. Change-Id: I53a08df137b35c2788c36350276c9dff24858af1
* Make COLUMN_URI readable and tighten UID restrictions.Steve Howard2010-07-211-5/+0
| | | | | | | | | | | | I need to make COLUMN_URI readable by apps, since the public API exposes that field. In order to avoid any possible security issues, I got rid of the feature that potentially allowed apps to view downloads from other UIDs. No one was using that feature and the public API exposes no such feature (yet). While at it, I cleaned up some related code in update() and delete(). Change-Id: I5384115d2a865255d009fbe37449488fd2269389
* Create a new permission that allows apps to see downloads from otherLeon Scroggins2010-02-051-0/+5
| | | | | | | | | | | | applications to the SD card. Necessary for http://b/issue?id=2384554 Also create names for files by default, so they do not display as <Untitled>. Remove calls to createTitleFromFilename, which are no longer necessary. Requires a change to frameworks/base.
* remove ACCESS_CACHE_FILESYSTEM permissionDoug Zongker2010-01-061-6/+0
| | | | | | Its definition is moving to frameworks/base. Change-Id: Ieb0409c458939c14e2cc8b5bdbcef14564a59c55
* change ACCESS_CACHE_FILESYSTEM to signatureOrSystemDoug Zongker2009-11-171-1/+1
| | | | Needed for unbundling of google OTA.
* Add INSTALL_DRM permissionTom Taylor2009-08-111-2/+3
| | | | Add new permission to install drm into DrmProvider.
* Revert "Add new the INSERTL_DRM to the Downloader so it can install DRM ↵Tom Taylor2009-08-071-3/+2
| | | | | | content." This reverts commit f0728f890008a9fe7a79ffdbc30cd3388ce130fc.
* Add new the INSERTL_DRM to the Downloader so it can install DRM content.Tom Taylor2009-08-041-2/+3
|
* Make name of Download Provider localizable.Eric Fischer2009-06-161-1/+1
|
* DownloadProvider: Rename WRITE_SDCARD -> WRITE_EXTERNAL_STORAGESan Mehat2009-06-011-1/+1
| | | | Signed-off-by: San Mehat <san@google.com>
* Rename SDCARD_WRITE to WRITE_SDCARD.Dianne Hackborn2009-05-131-1/+1
|
* downloadprovider: Add SDCARD_WRITE permission to manifestSan Mehat2009-04-231-0/+1
| | | | Signed-off-by: San Mehat <san@google.com>
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+52
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-52/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-1/+0
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-091-0/+1
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-11/+5
|