adopting libhardware

Signed-off-by: Simonas Leleiva <simonas.leleiva@jollamobile.com>