| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Adding try/finally blocks to make sure that cursor
resources are let go
Change-Id: I596074aa9ab5752f91a26b5a03e1f39c23c64a5f
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Change-Id: Iefb371e2bdeced17fce52a10c6a0fa1685fb74d8
Auto-generated-cl: translation import
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Change-Id: I72bbe5619e739ef745c921a79c1dbb32a9dca4db
Auto-generated-cl: translation import
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Change-Id: Id27d2c45e0529f1e756ec2e998cf9fff571e0dcd
Auto-generated-cl: translation import
|
|\| | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
\'b1299b7414b05ee48d680d1f0199a43b31fc103d\' into HEAD
* commit 'bf0c789f0c0aafba0f2ed468aee20f99ca9381ba':
|
| |\| | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
* commit 'd0b810ffdd1ffcb130e5c1f539ecba651ca3e7ef':
|
| | |\ \ \ \ \ \
| | | |/ / / / /
| | |/| | | | | |
|
| | | |\| | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
* commit '2834a68d04dc3d0ce42c231873e5bec4b0f0c65c':
Drop restorecon call from DownloadProvider.
|
|\ \ \ \ \ \ \ \ |
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
Change-Id: I0fb4b01370e760a827caf1e17cadcef802c3e157
Auto-generated-cl: translation import
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
Change-Id: Ie72e18f539cbad593c489bf52b9afea5330f62c1
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
ErrnoException has moved to android.system; fix reference in
DownloadIdleService.
Change-Id: I8a08d3f8074d0ec5a4e8314db173139a109abb33
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
(As much as possible. There are no plans to make the mocking API public.)
Change-Id: I348877b850d6d34572d5a19e67952254bc4f12ef
|
|\ \ \ \ \ \ \ \ \
| |/ / / / / / / /
|/| / / / / / / /
| |/ / / / / / / |
Change-Id: I9e3b0735950cb1e495ecd58590b5d6e1f253bc88
|
| |\| | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
* commit 'ea8e67d0c31bda6b51b3991fb0dfada66b7359ea':
Track API package change.
|
| | |\ \ \ \ \ \
| | | |_|/ / / /
| | |/| | | | | |
|
| | |/ / / / /
| | | | | | |
| | | | | | |
| | | | | | | |
Change-Id: Ie2f35386e48894a9c9afb9717af90a5628dcd79b
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
StructStatVfs and ErrnoException were moved from libcore.io to
android.system
Change-Id: I42c789a941f964ae7dde224b16af39a95212fbc7
|
|\| | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
* commit 'bdba041eb86f06dbf8a2832d342bfdfdeb4b39cf':
Import translations. DO NOT MERGE
|
| |\ \ \ \ \ \
| | | |_|/ / /
| | |/| | | |
| | | | | | |
| | | | | | | |
* commit '58a8f20526f06452e7348a3c287951d89a192ec5':
Import translations. DO NOT MERGE
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Change-Id: I6e60ad45fafed82ebcebb45efa7d28582c498460
Auto-generated-cl: translation import
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Change-Id: I7a87313ed9154ceba2cf28c5aeead0d0af1505c2
Auto-generated-cl: translation import
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This reverts commit aea634a20b08f00770c1d0774e6e892e323f9de3.
We've switched to a whitelist approach.
Change-Id: Ifd760d8f800fd2de3a99079d1e04576163ebad80
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Change-Id: I575f1a1589e805341e5772eceb5db2f06f9ec4c2
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Change-Id: I8af96092317594d6afde66e0657545daaae4c7df
Auto-generated-cl: translation import
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Change-Id: I6e2571e30582e7a49604c3b0397821d18b0071ef
Auto-generated-cl: translation import
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Change-Id: I11aaaafa00673987fb097682e32a04e0093fbd2e
Auto-generated-cl: translation import
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Change-Id: I59df74b902c95299ae9adda2ddddb6bad4260159
|
| |\| | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
* commit 'b3fe69241b09c574428416dc0b2875c06549c608':
Drop restorecon call from DownloadProvider.
|
| | |\ \ \ \ \ \
| | | | |/ / / /
| | | |/| | | |
| | | | | | | |
| | | | | | | | |
* commit '2834a68d04dc3d0ce42c231873e5bec4b0f0c65c':
Drop restorecon call from DownloadProvider.
|
| | | |\ \ \ \ \ |
|
| | | |/ / / / /
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
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>
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Change-Id: I9e9268493f082614483a44f61467b93ac2075bb5
Auto-generated-cl: translation import
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Change-Id: I0a43d9232a21d978f86fbb93aa62ee32053f1b74
Auto-generated-cl: translation import
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Change-Id: I202110dd9f346faf6ad1f8b056565d41dfe90646
Auto-generated-cl: translation import
|
|\| | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
13a6b148: (-s ours) am 56c0597e: (-s ours) am 738782ff: (-s ours) Import translations. DO NOT MERGE
* commit 'e95f8fab8261c3b1f8d6eaff0e08256caede5fb6':
Import translations. DO NOT MERGE
|
| |\| | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
56c0597e: (-s ours) am 738782ff: (-s ours) Import translations. DO NOT MERGE
* commit '931de3d57ed054d1624cba6443ecaff22bf7ebbf':
Import translations. DO NOT MERGE
|
| |/| | | | | |
| | | |/ / / /
| | |/| | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
738782ff: (-s ours) Import translations. DO NOT MERGE
* commit 'ed5049a8aee55aa422939ba356da2e1de5466e77':
Import translations. DO NOT MERGE
|
| |/| | | | |
| | | |/ / /
| | |/| | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
translations. DO NOT MERGE
* commit '13a6b148384ec433bafeb5fd547444f410955d7e':
Import translations. DO NOT MERGE
|
| | |\ \ \ \
| | | | |/ /
| | | |/| |
| | | | | |
| | | | | | |
* commit '56c0597e29bb89ae66e3e5b9476ab13cb7283dba':
Import translations. DO NOT MERGE
|
| | | |\ \ \
| | | | | |/
| | | | |/|
| | | | | |
| | | | | | |
* commit '738782ffd27153884b8adeb3c797d7073c9c15ad':
Import translations. DO NOT MERGE
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: Ic24ce6a6b18e3c7e5adcc4f75beea818b33b3629
Auto-generated-cl: translation import
|
|\| | | | |
| | | | | |
| | | | | |
| | | | | | |
Change-Id: Ifcdb3e10bbbb08711d3f8bdafa384e092bf1a7db
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
This reverts commit 4f9d2d04003fafb358d7c127054055b3a9732c9b, was only
wanted for debugging.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Try to catch the download provider in the act of deleting pending
system updates.
Bug: 12680933
Change-Id: If58aba5c30fd624217e5d073730645af05e98ac7
|
|\| | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
directories before creates file"
* commit 'f9e455a61cf29e515adb4e3c56e8e9269bc868f9':
Creates parent directories before creates file
|
| |\ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
before creates file"
* commit '34d915e1dccf3d65e5a7c7f3a2273047ba8e51e8':
Creates parent directories before creates file
|