Fix crash in discardPurgeableFiles with proper selection syntax.
authorJean-Baptiste Queru <jbq@google.com>
Wed, 1 Jul 2009 22:27:28 +0000 (15:27 -0700)
committerJean-Baptiste Queru <jbq@google.com>
Thu, 2 Jul 2009 16:48:50 +0000 (09:48 -0700)
commitf0fa1cdc1a36cbe0abd57ef9cf9a636fd1d3e2c8
treeac5dbc5660c3b95cdba814e82bd1700d436c8436
parent3c700a35be5ec8c4036e75abebf0e5d4bc878eff
Fix crash in discardPurgeableFiles with proper selection syntax.

The basic crash is that this codepath was doing a query to the download
provider without properly quoting its selection arguments (which is
mandated by the download provider).

A secondary crash is that the DESTINATION column wasn't readable.

This fixes bug 1941125.

Tested by force-calling discardPurgeableFiles for each download
to /cache, locally adding a few debugging statements to be sure
that the codepath was getting executed, and doing a market download.
docs/index.html
src/com/android/providers/downloads/DownloadProvider.java
src/com/android/providers/downloads/Helpers.java