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
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.
am 0677854f: Merge changes Ie35da00b,I08b8367a into klp-dev

* commit '0677854f30ae982df77c2c09d98998c2a7181688':
  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
am d5fdded8: resolved conflicts for merge of d8eb423a to klp-dev

* commit 'd5fdded86912e9c6a3b28034803989656e9a80ad':
  Also check legacy path
Check granted permissions for all paths

b/9604671
b/10345049
b/11380658

Change-Id: Ifa4db10261f39e5af5fe84902f7221075a78bad3
am 6ab6373d: Check granted permissions for all paths

* commit '6ab6373dea9c980c41c1cb1d5f59e0fd78bbf8a7':
  Check granted permissions for all paths
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
am 3fa4c1f0: Fix argument references

* commit '3fa4c1f0f2d9631aa41567b6c2efb2716421ba40':
  Fix argument references