21 months agomerge in oc-r6-release history after reset to oc-release rel-29-o-partner rel-29-r3-o-partner rel-30-r2-o-partner rel-30-r3-o-partner
gitbuildkicker [Thu, 17 Aug 2017 13:43:17 +0000]
merge in oc-r6-release history after reset to oc-release

21 months agomerge in oc-r6-release history after reset to oc-release
gitbuildkicker [Thu, 17 Aug 2017 13:19:17 +0000]
merge in oc-r6-release history after reset to oc-release

21 months agoMerge cherrypicks of [2622852, 2622193, 2622194, 2622195, 2622933, 2622990, 2622991...
android-build-team Robot [Fri, 28 Jul 2017 17:27:04 +0000]
Merge cherrypicks of [2622852, 2622193, 2622194, 2622195, 2622933, 2622990, 2622991, 2622992, 2622993, 2622994, 2622995, 2622934, 2622196, 2622975, 2622996, 2622997, 2622998, 2623050, 2622935, 2622197, 2623051, 2622936, 2622918, 2622919, 2622999] into oc-release

Change-Id: I9861d7c1a6cfcd5e46bb017571d9a4f739fd66e6

21 months agoImport translations. DO NOT MERGE
Bill Yi [Wed, 26 Jul 2017 03:32:01 +0000]
Import translations. DO NOT MERGE

Change-Id: I79eed931990b3598b952a43af0a9f429789a3749
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import
(cherry picked from commit 5716f322a677feef4bf502c8ea96deb936901ef6)

22 months agorelease-request-160c4b31-7fa0-4e2b-aabe-85380836a1ce-for-git_oc-release-4129081 snap...
android-build-team Robot [Fri, 23 Jun 2017 07:12:06 +0000]
release-request-160c4b31-7fa0-4e2b-aabe-85380836a1ce-for-git_oc-release-4129081 snap-temp-L15300000077039010

Change-Id: Iaad7205238d26e6fb4e59893549bdaebbf886f70

22 months agoNot sending my uid as ORIGINATING_UID to package installer
Suprabh Shukla [Fri, 2 Jun 2017 01:21:32 +0000]
Not sending my uid as ORIGINATING_UID to package installer

In some cases the UID column may have download provider uid. We should
not send this as the originating uid for blaming app installs.

Test: Manually copied an apk to internal storage and back to downloads.
Tapping on apk launches package installer as expected.

Fixes: 62909163

Change-Id: Ie75da734b1bd43bc61112c023cb1587e4c2ff20e
Merged-In: Ie75da734b1bd43bc61112c023cb1587e4c2ff20e
(cherry picked from commit b7aea795beec6721c60b59c9d945e4d964466323)

23 months agorelease-request-fca2b5ac-03eb-4055-a549-b4fc2b292b64-for-git_oc-release-4049993 snap...
android-build-team Robot [Sun, 28 May 2017 07:12:32 +0000]
release-request-fca2b5ac-03eb-4055-a549-b4fc2b292b64-for-git_oc-release-4049993 snap-temp-L04900000068539456

Change-Id: I32bdf3e53412720a245c20e2790cfec3e67944d0

23 months agoAdd FLAG_SUPPORTS_IS_CHILD to DownloadStorageProvider.
Ben Lin [Thu, 25 May 2017 17:43:53 +0000]
Add FLAG_SUPPORTS_IS_CHILD to DownloadStorageProvider.

Test: DocumentsUI shows Downloads when invoked via ACTION_OPEN_TREE.
Bug: 62087271
Change-Id: Ia48d912d6920b7dfcb280aadf212d34d109f31af

2 years agorelease-request-951b3a8b-6c0c-4d2e-8af4-1c3f7e209f66-for-git_oc-release-4006899 snap...
android-build-team Robot [Sun, 14 May 2017 07:17:20 +0000]
release-request-951b3a8b-6c0c-4d2e-8af4-1c3f7e209f66-for-git_oc-release-4006899 snap-temp-L39600000063784275

Change-Id: Ie56a59a68e1a6edabad2aec1d6ba1a118ca23637

2 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 11 May 2017 07:51:33 +0000]
Import translations. DO NOT MERGE

Change-Id: Iffe91a49f32902e0e6665f7461cddb4bb34cec2d
Auto-generated-cl: translation import

2 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Sun, 30 Apr 2017 07:11:41 +0000]
merge in oc-release history after reset to oc-dev

2 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 29 Apr 2017 04:56:38 +0000]
Import translations. DO NOT MERGE

Change-Id: I63ed033b8611c558a17c39ef7226e9bbcb975898
Auto-generated-cl: translation import

2 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Thu, 20 Apr 2017 07:10:08 +0000]
merge in oc-release history after reset to oc-dev

2 years agoOnly alert when first showing.
Jeff Sharkey [Wed, 19 Apr 2017 17:14:47 +0000]
Only alert when first showing.

Test: builds, boots
Bug: 37493685
Change-Id: I76cea80de092f99615b4a42058f2abf5f9cdb797

2 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Wed, 19 Apr 2017 07:10:04 +0000]
merge in oc-release history after reset to oc-dev

2 years agoMerge "Keep shared downloads when apps are uninstalled." into oc-dev
TreeHugger Robot [Wed, 19 Apr 2017 02:05:09 +0000]
Merge "Keep shared downloads when apps are uninstalled." into oc-dev

2 years agoKeep shared downloads when apps are uninstalled.
Jeff Sharkey [Wed, 19 Apr 2017 00:14:57 +0000]
Keep shared downloads when apps are uninstalled.

When an app downloads files to external storage, keep those downloads
around for the user to enjoy after the app is uninstalled.

We still end up deleting files stored in internal cache directories,
and under package-specific directories on external storage.

Test: builds, boots, downloads on external storage remain
Bug: 30868200
Change-Id: Ib70f42aa764a8252fe67c6fba9d60b3350f5d5a4

2 years agoCreate notification channels for downloads.
Jeff Sharkey [Tue, 18 Apr 2017 23:45:40 +0000]
Create notification channels for downloads.

We tell the user about active, completed, and waiting downloads.

Test: builds, boots, downloads work
Bug: 36865435
Change-Id: Id5db029a98971a7b7d190f01eea2439120c18531

2 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Wed, 12 Apr 2017 07:09:36 +0000]
merge in oc-release history after reset to oc-dev

2 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 11 Apr 2017 01:00:44 +0000]
Import translations. DO NOT MERGE

Change-Id: Ide2054a71437db46062fd5cebe6005d48266aa30
Auto-generated-cl: translation import

2 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Mon, 3 Apr 2017 07:08:01 +0000]
merge in oc-release history after reset to oc-dev

2 years agoMerge "Check for Downloads dir's existence and create it if it doesn't exist." into...
TreeHugger Robot [Mon, 3 Apr 2017 03:08:58 +0000]
Merge "Check for Downloads dir's existence and create it if it doesn't exist." into oc-dev

2 years agomerge in oc-release history after reset to oc-dev
gitbuildkicker [Sun, 2 Apr 2017 07:10:48 +0000]
merge in oc-release history after reset to oc-dev

2 years agoCheck for Downloads dir's existence and create it if it doesn't exist.
Ben Lin [Thu, 30 Mar 2017 23:28:27 +0000]
Check for Downloads dir's existence and create it if it doesn't exist.

It's possible that Downloads directory (for whatever reason) is not
available on disk, and thus all sorts of bugs happen (Can't create
folder/files, can't query files inside the folder). This will make sure
if DownloadStorageProvider#queryRoot is called, then we
will create the folder.

Test: Builds.
Bug: 35930004
Change-Id: I517ac20c1865f356912decd92a591a37d52ba90b

2 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 31 Mar 2017 01:25:26 +0000]
Import translations. DO NOT MERGE

Change-Id: I7c82a2779ac94fd58cdf33011577c0778f73845b
Auto-generated-cl: translation import

2 years agomerge in oc-release history after reset to master
gitbuildkicker [Sun, 26 Mar 2017 07:11:28 +0000]
merge in oc-release history after reset to master

2 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Thu, 23 Mar 2017 15:37:30 +0000]
Merge "Import translations. DO NOT MERGE"

2 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 23 Mar 2017 09:59:31 +0000]
Import translations. DO NOT MERGE

Change-Id: If999d4739151dcafefe56ebd6486fe57664242da
Auto-generated-cl: translation import

2 years agomerge in oc-release history after reset to master
gitbuildkicker [Thu, 23 Mar 2017 07:09:34 +0000]
merge in oc-release history after reset to master

2 years agomerge in oc-release history after reset to master
gitbuildkicker [Thu, 23 Mar 2017 04:23:31 +0000]
merge in oc-release history after reset to master

2 years agomerge in oc-release history after reset to 34420c62ed5b8cdef21be68ae60d53d9421a13c3
gitbuildkicker [Thu, 23 Mar 2017 00:15:28 +0000]
merge in oc-release history after reset to 34420c62ed5b8cdef21be68ae60d53d9421a13c3

2 years agoAdd test config to DownloadProviderTests
Dan Shi [Wed, 22 Mar 2017 22:38:06 +0000]
Add test config to DownloadProviderTests

Details about test configs changes are tracked in doc
https://docs.google.com/document/d/1EWUjJ7fjy8ge_Nk0YQbFdRp8DSHo3z6GU0R8jLgrAcw/edit#

Bug: 35882476
Test: local test
Change-Id: I468b280c2285f8ff0b7f79161cb4e21d4ebd19c2

2 years agomerge in oc-release history after reset to master
gitbuildkicker [Tue, 21 Mar 2017 07:09:47 +0000]
merge in oc-release history after reset to master

2 years agoMerge "Add android:label to DownloadStorageProvider."
TreeHugger Robot [Mon, 20 Mar 2017 19:00:45 +0000]
Merge "Add android:label to DownloadStorageProvider."

2 years agomerge in oc-release history after reset to master
gitbuildkicker [Sun, 19 Mar 2017 07:11:38 +0000]
merge in oc-release history after reset to master

2 years agoAdd android:label to DownloadStorageProvider.
Ben Lin [Fri, 17 Mar 2017 18:08:33 +0000]
Add android:label to DownloadStorageProvider.

Test: Builds.
Bug: 30138665
Change-Id: I2ba32a7e18b69a94996fdfff50d2a2b3c8b6d7a0

2 years agoMerge "packages/providers/DownloadProvider: Add APCT tests to the device-tests suite."
TreeHugger Robot [Thu, 16 Mar 2017 18:06:44 +0000]
Merge "packages/providers/DownloadProvider: Add APCT tests to the device-tests suite."

2 years agomerge in oc-release history after reset to master
gitbuildkicker [Thu, 16 Mar 2017 07:09:52 +0000]
merge in oc-release history after reset to master

2 years agoAdd findDocumentPath support to DownloadStorageProvider.
Garfield Tan [Wed, 15 Mar 2017 21:20:04 +0000]
Add findDocumentPath support to DownloadStorageProvider.

Bug: 36254483
Change-Id: Ia53312cd79673ee85d0385f50e8dfef4d7ace3d4

2 years agopackages/providers/DownloadProvider: Add APCT tests to the device-tests suite.
Simran Basi [Wed, 15 Mar 2017 22:16:19 +0000]
packages/providers/DownloadProvider: Add APCT tests to the device-tests suite.

This CL adds the APCT tests within this project to
a similar suite as CTS known as device-tests.

The current method of running APCT tests in the infrastructure
is unaffected.

Bug: 35882476
Test: `make dist device-tests -j` and local builds of
      continuous_instrumentation_tests & continuous_native_tests

Change-Id: Ia52f36245fb9ec0bedcc71933fb2af46310fb1a9

2 years agomerge in oc-release history after reset to master
gitbuildkicker [Tue, 14 Mar 2017 07:06:59 +0000]
merge in oc-release history after reset to master

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad604...
Suprabh Shukla [Tue, 14 Mar 2017 02:02:37 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad6045738 am: 6eb1898f65 am: 9fdf777780  -s ours am: 54d494e994  -s ours am: 389478b4c7  -s ours am: 2884b53749  -s ours am: a807984fb9  -s ours am: 7ae71fcac9  -s ours am: 6e03beb1f0  -s ours am: 3afff5f7f9  -s ours am: 723b01ceef  -s ours am: bf2ee73217  -s ours am: 79f65e6e96  -s ours am: 09fb61e771  -s ours am: 89476caada  -s ours
am: 535b25d44d  -s ours

Change-Id: I1c1a873a0a2a4f0dd41385f22aee3de3ca172ef8

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad604...
Suprabh Shukla [Tue, 14 Mar 2017 01:57:39 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad6045738 am: 6eb1898f65 am: 9fdf777780  -s ours am: 54d494e994  -s ours am: 389478b4c7  -s ours am: 2884b53749  -s ours am: a807984fb9  -s ours am: 7ae71fcac9  -s ours am: 6e03beb1f0  -s ours am: 3afff5f7f9  -s ours am: 723b01ceef  -s ours am: bf2ee73217  -s ours am: 79f65e6e96  -s ours am: 09fb61e771  -s ours
am: 89476caada  -s ours

Change-Id: Ib3e9782b32ac1b2add5ed7cf91275fa6fa827abd

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad604...
Suprabh Shukla [Tue, 14 Mar 2017 01:52:39 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad6045738 am: 6eb1898f65 am: 9fdf777780  -s ours am: 54d494e994  -s ours am: 389478b4c7  -s ours am: 2884b53749  -s ours am: a807984fb9  -s ours am: 7ae71fcac9  -s ours am: 6e03beb1f0  -s ours am: 3afff5f7f9  -s ours am: 723b01ceef  -s ours am: bf2ee73217  -s ours am: 79f65e6e96  -s ours
am: 09fb61e771  -s ours

Change-Id: I5675929a9e700cdb46c914a92e36d3dcda662b63

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad604...
Suprabh Shukla [Tue, 14 Mar 2017 01:47:38 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad6045738 am: 6eb1898f65 am: 9fdf777780  -s ours am: 54d494e994  -s ours am: 389478b4c7  -s ours am: 2884b53749  -s ours am: a807984fb9  -s ours am: 7ae71fcac9  -s ours am: 6e03beb1f0  -s ours am: 3afff5f7f9  -s ours am: 723b01ceef  -s ours am: bf2ee73217  -s ours
am: 79f65e6e96  -s ours

Change-Id: Ie7902b091fd071574c21d269cee0b42d50d85cb2

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad604...
Suprabh Shukla [Tue, 14 Mar 2017 01:43:08 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad6045738 am: 6eb1898f65 am: 9fdf777780  -s ours am: 54d494e994  -s ours am: 389478b4c7  -s ours am: 2884b53749  -s ours am: a807984fb9  -s ours am: 7ae71fcac9  -s ours am: 6e03beb1f0  -s ours am: 3afff5f7f9  -s ours am: 723b01ceef  -s ours
am: bf2ee73217  -s ours

Change-Id: I144d5180f310ac75477b9501a10e0f4fc18164ec

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad604...
Suprabh Shukla [Tue, 14 Mar 2017 01:38:37 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad6045738 am: 6eb1898f65 am: 9fdf777780  -s ours am: 54d494e994  -s ours am: 389478b4c7  -s ours am: 2884b53749  -s ours am: a807984fb9  -s ours am: 7ae71fcac9  -s ours am: 6e03beb1f0  -s ours am: 3afff5f7f9  -s ours
am: 723b01ceef  -s ours

Change-Id: Ibbf7dcbe230ac94fcf3f84c37676c06fee487f68

2 years agomerge in oc-release history after reset to master
gitbuildkicker [Tue, 14 Mar 2017 01:36:23 +0000]
merge in oc-release history after reset to master

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad604...
Suprabh Shukla [Tue, 14 Mar 2017 01:33:35 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad6045738 am: 6eb1898f65 am: 9fdf777780  -s ours am: 54d494e994  -s ours am: 389478b4c7  -s ours am: 2884b53749  -s ours am: a807984fb9  -s ours am: 7ae71fcac9  -s ours am: 6e03beb1f0  -s ours
am: 3afff5f7f9  -s ours

Change-Id: I96a6a8e4c9a2fa4a333265634729545aefb11c4c

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad604...
Suprabh Shukla [Tue, 14 Mar 2017 01:28:37 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad6045738 am: 6eb1898f65 am: 9fdf777780  -s ours am: 54d494e994  -s ours am: 389478b4c7  -s ours am: 2884b53749  -s ours am: a807984fb9  -s ours am: 7ae71fcac9  -s ours
am: 6e03beb1f0  -s ours

Change-Id: Iac0cb067bff1f992c0f2357d99665404b17daa1b

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad604...
Suprabh Shukla [Tue, 14 Mar 2017 01:24:06 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad6045738 am: 6eb1898f65 am: 9fdf777780  -s ours am: 54d494e994  -s ours am: 389478b4c7  -s ours am: 2884b53749  -s ours am: a807984fb9  -s ours
am: 7ae71fcac9  -s ours

Change-Id: Idebf42d211c6ded7abbfd130a428ae304f66f53f

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad604...
Suprabh Shukla [Tue, 14 Mar 2017 01:19:36 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad6045738 am: 6eb1898f65 am: 9fdf777780  -s ours am: 54d494e994  -s ours am: 389478b4c7  -s ours am: 2884b53749  -s ours
am: a807984fb9  -s ours

Change-Id: Iea37136e7cf5d15ba6e6425166c2db300ef662f7

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad604...
Suprabh Shukla [Tue, 14 Mar 2017 01:15:04 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad6045738 am: 6eb1898f65 am: 9fdf777780  -s ours am: 54d494e994  -s ours am: 389478b4c7  -s ours
am: 2884b53749  -s ours

Change-Id: Iefa4ae872e26a8852c320439854e979a11920c63

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad604...
Suprabh Shukla [Tue, 14 Mar 2017 01:10:04 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad6045738 am: 6eb1898f65 am: 9fdf777780  -s ours am: 54d494e994  -s ours
am: 389478b4c7  -s ours

Change-Id: I22f989d4146bbc582b370af6542981a8ec20048e

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad604...
Suprabh Shukla [Tue, 14 Mar 2017 01:05:03 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad6045738 am: 6eb1898f65 am: 9fdf777780  -s ours
am: 54d494e994  -s ours

Change-Id: I18e940c843988b11cf0632f5370ef4bdbaed30ed

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad604...
Suprabh Shukla [Tue, 14 Mar 2017 01:00:32 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad6045738 am: 6eb1898f65
am: 9fdf777780  -s ours

Change-Id: I7159b2b35dff4931041b7836521249379eea81c6

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad6045738
Suprabh Shukla [Tue, 14 Mar 2017 00:55:34 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 8ad6045738
am: 6eb1898f65

Change-Id: I33c176c144ba8bbbf53446cf1c9bec8e057f95b8

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start
Suprabh Shukla [Tue, 14 Mar 2017 00:51:03 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start
am: 8ad6045738

Change-Id: I3cea41b3042850f88e3719243fe8a5ab1bdeb232

2 years agoDeleting downloads for removed uids on downloadprovider start am: e21ad54b4c am:...
Suprabh Shukla [Tue, 14 Mar 2017 00:32:31 +0000]
Deleting downloads for removed uids on downloadprovider start am: e21ad54b4c am: b8be7d0af6 am: 8b2d80cf02 am: 605061d818 am: d3f291cb2b am: ae59c785d4 am: 9ffaf40f6d  -s ours am: 03f96e843a  -s ours am: 3760fddda4  -s ours am: 638f5770b9  -s ours am: cbedbb2578  -s ours am: 8c6ad41e57  -s ours
am: c4b14b2fd0  -s ours

Change-Id: I8bc56019835136cc8de2142650e882000f825f1b

2 years agoDeleting downloads for removed uids on downloadprovider start am: e21ad54b4c am:...
Suprabh Shukla [Tue, 14 Mar 2017 00:22:32 +0000]
Deleting downloads for removed uids on downloadprovider start am: e21ad54b4c am: b8be7d0af6 am: 8b2d80cf02 am: 605061d818 am: d3f291cb2b am: ae59c785d4 am: 9ffaf40f6d  -s ours am: 03f96e843a  -s ours am: 3760fddda4  -s ours am: 638f5770b9  -s ours am: cbedbb2578  -s ours
am: 8c6ad41e57  -s ours

Change-Id: I1f3fab3bce333a4a2ed88c31daaf9104a2e8d6a4

2 years agomerge in oc-release history after reset to 2ab9a2d15c63cd567805adb8fa4b9c524afc5ceb
gitbuildkicker [Tue, 14 Mar 2017 00:19:39 +0000]
merge in oc-release history after reset to 2ab9a2d15c63cd567805adb8fa4b9c524afc5ceb

2 years agoDeleting downloads for removed uids on downloadprovider start am: e21ad54b4c am:...
Suprabh Shukla [Tue, 14 Mar 2017 00:13:32 +0000]
Deleting downloads for removed uids on downloadprovider start am: e21ad54b4c am: b8be7d0af6 am: 8b2d80cf02 am: 605061d818 am: d3f291cb2b am: ae59c785d4 am: 9ffaf40f6d  -s ours am: 03f96e843a  -s ours am: 3760fddda4  -s ours am: 638f5770b9  -s ours
am: cbedbb2578  -s ours

Change-Id: Ia82400ada246287577670cd94d8cb4cc7527e2d6

2 years agoDeleting downloads for removed uids on downloadprovider start am: e21ad54b4c am:...
Suprabh Shukla [Tue, 14 Mar 2017 00:05:22 +0000]
Deleting downloads for removed uids on downloadprovider start am: e21ad54b4c am: b8be7d0af6 am: 8b2d80cf02 am: 605061d818 am: d3f291cb2b am: ae59c785d4 am: 9ffaf40f6d  -s ours am: 03f96e843a  -s ours am: 3760fddda4  -s ours
am: 638f5770b9  -s ours

Change-Id: Ib2f43c515120eda41e8363f10e5e75f6821be959

2 years agoDeleting downloads for removed uids on downloadprovider start am: e21ad54b4c am:...
Suprabh Shukla [Mon, 13 Mar 2017 23:59:30 +0000]
Deleting downloads for removed uids on downloadprovider start am: e21ad54b4c am: b8be7d0af6 am: 8b2d80cf02 am: 605061d818 am: d3f291cb2b am: ae59c785d4 am: 9ffaf40f6d  -s ours am: 03f96e843a  -s ours
am: 3760fddda4  -s ours

Change-Id: Ib24c8753d421a94a24e365a5564692bbd8c4a056

2 years agoDeleting downloads for removed uids on downloadprovider start am: e21ad54b4c am:...
Suprabh Shukla [Mon, 13 Mar 2017 23:55:29 +0000]
Deleting downloads for removed uids on downloadprovider start am: e21ad54b4c am: b8be7d0af6 am: 8b2d80cf02 am: 605061d818 am: d3f291cb2b am: ae59c785d4 am: 9ffaf40f6d  -s ours
am: 03f96e843a  -s ours

Change-Id: I856f7fa3759993eb24654cf7502d062b3c628916

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start
Suprabh Shukla [Mon, 27 Feb 2017 23:56:11 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start

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

2 years agoDeleting downloads for removed uids on downloadprovider start am: e21ad54b4c am:...
Suprabh Shukla [Mon, 13 Mar 2017 23:50:59 +0000]
Deleting downloads for removed uids on downloadprovider start am: e21ad54b4c am: b8be7d0af6 am: 8b2d80cf02 am: 605061d818 am: d3f291cb2b am: ae59c785d4
am: 9ffaf40f6d  -s ours

Change-Id: I7286e9c43884ed838ccae615df15fce44188f512

2 years agoDeleting downloads for removed uids on downloadprovider start am: e21ad54b4c am:...
Suprabh Shukla [Mon, 13 Mar 2017 23:46:59 +0000]
Deleting downloads for removed uids on downloadprovider start am: e21ad54b4c am: b8be7d0af6 am: 8b2d80cf02 am: 605061d818 am: d3f291cb2b
am: ae59c785d4

Change-Id: I6cbeba9440955af0f868bae017233b080d304881

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 3b1546...
Suprabh Shukla [Mon, 13 Mar 2017 23:46:58 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 3b15466b3c am: f17f32daec am: a6de368a91 am: 84b6c3ba56 am: 0b7ca0f777
am: 0bdb50d6bd  -s ours

Change-Id: I26b8c8ee09984edd70707fe366be696a79ef9562

2 years agoDeleting downloads for removed uids on downloadprovider start am: e21ad54b4c am:...
Suprabh Shukla [Mon, 13 Mar 2017 23:42:29 +0000]
Deleting downloads for removed uids on downloadprovider start am: e21ad54b4c am: b8be7d0af6 am: 8b2d80cf02 am: 605061d818
am: d3f291cb2b

Change-Id: I9c04318a76babd22b098f9565b4fc01fd42da172

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 3b1546...
Suprabh Shukla [Mon, 13 Mar 2017 23:42:28 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 3b15466b3c am: f17f32daec am: a6de368a91 am: 84b6c3ba56
am: 0b7ca0f777

Change-Id: I1a8179ade1626ca20755e950d9c0453271ede171

2 years agoDeleting downloads for removed uids on downloadprovider start am: e21ad54b4c am:...
Suprabh Shukla [Mon, 13 Mar 2017 23:37:58 +0000]
Deleting downloads for removed uids on downloadprovider start am: e21ad54b4c am: b8be7d0af6 am: 8b2d80cf02
am: 605061d818

Change-Id: I77661ae65ac82ea86f3a70d072e4f75d95427734

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 3b1546...
Suprabh Shukla [Mon, 13 Mar 2017 23:37:57 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 3b15466b3c am: f17f32daec am: a6de368a91
am: 84b6c3ba56

Change-Id: Ib95a1b348ff64a69f920e6d86f86c776ad5b07e8

2 years agoDeleting downloads for removed uids on downloadprovider start am: e21ad54b4c am:...
Suprabh Shukla [Mon, 13 Mar 2017 23:32:58 +0000]
Deleting downloads for removed uids on downloadprovider start am: e21ad54b4c am: b8be7d0af6
am: 8b2d80cf02

Change-Id: Ife69c70213cd252d42cd8d228808100e6d590e07

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 3b1546...
Suprabh Shukla [Mon, 13 Mar 2017 23:32:57 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 3b15466b3c am: f17f32daec
am: a6de368a91

Change-Id: I5458d33e43eee6a614f949d68b199291d9e292e1

2 years agoDeleting downloads for removed uids on downloadprovider start am: e21ad54b4c
Suprabh Shukla [Mon, 13 Mar 2017 23:27:57 +0000]
Deleting downloads for removed uids on downloadprovider start am: e21ad54b4c
am: b8be7d0af6

Change-Id: I1ef8b0972c8f439a3d623ff8d75fea97514bdde5

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 3b15466b3c
Suprabh Shukla [Mon, 13 Mar 2017 23:27:56 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start am: 3b15466b3c
am: f17f32daec

Change-Id: I77238b56330c4f248cc05a81f4c84332b2823330

2 years agoDeleting downloads for removed uids on downloadprovider start
Suprabh Shukla [Mon, 13 Mar 2017 23:22:57 +0000]
Deleting downloads for removed uids on downloadprovider start
am: e21ad54b4c

Change-Id: Ia4a792aa35c4ad60ef45896ec7dcd8a10c1d64f4

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start
Suprabh Shukla [Mon, 13 Mar 2017 23:22:56 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start
am: 3b15466b3c

Change-Id: I94412449bbcbbe2166ac4b108e2d085352344632

2 years agoAdd rawDocumentsUri handling to TrampolineActivity.
Ben Lin [Thu, 9 Mar 2017 00:05:00 +0000]
Add rawDocumentsUri handling to TrampolineActivity.

Test: Build, compiles, does not crash.
Bug: 36033829
Change-Id: I8756c6abd872e4b14cff3c604c37f82323b44c27

2 years agoMerge "Remove unnecessary direct dependency on dexmaker" am: b33ebabb85 am: 5f8a055a1c
Paul Duffin [Thu, 9 Mar 2017 09:05:04 +0000]
Merge "Remove unnecessary direct dependency on dexmaker" am: b33ebabb85 am: 5f8a055a1c
am: 9264e2d7c2

Change-Id: Ic76eb48cbe5ab523eabb26cedc4f2cc4925d1073

2 years agoMerge "Remove unnecessary direct dependency on dexmaker" am: b33ebabb85
Paul Duffin [Thu, 9 Mar 2017 09:02:04 +0000]
Merge "Remove unnecessary direct dependency on dexmaker" am: b33ebabb85
am: 5f8a055a1c

Change-Id: I9ddca89ce46d815c83ae039adb977cdbe4405f92

2 years agoMerge "Remove unnecessary direct dependency on dexmaker"
Paul Duffin [Thu, 9 Mar 2017 08:59:04 +0000]
Merge "Remove unnecessary direct dependency on dexmaker"
am: b33ebabb85

Change-Id: I00794ec62d345764f283c5854d69c58963d628ab

2 years agoMerge "Remove unnecessary direct dependency on dexmaker"
Paul Duffin [Thu, 9 Mar 2017 08:54:28 +0000]
Merge "Remove unnecessary direct dependency on dexmaker"

2 years agoDeleting downloads for removed uids on downloadprovider start
Suprabh Shukla [Mon, 27 Feb 2017 23:56:11 +0000]
Deleting downloads for removed uids on downloadprovider start

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

2 years agoDO NOT MERGE Deleting downloads for removed uids on downloadprovider start
Suprabh Shukla [Mon, 27 Feb 2017 23:56:11 +0000]
DO NOT MERGE Deleting downloads for removed uids on downloadprovider start

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)

2 years agoDeleting downloads for removed uids on downloadprovider start
Suprabh Shukla [Mon, 27 Feb 2017 23:56:11 +0000]
Deleting downloads for removed uids on downloadprovider start

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

Change-Id: I7382c4846f99035b40412a01715aee5873efa9e6

2 years agoRemove unnecessary direct dependency on dexmaker
Paul Duffin [Tue, 7 Mar 2017 12:15:00 +0000]
Remove unnecessary direct dependency on dexmaker

The mockito-target library already statically includes dexmaker
so the direct dependency is unnecessary and could make the
upgrade of mockito more difficult.

This is part of the cleanup work prior to upgrading mockito.

I ran the tests before and after the change and in both cases
got 2 failures and between 4-6 errors; at least some of the
errors are flaky as the exact number changed from one run to the
next.

Bug: 32912773
Test: clean make of DownloadProviderTests, verify still includes dexmaker classes
Change-Id: I8133d0869a2b0ff7a9ffc19daff61ed1bbc6a7f6

2 years agoIncorporating FileSystemProvider logic into DownloadStorageProvider.
Ben Lin [Thu, 16 Feb 2017 22:07:14 +0000]
Incorporating FileSystemProvider logic into DownloadStorageProvider.

This grants DownloadStorageProvider a couple of features:
1. Ability to now create folders
2. Surfacing raw file contents on disk under Shared Storage while
avoiding duplicates from DownloadManager

The following are kept:
1. Using DownloadManager as internal database to keep separation between
raw files and user-downloaded files

Test: build & smoke tested.
Bug: 35157759
Change-Id: Id27e15e5bcb31ab1064ce9e3984f122754d1d5fd

2 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 22 Feb 2017 18:26:32 +0000]
Import translations. DO NOT MERGE

Change-Id: I1c077e92953e970cd8e3da9af5c23ce6f92d842d
Auto-generated-cl: translation import

2 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 16 Feb 2017 20:36:34 +0000]
Import translations. DO NOT MERGE

Change-Id: I6c688556e8caa0346175337791610b34a4b1baff
Auto-generated-cl: translation import

2 years agoImport translations. DO NOT MERGE am: 3d079b78d7 -s ours
Bill Yi [Thu, 16 Feb 2017 15:18:34 +0000]
Import translations. DO NOT MERGE am: 3d079b78d7  -s ours
am: 502de81c08  -s ours

Change-Id: I622208722336f685eb6a4e60965c26baacf0827d

2 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 16 Feb 2017 15:13:55 +0000]
Import translations. DO NOT MERGE
am: 3d079b78d7  -s ours

Change-Id: I6a4174d36da9f8198ec724d3fddf21be9e05fa4c

2 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 16 Feb 2017 01:57:14 +0000]
Import translations. DO NOT MERGE

Change-Id: I659f2bacd29ecb26479b7d7163e53deefd06631e
Auto-generated-cl: translation import

2 years agoMerge "Add dependency on android-support-annotations" am: 9f014f67b1 am: b976e999cf...
Colin Cross [Wed, 15 Feb 2017 21:54:45 +0000]
Merge "Add dependency on android-support-annotations" am: 9f014f67b1 am: b976e999cf am: 5b3ac41821
am: b3c9c1cbe7  -s ours

Change-Id: If0f0c384e9de6e38824a6c18cc9b2de020ca4f75

2 years agoMerge "Add dependency on android-support-annotations" am: 9f014f67b1 am: b976e999cf
Colin Cross [Wed, 15 Feb 2017 21:37:30 +0000]
Merge "Add dependency on android-support-annotations" am: 9f014f67b1 am: b976e999cf
am: 5b3ac41821

Change-Id: I590a2bd506f0db8661306fe27d3e6490787915fb

2 years agoMerge "Add dependency on android-support-annotations" am: 9f014f67b1
Colin Cross [Wed, 15 Feb 2017 21:33:03 +0000]
Merge "Add dependency on android-support-annotations" am: 9f014f67b1
am: b976e999cf

Change-Id: I19c5604bcc7a1181516b88f87645cf671a32a277

2 years agoMerge "Add dependency on android-support-annotations"
Colin Cross [Wed, 15 Feb 2017 21:28:17 +0000]
Merge "Add dependency on android-support-annotations"
am: 9f014f67b1

Change-Id: I3f7bfbb784d2ace4158d535490edb2580861ea18

2 years agoMerge "Add dependency on android-support-annotations"
Treehugger Robot [Wed, 15 Feb 2017 21:01:48 +0000]
Merge "Add dependency on android-support-annotations"

2 years agoAdd dependency on android-support-annotations
Colin Cross [Fri, 6 Jan 2017 19:34:48 +0000]
Add dependency on android-support-annotations

android-support-documents-archive needs android-support-annotaions.

Test: m -j checkbuild tests cts
Merged-In: I03d45952b63d7c4eb2e2451b81a791ec9c1ac88c
Change-Id: Ib6e026d4723d26cfe95a4fc800b433112e54f91a