Skip to content

Instantly share code, notes, and snippets.

@DavidNorena
Last active August 8, 2018 20:32
Show Gist options
  • Save DavidNorena/c315017e9b5b04c67512736b59f76839 to your computer and use it in GitHub Desktop.
Save DavidNorena/c315017e9b5b04c67512736b59f76839 to your computer and use it in GitHub Desktop.
run android emulator from terminal LINUX-MAC/WINDOWS
@echo off
rem INFO:
rem You must set %ANDROID_HOME% in %PATH% VARIABLE
set AVD_NAME="nexus-dev"
if not "%~1"=="" (
set AVD_NAME="%1"
shift
)
pushd "%ANDROID_HOME%\tools"
start /B emulator.exe -avd %AVD_NAME% %1 %2 %3 %4 %5 %6 %7 %8 %9
popd
#!/bin/bash
AVD_NAME=nexus-dev
if [ $# -gt 0 ]; then
AVD_NAME=$1
shift
fi
pushd ${ANDROID_HOME}/tools
./emulator -avd ${AVD_NAME} $* &
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment