adaptation for hammerhead

Pls see the whole commit: https://github.com/sledges/droid-hal-device/commit/cb649a2fd12d42ca770a13251e168a0318f96e25