libhardware_legacy code for MT6620