hardcore-sushi / DroidFS

Encrypted overlay filesystems implementation for Android. Also available on gitea: https://forge.chapril.org/hardcoresushi/DroidFS
GNU Affero General Public License v3.0
609 stars 41 forks source link

Import existing volume #295

Open Brulijam opened 1 month ago

Brulijam commented 1 month ago

Hi. Is it possible to import an existing volume into DroidFS?

hardcore-sushi commented 1 month ago

Do you mean by clicking on the "+" button, selecting the path to the volume, and then clicking "Add volume"?

Brulijam commented 1 month ago

When clicking the + button and selecting the path to an existing volume, I only have a "CREATE VOLUME" button. I am using DroidFS version 2.1.3, installed via fdroid and want to use it with a gocrypt volume that was created with plasma-vault in KDE.

hardcore-sushi commented 1 month ago

OK, what's the path displayed by DroidFS? Is it the same as what you get from your file explorer? If it is, what's the content of the directory?

Brulijam commented 1 month ago

Yes they are the same. Path in DroidFS is /storage/emulated/0/vaults/Stuff.enc which contains the files gocryptfs.conf, gocryptfs.diriv and srH2S...ANnzA.

hardcore-sushi commented 1 month ago

Alright. This may be a permission problem. Is DroidFS able to properly create a volume under /storage/emulated/0/vaults/?

If not, ensure it is granted the MANAGE_EXTERNAL_STORAGE permission under Android Settings > Apps > Special app access > All files access > DroidFS. However, the app should automatically request it when you click on the folder icon to select the path, doesn't it work for you?

Also, check that the directory permissions are set to:

drwxrwx---  root everybody  /storage/emulated/0/vaults/Stuff.enc
-rw-rw----  root everybody  /storage/emulated/0/vaults/Stuff.enc/gocryptfs.conf
-rw-rw----  root everybody  /storage/emulated/0/vaults/Stuff.enc/gocryptfs.diriv