From 822aba9481e4cf0a980180f7816910535cdc6885 Mon Sep 17 00:00:00 2001
From: Hardcore Sushi
Date: Thu, 20 Jan 2022 13:01:56 +0100
Subject: [PATCH] Better build explanation
---
README.md | 49 +++++++++++++++++++++++++++------------------
app/build.gradle | 4 ++--
app/ffmpeg/build.sh | 9 ++++++---
app/libgocryptfs | 2 +-
4 files changed, 38 insertions(+), 26 deletions(-)
diff --git a/README.md b/README.md
index ee6609a..ada59ee 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@ It currently only works with [gocryptfs](https://github.com/rfjakob/gocryptfs) b
-# Disclamer
+# Disclaimer
DroidFS is provided "as is", without any warranty of any kind.
It shouldn't be considered as an absolute safe way to store files.
DroidFS cannot protect you from screen recording apps, keyloggers, apk backdooring, compromised root accesses, memory dumps etc.
@@ -48,7 +48,7 @@ It is strongly recommended to read the documentation of a feature before enablin
You can download DroidFS from [F-Droid](https://f-droid.org/packages/sushi.hardcore.droidfs) or from the "Releases" section in the repo.
-APKs availables here are signed with my PGP key available on keyservers:
+APKs available here are signed with my PGP key available on keyservers:
`gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 007F84120107191E` \
Fingerprint: `BD5621479E7B74D36A405BE8007F84120107191E` \
@@ -88,11 +88,16 @@ DroidFS use some parts of the original gocryptfs code, which is designed to run
# Build
Most of the original gocryptfs code was used as is (written in Go) and compiled to native code. That's why you need [Go](https://golang.org) and the [Android Native Development Kit (NDK)](https://developer.android.com/ndk/) to build DroidFS from source.
-
-#### Install Requirements
-- [Android Studio](https://developer.android.com/studio/)
-- [Android NDK and CMake](https://developer.android.com/studio/projects/install-ndk) (OpenSSL build fails with NDK versions higher than v22. It should pass with NDK v21.4.7075529 and lower)
-- [Go](https://golang.org/doc/install) (on debian: `$ sudo apt-get install golang-go`)
+#### Install dependencies
+On debian:
+```
+$ sudo apt-get install build-essential pkg-config libssl-dev
+```
+Install [Go](https://golang.org/doc/install):
+```
+$ sudo apt-get install golang-go
+```
+You also need to install the Android SDK build tools and the [Android NDK](https://developer.android.com/studio/projects/install-ndk).
#### Download Sources
```
@@ -123,28 +128,32 @@ $ cd app/ffmpeg
$ git clone --depth=1 https://git.ffmpeg.org/ffmpeg.git
```
+#### Generate a keystore
+APKs must be signed to be installed on an Android device. If you don't already have a keystore, you can generate one by running:
+```
+$ keytool -genkey -keystore