Skip to content

Commit 62de8db

Browse files
author
Vladimir Enchev
committed
Create Android default emulator
1 parent 6cba2ba commit 62de8db

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

setup/native-script.ps1

+7
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ echo y | cmd /c "$androidExecutable" update sdk --filter "android-23" --all --no
105105
echo y | cmd /c "$androidExecutable" update sdk --filter "build-tools-23.0.2" --all --no-ui
106106
echo y | cmd /c "$androidExecutable" update sdk --filter "extra-android-m2repository" --all --no-ui
107107

108+
echo y | $ANDROID_HOME/tools/android update sdk --filter extra-intel-Hardware_Accelerated_Execution_Manager --all --no-ui
109+
110+
$haxmSilentInstaller = [io.path]::combine($env:ANDROID_HOME, "extras", "intel", "Hardware_Accelerated_Execution_Manager", "silent_install.sh")
111+
cmd /c "$haxmSilentInstaller"
112+
113+
echo y | $ANDROID_HOME/tools/android update sdk --filter sys-img-x86-android-23 --all --no-ui
114+
echo no | $ANDROID_HOME/tools/android create avd -n Emulator-Api23-Default -t android-23 --abi default/x86 -c 12M -f
108115

109116
Write-Host -ForegroundColor Green "This script has modified your environment. You need to log off and log back on for the changes to take effect."
110117
Pause

setup/native-script.rb

+8
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,12 @@ def install(program_name, message, script, run_as_root = false, show_all_option
121121
execute("echo y | #{android_executable} update sdk --filter build-tools-23.0.2 --all --no-ui", "There seem to be some problems with the Android configuration")
122122
execute("echo y | #{android_executable} update sdk --filter extra-android-m2repository --all --no-ui", "There seem to be some problems with the Android configuration")
123123

124+
execute("echo y | $ANDROID_HOME/tools/android update sdk --filter extra-intel-Hardware_Accelerated_Execution_Manager --all --no-ui", "There seem to be some problems with the Android configuration
125+
126+
haxm_silent_installer = File.join(ENV["ANDROID_HOME"], "extras", "intel", "Hardware_Accelerated_Execution_Manager", "silent_install.sh")
127+
execute("#{haxm_silent_installer}", "There seem to be some problems with the Android configuration")
128+
129+
execute("echo y | $ANDROID_HOME/tools/android update sdk --filter sys-img-x86-android-23 --all --no-ui", "There seem to be some problems with the Android configuration")
130+
execute("echo no | $ANDROID_HOME/tools/android create avd -n Emulator-Api23-Default -t android-23 --abi default/x86 -c 12M -f", "There seem to be some problems with the Android configuration")
131+
124132
puts "The ANDROID_HOME and JAVA_HOME environment variables have been added to your .profile. Restart the terminal to use them."

0 commit comments

Comments
 (0)