Question

Back again on Stack needing help from fellow Android Developers. In my development environment im using a lot of command line building and management. Currently im running into a issue where the Terminal "Using Mac OSX" when executing the command "emulator -avd nameOfemulator" the Terminal is still live.

Example of Launching Emulator

Launching Emulator

However even when the emulator is open and live, The Terminal is not let go to be able to execute additional command, I dont want to just open a new tab or window to have to execute my adb command's. Currently i can closes the emulator and kill the live terminal/emulator command by a simple 'ctrl-C' however this defeats the purpose if the emulator is closed.

Does anybody know of anyway of getting the terminal live again, either through a script, string of commands, different type of emulator's, etc.

UPDATE

Now running the following command emulator -avd NexusSeven & This emulator has the HAX Intel Hardware Acceleration enabled. And shortly after the terminal becomes available again, The string "HAX is working and emulator runs in fast virt mode" is inputted into the command input and makes the terminal live again. After running Command in separate thread, HAX string is inputted making terminal live again

Was it helpful?

Solution

Since MacOSX is just a fork of BSD Linux, the emulator can be run in background by appending the ampersand:

emulator -avd NexusSeven &

To ignore all output, the following command will help:

emulator -avd NexusSeven > /dev/null 2>&1 &
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top