ctf-tools/android-sdk/install

12 lines
381 B
Text
Raw Normal View History

#!/bin/bash -ex
[ -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} .