Cloned from https://code-review.phablet.ubuntu.com/aosp/platform/system/vold