Revert "Fork hardware/libhardware_legacy."

This reverts commit 06c341a92641c54fb9bdaf4b55a20255ef216b79.