Unverified Commit 9e4447f8 authored by Luca Boccassi's avatar Luca Boccassi Committed by GitHub

Merge pull request #3064 from AxelNennker/patch-1

use HTTPS when downloading a binary before excuting it check hashes
parents 046689bb 990268e1
......@@ -8,10 +8,15 @@ To launch the android build, you have to first install the android-ndk first in
$ cd ~
$ export ANDROID_NDK_VERSION="r10e"
$ wget -q http://dl.google.com/android/ndk/android-ndk-${ANDROID_NDK_VERSION}-linux-x86_64.bin -O android-ndk-${ANDROID_NDK_VERSION}-linux-x86_64.bin
$ wget -q https://dl.google.com/android/ndk/android-ndk-${ANDROID_NDK_VERSION}-linux-x86_64.bin -O android-ndk-${ANDROID_NDK_VERSION}-linux-x86_64.bin
$ #check the hashes before executing this binary
$ md5sum android-ndk-r10e-linux-x86_64.bin
# 19af543b068bdb7f27787c2bc69aba7f android-ndk-r10e-linux-x86_64.bin
sha256sum android-ndk-r10e-linux-x86_64.bin
# 102d6723f67ff1384330d12c45854315d6452d6510286f4e5891e00a5a8f1d5a android-ndk-r10e-linux-x86_64.bin
$ chmod +x android-ndk-${ANDROID_NDK_VERSION}-linux-x86_64.bin
$ ./android-ndk-r10e-linux-x86_64.bin
$ export ANDROID_NDK_ROOT /home/zmq/android-ndk-r10e
$ export ANDROID_NDK_ROOT ${HOME}/android-ndk-r10e
$ export TOOLCHAIN_NAME arm-linux-androideabi-4.9
$ export TOOLCHAIN_HOST arm-linux-androideabi
$ export TOOLCHAIN_PATH ${ANDROID_NDK_ROOT}/toolchains/${TOOLCHAIN_NAME}/prebuilt/linux-x86_64/bin
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment