Skip to content

Instantly share code, notes, and snippets.

@MartinZikmund
Created January 22, 2020 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartinZikmund/14d51e911f31452f0b4e9065c7786bfe to your computer and use it in GitHub Desktop.
Save MartinZikmund/14d51e911f31452f0b4e9065c7786bfe to your computer and use it in GitHub Desktop.
@echo off
rem ##### ENSURE THE SDK LOCATION BELOW IS CORRECT: #######
set ANDROID_SDK_LOCATION=C:\Program Files (x86)\Android\android-sdk
rem ############ DO NOT Modify below this line ############
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.\
echo %DIRNAME%
rem Check if emulator is installed
set EMULATOR=%ANDROID_SDK_LOCATION%\emulator\emulator.exe
echo "%EMULATOR%"
if exist %EMULATOR% (
set ANDROID_PRODUCT_OUT=%DIRNAME%
"%EMULATOR%" -verbose -accel auto %* -sysdir %DIRNAME%\bin -kernel "%DIRNAME%\bin\kernel-ranchu" -datadir %DIRNAME%\bin\data -initdata %DIRNAME%\bin\userdata.img -vendor %DIRNAME%\bin\vendor-qemu.img -system %DIRNAME%\bin\system-qemu.img -initdata %DIRNAME%\bin\userdata.img -data %DIRNAME%\bin\userdata.img
) else (
echo "Can't find emulator executable, make sure its installed"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment