Get FAT volume ID through vold.

Now that storage volumes are FUSE-wrapped, userspace apps no longer
have access to perform the direct ioctl().

Bug: 11175082
Change-Id: I08b8367a89e4f325dd28c29789165e95c70e9944
merge in klp-release (no-op)
Avoid NPE when checking for empty volume.

Bug: 11175082
Change-Id: Ie35da00babeabaaf39d3afb2da53b39e80bddaac
Merge changes Ie35da00b,I08b8367a into klp-dev

* changes:
  Avoid NPE when checking for empty volume.
  Get FAT volume ID through vold.
Also check legacy path

b/9604671

Change-Id: I49035ed53dab71cdacb7f3cdd59c18e8bb5ba850
am 5943bf87: Also check legacy path

* commit '5943bf87fe6511fa688cb29ccef87ace5ccda522':
  Also check legacy path
am b4a53aa4: am 5943bf87: Also check legacy path

* commit 'b4a53aa48f88fb5fe499b4602b9b25d325ba52ec':
  Also check legacy path
am d2727762: am b4a53aa4: am 5943bf87: Also check legacy path

* commit 'd2727762072f02778fea0bd3bb56c22094fceb16':
  Also check legacy path
am 49f75ad3: am d2727762: am b4a53aa4: am 5943bf87: Also check legacy path

* commit '49f75ad325c29ff9a7f0e7d8213fbfba1b8cffff':
  Also check legacy path
am cefdabeb: am 49f75ad3: am d2727762: am b4a53aa4: am 5943bf87: Also check legacy path

* commit 'cefdabebd2003272d3e2a799b606e877a32d9304':
  Also check legacy path
resolved conflicts for merge of d8eb423a to klp-dev

Change-Id: I44c7c7d0e1da8fd169a0bf57696e308631fa9f25
Check granted permissions for all paths

b/9604671
b/10345049
b/11380658

Change-Id: Ifa4db10261f39e5af5fe84902f7221075a78bad3
Fix argument references

The bucket id and display names references were off by one, resulting
in brokenness when renaming a directory via MTP
b/10835798
b/11655617

Change-Id: I9e6c510027a37deed55887393e388805f06b86b0
Merge tag 'android-4.4.1_r1' into HEAD

Android 4.4.1 Release 1

Conflicts:
	src/com/android/providers/media/MediaProvider.java

Change-Id: I553023304307168e6e6e0cb5a98372cc068659e3
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_packages_providers_MediaProvider into kk44