DroidFS icon indicating copy to clipboard operation
DroidFS copied to clipboard

Exporting and Importing Volumes as Encrypted 7z

Open person12675 opened this issue 5 months ago • 5 comments

Hello!

I think adding the ability to export volumes as encrypted 7z archives would be useful for securely transferring and backing up files. Some points to consider are that the file names should also be encrypted and that it should be possible to compress just a single folder inside the volume into a 7z.

Additionally, if possible, it should be possible to import 7z archives as volumes—that is, add a feature to convert a 7z file back into a volume.

Finally, if it doesn’t complicate things too much, the compression and decompression operations should process data in chunks in RAM, since volumes may be larger than available memory.

person12675 avatar Jul 23 '25 01:07 person12675

I don't understand why this feature would need to be integrated into DroidFS. Why not simply enable the "Allow sharing" unsafe option, select the files you want to back up, and share them with a separate application such as ZipXtract to create an encrypted archive? If you need to back up entire directories, you can also enable the "Expose open volumes" unsafe feature to allow selection of a subfolder of the volume from an external archiving app.

If you don't need compression, you can simply create a new volume on the shared storage, press the "+" button, click "Import from another volume", and select the files/directories you want to back up. You will then get an encrypted volume containing only the items you want, ready to be backed up.

hardcore-sushi avatar Jul 24 '25 18:07 hardcore-sushi

If you need to back up entire directories, you can also enable the "Expose open volumes" unsafe feature to allow selection of a subfolder of the volume from an external archiving app.

Because the feature is unsafe. If I do that, applications could access the encrypted volume—am I mistaken?

person12675 avatar Jul 24 '25 19:07 person12675

Unless your ROM has modified the stock Android behavior, apps must first obtain your permission, which is granted when you select a directory with the system explorer when prompted.

hardcore-sushi avatar Jul 24 '25 19:07 hardcore-sushi

If there’s a security vulnerability in the ROM, using the “Expose open volumes” feature could be problematic. Therefore, I think a 7z import/export feature should be added. I don’t believe this would overcomplicate the app.

person12675 avatar Jul 24 '25 19:07 person12675

For reasons of code base complexity, bloat, maintenance requirements, and supply chain risk, I don't think I'll be adding a 7z implementation to the app anytime soon.

I don’t believe this would overcomplicate the app.

If you think so, feel free to fork the app and implement this feature.

hardcore-sushi avatar Jul 25 '25 16:07 hardcore-sushi