libhardware_legacy for Android