libhardware_legacy: sync with CAF

Change-Id: Ib3f50ddf4064fd7104387bffcc7db7894024c0aa