NDK r21e & OpenSSL v1.1.1j

This commit is contained in:
Matéo Duparc 2021-03-18 18:31:18 +01:00
parent 86e9572431
commit 9405531245
Signed by: hardcoresushi
GPG Key ID: 007F84120107191E
3 changed files with 14 additions and 5 deletions

View File

@ -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>

View File

@ -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