Integrated agrabren's patch to libhardware