ctf-tools/android-sdk/install

11 lines
380 B
Bash

#!/bin/bash -e
[ -e android-sdk_r24.4.1-linux.tgz ] || wget https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
[ -e android-sdk-linux ] || tar xfz android-sdk_r24.4.1-linux.tgz
mkdir -p bin
cd android-sdk-linux
python -c 'for i in range(10): print "y"+"\n"*1024' | tools/android update sdk --no-ui
cd ../bin
ln -sf ../android-sdk-linux/platform-tools/{adb,fastboot} .