use expect to update android and handle stdinput