From 831ca0bca335460a4677b6d9e9cc0d88d26ad577 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 14 Aug 2021 09:30:22 -0400 Subject: [PATCH] update standalone SDK installation instructions --- static/build.html | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/static/build.html b/static/build.html index ce52249a..407406ec 100644 --- a/static/build.html +++ b/static/build.html @@ -900,13 +900,14 @@ $DEVICE-stable quite out-of-date and should be avoided. To set up a minimal SDK installation at ~/android/sdk without Android Studio:

-
mkdir -p ~/android/sdk/cmdline-tools
-cd ~/android/sdk/cmdline-tools
-curl -O https://dl.google.com/android/repository/commandlinetools-linux-6514223_latest.zip
-echo 'ef319a5afdb41822cb1c88d93bc7c23b0af4fc670abca89ff0346ee6688da797  commandlinetools-linux-6514223_latest.zip' | sha256sum -c
-unzip commandlinetools-linux-6514223_latest.zip
-rm commandlinetools-linux-6514223_latest.zip
-mv tools latest
+
mkdir -p ~/android/sdk/bootstrap
+cd ~/android/sdk/bootstrap
+curl -O https://dl.google.com/android/repository/commandlinetools-linux-7583922_latest.zip
+echo '124f2d5115eee365df6cf3228ffbca6fc3911d16f8025bebd5b1c6e2fcfa7faf  commandlinetools-linux-7583922_latest.zip' | sha256sum -c
+unzip commandlinetools-linux-7583922_latest.zip
+cmdline-tools/bin/sdkmanager 'cmdline-tools;latest' --sdk_root=$HOME/android/sdk
+cd ..
+rm -r bootstrap

Set ANDROID_HOME to point at the SDK installation in your current shell and shell profile configuration. You also need to add the @@ -915,10 +916,6 @@ mv tools latest

export ANDROID_HOME="$HOME/android/sdk"
 export PATH="$HOME/android/sdk/cmdline-tools/latest/bin:$PATH"
-

Make cmdline-tools responsible for updating itself:

- -
sdkmanager 'cmdline-tools;latest'
-

Install platform-tools for tools like adb and fastboot:

sdkmanager platform-tools