Finalize libcryfs

This commit is contained in:
Matéo Duparc 2022-06-26 13:15:51 +02:00
parent a92695f8d5
commit d2327052dc
Signed by untrusted user: hardcoresushi
GPG Key ID: AFE384344A45E13A
6 changed files with 9 additions and 6 deletions

3
.gitmodules vendored
View File

@ -6,5 +6,4 @@
url = https://forge.chapril.org/hardcoresushi/libpdfviewer.git
[submodule "app/libcryfs"]
path = app/libcryfs
url = https://github.com/hardcore-sushi/libcryfs.git
branch = genesis
url = https://forge.chapril.org/hardcoresushi/libcryfs.git

View File

@ -1,6 +1,8 @@
# Introduction
DroidFS relies on modified versions of the original encrypted filesystems programs to open volumes. [CryFS](https://github.com/cryfs/cryfs) is written in C++ while [gocryptfs](https://github.com/rfjakob/gocryptfs) is written in Go. Thus, building DroidFS requires the compilation of native code. However, for the sake of simplicity, the application has been designed in a modular way: you can build a version of DroidFS that supports both Gocryptfs and CryFS, or only one of the two.
Moreover, DroidFS aims to be accessible to as many people as possible. If you encounter any problems or need help with the build, feel free to open an issue, a discussion, or contact me by [email](mailto:hardcore.sushi@disroot.org) or on [Matrix](https://matrix.org): @hardcoresushi:matrix.underworld.fr
# Setup
Install required packages:
```

@ -1 +1 @@
Subproject commit 267fb40fe77e5ef079759bebd395c7a92ef072d2
Subproject commit 335815d25ac90f3d4964f88b542746ab5b270397

@ -1 +1 @@
Subproject commit 9e98192442b08362660b45f4e2e50221ba7bc65b
Subproject commit 7afeb9f3a4e0316365e843d3f4afd50201fbb253

View File

@ -46,7 +46,7 @@ object PathUtils {
}
fun getRelativePath(parentPath: String, childPath: String): String {
return childPath.substring(parentPath.length + if (parentPath.endsWith(SEPARATOR)) {
return childPath.substring(parentPath.length + if (parentPath.endsWith(SEPARATOR) || childPath.length == parentPath.length) {
0
} else {
1

View File

@ -19,3 +19,5 @@ android.useAndroidX=true
android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
android.native.buildOutput=verbose