refactord Android HAL