Emulated volumes above private volumes.

When a private volume is mounted, create an emulated volume above it
hosted at the /media path on that device.  That emulated volume is
automatically torn down when unmounting the private volume.

Add "removed" state for volume, which signals to framework that
media has left the building, send when the volume is destroyed.

Bug: 19993667
Change-Id: I1f82b51de578ac5cfcc5d7b9a6fb44f6f25c775c
diff --git a/VolumeManager.cpp b/VolumeManager.cpp
index 5b7ce22..86e3fd4 100644
--- a/VolumeManager.cpp
+++ b/VolumeManager.cpp
@@ -260,7 +260,7 @@
     // Assume that we always have an emulated volume on internal
     // storage; the framework will decide if it should be mounted.
     mInternalEmulated = std::shared_ptr<android::vold::VolumeBase>(
-            new android::vold::EmulatedVolume("/data/media", ""));
+            new android::vold::EmulatedVolume("/data/media"));
     mInternalEmulated->create();
 
     return 0;