summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge tag 'android-10.0.0_r11' into lineage-17.0lineage-17.0Dan Pasanen2019-11-162-342/+107
|\ | | | | | | | | | | Android 10.0.0 release 11 Change-Id: I8f799f99b7357f18a9906cb3190b4664d9347533
| * Merge cherrypicks of [9427496, 9427497, 9427498, 9427499, 9427540, 9427541, ↵android-build-team Robot2019-09-202-342/+107
| |\ | | | | | | | | | | | | | | | 9427522, 9427523, 9427525, 9427526, 9427527, 9427504, 9427542, 9427505, 9427468, 9427469, 9427506, 9427236, 9427238, 9427239, 9427454, 9427455, 9427561, 9427390, 9427470, 9427456, 9427472, 9427393, 9427531, 9427213, 9427459, 9427581, 9427583, 9427545, 9427362, 9427563, 9427564, 9427533, 9427534, 9427546, 9427395, 9427397, 9427475, 9427565, 9427535] into qt-release Change-Id: I2bfddde8272a01a0ab05b0cd1347648e06a0f38a
| | * RESTRICT AUTOMERGE Enable stricter SQLiteQueryBuilder options.Jeff Sharkey2019-09-202-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 (cherry picked from commit ffec00b013a34800681ec90c88ad40337aa20c1a)
* | DownloadProvider: Add support for manual pause/resumeZhao Wei Liew2019-09-078-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-09-073-6/+89
|/ | | | | | | Add the current total download speed to in-progress downloads shown in the notification pane. Change-Id: I801dbe61c7ee59d0c1d14d5851ad6dc3a7678499
* Merge cherrypicks of [9111140, 9111141, 9111142, 9111143, 9109055] into ↵android-build-team Robot2019-08-012-0/+11
|\ | | | | | | | | | | qt-release Change-Id: I5ea01972a17067981e4908ea132532e733f3f0bc
| * Trigger mediascan after a download is completed.Sudheer Shanka2019-08-012-0/+11
|/ | | | | | | | | | | | | | | 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)
* Snap for 5713174 from bb4439869f5fbc943a9b8159eadfc717d133983a to qt-releaseandroid-build-team Robot2019-07-092-1/+2
|\ | | | | | | Change-Id: I570b0190aac9ecfe5fa827489982f3d27df74505
| * Set FGS priority for download jobs with visible notifications.Sudheer Shanka2019-07-032-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is what DownloadProvider used to do pre-Q using PRIORITY_FOREGROUND_APP but in Q, we added a new priority to denote FGS but DownloadProvider was still using PRIORITY_FOREGROUND_APP which is now considered a lower priority than FGS and some jobs are getting preempted unnecessarily. So, update DownloadProvider to mark download jobs with FGS priority instead of BFGS priority. This still has some issues but at least this will be kind of reverting DownloadProvider to its pre-Q behavior. Bug: 135982638 Test: manual - Go through DO provisioning a few times and check admin app can be successfully downloaded. 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: I020e366845d768da271b860a7ace91318e67d8ae
* | Snap for 5688376 from f52b0bd3dfd214f7286191e420b9c05d31dafdb0 to qt-releaseandroid-build-team Robot2019-06-263-5/+5
|\| | | | | | | Change-Id: I5bb97ead18f173633e09df0e4b870e32f37b4149
| * Import translations. DO NOT MERGEBill Yi2019-06-253-5/+5
| | | | | | | | | | | | | | Auto-generated-cl: translation import Bug: 64712476 Change-Id: Ide5c53d86bdaa894b17f6820fa3ebf7dc34db424
* | Snap for 5671254 from 45bab8a5200e0423aac5af49e307f3a68388c10c to qt-releaseandroid-build-team Robot2019-06-196-1/+34
|\| | | | | | | Change-Id: I3f5cb6b7abba29f1013291499c799e2d5f92c734
| * Whitelist DownloadManager.ACTION_NOTIFICATION_CLICKED broadcastMichal Karpinski2019-06-186-1/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | for background activity starts When the DownloadManager download notification is clicked, that broadcast is sent to an app, and the app should be able to open activities from bg for its duration. Bug: 135515407 Test: com.android.providers.downloads.PublicApiFunctionalTest#testNotificationClickedBroadcast Test: manual Change-Id: Ic1691f5bda890ceb2938ac76f4ca2a4c7e7a1160
* | Snap for 5663820 from c2dc83fb4c45a8383270a90ad624af061074b8a8 to qt-releaseandroid-build-team Robot2019-06-151-10/+2
|\| | | | | | | Change-Id: Ida3ca426c782c5f4d7ee329bd9e1f92bcb2a79d6
| * Merge "Delegate deletion of mediaprovider downloads to FileSystemProvider." ↵Sudheer Shanka2019-06-141-10/+2
| |\ | | | | | | | | | into qt-dev
| | * Delegate deletion of mediaprovider downloads to FileSystemProvider.Sudheer Shanka2019-06-131-10/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Using ContentResolver.delete() directly on MediaProvider doesn't work for uris corresponding to directories. For now, delegate this deletion to FileSystemProvider which will try deleting all entries regex-matching the file path. Bug: 135031305 Test: manual Change-Id: Iac18d0fd0be05758aaf2c03971d716592d96699b
| * | [automerger skipped] Import translations. DO NOT MERGEBill Yi2019-06-140-0/+0
| |\ \ | | |/ | |/| | | | | | | | | | | | | am: 00cced240d -s ours am skip reason: subject contains skip directive Change-Id: I43d16ab9ca453633ff0aefd1b226c7b62a067052
| | * Import translations. DO NOT MERGEBill Yi2019-06-1320-41/+41
| | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Bug: 64712476 Change-Id: I7e105e0b1484a04abdba3f72bcc140ff6f3480e3
* | | Snap for 5645951 from f66042e2d0e05fba2fd4baae0a46494e8dad5d07 to qt-releaseandroid-build-team Robot2019-06-092-2/+2
|\| | | | | | | | | | | Change-Id: I42dc76788a5d36ffcf41d5ab4268b3b5f17d2293
| * | Import translations. DO NOT MERGEBill Yi2019-06-082-2/+2
| | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Bug: 64712476 Change-Id: Iee77bf7755e593379fa2b004d916fcb71aa9b3c0
* | | Snap for 5616629 from 1ab3616ee298e132ca52d6198980ae27d294f055 to qt-releaseandroid-build-team Robot2019-05-301-1/+4
|\| | | | | | | | | | | Change-Id: I00740a164217c358f74e76f7e573112fe42946ac
| * | Merge "Delete entries of uninstalled pkgs which haven't started ↵TreeHugger Robot2019-05-291-1/+4
| |\ \ | | | | | | | | | | | | downloading." into qt-dev
| | * | Delete entries of uninstalled pkgs which haven't started downloading.Sudheer Shanka2019-05-291-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: 133741222 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: I00796e5ff8e9b30d153490f997fb7c776b600e57
* | | | Snap for 5605988 from 36432867c1086be3384a07f84e834a0547b6341a to qt-releaseandroid-build-team Robot2019-05-257-8/+8
|\| | | | | | | | | | | | | | | Change-Id: I38e5612ac71157b11cc969b418515f5de4330b37
| * | | Import translations. DO NOT MERGEBill Yi2019-05-247-8/+8
| |/ / | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Bug: 64712476 Change-Id: If8e7af64199b4c977195c4ee66919aa9045580b0
* | | Snap for 5595753 from 7221fab459901f4414a2297f9deed3807a98f698 to qt-releaseandroid-build-team Robot2019-05-232-188/+78
|\| | | | | | | | | | | Change-Id: I8fd0339b5deeaf50195259ea53cbf5d2f64be5ea
| * | Merge "Don't use linked mediastore uris in DownloadProvider operations." ↵Sudheer Shanka2019-05-222-188/+78
| |\ \ | | | | | | | | | | | | into qt-dev
| | * | Don't use linked mediastore uris in DownloadProvider operations.Sudheer Shanka2019-05-212-188/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When MediaProvider db gets recreated, all the media content ids get renumbered. It's possible that when DownloadProvider is trying to delete an entry, it is holding onto a invalid mediastore uri. So, don't use linked mediastore uris in DownloadProvider operations. Also, revoke any prior uri grants of media content from DownloadStorageProvider. Bug: 132087334 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 Test: atest cts/hostsidetests/appsecurity/src/android/appsecurity/cts/AppSecurityTests.java Change-Id: If6fb479da7e937ecdfa23136811f3456f7bcd75c
* | | | Snap for 5591509 from 333602c3ab761b0cbc17df8a9d2212c8e2e17f79 to qt-releaseandroid-build-team Robot2019-05-221-2/+2
|\| | | | | | | | | | | | | | | Change-Id: Ifdf3fff9f2a8e0441a8425923a166d7988baa342
| * | | Update DownloadStorageProvider for trailing '/' in RELATIVE_PATHshafik2019-05-211-2/+2
| |/ / | | | | | | | | | | | | | | | | | | | | | Add trailing '/' to RELATIVE_PATH selection args in db queries. Test: atest --test-mapping packages/providers/MediaProvider Bug:132631113 Change-Id: Ib8887dbb0e49dc76df6e4292d36e8f5948f256c5
* | | Snap for 5567188 from d79866aadd52570901ad49a2d73097e7878fef31 to qt-releaseandroid-build-team Robot2019-05-151-3/+8
|\| | | | | | | | | | | Change-Id: I26957cdca5c0bb9da09e07b4a95fa47dd3818531
| * | Allow files to be created under download dirs from MediaStore.Sudheer Shanka2019-05-131-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, allow files to be renamed if they are not in pending state and trigger a media scan when a new file is created. Bug: 127844893 Bug: 127802924 Test: manual Change-Id: Iec14c5d349930c5fae54ac3346ee5cf11fcda387
* | | Snap for 5558509 from 8d7668ae0d7f382700a1090d4079576e3a782ba7 to qt-releaseandroid-build-team Robot2019-05-114-106/+157
|\| | | | | | | | | | | Change-Id: I49ecefb90581e5de28547fad79580fe4829f9280
| * | Update behavior of setDestinationInExternalPublicDir().Sudheer Shanka2019-05-094-106/+157
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow apps to use DownloadManager for downloading files into known public dirs other than "Download" but don't include them as part of Downloads collection. Bug: 132136431 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: I62d4f810c71c9231e2b6d8e276a0a1e326382e14
* | | Snap for 5540187 from fd26f316f00d889c7b4b4ab077b0f00a1e1f29a7 to qt-releaseandroid-build-team Robot2019-05-082-4/+6
|\| | | | | | | | | | | Change-Id: Iab75f92d5e45c38ecf4ed09cf93d02616de2096c
| * | Merge "Don't log when checking if a filepath belongs to certain dirs." into ↵Sudheer Shanka2019-05-072-4/+6
| |\ \ | | | | | | | | | | | | qt-dev
| | * | Don't log when checking if a filepath belongs to certain dirs.Sudheer Shanka2019-05-062-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 131693243 Test: n/a Change-Id: Iae700a00f1bca78f823a3f8b732d86d380942828
* | | | Snap for 5537346 from ab55bc184442d7b5367c1d9f4848c9229ab13529 to qt-releaseandroid-build-team Robot2019-05-072-3/+11
|\| | | | | | | | | | | | | | | Change-Id: Id1f51e6278e1914cda37db7758d087ae3a7cc8cf
| * | | Merge "Fix DownloadProviderTests." into qt-devSudheer Shanka2019-05-062-3/+11
| |\ \ \
| | * | | Fix DownloadProviderTests.Sudheer Shanka2019-05-012-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 131693243 Test: atest DownloadProviderTests Change-Id: Iefdd7690e45351c2dbdac1cff49f0d11aeba0fb0
* | | | | Snap for 5533229 from 8208a9c0a33ec0432616d9165ea302700031e97a to qt-releaseandroid-build-team Robot2019-05-044-14/+14
|\| | | | | | | | | | | | | | | | | | | Change-Id: Iaaa909d59e712b22018157278badebea6a6bc02b
| * | | | Import translations. DO NOT MERGEBill Yi2019-05-034-14/+14
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | Auto-generated-cl: translation import Bug: 64712476 Change-Id: I6c763081dde011763dae9f978a9f8a61abc4f0cf
* | | | Snap for 5523284 from e6b506950f7fbfa12a2063fc0b732362a559da13 to qt-releaseandroid-build-team Robot2019-05-023-9/+69
|\| | | | | | | | | | | | | | | Change-Id: Ic346fa20f591cfe7c07414d136fc4d976ee385c8
| * | | Merge "Update API impl of ↵TreeHugger Robot2019-05-013-8/+66
| |\| | | | | | | | | | | | | | allowScanningByMediaScanner/setVisibleInDownloadsUi." into qt-dev
| | * | Update API impl of allowScanningByMediaScanner/setVisibleInDownloadsUi.Sudheer Shanka2019-04-303-8/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These APIs javadocs have been updated earlier to indicate how they behave on Q, now updating impl of those APIs to match with javadocs. Bug: 131693243 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: I8fb43806b27fefaffc510fde5424b48e3ff56d20
| * | | Merge "Skip restrictions if DownloadProvider itself is trying to add a ↵Sudheer Shanka2019-04-301-1/+3
| |\ \ \ | | |/ / | |/| | | | | | download." into qt-dev
| | * | Skip restrictions if DownloadProvider itself is trying to add a download.Sudheer Shanka2019-04-301-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: 131624566 Fixes: 131610977 Test: manual Change-Id: I771ff8a39ac977c510f1785c3cb61e859bbb0c0f
* | | | Snap for 5519018 from 178b6d89e9799473679a0d50417bda8bae2ec963 to qt-releaseandroid-build-team Robot2019-05-013-24/+98
|\| | | | | | | | | | | | | | | Change-Id: Id473234167b852783e1afeba615cd27774c5ee42
| * | | Make downloads deletion on owner uninstall consistent.Sudheer Shanka2019-04-283-24/+98
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When an app is uninstalled, it's downloads in top-level download directory will be orphaned and the rest will be deleted. Bug: 126064843 Test: manual Test: atest DownloadProviderTests Test: atest cts/tests/app/src/android/app/cts/DownloadManagerTest.java Change-Id: Iad430f7ec14f306ed859a3b30db9eea29a23c19d
* | | Snap for 5511022 from fca4711560d491fb0742e657487d5dcf4f0e57f5 to qt-releaseandroid-build-team Robot2019-04-275-134/+198
|\| | | | | | | | | | | Change-Id: I9d56834311830d85ef5f4b6cfb0d2ee78801350d