Skip to content

Commit e113e2f

Browse files
[macos] introduce toolset possibility to install Android SDK Tools (#8573)
1 parent 59fd426 commit e113e2f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

images/macos/provision/core/android-toolsets.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,4 +121,13 @@ do
121121
echo y | $SDKMANAGER "$tool_name"
122122
done
123123

124+
# Download SDK tools to preserve backward compatibility
125+
sdkTools="android-sdk-tools.zip"
126+
sdkToolsVersion=$(get_toolset_value '.android."sdk-tools"')
127+
if [ "$sdkToolsVersion" != "null" ]; then
128+
download_with_retries "https://dl.google.com/android/repository/${sdkToolsVersion}" "." $sdkTools
129+
unzip -qq $sdkTools -d ${ANDROID_SDK_ROOT}
130+
rm -f $sdkTools
131+
fi
132+
124133
invoke_tests "Android"

0 commit comments

Comments
 (0)