Reworked run_emulator method for android