| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Malicious callers can leak side-channel information by using
subqueries in any untrusted inputs where SQLite allows "expr" values.
This change starts using setStrictColumns() and setStrictGrammar()
on SQLiteQueryBuilder to block this class of attacks. This means we
now need to define the projection mapping of valid columns, which
consists of both the columns defined in the public API and columns
read internally by DownloadInfo.Reader.
We're okay growing sAppReadableColumnsSet like this, since we're
relying on our trusted WHERE clause to filter away any rows that
don't belong to the calling UID.
Remove the legacy Lexer code, since we're now internally relying on
the robust and well-tested SQLiteTokenizer logic.
Bug: 135270103
Bug: 135269143
Test: atest DownloadProviderTests
Test: atest CtsAppTestCases:android.app.cts.DownloadManagerTest
Change-Id: I302091ceda3591785b2124575e89dad19bc97469
(cherry picked from commit d3e5c766a143853580dd6642a4a32c5d1a6f9fb1)
|
|
|
|
| |
Change-Id: Ib694ce0c340d59424783f6e87e30d1f898ba9371
|
|
|
|
| |
Change-Id: I1a11bb3932b612a1de55b06b0fe352ec9dd8ef4f
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When accepting untrusted selections, they must be passed directly
to SQLiteQueryBuilder to ensure that setStrict() can be applied to
check for malicious callers sending unbalanced parentheses. This
means we can't mix local and remote selections; they always need to
be kept separate.
Use newly added SQLiteQueryBuilder functionality to apply strict
detection to update() and delete() calls.
Only allow the owner of a particular download to query the headers
for that download. Only delete headers for a download once we've
confirmed that caller can modify that download.
Test: atest packages/providers/DownloadProvider/tests/
Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java
Bug: 111085900
Change-Id: I9fd8e0d3cf80d7603bf0092f36fe449467090821
Merged-In: I9fd8e0d3cf80d7603bf0092f36fe449467090821
(cherry picked from commit 64b55ea82b1f394369237601ae1f1c78b776aabc)
|
|
|
|
|
| |
Bug: 26524617
Change-Id: Ide23c822b97ccab29a341184f14698dc942e8e14
|
|
|
|
| |
Change-Id: I3d0d795741dd4b0461487aa263cc8f11363e07cd
|
|
|
|
|
|
|
|
|
|
| |
It was never a supported API, and has been reported as causing
security issues, so remove it.
Bug: 111084083
Test: builds
Change-Id: I26345b192ffd55216bb8c8fdb82cb5869d68d3db
(cherry picked from commit 35e123117be9ec5d61dbaea60f6eac06c0e80dc4)
|
|
|
|
| |
Change-Id: I02fdb7df393e38ace55b36fd3ba66c4abdeebd19
|
|
|
|
| |
Change-Id: I91a1379d3cb5350f9156edc144bd4ab5df5e61d1
|
|
|
|
| |
Change-Id: I878bb8ff87dbe45a8f3a680637ffdb515024817a
|
|
|
|
| |
Change-Id: Iab7a8c3276466a3c9df2346160662123f51a0ee9
|
|
|
|
| |
Change-Id: Ia38a5ff64bfee6fcb079b6cd4a6ab2832f78ad5e
|
|
|
|
| |
Change-Id: Ie931b7cd9c207333d719f4ec875157ae0d6147f3
|
|
|
|
| |
Change-Id: I609ec81d4e216c08d72e506a2d78935e1ce27e49
|
|
|
|
| |
Change-Id: I6e006c99a574b1ee4741ddc92a81cd399340095d
|
|\
| |
| |
| |
| |
| |
| |
| | |
Android 7.1.2 release 24
# gpg: Signature made Fri 30 Jun 2017 01:19:42 PM CDT
# gpg: using DSA key E8AD3F819AB10E78
# gpg: Can't check signature: No public key
|
| |\
| | |
| | |
| | |
| | |
| | | |
2307743, 2307635, 2307799, 2307577, 2307800, 2307707, 2307803, 2307781, 2307773, 2307637, 2307804, 2307618, 2307734, 2307708, 2307805, 2307709, 2307806, 2307820, 2307746, 2307774, 2307839, 2307735, 2307782, 2307808, 2307840, 2307738, 2307783, 2307749, 2307775, 2307860, 2307899, 2307822, 2307823, 2307880, 2307778, 2307825, 2307882, 2307787, 2307919, 2307844, 2307905, 2307883, 2307829, 2307907, 2307832, 2307944, 2307945, 2307911] into nyc-mr2-pixel-monthly-release
Change-Id: I1eec7022b29c74eef753343df3331f7cf1c11eae
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
After uninstalling an app, if the system was shutdown before the
download provider received the broadcast for UID_REMOVED, another app
installed later in the same uid might be able to gain access to the
files downloaded by this app. Removing any such hanging downloads
at the start up of the download provider should fix this issue.
Test: Manually tested by uninstalling an app and killing and restarting
the process android.process.media, to check that the downloaded files of
the uninstalled app were deleted.
Bug:22011579
Merged in: I7382c4846f99035b40412a01715aee5873efa9e6
Change-Id: I7382c4846f99035b40412a01715aee5873efa9e6
(cherry picked from commit 2ab9a2d15c63cd567805adb8fa4b9c524afc5ceb)
(cherry picked from commit 3b15466b3cb6207660a73d1cea44a2d018ada23f)
|
| |
| |
| |
| | |
Change-Id: I0bc9aacfe260c702eabcf59a032c519bbd41facb
|
| |
| |
| |
| | |
Change-Id: I5cd082c9c5d092ac9aaea2cc78835fe2f9b5e20f
|
|\|
| |
| |
| |
| |
| |
| |
| | |
Android 7.1.2 Release 2 (N2G47E)
# gpg: Signature made Mon 03 Apr 2017 01:41:50 AM CDT
# gpg: using DSA key E8AD3F819AB10E78
# gpg: Can't check signature: No public key
|
| |
| |
| |
| |
| | |
Change-Id: Ibfbbdc553978241cc89fc30e47e6c61be202c1c1
Auto-generated-cl: translation import
|
| |
| |
| |
| |
| | |
Change-Id: I4f06fe6072b402f47b67616e90de02108b46cb78
Auto-generated-cl: translation import
|
| |\
| | |
| | |
| | |
| | |
| | | |
am: f96f51e8d7
Change-Id: I3a234d02ebf1a2bbdb52af82530d554417849d68
|
| |\ \
| | | |
| | | |
| | | |
| | | |
| | | | |
am: 968b2f2ca3
Change-Id: I7bf9d5aab0eb94550ce32be9615c6eaea01e6506
|
| |\ \ \
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
-s ours
am: e0e69444a8 -s ours
Change-Id: I23a804c3aeadfff5ea81592eef0109a51c197ca5
|
| |\ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
am: a8a5f8a749 -s ours
Change-Id: I2a5828c52aa518fe89c2790f1c301f8a867c1047
|
| |\ \ \ \ \
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
manual_merge_c85df59
am: f367d6b2a0
Change-Id: I3cefb5dff31c154a12839dba15452f1a0bc40f3e
|
| |\ \ \ \ \ \
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
am: 12d4497cc1
Change-Id: Ife92fb387336956fa5ef8b70fb8063971d8906ce
|
| |\ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
nyc-mr1-dev
am: 7edda42b80
Change-Id: I99f8aba98cc5071e9024a4fc3377d48e6b96f496
|
| |\ \ \ \ \ \ \ \
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | |
| | | | | | | | | | |
am: c0496a0b0b
Change-Id: I19d55af382ab6eb4ad080c402139eaf4df695ace
|
| |\ \ \ \ \ \ \ \ \
| | | | | | | | | | |
| | | | | | | | | | |
| | | | | | | | | | |
| | | | | | | | | | |
| | | | | | | | | | | |
am: 2be85cd23d
Change-Id: I724e6647d0cf82c2231c60f5e83721cb4c12d948
|
| |\ \ \ \ \ \ \ \ \ \
| | | | | | | | | | | |
| | | | | | | | | | | |
| | | | | | | | | | | |
| | | | | | | | | | | |
| | | | | | | | | | | | |
am: 8c8f3a0c7b
Change-Id: Id309c2da3818c4605e188d6ca223ad79f69d2fde
|
| |\ \ \ \ \ \ \ \ \ \ \
| | | | | | | | | | | | |
| | | | | | | | | | | | |
| | | | | | | | | | | | |
| | | | | | | | | | | | |
| | | | | | | | | | | | |
| | | | | | | | | | | | |
| | | | | | | | | | | | | |
6777320335 am: a474af3a08 am: 8bec536bf2 am: 34ccbd80ea am: 956426bee5 am: 6a6944d1f4 am: 8e8770bdc8 am: 85a6e20a85 am: 465a080262
am: c46b6cc496
Change-Id: I1ba6dfaea02841e8ac6e4aa4f079a179a296f352
|
| |\ \ \ \ \ \ \ \ \ \ \ \
| | | | | | | | | | | | | |
| | | | | | | | | | | | | |
| | | | | | | | | | | | | |
| | | | | | | | | | | | | |
| | | | | | | | | | | | | | |
am: 2f21e5f161
Change-Id: Ib38f40b19b0dbf33a0b3b0eba29d07acbac2c8a3
|
| |\ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | | | | | | | | | | |
| | | | | | | | | | | | | | |
| | | | | | | | | | | | | | |
| | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | |
am: 2a283e9853
Change-Id: Ia99fe23f14757fb362114b46c9f6b5e7e848059a
|
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | |
nyc-mr1-dev
am: 4093cb5adb
Change-Id: I6eca1a66132c601aa86fd0707e823cf6bec4c1e1
|
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | |
am: 314026d4e8
Change-Id: I3456cd39d299e97e9d2ef7ce200596bd829c3cdc
|
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
b3ce7976f2 am: 860239d87e am: 616f47abce am: a9ea617232 am: 567e549614 am: 14ae5650e4 am: 80ab64c562
am: f4607cbdb8
Change-Id: I9a5f79fd6f872277f35d740e0fd487120392e0ff
|
| |\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | |
am: 7b7fa39dec
Change-Id: Ib5b8161ca3812b1200d96353bc7a3077e5cea01e
|
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | |
Change-Id: I9f24a790ec7057b0be001d3bebe7c4aa382c864c
|
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | |
Change-Id: I909fea50b7b6d26a31df7bd09b9c8dbe120c2df5
|
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | |
Change-Id: I575efe47e1605c232d91aaeec506c32d55200804
|
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | |
Change-Id: I3ca425c68a8dd1d1545fd3a62ceae50a3dbb7f6f
|
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | |
Change-Id: I4dcb2f740e647c0495abc10a90e647826101a53f
|
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | |
Change-Id: I963dcb23b6dc1c55e6f2b39208590928d72c2e0e
|
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | |
Change-Id: I1f237f1c90a633d5816ebc84dd8504cd9b7f48b5
|
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | |
Change-Id: I2aac8c501435fd468ca188c121b81f2c1de2fe54
|
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | |
Change-Id: I97c79babd5ffd99b6f7e6221bd1d978f9cc8d761
Ticket: -
|
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | | |
Implement the following features:
- Manually pause/resume individual downloads in DownloadManager
- Manually pause/resume all downloads in notification
Based on commit ecd609e7017b8a69688bbae25c17d878ea305f19.
Change-Id: I433cdee2de8b3add0248bbb0a9d02f8da4e5bb38
|