summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-10.0.0_r37' into ↵lineage-17.1Kevin F. Haggerty2020-06-016-16/+16
|\ | | | | | | | | | | | | | | | | | | | | | | staging/lineage-17.1_merge-android-10.0.0_r37 Android 10.0.0 Release 37 (QQ3A.200605.001) * tag 'android-10.0.0_r37': Import translations. DO NOT MERGE Import translations. DO NOT MERGE Change-Id: Ifee74dceaf6aef8d7ee5fb79b38c7110f586fc67
| * Snap for 6304846 from de6961050a3cc30908a0192400276474733a5770 to ↵android-build-team Robot2020-03-176-14/+14
| |\ | | | | | | | | | | | | | | | qt-qpr3-release Change-Id: I603910114526b0a0b20442e684739e4b2c436a08
| | * Import translations. DO NOT MERGEBill Yi2020-03-166-14/+14
| | | | | | | | | | | | | | | Auto-generated-cl: translation import Change-Id: Iecd299fd77df191362e1d16ae8dd0a38f02852cb
| * | Snap for 6131975 from c916a4bb7734ff744c0500216b19d2e137a46a8c to ↵android-build-team Robot2020-01-141-2/+2
| |\| | | | | | | | | | | | | | | | qt-qpr3-release Change-Id: Ie854b521906156792af1a3c694d7c86c1f1f7cbc
| | * Import translations. DO NOT MERGEBill Yi2020-01-131-2/+2
| |/ | | | | | | | | Change-Id: Ie3e527e921c8f104bc3e259433f7a90cc21ea82b Auto-generated-cl: translation import
* | Fix "Invalid columns in request:" errors, when there are multiple columnsPierre-Hugues Husson2020-05-231-0/+1
| | | | | | | | | | | | | | | | | | Without it: Invalid columns in request: notificationclassotheruid With it: Invalid columns in request: notificationclass,otheruid Change-Id: I09cc18286f342b0c9db34d6de7820d2fba66c557
* | Switch from deprecated/removed JobInfo method.Kweku Adams2020-05-231-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | JobInfo.setEstimatedBytes(long) was deprecated and tagged with @removed before Pie shipped but DownloadProvider continued to use the deprecated method. Switching DownloadProvider over to the public method so the deprecated method can be removed. Bug: 130692844 Bug: 135214188 Test: atest com.android.server.job.controllers.ConnectivityControllerTest Test: atest com.android.providers.downloads.DownloadProviderFunctionalTest Change-Id: I5506079ee06e75f7394814fc967df21a4a86341d (cherry picked from commit a8d67ad37081951fde57ed494730f86e595ba709)
* | Trigger mediascan after a download is completed.Sudheer Shanka2020-05-231-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a media item is inserted, media_type will be automatically updated but some of the other media attributes will only be updated after a media scan. Bug: 138419471 Test: manual Test: atest DownloadProviderTests Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java Test: atest cts/tests/app/DownloadManagerLegacyTest/src/android/app/cts/DownloadManagerLegacyTest.java Test: atest cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/DownloadManagerApi28Test.java Change-Id: If8192b31fb7da37425480e7afa53dd1304533b76 (cherry picked from commit 90de12ad0c76fa9e231b3864c4afb8f312b53dda)
* | Automatic translation importMichael Bestas2020-04-23144-140/+99
| | | | | | | | Change-Id: I7fe92ae86cdcb6ecc0ee1d7be665afb88dc3ed68
* | Automatic translation importMichael Bestas2020-03-306-6/+0
| | | | | | | | Change-Id: I366ae9c62baf6eb97b5c06e3d0b69bc84f41fac3
* | Merge tag 'android-10.0.0_r31' into lineage-17.1-android-10.0.0_r31Luca Stefani2020-03-07168-5632/+5632
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Android 10.0.0 release 31 * tag 'android-10.0.0_r31': Import translations. DO NOT MERGE Import translations. DO NOT MERGE Change-Id: I08ce1fde2d2e23082adc668ae975134487aad70f
| * | Snap for 6101850 from a24d10f534384c6b65dc7345736d0f3eec6581dc to ↵android-build-team Robot2019-12-291-1/+1
| |\| | | | | | | | | | | | | | | | qt-qpr2-release Change-Id: Ifbb6af1135bd1426c5008dbdbaf3fcfc623b2736
| | * Import translations. DO NOT MERGEBill Yi2019-12-281-1/+1
| | | | | | | | | | | | | | | Change-Id: I3eaddf4f8659c424a09240caf035551838fa22e9 Auto-generated-cl: translation import
| * | Snap for 5998981 from 1a01d4829f213c9dcd1f2b68cc3b10f5d1d977a5 to ↵android-build-team Robot2019-11-10168-5632/+5632
| |\| | | | | | | | | | | | | | | | qt-qpr2-release Change-Id: I094f00d90068d90a73ea15de61311cd95b4b78ae
| | * Import translations. DO NOT MERGEBill Yi2019-11-08168-5632/+5632
| |/ | | | | | | | | Change-Id: Icbc1cea972b6606078c043346bc29352fea63642 Auto-generated-cl: translation import
* | Automatic translation importMichael Bestas2020-01-27146-0/+4262
| | | | | | | | Change-Id: Id9556e047824162dd77b49735186a1f162e02ef9
* | DownloadProvider: Add support for manual pause/resumestaging/lineage-17.0_merge-android-10.0.0_r9Zhao Wei Liew2019-12-118-9/+171
| | | | | | | | | | | | | | | | | | | | 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
* | DownloadProvider: Display download speed in notificationLasse Brudeskar Vikås2019-12-113-6/+89
| | | | | | | | | | | | | | Add the current total download speed to in-progress downloads shown in the notification pane. Change-Id: I801dbe61c7ee59d0c1d14d5851ad6dc3a7678499
* | Snap for 5907634 from 0d5b9efb6e220f98ba9a0cafee6bb7fe1daba8ac to ↵android-build-team Robot2019-09-291-3/+3
|\| | | | | | | | | | | qt-qpr1-release Change-Id: Ifdfec766c9025d46b68b0e01b835ed53ef52cf52
| * Import translations. DO NOT MERGEBill Yi2019-09-281-3/+3
| | | | | | | | | | Change-Id: I8d0b7ebd57432da1082d53229d7ead23d39618df Auto-generated-cl: translation import
* | Snap for 5876498 from faf439ba2fe50aa0c2678455b97acf3dbef6266d to ↵android-build-team Robot2019-09-142-342/+107
|\| | | | | | | | | | | qt-qpr1-release Change-Id: Ib312967c8cb4e3f8605f666db6a384e420ac9ebd
| * [automerger skipped] Merge "RESTRICT AUTOMERGE Enable stricter ↵Jeff Sharkey2019-09-120-0/+0
| |\ | | | | | | | | | | | | | | | | | | | | | SQLiteQueryBuilder options." into pi-dev am: abb84003e8 -s ours am: 74e800be1a am: 71cb21b6db Change-Id: Icd99f07df0b57d2fae995e791512a78c9810192f
| | * [automerger skipped] Merge "RESTRICT AUTOMERGE Enable stricter ↵Jeff Sharkey2019-09-120-0/+0
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | SQLiteQueryBuilder options." into pi-dev am: abb84003e8 -s ours am: 74e800be1a Change-Id: I3cddb4a5ea4af86ce8d61fb283f9ac9c0e3eb62e
| | | * [automerger skipped] Merge "RESTRICT AUTOMERGE Enable stricter ↵Jeff Sharkey2019-09-120-0/+0
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SQLiteQueryBuilder options." into pi-dev am: abb84003e8 -s ours am skip reason: subject contains skip directive Change-Id: Ie9a6c8887dbbeea2f1ddb38df4b4bcd92e795e79
| | | | * Merge "RESTRICT AUTOMERGE Enable stricter SQLiteQueryBuilder options." into ↵Jeff Sharkey2019-09-122-345/+107
| | | | |\ | | | | | | | | | | | | | | | | | | pi-dev
| * | | | | [automerger skipped] RESTRICT AUTOMERGE Enable stricter SQLiteQueryBuilder ↵Jeff Sharkey2019-09-120-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | options. am: d3e5c766a1 -s ours am: 703392e548 am: 9586551095 Change-Id: I146127732b2d7c5bba0c95c604c39a72d66236cb
| | * | | | [automerger skipped] RESTRICT AUTOMERGE Enable stricter SQLiteQueryBuilder ↵Jeff Sharkey2019-09-120-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | options. am: d3e5c766a1 -s ours am: 703392e548 Change-Id: I3ee1977f9a1a0276dbe1e4490ba9c0c2c06cac1f
| | | * | | [automerger skipped] RESTRICT AUTOMERGE Enable stricter SQLiteQueryBuilder ↵Jeff Sharkey2019-09-120-0/+0
| | | |\ \ \ | | | | | |/ | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | options. am: d3e5c766a1 -s ours am skip reason: subject contains skip directive Change-Id: I6d1d26c7f58e6ab263d642d75403d51240a0429b
| | | | * | RESTRICT AUTOMERGEJeff Sharkey2019-09-062-345/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable stricter SQLiteQueryBuilder options. 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
| * | | | | [automerger skipped] RESTRICT AUTOMERGE Enable stricter SQLiteQueryBuilder ↵Jeff Sharkey2019-09-120-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | options. am: a9533dcd62 am: 84343cfa93 am: 060def8608 -s ours am: 232eaee57b -s ours am: 6b98ed38e5 am: bfd2ad60f7 Change-Id: I1e390c5e840c7f923c8f35ffb5fe10ea8cbe9624
| | * | | | [automerger skipped] RESTRICT AUTOMERGE Enable stricter SQLiteQueryBuilder ↵Jeff Sharkey2019-09-120-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | options. am: a9533dcd62 am: 84343cfa93 am: 060def8608 -s ours am: 232eaee57b -s ours am: 6b98ed38e5 Change-Id: I9ac6578f786bb62f5d3249f0e1e6118a65b2f668
| | | * | | [automerger skipped] RESTRICT AUTOMERGE Enable stricter SQLiteQueryBuilder ↵Jeff Sharkey2019-09-120-0/+0
| | | |\ \ \ | | | | | |/ | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | options. am: a9533dcd62 am: 84343cfa93 am: 060def8608 -s ours am: 232eaee57b -s ours am skip reason: subject contains skip directive Change-Id: I188dce6a804e8ba92b0b06d201dc57416b8283eb
| | | | * | [automerger skipped] RESTRICT AUTOMERGE Enable stricter SQLiteQueryBuilder ↵Jeff Sharkey2019-09-120-0/+0
| | | | |\ \ | | | | | |/ | | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | options. am: a9533dcd62 am: 84343cfa93 am: 060def8608 -s ours am skip reason: subject contains skip directive Change-Id: I55d1b6622a530e642720abdfced4d81933802083
| | | | | * RESTRICT AUTOMERGE Enable stricter SQLiteQueryBuilder options. am: a9533dcd62Jeff Sharkey2019-09-122-345/+107
| | | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 84343cfa93 Change-Id: I2d61eace0dd6ddd1aed8564bf8087741b3367655
| | | | | | * RESTRICT AUTOMERGE Enable stricter SQLiteQueryBuilder options.Jeff Sharkey2019-09-122-345/+107
| | | | | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: a9533dcd62 Change-Id: If0c1c25c5a3fa6e091b48ae47df7766ab85734f7
| | | | | | | * RESTRICT AUTOMERGEJeff Sharkey2019-09-102-345/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable stricter SQLiteQueryBuilder options. 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: cts-tradefed run cts -m CtsAppTestCases -t android.app.cts.DownloadManagerTest Change-Id: I302091ceda3591785b2124575e89dad19bc97469
| * | | | | | | RESTRICT AUTOMERGE Enable stricter SQLiteQueryBuilder options. am: ffec00b013Jeff Sharkey2019-09-112-342/+107
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 93c92f6502 Change-Id: Ide7ac00ef8d0411beb58168d295b31e697349a46
| | * | | | | | RESTRICT AUTOMERGE Enable stricter SQLiteQueryBuilder options.Jeff Sharkey2019-09-112-342/+107
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: ffec00b013 Change-Id: I2e27d1e54090eb38c113cd855f715017fe116c96
| | | * | | | | RESTRICT AUTOMERGE Enable stricter SQLiteQueryBuilder options.Jeff Sharkey2019-09-102-342/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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, 135269143 Test: atest DownloadProviderTests Test: atest CtsAppTestCases:android.app.cts.DownloadManagerTest Change-Id: I8e595e1470df586a3d593b7851305da413e44347
* | | | | | | | Snap for 5849705 from a1959c050e285fe6245bd0aebddd1cfc38b16dd0 to ↵android-build-team Robot2019-09-042-9/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-qpr1-release Change-Id: Iffc2da39c23b4c0e01745739dcff3d2b9f790390
| * | | | | | | Import translations. DO NOT MERGEBill Yi2019-09-032-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Bug: 64712476 Change-Id: If4d6ab45c3d78ba95fa3e75642acfe64c81c0dd5
* | | | | | | | Snap for 5814541 from 8c12b6687ed363fe93c6737719b2e86913cc849e to ↵android-build-team Robot2019-08-200-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-qpr1-release Change-Id: I6dd511f8f1ae6cbed7d58eec9f18f3173c78083b
| * | | | | | | [automerger skipped] Import translations. DO NOT MERGEBill Yi2019-08-190-0/+0
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: d1c80691c8 -s ours am skip reason: subject contains skip directive Change-Id: I79acd40f5aa64928606ee670f7fec8acd266a081
| | * | | | | | Import translations. DO NOT MERGEBill Yi2019-08-182-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Bug: 64712476 Change-Id: I12a0df0f505ee15fd25ed552c52365ffd2996707
* | | | | | | | Snap for 5811135 from 158d1fa8a1d2017e778819082e50b424785dd145 to ↵android-build-team Robot2019-08-176-44/+219
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-qpr1-release Change-Id: I481fa45ab7cc083a8e118e90754af5d0b24a80b2
| * | | | | | | Ensure files get mediascanned after the download is completed.Sudheer Shanka2019-08-156-44/+219
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: b02bbf988e Change-Id: I8d37b11fb060996eb1d85528c4341d3c0eaed169
| | * | | | | | Ensure files get mediascanned after the download is completed.Sudheer Shanka2019-08-136-44/+219
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update file size in MediaStore to 0 before triggering mediascan which should force MediaScanner to scan this file. Also, add a clean-up job to trigger mediscan on already existing downloads which should have been mediascanned but haven't and got stuck in this state. Bug: 138419471 Test: manual Test: atest DownloadProviderTests Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java Test: atest DownloadManagerLegacy Test: atest DownloadManagerApi28 Change-Id: I813086ceba6c70ca42309fcce5f9db209eac1575 (cherry picked from commit c2b0739b08e423e3c9fcde42b095cd72315ecf1f)
* | | | | | | | Snap for 5778794 from 454cf9bf59c12f370e2c7bd6cebec417fa0b7a9f to ↵android-build-team Robot2019-08-032-0/+11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | qt-qpr1-release Change-Id: I6a717ec2b7bad082350e9eeb07e042e9e48ce76f
| * | | | | | | Merge "Trigger mediascan after a download is completed." into qt-dev am: ↵bsears2019-07-312-0/+11
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 14a5b9171a am: 9541cdbd3b Change-Id: Ic9211bedb452bb60706ce76734bbdcdc4c7b639f
| | * | | | | | Merge "Trigger mediascan after a download is completed." into qt-devbsears2019-07-312-0/+11
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | am: 14a5b9171a Change-Id: I11529f1ff938fb8c726aa7da2f9b1c4e4990182f