Switch to recaf libhardware_legacy