forked from hardcoresushi/DroidFS
NDK r21e & OpenSSL v1.1.1j
This commit is contained in:
parent
86e9572431
commit
9405531245
15
README.md
15
README.md
@ -77,10 +77,19 @@ Most of the original gocryptfs code was used as is (written in Go) and compiled
|
|||||||
```
|
```
|
||||||
$ git clone https://github.com/hardcore-sushi/DroidFS.git
|
$ git clone https://github.com/hardcore-sushi/DroidFS.git
|
||||||
```
|
```
|
||||||
Gocryptfs need openssl to work:
|
Gocryptfs need OpenSSL to work:
|
||||||
```
|
```
|
||||||
$ cd DroidFS/app/libgocryptfs
|
$ cd DroidFS/app/libgocryptfs
|
||||||
$ wget -qO - https://www.openssl.org/source/openssl-1.1.1h.tar.gz | tar -xvzf -
|
$ wget https://www.openssl.org/source/openssl-1.1.1j.tar.gz
|
||||||
|
```
|
||||||
|
Verify OpenSSL signature:
|
||||||
|
```
|
||||||
|
$ wget https://www.openssl.org/source/openssl-1.1.1j.tar.gz.asc
|
||||||
|
$ gpg --verify openssl-1.1.1j.tar.gz.asc openssl-1.1.1j.tar.gz
|
||||||
|
```
|
||||||
|
Continue **ONLY** if the signature is **VALID**.
|
||||||
|
```
|
||||||
|
$ tar -xvzf openssl-1.1.1j.tar.gz
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Build
|
#### Build
|
||||||
@ -96,7 +105,7 @@ $ go get golang.org/x/sys/unix golang.org/x/sys/cpu golang.org/x/crypto/hkdf
|
|||||||
Then, retrieve your Android NDK installation path, usually someting like "/home/\<user\>/AndroidSDK/ndk/\<NDK version\>". We can now start the build process:
|
Then, retrieve your Android NDK installation path, usually someting like "/home/\<user\>/AndroidSDK/ndk/\<NDK version\>". We can now start the build process:
|
||||||
```
|
```
|
||||||
$ cd DroidFS/app/libgocryptfs
|
$ cd DroidFS/app/libgocryptfs
|
||||||
$ env ANDROID_NDK_HOME="<your ndk path>" OPENSSL_PATH="./openssl-1.1.1h" ./build.sh
|
$ env ANDROID_NDK_HOME="<your ndk path>" OPENSSL_PATH="./openssl-1.1.1j" ./build.sh
|
||||||
```
|
```
|
||||||
Then, open the DroidFS project with Android Studio.<br>
|
Then, open the DroidFS project with Android Studio.<br>
|
||||||
If a device (virtual or physical) is connected, just click on "Run".<br>
|
If a device (virtual or physical) is connected, just click on "Run".<br>
|
||||||
|
@ -5,7 +5,7 @@ apply plugin: 'kotlin-android-extensions'
|
|||||||
android {
|
android {
|
||||||
compileSdkVersion 29
|
compileSdkVersion 29
|
||||||
buildToolsVersion "30.0.3"
|
buildToolsVersion "30.0.3"
|
||||||
ndkVersion '21.3.6528147'
|
ndkVersion "21.4.7075529"
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
targetCompatibility JavaVersion.VERSION_1_8
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
if [ -z ${ANDROID_NDK_HOME+x} ]; then
|
if [ -z ${ANDROID_NDK_HOME+x} ]; then
|
||||||
echo "Error: \$ANDROID_NDK_HOME is not defined."
|
echo "Error: \$ANDROID_NDK_HOME is not defined."
|
||||||
elif [ -z ${OPENSSL_PATH+x} ]; then
|
elif [ -z ${OPENSSL_PATH+x} ]; then
|
||||||
echo "Error: \$OPENSSL_PATH is not defined."
|
echo "Error: \$OPENSSL_PATH is not defined."
|
||||||
else
|
else
|
||||||
NDK_BIN_PATH="$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin"
|
NDK_BIN_PATH="$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin"
|
||||||
declare -a ABIs=("x86_64" "arm64-v8a" "armeabi-v7a")
|
declare -a ABIs=("x86_64" "arm64-v8a" "armeabi-v7a")
|
||||||
|
Loading…
Reference in New Issue
Block a user