Revert "Revert "Fork hardware/libhardware_legacy.""

This reverts commit 3414e7c0b539b244cae49cf64b78b6f41726b2dc.