add android mode support