neurodroid / cryptonite

EncFS and TrueCrypt on Android
GNU General Public License v2.0
203 stars 49 forks source link

android 6 mounting visibility issue #102

Open vivekiny2k opened 8 years ago

vivekiny2k commented 8 years ago

I upgraded to android 6 and I was able to mount the volume. I use command line to mount multiple volumes in my own app and that works as well. However.

  1. the mounted files are visible under a. cyanogenmod file manager b. android gallery c. Google photos
  2. But they are not visible under a. ES file explorer (the directory appears empty) b. other viewers (quick pic, fast image viewer) even if opened from CM file manager.
  3. And after opening a few files, the mount disappears from CM file manager as well.

I can elaborate further if nobody has seen this happen.

Device: LG G4 ROM - cm-13.0-20160317-NIGHTLY-h811 Root: CM native root. In recent past chainfire SU has never worked for mounting. only CM SU works.

command line used in my app

"echo '" + password2 + "' | /data/data/csh.cryptonite/encfs --public --stdinpass -o nonempty " + externaldrive + "crypt/crypt " + externaldrive + "/Android/data/csh.cryptonite/crypt \n";

sebastien-lamps commented 8 years ago

I confirm: I have the same problem, with a different phone, except I can see files only with cyanogenmod file manager.

Device: LG G3 ROM - cm-13.0-20160409-NIGHTLY-d855 Root: CM native root.

I used the UI. I don't know the command line

0nse commented 8 years ago

I can confirm similar behaviour as well. If I mount it (either via the app or using the encfs binary directly—even with the public flag), the mounted directory appears empty for third party apps.

Exploring the directory using a terminal shows contents only when logged in as root. Even cryptonite's internal file browser won't show any files. The built-in Android file manager (found in settings->storage->explore) however is able to show the contents of the mounted directory.

Device: Nexus 5 ROM: cm-13.0-20160525-UNOFFICIAL-hammerheadcaf Root: CM native root

greensmith commented 8 years ago

Just writing to say I am also experiencing the exact same issue - content of mountws folder is not visible to 3rd party apps.

Samsung i9100 CM13.0-20160524-nightly-i9100

viche12345 commented 8 years ago

Have you guys tried the mount-master option in SuperSU (1.93 and up)? I used this with the truecrypt binary in /data/data/csh.cryptonite with success, though each process needs to be running first.

su --mount-master -c <command>

More info: https://su.chainfire.eu/#how-mount http://forum.xda-developers.com/android/help/fix-empty-app-mounted-directories-t2995645

vivekiny2k commented 8 years ago

Tried mount master and didn't work. What did you mean by each process needs to be running first?

viche12345 commented 8 years ago

I usually need to open the necessary apps first, like my file manager or text editors first. Then I press home and run the command in terminal emulator. When I return to my apps, I do a refresh and I will see the files.