Add WRITE_MEDIA_STORAGE permission so MTP can write to secondary external storage

Change-Id: I67caaa0862f48fe31f87196a40fc43900c203132
Signed-off-by: Mike Lockwood <lockwood@android.com>
Disable logic for computing media type from mime type when .nomedia is present

Bug: 3405327

Change-Id: I76ca4e24f3020d125745192f8c55637646daff15
Signed-off-by: Mike Lockwood <lockwood@android.com>
merge in honeycomb-mr1-release history after reset to honeycomb-mr1
merge in honeycomb-mr1-release history after reset to honeycomb-mr1
merge in honeycomb-mr1-release history after reset to honeycomb-mr1
merge in honeycomb-mr1-release history after reset to honeycomb-mr1
merge in honeycomb-mr1-release history after reset to honeycomb-mr1
DO NOT MERGE Backport album artist support from Honeycomb.

MediaProvider was already receiving album artist info (for album
disambiguation), and now it stores it in the database too.
b/4081769

Change-Id: I0a93bae9984cf88d51950da05848ae57fd2d4c8d
DO NOT MERGE Fix media provider database upgrade

Support updating both GB and HC device to ICS.
b/4081769

Change-Id: I1ee2e243d216c096cc6303b4580f74a041e10084
DO NOT MERGE Add support for multiple volumes to the media provider and MTP

In MTP each volume will appear as a separate storage unit.
However, in the provider, the database provides a unified view all the volumes.
We use the new storage_id column to tell which volume a given file is on.

Still to do: run the media scanner when volumes are added or removed.

Change-Id: Ia6d1b610916438a1110b1900b66b7dca3d65d9a5
Signed-off-by: Mike Lockwood <lockwood@android.com>
DO NOT MERGE Run media scanner when secondary external volumes are mounted or unmounted

This will add/remove database entries for files on secondary volumes
when the volume is added/removed.

Change-Id: I24e1059dcf1b3c04d95e03c03b736e214c8fbff4
Signed-off-by: Mike Lockwood <lockwood@android.com>
DO NOT MERGE Add the storage_id column to the internal database too

Fixes media scanner.  You can have your ringtones again.

Change-Id: I7eb22ac1a70b5bc4a82a1d4a1ffe6b16e8e48f25
Signed-off-by: Mike Lockwood <lockwood@android.com>
DO NOT MERGE MtpService: remove some logging

Change-Id: Ib5f3a2b9982432c3111866eecb222265b1db64dc
Signed-off-by: Mike Lockwood <lockwood@android.com>
DO NOT MERGE Remove the deprecated things from Config.java. These havent been working since before 1.0.

Change-Id: I21b067269ace75fccfdef98c14e3619ac8f1358c
DO NOT MERGE Remove no longer needed config.

Change-Id: I3a90e3928e38c55c9e9164f9ff6d79dc51d44a48
DO NOT MERGE Add WRITE_MEDIA_STORAGE permission so MTP can write to secondary external storage

Change-Id: Ie7b00459445ec820073def9878bc98d428b6191e
Signed-off-by: Mike Lockwood <lockwood@android.com>
DO NOT MERGE Disable logic for computing media type from mime type when .nomedia is present

Bug: 3405327

Change-Id: Ic502e3a6f3abcebfdf2f351e81c8fb29227d18a4
Signed-off-by: Mike Lockwood <lockwood@android.com>
DO NOT MERGE Backport album artist support from Honeycomb.

MediaProvider was already receiving album artist info (for album
disambiguation), and now it stores it in the database too.
b/4081769

Change-Id: Ia4e090b2f8ad430b988dda957a7fde4baee98ce3
DO NOT MERGE Fix media provider database upgrade

Support updating both GB and HC device to ICS.
b/4081769

Change-Id: I1b93ff1134f52fab57a623cc417cef923e729c39
DO NOT MERGE Add support for multiple volumes to the media provider and MTP

In MTP each volume will appear as a separate storage unit.
However, in the provider, the database provides a unified view all the volumes.
We use the new storage_id column to tell which volume a given file is on.

Still to do: run the media scanner when volumes are added or removed.

Change-Id: Ic627cf4dff880fd6d099a18b7c22d72153497e87
Signed-off-by: Mike Lockwood <lockwood@android.com>