Add apktool and apktool.jar to install-build-deps-android.sh

BUG=452927
TBR=cjhopman@chromium.org

Review URL: https://codereview.chromium.org/1287133002

Cr-Original-Commit-Position: refs/heads/master@{#343269}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 28978226297bc33a6ca73efb1a82271888a5a8fb
This commit is contained in:
navabi 2015-08-13 13:41:59 -07:00 коммит произвёл Commit bot
Родитель a7ffc25452
Коммит 0a49b989db
1 изменённых файлов: 28 добавлений и 0 удалений

Просмотреть файл

@ -97,4 +97,32 @@ if test "$skip_inst_sdk_packages" != 1; then
"$(dirname "${BASH_SOURCE[0]}")/install-android-sdks.sh"
fi
DownloadFromBucket() {
bin=$1
path=$2
gs_url=$3
known_hash=$4
tmpfile=${bin}_$(/bin/date +%s)
if [ ! -x ${path}/${bin} ]; then
/b/build/scripts/slave/gsutil cp ${gs_url} ${tmpfile}
md5=$(md5sum ${tmpfile} | cut -d' ' -f 1)
if [[ $known_hash == $md5 ]]; then
/usr/bin/sudo /bin/mv ${tmpfile} ${path}/${bin}
/usr/bin/sudo /bin/chmod a+x ${path}/${bin}
/usr/bin/sudo /bin/chown root:root ${path}/${bin}
else
echo 'ERROR: Bad md5sum. Not installing' ${bin}
exit 1
fi
fi
}
DownloadFromBucket apktool /usr/local/bin \
'gs://chromium-apktool-bucket/apktool_1_5_2/apktool' \
89d099df9f8b12c043dc74f6f1368f36
DownloadFromBucket apktool.jar /usr/local/bin \
'gs://chromium-apktool-bucket/apktool_1_5_2/apktool.jar' \
2d616934a8eaa37c4501868f05c62871
echo "install-build-deps-android.sh complete."