fenix/taskcluster/scripts/decision-install-sdk.sh
Andrew Halberstadt 2339ab664e
For #19801 - Run taskgraph generation with Python 3 (#19802)
* For #19801 - Update to latest version of taskgraph

* For #19801 - Update to latest decision-mobile image

We need to explicitly set the Java version as Java 11 now co-exists in
the decision-mobile image.

* For #19801 - Run decision task with Python 3
2021-06-09 12:52:28 -07:00

18 lines
602 B
Bash
Executable File

#!/bin/bash
set -ex
export CURL='curl --location --retry 5'
ANDROID_SDK_VERSION='3859397'
ANDROID_SDK_SHA256='444e22ce8ca0f67353bda4b85175ed3731cae3ffa695ca18119cbacef1c1bea0'
SDK_ZIP_LOCATION="$HOME/sdk-tools-linux.zip"
$CURL --output "$SDK_ZIP_LOCATION" "https://dl.google.com/android/repository/sdk-tools-linux-${ANDROID_SDK_VERSION}.zip"
echo "$ANDROID_SDK_SHA256 $SDK_ZIP_LOCATION" | sha256sum --check
unzip -d "$ANDROID_SDK_ROOT" "$SDK_ZIP_LOCATION"
rm "$SDK_ZIP_LOCATION"
export JAVA_HOME="/usr/lib/jvm/java-1.8.0-openjdk-amd64"
yes | "${ANDROID_SDK_ROOT}/tools/bin/sdkmanager" --licenses