DroidFS/README.md

130 lines
8.3 KiB
Markdown
Raw Normal View History

2020-07-17 16:35:39 +02:00
# DroidFS
An alternative way to use encrypted virtual filesystems on Android that uses its own internal file explorer instead of mounting volumes.
It currently supports [gocryptfs](https://github.com/rfjakob/gocryptfs) and [CryFS](https://github.com/cryfs/cryfs).
For mortals: Encrypted storage compatible with already existing softwares.
2020-07-21 19:14:55 +02:00
<p align="center">
2021-04-05 18:56:07 +02:00
<img src="https://forge.chapril.org/hardcoresushi/DroidFS/raw/branch/master/fastlane/metadata/android/en-US/images/phoneScreenshots/1.png" height="500">
2023-05-12 20:20:22 +02:00
<img src="https://forge.chapril.org/hardcoresushi/DroidFS/raw/branch/master/fastlane/metadata/android/en-US/images/phoneScreenshots/4.png" height="500">
<img src="https://forge.chapril.org/hardcoresushi/DroidFS/raw/branch/master/fastlane/metadata/android/en-US/images/phoneScreenshots/6.png" height="500">
2020-07-21 19:14:55 +02:00
</p>
2020-07-17 16:35:39 +02:00
2023-08-15 18:06:39 +02:00
# Support
2023-10-15 17:01:36 +02:00
The creator of DroidFS works as a freelance developer and privacy consultant. I am currently looking for new clients! If you are interested, take a look at the [website](https://arkensys.dedyn.io). Alternatively, you can directly support DroidFS by making a [donation](https://forge.chapril.org/hardcoresushi/DroidFS/src/branch/master/DONATE.txt).
2023-08-15 18:06:39 +02:00
Thank you so much ❤️.
2022-01-20 13:01:56 +01:00
# Disclaimer
2020-07-17 16:35:39 +02:00
DroidFS is provided "as is", without any warranty of any kind.
2020-09-07 16:32:15 +02:00
It shouldn't be considered as an absolute safe way to store files.
2020-07-17 16:35:39 +02:00
DroidFS cannot protect you from screen recording apps, keyloggers, apk backdooring, compromised root accesses, memory dumps etc.
Do not use this app with volumes containing sensitive data unless you know exactly what you are doing.
# Features
- Compatible with original encrypted volume implementations
- Internal support for video, audio, images, text and PDF files
- Built-in camera to take on-the-fly encrypted photos and videos
- Unlocking volumes using fingerprint authentication
- Volume auto-locking when the app goes in background
_For upcoming features, see [TODO.md](https://forge.chapril.org/hardcoresushi/DroidFS/src/branch/master/TODO.md)._
2020-07-17 16:35:39 +02:00
# Unsafe features
Some available features are considered risky and are therefore disabled by default. It is strongly recommended that you read the following documentation if you wish to activate one of these options.
2020-07-17 16:35:39 +02:00
2020-08-27 12:00:45 +02:00
<ul>
<li><h4>Allow screenshots:</h4>
Disable the secure flag of DroidFS activities. This will allow you to take screenshots from the app, but will also allow other apps to record the screen while using DroidFS.
2020-08-27 12:00:45 +02:00
Note: apps with root access don't care about this flag: they can take screenshots or record the screen of any app without any permissions.
</li>
<li><h4>Allow exporting files:</h4>
2020-10-23 13:43:21 +02:00
Decrypt and write file to disk (external storage). Any app with storage permissions could access exported files.
2020-08-27 12:00:45 +02:00
</li>
<li><h4>Allow sharing files via the android share menu*:</h4>
2020-10-23 13:43:21 +02:00
Decrypt and share file with other apps. These apps could save and send the files thus shared.
</li>
2023-09-10 21:01:04 +02:00
<li><h4>Allow saving password hash using fingerprint:</h4>
Generate an AES-256 GCM key in the Android Keystore (protected by fingerprint authentication), then use it to encrypt the volume password hash and store it to the DroidFS internal storage. This require Android v6.0+. If your device is not encrypted, extracting the encryption key with physical access may be possible.
</li>
2020-10-23 13:43:21 +02:00
<li><h4>Keep volume open when the app goes in background:</h4>
Don't close the volume when you leave the app but keep running it in the background. Anyone going back to the activity could have access to the volume.
2020-08-27 12:00:45 +02:00
</li>
2023-09-10 21:01:04 +02:00
<li><h4>Allow opening files with other applications*:</h4>
Decrypt and open file using external apps. These apps could save and send the files thus opened.
</li>
<li><h4>Expose open volumes*:</h4>
2023-10-15 17:01:36 +02:00
Allow open volumes to be browsed in the system file explorer (<a href="https://developer.android.com/guide/topics/providers/document-provider">DocumentProvider</a> API). Encrypted files can then be selected from other applications, potentially with permanent access. This feature requires <i>"Keep volume open when the app goes in background"</i> to be enabled.
2023-09-10 21:01:04 +02:00
</li>
<li><h4>Grant write access:</h4>
Files opened with another applications can be modified by them. This applies to both previous unsafe features.
2020-08-27 12:00:45 +02:00
</li>
</ul>
2023-10-15 17:01:36 +02:00
2024-01-28 15:44:53 +01:00
\* These features can work in two ways: temporarily writing the plain file to disk (DroidFS internal storage) or sharing it via memory. By default, DroidFS will choose to keep the file only in memory as it's more secure, but will fallback to disk export if the file is too large to be held in memory. This behavior can be changed with the *"Export method"* parameter in the settings. Please note that some applications require the file to be stored on disk, and therefore do not work with memory-exported files.
2020-07-17 16:35:39 +02:00
# Download
2021-06-20 19:18:52 +02:00
<a href="https://f-droid.org/packages/sushi.hardcore.droidfs">
<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" height="75">
</a>
2022-06-18 21:13:16 +02:00
You can download DroidFS from [F-Droid](https://f-droid.org/packages/sushi.hardcore.droidfs) or from the "Releases" section in this repository.
2021-06-20 19:18:52 +02:00
2022-01-20 13:01:56 +01:00
APKs available here are signed with my PGP key available on keyservers:
2022-02-18 17:11:20 +01:00
`gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys AFE384344A45E13A` \
Fingerprint: `B64E FE86 CEE1 D054 F082 1711 AFE3 8434 4A45 E13A` \
Email: `Hardcore Sushi <hardcore.sushi@disroot.org>`
2021-06-14 22:14:47 +02:00
To verify APKs, save the PGP-signed message to a file and run `gpg --verify <the file>`. __Don't install any APK if the verification fails !__
If the signature is valid, you can compare the SHA256 checksums with:
```
sha256sum <APK file>
```
2021-06-20 19:18:52 +02:00
__Don't install the APK if the checksums don't match!__
F-Droid APKs should be signed with the F-Droid key. More details [here](https://f-droid.org/docs/Release_Channels_and_Signing_Keys).
# Permissions
DroidFS needs some permissions for certain features. However, you are free to deny them if you do not wish to use these features.
<ul>
<li><h4>Read & write access to shared storage:</h4>
Required to access volumes located on shared storage.
</li>
<li><h4>Biometric/Fingerprint hardware:</h4>
Required to encrypt/decrypt password hashes using a fingerprint protected key.
</li>
<li><h4>Camera:</h4>
Required to take encrypted photos or videos directly from the app.
</li>
<li><h4>Record audio:</h4>
Required if you want sound on video recorded with DroidFS.
</li>
</ul>
2020-07-17 16:35:39 +02:00
2021-06-07 20:29:31 +02:00
# Limitations
2023-09-10 21:01:04 +02:00
DroidFS works as a wrapper around modified versions of the original encrypted container implementations ([libgocryptfs](https://forge.chapril.org/hardcoresushi/libgocryptfs) and [libcryfs](https://forge.chapril.org/hardcoresushi/libcryfs)). These programs were designed to run on standard x86 Linux systems: they access the underlying file system with file paths and syscalls. However, on Android, you can't access files from other applications using file paths. Instead, one has to use the [ContentProvider](https://developer.android.com/guide/topics/providers/content-providers) API. Obviously, neither Gocryptfs nor CryFS support this API. As a result, DroidFS cannot open volumes provided by other applications (such as cloud storage clients). If you want to synchronize your volumes on a cloud, the cloud application must synchronize the encrypted directory from disk.
2021-06-07 20:29:31 +02:00
2022-06-18 21:13:16 +02:00
Due to Android's storage restrictions, encrypted volumes located on SD cards must be placed under `/Android/data/sushi.hardcore.droidfs/` if you want DroidFS to be able to modify them.
2020-07-17 16:35:39 +02:00
2022-06-18 21:13:16 +02:00
# Building from source
You can follow the instructions in [BUILD.md](BUILD.md) to build DroidFS from source.
2020-08-27 12:00:45 +02:00
# Third party code
Thanks to these open source projects that DroidFS uses:
### Modified code:
2022-06-18 21:13:16 +02:00
- Encrypted filesystems (to protect your data):
- [libgocryptfs](https://forge.chapril.org/hardcoresushi/libgocryptfs) (forked from [gocryptfs](https://github.com/rfjakob/gocryptfs))
- [libcryfs](https://forge.chapril.org/hardcoresushi/libcryfs) (forked from [CryFS](https://github.com/cryfs/cryfs))
2022-03-26 19:14:48 +01:00
- [libpdfviewer](https://forge.chapril.org/hardcoresushi/libpdfviewer) (forked from [PdfViewer](https://github.com/GrapheneOS/PdfViewer)) to open PDF files
2022-01-18 20:18:44 +01:00
- [DoubleTapPlayerView](https://github.com/vkay94/DoubleTapPlayerView) to add double-click controls to the video player
2022-01-13 19:23:37 +01:00
### Borrowed code:
2022-06-18 21:13:16 +02:00
- [MaterialFiles](https://github.com/zhanghai/MaterialFiles) for Kotlin natural sorting implementation
2020-08-27 12:00:45 +02:00
### Libraries:
- [Glide](https://github.com/bumptech/glide) to display pictures
2020-08-27 12:00:45 +02:00
- [ExoPlayer](https://github.com/google/ExoPlayer) to play media files