Sanitize display names, keep extensions intact.
authorBen Kwa <kenobi@google.com>
Wed, 22 Apr 2015 22:50:14 +0000 (15:50 -0700)
committerBen Kwa <kenobi@google.com>
Wed, 22 Apr 2015 22:50:14 +0000 (15:50 -0700)
commita09378b08f12c6c331f5eac65120f406e11dcaad
tree546ae3c1a27574be4f0525d25cf4e65b30e0e3e9
parent98cb05472fb27f77d0fc2233e39c80278652276b
Sanitize display names, keep extensions intact.

Use the newly factored FileUtils sanitize the requested display names to
be valid FAT filenames, and also allow any extension that maps to the
requested MIME type.

BUG=20157955

Change-Id: Ic37863a3362a941d81632bd4a7562dae40053652
src/com/android/providers/downloads/DownloadStorageProvider.java