Giter Club home page Giter Club logo

Comments (9)

hardcore-sushi avatar hardcore-sushi commented on June 15, 2024

AFAIK, a normal app can only write to SD card through the Android ContentProvider API, which is not compatible with DroidFS. Android 11 introduced the MANAGE_EXTERNAL_STORAGE permission which seems to solve the problem. However it's not available for versions below Android 11.

from droidfs.

Thewisem avatar Thewisem commented on June 15, 2024

Couldn't you use the storage access framework to act as a location to external storage to keep your encrypted volume.

from droidfs.

hardcore-sushi avatar hardcore-sushi commented on June 15, 2024

No, unless you find a way to use SAF with paths, without API calls.

from droidfs.

Thewisem avatar Thewisem commented on June 15, 2024

I was wondering you could do it like keepass DX. They used SAF and allowed users to create databases on SD card. Also read and write was possible. Maybe ask the devs there.

from droidfs.

Thewisem avatar Thewisem commented on June 15, 2024

I mean this is not like partitioning your drive as it is creating encrypted files for the new volume you created. So I thought since both use the same methodology, then it was possible.

from droidfs.

hardcore-sushi avatar hardcore-sushi commented on June 15, 2024

KeepassDX and other apps use SAF from the JVM, via API calls. DroidFS needs to access file system from native code but native code can only use SAF through file descriptors. Gocryptfs uses paths. It's not compatible.

See #6 for more details.

from droidfs.

retardTonic avatar retardTonic commented on June 15, 2024

Any app with WRITE_EXTERNAL_STORAGE permission can write to /{path to SD card}/Android/data/{app package name}/. Not sure about OTG, though.

Workaround (tested on Android 10):

  • Create directory /storage/1234-5678/Android/data/sushi.hardcore.droidfs/files, replace numbers with UUID.
  • Specify this directory or any subdirectory as volume path.
  • File picker button inside volume creation and password change activities would not work, so you'll have to type in path manually or through clipboard.

An additional check in function isTreeUriOnPrimaryStorage should be implemented, I guess?

from droidfs.

hardcore-sushi avatar hardcore-sushi commented on June 15, 2024

You're right, but DroidFS can't access arbitrary files on SD card like /{path to SD card}/MyEncryptedVolume. This is why I disabled SD card usage. Maybe I could still allow Android/data/sushi.hardcore.droidfs/files.

from droidfs.

hardcore-sushi avatar hardcore-sushi commented on June 15, 2024

e96d472: I allowed to create volumes under Android/data/sushi.hardcore.droidfs on SD cards. The feature will be available in the next release.

from droidfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.