Changes to encryption to work with the new filesystem manager

The new filesystem manager is in charge of mounting the block devices now,
removing much of the knowledge from init.<device>.rc.  This also let us
clean up some init code dealing with encryption, so this change updates
vold to work with that.  More cleanup is possible, but the main goal of the
filesystem manager was to enable e2fsck, not a full cleanup of encryption.

Change-Id: I00ea80a923d14770ed8fdd190e8840be195f8514
am e5032c42: Changes to encryption to work with the new filesystem manager

* commit 'e5032c42da3c33a854df0a24a7968b4ab54190b9':
  Changes to encryption to work with the new filesystem manager
Unshare ums when SD card is removed

If SD card is removed without unmounting when in USB mass storage mode
the ums share is not properly closed and the device files 179:0 and 179:1
are left in use. This causes erratic behaviour on subsequent operations on
the card, i.e. mounting and formatting will fail.

Change-Id: I757703c6282f4b76e2d8b027f4644920737309b6
Delay disk inserted broadcast until disk is ready

Delay sending of "VolumeDiskInserted" broadcast until the disk is
ready (ie until all the partitions have been received from
kernel). This solves a race with MountService, otherwise there is a
risk that MountService tries to mount the SD-card before the
partition(s) have been received and the card will fail to mount.

Change-Id: Ie2a28227ae9a7d6fe9106fb6875f469a0e899014
Merge "Unshare ums when SD card is removed"
am 5cf6325c: Merge "Unshare ums when SD card is removed"

* commit '5cf6325c91792dbb1bb08fa1958c1fc8a5b9c45d':
  Unshare ums when SD card is removed
am 0e110bb5: am 5cf6325c: Merge "Unshare ums when SD card is removed"

* commit '0e110bb5a2559b60003effa0e0bf460993e634a6':
  Unshare ums when SD card is removed
am 348c8aba: Only set permissions on dirs or files

* commit '348c8aba0d2df2996e0fe57900ef518c6aeb4b29':
  Only set permissions on dirs or files
am 457197c5: am 348c8aba: Only set permissions on dirs or files

* commit '457197c50056216c1552e020998274a3bb249dd9':
  Only set permissions on dirs or files
am 1a673c86: Native library loading needs to read directory

* commit '1a673c868c2d2d81fcaeab34b4a7c75d4a978584':
  Native library loading needs to read directory
am 9688165c: am 1a673c86: Native library loading needs to read directory

* commit '9688165c81a1ab4c2ce08fc831030eebcf2ecc6f':
  Native library loading needs to read directory
am 41836711: Merge "Sleep to wait for dm to create node" into jb-dev

* commit '418367112c96f6ce45aa142d613a575046b7f65f':
  Sleep to wait for dm to create node
am 760cec44: am 41836711: Merge "Sleep to wait for dm to create node" into jb-dev

* commit '760cec444b0f3c8a243d100cd5f5520af7531d17':
  Sleep to wait for dm to create node
Reconcile with jb-release nakasi-factoryrom-release

Change-Id: I2bc2763dc285edb9aa8bd9bedd068ee4483a3ce5
am 2fdea0aa: Reconcile with jb-release nakasi-factoryrom-release

* commit '2fdea0aa78cefce50c6f51be97084977f2a6ae69':
  Native library loading needs to read directory
  Only set permissions on dirs or files
  Fix truncation of ASEC ids
Merge "Delay disk inserted broadcast until disk is ready"
am bac5eb96: Merge "Delay disk inserted broadcast until disk is ready"

* commit 'bac5eb966c5c3aa9abe83cdb5187326f422741ab':
  Delay disk inserted broadcast until disk is ready
am e925ff66: am bac5eb96: Merge "Delay disk inserted broadcast until disk is ready"

* commit 'e925ff6670bb9cef9118ddceb2e3bff81833bd09':
  Delay disk inserted broadcast until disk is ready
am 425524db: Unmount all asec apps before encrypting

* commit '425524dba1552ab3d2ad39e205e65d0a2af997f2':
  Unmount all asec apps before encrypting
am a7926050: am 425524db: Unmount all asec apps before encrypting

* commit 'a79260500a869f867118a6e5289c6e5a0353558f':
  Unmount all asec apps before encrypting