summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | | Merge commit 'b1299b7414b05ee48d680d1f0199a43b31fc103d' into HEADBill Yi2014-04-290-0/+0
| | |\ \ \ \ \ \ | | | |/ / / / / | | |/| | | | |
| | | * | | | | am 2834a68d: Merge "Drop restorecon call from DownloadProvider."Nick Kralevich2014-03-151-6/+0
| | | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '2834a68d04dc3d0ce42c231873e5bec4b0f0c65c': Drop restorecon call from DownloadProvider.
* | | | | | | | Merge "Import translations. DO NOT MERGE"Baligh Uddin2014-04-291-1/+1
|\ \ \ \ \ \ \ \
| * | | | | | | | Import translations. DO NOT MERGEBaligh Uddin2014-04-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I0fb4b01370e760a827caf1e17cadcef802c3e157 Auto-generated-cl: translation import
* | | | | | | | | OsConstants is moving.Elliott Hughes2014-04-291-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie72e18f539cbad593c489bf52b9afea5330f62c1
* | | | | | | | | Fix reference to moved ErrnoException.Torne (Richard Coles)2014-04-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ErrnoException has moved to android.system; fix reference in DownloadIdleService. Change-Id: I8a08d3f8074d0ec5a4e8314db173139a109abb33
* | | | | | | | | Move internal DownloadProvider code off libcore.os.Elliott Hughes2014-04-283-25/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (As much as possible. There are no plans to make the mocking API public.) Change-Id: I348877b850d6d34572d5a19e67952254bc4f12ef
* | | | | | | | | resolved conflicts for merge of 3b0c40cf to masterElliott Hughes2014-04-280-0/+0
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / |/| / / / / / / / | |/ / / / / / / Change-Id: I9e3b0735950cb1e495ecd58590b5d6e1f253bc88
| * | | | | | | am ea8e67d0: Merge "Track API package change."Elliott Hughes2014-04-281-4/+4
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'ea8e67d0c31bda6b51b3991fb0dfada66b7359ea': Track API package change.
| | * | | | | | Merge "Track API package change."Elliott Hughes2014-04-281-4/+4
| | |\ \ \ \ \ \ | | | |_|/ / / / | | |/| | | | |
| | | * | | | | Track API package change.Elliott Hughes2014-04-281-4/+4
| | |/ / / / / | | | | | | | | | | | | | | | | | | | | | Change-Id: Ie2f35386e48894a9c9afb9717af90a5628dcd79b
* | | | | | | fix test buildsColin Cross2014-04-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | StructStatVfs and ErrnoException were moved from libcore.io to android.system Change-Id: I42c789a941f964ae7dde224b16af39a95212fbc7
* | | | | | | am bdba041e: (-s ours) am 58a8f205: (-s ours) Import translations. DO NOT MERGEBaligh Uddin2014-04-230-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'bdba041eb86f06dbf8a2832d342bfdfdeb4b39cf': Import translations. DO NOT MERGE
| * | | | | | am 58a8f205: (-s ours) Import translations. DO NOT MERGEBaligh Uddin2014-04-230-0/+0
| |\ \ \ \ \ \ | | | |_|/ / / | | |/| | | | | | | | | | | | | | | | | | * commit '58a8f20526f06452e7348a3c287951d89a192ec5': Import translations. DO NOT MERGE
| | * | | | | Import translations. DO NOT MERGEBaligh Uddin2014-04-2273-103/+1458
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I6e60ad45fafed82ebcebb45efa7d28582c498460 Auto-generated-cl: translation import
* | | | | | | Import translations. DO NOT MERGEBaligh Uddin2014-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I7a87313ed9154ceba2cf28c5aeead0d0af1505c2 Auto-generated-cl: translation import
* | | | | | | 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
* | | | | | | Import translations. DO NOT MERGEBaligh Uddin2014-03-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I8af96092317594d6afde66e0657545daaae4c7df Auto-generated-cl: translation import
* | | | | | | Import translations. DO NOT MERGEBaligh Uddin2014-03-192-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I6e2571e30582e7a49604c3b0397821d18b0071ef Auto-generated-cl: translation import
* | | | | | | Import translations. DO NOT MERGEGeoff Mendal2014-03-172-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I11aaaafa00673987fb097682e32a04e0093fbd2e Auto-generated-cl: translation import
* | | | | | | resolved conflicts for merge of 2ca55fd3 to masterNick Kralevich2014-03-141-6/+0
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I59df74b902c95299ae9adda2ddddb6bad4260159
| * | | | | | | am b3fe6924: am 2834a68d: Merge "Drop restorecon call from DownloadProvider."Nick Kralevich2014-03-151-6/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'b3fe69241b09c574428416dc0b2875c06549c608': Drop restorecon call from DownloadProvider.
| | * | | | | | am 2834a68d: Merge "Drop restorecon call from DownloadProvider."Nick Kralevich2014-03-151-6/+0
| | |\ \ \ \ \ \ | | | | |/ / / / | | | |/| | | | | | | | | | | | | | | | | | | | * commit '2834a68d04dc3d0ce42c231873e5bec4b0f0c65c': Drop restorecon call from DownloadProvider.
| | | * | | | | Merge "Drop restorecon call from DownloadProvider."Nick Kralevich2014-03-151-6/+0
| | | |\ \ \ \ \
| | | | * | | | | Drop restorecon call from DownloadProvider.Stephen Smalley2014-03-121-6/+0
| | | |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It is not necessary/useful to place this directory into a separate type from other app data files, so remove this restorecon. Change-Id: Iabd643a515c134ab2a62e82866a3f72530f795ba Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
* | | | | | | | Import translations. DO NOT MERGEBaligh Uddin2014-03-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I9e9268493f082614483a44f61467b93ac2075bb5 Auto-generated-cl: translation import
* | | | | | | | Import translations. DO NOT MERGEBaligh Uddin2014-03-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I0a43d9232a21d978f86fbb93aa62ee32053f1b74 Auto-generated-cl: translation import
* | | | | | | | Import translations. DO NOT MERGEBaligh Uddin2014-02-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I202110dd9f346faf6ad1f8b056565d41dfe90646 Auto-generated-cl: translation import
* | | | | | | | am e95f8fab: (-s ours) am 931de3d5: (-s ours) am ed5049a8: (-s ours) am ↵Baligh Uddin2014-02-210-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 13a6b148: (-s ours) am 56c0597e: (-s ours) am 738782ff: (-s ours) Import translations. DO NOT MERGE * commit 'e95f8fab8261c3b1f8d6eaff0e08256caede5fb6': Import translations. DO NOT MERGE
| * | | | | | | am 931de3d5: (-s ours) am ed5049a8: (-s ours) am 13a6b148: (-s ours) am ↵Baligh Uddin2014-02-200-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 56c0597e: (-s ours) am 738782ff: (-s ours) Import translations. DO NOT MERGE * commit '931de3d57ed054d1624cba6443ecaff22bf7ebbf': Import translations. DO NOT MERGE
| | * | | | | | am ed5049a8: (-s ours) am 13a6b148: (-s ours) am 56c0597e: (-s ours) am ↵Baligh Uddin2014-02-200-0/+0
| |/| | | | | | | | | |/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 738782ff: (-s ours) Import translations. DO NOT MERGE * commit 'ed5049a8aee55aa422939ba356da2e1de5466e77': Import translations. DO NOT MERGE
| | * | | | | am 13a6b148: (-s ours) am 56c0597e: (-s ours) am 738782ff: (-s ours) Import ↵Baligh Uddin2014-02-200-0/+0
| |/| | | | | | | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | translations. DO NOT MERGE * commit '13a6b148384ec433bafeb5fd547444f410955d7e': Import translations. DO NOT MERGE
| | * | | | am 56c0597e: (-s ours) am 738782ff: (-s ours) Import translations. DO NOT MERGEBaligh Uddin2014-02-200-0/+0
| | |\ \ \ \ | | | | |/ / | | | |/| | | | | | | | | | | | | | * commit '56c0597e29bb89ae66e3e5b9476ab13cb7283dba': Import translations. DO NOT MERGE
| | | * | | am 738782ff: (-s ours) Import translations. DO NOT MERGEBaligh Uddin2014-02-200-0/+0
| | | |\ \ \ | | | | | |/ | | | | |/| | | | | | | | | | | | | * commit '738782ffd27153884b8adeb3c797d7073c9c15ad': Import translations. DO NOT MERGE
| | | | * | Import translations. DO NOT MERGEBaligh Uddin2014-02-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ic24ce6a6b18e3c7e5adcc4f75beea818b33b3629 Auto-generated-cl: translation import
* | | | | | 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-066-89/+192
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-0618-1156/+1321
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | | Revert "change download provider to use system log"Doug Zongker2014-01-277-88/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 4f9d2d04003fafb358d7c127054055b3a9732c9b, was only wanted for debugging.
* | | | | | change download provider to use system logDoug Zongker2014-01-277-88/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Try to catch the download provider in the act of deleting pending system updates. Bug: 12680933 Change-Id: If58aba5c30fd624217e5d073730645af05e98ac7
* | | | | | am f9e455a6: am 34d915e1: am 18794718: am c5d43a1f: Merge "Creates parent ↵Jeff Sharkey2014-01-171-1/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | directories before creates file" * commit 'f9e455a61cf29e515adb4e3c56e8e9269bc868f9': Creates parent directories before creates file
| * | | | | am 34d915e1: am 18794718: am c5d43a1f: Merge "Creates parent directories ↵Jeff Sharkey2014-01-171-1/+9
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | before creates file" * commit '34d915e1dccf3d65e5a7c7f3a2273047ba8e51e8': Creates parent directories before creates file
| | * | | | | am 18794718: am c5d43a1f: Merge "Creates parent directories before creates file"Jeff Sharkey2014-01-171-1/+9
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit '18794718f15cbf79c8da732af3e8368c7b905523': Creates parent directories before creates file
| | | * | | | am c5d43a1f: Merge "Creates parent directories before creates file"Jeff Sharkey2014-01-171-1/+9
| | | |\ \ \ \ | | | | | |_|/ | | | | |/| | | | | | | | | | | | | | | | * commit 'c5d43a1fc595ce650a9a20d2811ad47429ebd7da': Creates parent directories before creates file
| | | | * | | Merge "Creates parent directories before creates file"Jeff Sharkey2014-01-171-1/+9
| | | | |\ \ \
| | | | | * | | Creates parent directories before creates fileRoger Chen2014-01-091-1/+9
| | | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I124f7ce2b731b100e9572d7c5d95206e243ee316 Signed-off-by: Roger Chen <cxr514033970@gmail.com>
* | | | | | | Import translations. DO NOT MERGEGeoff Mendal2014-01-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ideda5d4f3df261fb2e30faa0dddd9312323b713f Auto-generated-cl: translation import
* | | | | | | am 5a6b8f28: (-s ours) am 76214041: (-s ours) am 7f13f61b: (-s ours) am ↵Baligh Uddin2014-01-070-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | c478796c: (-s ours) am 8f3c6521: (-s ours) Import translations. DO NOT MERGE * commit '5a6b8f28c2cd2a78798b51b902599a79ffe2e997': Import translations. DO NOT MERGE