yashsingh1/xdaforums huggingface dataset:
[Android Software Development] madmack:
Nothing yet. The G4 is using the sdcardfs filesystem and without actually accessing one of these devices remotely or locally myself to to see how exactly are they using it (so I can revert it), I am afraid no progress can be made. Unfortunately I don't have the device and I don't see myself having the time to remotely debug it on someone else's at the moment :(

Did you see the how-to tutorial? Files are duplicated in both locations (source and destination) when FolderMount is working.
[Android Software Development] DrAgNbOi:
Thanks for the reply. When ever you have the time and need someone to test for you pm me please I'll be happy to help out. Cheers
[Android Software Development] Zheen:
My Galaxy S4 is running the Resurrection Remix ROM based on Android 5.1.1. I noticed that every once in a while I see a notification saying "Removing content from gallery" which then disappears immediately (It's a ticker notification that only appears in the status bar but not in the notification shade). It's logo looks like FolderMount's logo but it's all white. Is it a FolderMount notification? I have checked the option to exclude the files from gallery in a folder pair I use. Could it be because of that?
[Android Software Development] :No-Frost::
Couldn't find the Tutorial (looking for it).

Would it be OK if I just delete the Whatsapp folder in the internal SD so I don't have a duplicate in the gallery for example?

Thanks and sorry if I'm asking noob questions, I've already tried searching around the forum and in Google.

Kind regards.
[Android Software Development] Rintenfinten:
Has anybody an idea why Foldermount does not work properly with Arter Kernel on CM 12.1 (note 3)?
[Android Software Development] madmack:
Yes, and yes. It's because you checked that option.

Don't delete it. You'll delete the original as well. Read the OP under mini how to section. The last point is the most relevant
[Android Software Development] c0derman:
not answer !!

anyway i found another way to change blocks

http://cn.club.vmall.com/forum.php?mod=viewthread&tid=2941822&highlight=通用分区
[Android Software Development] Rintenfinten:
It doesn't seem to be a problem of Foldermount, because with other Kernels the app works without problem. I am on latest temasek's cm12.1. If I leave everything as is, foldermount works. If I flash latest Arter kernel (the correct one for AOSP 5.1) then foldermount tries to repair something on my sd framework and then simply does not sync folders. If I flash back cm stock kernel everything works fine again.
[Android Software Development] :No-Frost::
[MENTION=1436971]madmack[/MENTION] I've read quite a bit now so I think I've already got the right idea.

Fouldermount moves the whatsapp folder to the external SD right? so the one in the internal memory will still use the same space or it will be simlinked??? (not sure if that's the right word)

Annyway, I couldn't hide the clone folder from gallery :(
[Android Software Development] egingell:
It's more like a junction (in Windows) and, no, as stated in the FAQ, the files do not take up the same space in the old location.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Software Development] :No-Frost::
Thanks mate... Now all I need to find out is how to avoid duplicate files or folders in the gallery (IE: I can see 2 Whatsapp Pictures and videos in the gallery). Even with the option in foldermount selected.
[Android Software Development] egingell:
You can use sqlite3 to edit them out of the database in /data/data/com.android.providers.media/databases/external.db; however, I'm pretty sure that's what Folder Mount does... or tries to do.

Sorry, I cannot provide any guidance in how to go about doing that.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Software Development] 2Beastmode4u:
Would this work with Android 5.1.1 or does it stop at 5.1?

Cheers.
[Android Software Development] PVL_93_RU:
Works wonders on 5.1.1 as well
[Android Software Development] madmack:
it's actually tested on 6.0 as well :)
[Android Software Development] treezy26:
I am trying to use this on the Nexus Player but I am having issues. It keeps giving me a "write error". Something about not being able to write to such and such do you want to try and write and it will reboot...crap I can't remember the exact words. Oh and it also says oops something went wrong please contact developer. Any ideas what this means?
[Android Software Development] BaschtlWaschtl:
Hi guys. I have LG g2 with cloudy g2 3.3 android 5.0.2 and I want to link a folder from my internal storage to system/music to use the unused storage. As I tried to copy the mp3's to the linked folder it doesn't work due to permission. When I copy the songs directly in the system/music folder, the mp3's are not recognized from the media scanner.

What did I wrong? I tried to change permission on system/music but nothing worked. On kitkat I had the same situation and I could copy my files into the linked sdcard folder and they were visible in my music player..
[Android Software Development] jwds1978:
Using Tasker, is there a way via Send Intent or otherwise, to trigger the FolderMount gallery removal on-demand?
[Android Software Development] cambr1an:
.nomedia trick no longer works with the latest version. All media files are unseen by Gallery, Apollo, and MX Player. Must be something about the timing of mounting and media scanning as suggested by gelhack. So I reverted to V1.2 which handled it well. Hoping you would retain the media scanning handling option for later versions.
[Android Software Development] gelhack:
Download Rescan SD from the play store and run a manual scan after running folder mount. Just be patient though, it could take a while. My 32gb USB stick takes 15 minutes for the scan to complete.
[Android Software Development] Kamairo:
Great app, works like a charm on my Note 10.1 with CM10.1 (JB 4.2.2).

Thanks!
[Android Software Development] jay8302:
I think the issues I'm having is that on miui rom the target path is /sdcard/android and this application is using /storage/sdcard0/

also still having issues trying to get the paid version
[Android Software Development] cambr1an:
Hi. Thanks for the tip on ".nomedia". This seemed to work at first however, after playing with my camera I found that all new files generated by the Camera app would appear in duplicate in Gallery even after a reboot. Photos that were already on the SD card before the .nomedia file was created are not affected. Only files created after .nomedia are in duplicate. I'm still figuring a workaround on this. Tips are appreciated. Thanks!
[Android Software Development] madmack:
teaser attached

i'll upload what i have sometime tomorrow. good night guys
[Android Software Development] gelhack:
Is it possible that your camera app is somehow writing both locations into the media scanner's database? Try running rescan sd again and see if that gets rid of the duplicates.
[Android Software Development] madmack:
v1.4 is out with a big list of changes. If everything goes well, it'll be a play store release.

RISK NOTE

For those experimenting with the new "remove from media scanner entries" feature. Please note that this is actually pretty risky at the moment. Please test it on folders that you have backups of. I don't want to be responsible for making you lose your precious photos.

Feedback, as always, is very welcome ! Enjoy guys
[Android Software Development] Joecascio2000:
I get a force close when clicking the Destination folder selector when creating a new pair. See if you can replicate it. If you can't I can logcat it for you. (This is on 1.4)
[Android Software Development] madmack:
I'll need the logcat. I'm not able to replicate it locally. Thanks !
[Android Software Development] Joecascio2000:
Here you go.

http://db.tt/fBIqwn3V

I did it a couple of times. It's in there somewhere. I hope. Lol
[Android Software Development] madmack:
It is in here ! thank you.
[Android Software Development] madmack:
What folder did the destination explorer default to previously? Was it the root folder / ?
[Android Software Development] cambr1an:
On CM 10.1 media files don't appear in Gallery upon boot. Running Rescan SD would initially show media files in duplicate and then seconds later FolderMount would show a toast that says "Removing files from Gallery" and only then would they appear correctly (without duplicates) in Gallery.
[Android Software Development] Joecascio2000:
Actually yeah it did. My external sd card is located in /storage/external_SD. I always had to navigate manually.
[Android Software Development] madmack:
Awesome ! It's exactly my experience with it as well. No need for .nomedia hassle anymore hopefully.

I guess once I figure out that LG FC for destination, this will go to the play store.
[Android Software Development] madmack:
ok cool. I believe I got it.

Someone didn't configure your rom correctly. There is an environment variable (try "echo $SECONDARY_STORAGE) in your terminal but apparently someone forgot to set that on your rom. In any case, I've figured the problem.

I'll be releasing 1.4.1 to the play store (and here) in a few minutes.
[Android Software Development] cambr1an:
Do you think you can incorporate the rescan from within FolderMount without the need of an external app such as Rescan SD?
[Android Software Development] Joecascio2000:
That doesn't surprise me. 4.1.2 isn't officially available for my device so the devs took another source that doesn't have SD card support and made it work some how. The terminal command didn't return anything. I doubt they will fix the ROM but ill let them know anyway.
[Android Software Development] madmack:
I've taken off all traces of media rescan enforcement because I don't think FolderMount should bother with that. There are multiple things that need to be done to initiate media scanning on 4.2 ROMs. One example is the fact that users have to have USB Debugging enabled . I think this better be left for apps that are specialized in this area (rescan media root is a good one). Why, is there anything wrong with the way FolderMount handles duplicate entries in Gallery?

Tell them to look into the ramfs of the kernel :) It's a one liner really.
[Android Software Development] madmack:
Try sending an Intent with action name

com.devasque.fmount.mediadisabler
[Android Software Development] jwds1978:
Having tried the below task, it doesn't appear to work.

FolderMount (Gallery Removal) (91)
A1: Send Intent [ Action:com.devasque.fmount.mediadisabler Cat:None Mime Type: Data: Extra: Extra: Extra: Package:com.devasque.fmount Class: Target:Broadcast Receiver ]
[Android Software Development] JackOfOwls:
Hi. First of all, great app. It's the only one of its kind I've tried that actually works for me. I've been using FolderMount with Stickmount under KitKat 4.4.4 on as Nexus 7 2013 to transfer massive storage-space hogging game obb & data files to my OTG SanDisk 64GB flash drive and it works well. I have one issue however. Whenever I physically unplug the flash drive and then plug it back in, games that are mounted with FolderMount just display a black screen. I then have to re-enable the obb/data files in FolderMount to get it to run again. Is there any way to get it to properly auto-mount obb & data files from a flash stick upon unplugging and then plugging back in without having to re-enable them in Folder Mount? Thanks for any help.
[Android Software Development] zdoe:
does it symlink sdcard ROOTs?

now that i got a new phone with this silly "fake" sdcard inside, i'd like to take that out completely (maybe repartition the phone's storage later to use its space for something else) - so that i would only have one /data/sdcard -path.

e.g. can i symlink the ROOT of the internal card with (the premium version of) this app to the root of the external one?

anyone?
[Android Software Development] javier.pc:
I tried in 6.0, but I can't find my SD folders ... :(
[Android Software Development] BrikHaus:
Is it possible to add a "Force content check" option (I think that's what the toast message se says). Sometimes my gallery didn't display properly despite the links being pinned correctly. I have to wait for a random "checking content" for it to correct itself. A Force check button would save me time waiting for it to fix itself..

Thanks!
[Android Software Development] ahac85:
Doesn't appear to be working with htc One M8 GPE 6.0. Anyone elae got it working?

Sent from my HTC One_M8
[Android Software Development] RickDangerous:
It doesn't seem to be working on my lg g flex 2 running 5.1.1 also

I don't know if it's a known issue or it's just me

Any info appreciated :)
[Android Software Development] Herbie_2005:
Tested on Htc One M8 with Android 6.0 (Marshmallow)

Hi!

First of all: Thanks for your excellent work, madmack.

Although I know Foldermount is said to support only Android versions up to version 5.1, I testet it on Android 6.0 with my Htc One M8 device. I'm afraid, it did neither work with GPE 6.0 nor with CM13.1.

But as I don't want to fully integrate my external sd card, as Marshmallow suggests to do, I would appreciate it, if Foldermount worked on an Android 6.0 system. I would like to use my external sd card as a seperate volume now and in future, because there are always useful files like nandroid backups, flashable zip files etc. And I don't want to lose them, if -- one day -- my Android system won't boot and so my fully integrated (and therefore crypted) sd card cannot be read anymore.

Greetings from Herbie_2005
[Android Software Development] prashobhb:
Android 6.0 support please.
[Android Software Development] ahac85:
I'm sure the dev will update the app when he gets a chance, so plz guys let's all stop posting the same question again & again. Dont upgrade to Android 6.0 if you want to continue using foldermount, im still on lollipop for this reason.

Sent from my HTC One_M8
[Android Software Development] crz6662:
Since it's a "paid" app, I'm reasonable to expect a timely update, am I not ?
[Android Software Development] Ja_som:
Yes, you can expect, but developer can stop support it at any time, you did not pay for your lifetime support, you paid for features.
[Android Software Development] egingell:
I can expect the sky to turn green tomorrow - doesn't mean it's going to happen. As was mentioned, you pay for features - not timely updates.

Sent from: SGS2 - JB 4.1.2 GB27 / SGS4 - JB 4.2.2 MF9
[Android Software Development] madmack:
The error could be due to SELinux policies. You guys tried turning that off ? I ran FM on Android M (Nexus 6) and it did what I expected it to do without any errors.

You can turn SELinux off by

adb shell
setenforce 0
[Android Software Development] der_Kief:
doesnt work for me ....

Tried with inbuild su and supersu ... no go :(
[Android Software Development] madmack:
So those using FM on Android M, have SuperSU, and turned off SELinux, what is the exact behavior of FM? What isn't working exactly? Do you get green pins for example?
[Android Software Development] bongster:
Hi madmack,

attached a log from a restart of my Phone and opening FM after that. The green pin stays grey and FM opens with an write error.

I'm using cm13. Perhaps there is also a problme on cm side....

Regards
[Android Software Development] Herbie_2005:
Using Cm13.0, Foldermount 2.8.2 first says it has to do a fix. And it tries to do so. But this fails.

So Foldermount cannot be used at all.

By the way, Super-Su (Chainfire) seems not to be compatible to Cm13.0.
[Android Software Development] madmack:
Thanks for this. Here is your problem:

11-30 07:53:38.167 I/busybox ( 3019): type=1400 audit(0.0:92): avc: denied { open } for name="platform.xml" dev="mmcblk0p29" ino=260321 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:app_data_file:s0 tclass=file permissive=1
11-30 07:53:38.167 W/busybox ( 3019): type=1300 audit(0.0:92): arch=40000028 syscall=322 per=800008 success=yes exit=3 a0=ffffff9c a1=bed3db0e a2=20000 a3=0 items=1 ppid=2775 auid=4294967295 uid=10071 gid=10071 euid=10071 suid=10071 fsuid=10071 egid=10071 sgid=10071 fsgid=10071 tty=(none) ses=4294967295 exe="/data/data/com.devasque.fmount/files/busybox" subj=u:r:untrusted_app:s0:c512,c768 key=(null)
11-30 07:53:38.167 W/auditd ( 218): type=1307 audit(0.0:92): cwd="/"
11-30 07:53:38.167 W/auditd ( 218): type=1302 audit(0.0:92): item=0 name="/data/user/0/com.devasque.fmount/files/platform.xml" inode=260321 dev=b3:1d mode=0100777 ouid=0 ogid=0 rdev=00:00 obj=u:object_r:app_data_file:s0

SELinux policies are blocking FM from modifying platform.xml to let user space apps write/read to the external sdcard without root permission, and this explains the failed patching operation.

I am going to bet that SELinux is also the culprit for not allowing binding to happen at runtime. It also seems that you are not using SuperSU. You should try that, and try setting SELinux to permissive.
[Android Software Development] Herbie_2005:
Hi, madmack!

Thanks for your recent posts. In fact, SELinux policies block non-root access to external sd card etc. We may test setting Linux from "enforced" to "permissive". Good idea.

As I already wrote, Chainfire's Super-Su seems not to be compatible with CM13.0 (whereas it was compatible to previous CM versions without any problem).

As far as I know, we can just use the so-called privacy guard (superuser app) that comes directly with CM13.0. – Or does anybody know a way to integrate Super-Su into CM13.0?

Greetings from Herbie_2005
[Android Software Development] zdoe:
dear [MENTION=1436971]madmack[/MENTION] -

i want to be able to symlink sdcard0 to sdcard1 - what's there to prevent us from doing that? FM refuses, but conceptually it should work, right?

see - http://xdaforums.com/g2-mini/development/rom-cyanogenmod-12-1-stable-t3175833/page75 - that's what i'm after here.
[Android Software Development] Herbie_2005:
Additionally ...

I know about the trick of editing the file /system/etc/permissions/platform.xml in Android 4 or Android 5.

But I'm not sure if it is enough to edit the file /system/etc/permissions/platform.xml in Android 6, in order to get full write access to external sd card.

Does anybody know this?

Greetings from Herbie_2005
[Android Software Development] bongster:
Hi again and thanks for your answer. I've double checked, if I missed somthing, but I'm quite sure that I used permissive and SuperSU. I've tested it a few minutes again and the result is the same.

But I guess I will wait for an official CM13 for my device, because there are still some issues in general with writing on SD Card atm.

Thanks and regards!
[Android Software Development] Aquarius169:
Guys im using foldermount and tbackup and trying to restore my saved apps it says app restored 345 those are my apps but when i click on restore apps it says 0. Can you help me with this it was working fine before
[Android Software Development] djranoia:
Works

Just tried flipped to permissive now totally works on my nexus 9 thank you!!
[Android Software Development] Herbie_2005:
I installed several Marshmallow roms including Cm13.0 and GPE on my Htc One M8. I managed to set Linux kernel to permissive.

However, Foldermount could not apply the fix, so I cannot use the app. I also edited the platform.xml file myself, but still no success.

Don't know what to do.

EDIT:

I also tried transforming Foldermount into a system app. But it did not help either.
[Android Software Development] ahac85:
Same here, I've given up back to 5.1.1 until dev fixes things. Im able to get folders mounted on MM but not able to download anything to sdcard, only read things of sdcard that are already there.

Sent from my HTC One_M8
[Android Software Development] madmack:
The issue is the fuse module on your device. FM has an integrated hex editor that can hack that vold module and apply the correct permissions. If that fails, you won't be able to read/write the mounted content. See why FM is failing to patch that module. Can you write to /system ? Does it have enough space?
[Android Software Development] thewild:
Thanks for your answer !

/system has a lot of free space since I cleaned it (~more than 400MB).

It is writable if I mount it "rw" in ES File Explorer for instance, so I guess the answer is yes.

That's strange, because other people with the same device (at least an Xperia SP, maybe not the exact same model) don't seem to have any issue with FM.
[Android Software Development] madmack:
I do patch them explicitly. Their patching process probably didn't fail.
[Android Software Development] thewild:
OK I understand.

So what would be the next step for me in order to get it working ?
[Android Software Development] der_Kief:
... any news about MM compatibility ? Tried everything suggested but i cannot get this to work.

Hopefully this will be fixed soon ....
[Android Software Development] dimm0k:
I know this is an older post, but I was wondering if there was any way around this double scanning? Looks like my scan times more than doubled as a result of binding the DCIM folder instead of using XInternalSD to point the DCIM folders...
[Android Software Development] ahac85:
I usually put a .nomedia file in the root of the internal sdcard so then scanning only occurs in the external sdcard only

Sent from my HTC One_M8
[Android Software Development] dimm0k:
omg, genius! never thought to do this...

EDIT: actually doing this looks to cut out the entries from DCIM from appearing at all in my Gallery app! any suggestions now?
[Android Software Development] ahac85:
Clear data from gallery and restart phone, works fine for me and make sure the file is in the internal sdcard

Sent from my HTC One_M8
[Android Software Development] Bautinho88:
This didn't solve my problem. Still dupes in gallery with Quickpic and Sonys stock album app. A little bit annoying.

5.1.1 Stock Xperia Z Ultra firmware.
[Android Software Development] madmack:
Send me the /system/bin/vold (you can attach it here or email it). And send a bug report once more.

I can't promise that I'll look at it anytime soon given the little time I have to work on FM but I'll add it to my future todo list.
[Android Software Development] thewild:
If it's just for me then no need to worry, there are other ways to circumvent this sd card problem.

I did not think that the bug I had was so specific, no need to debug anything it your fix would just apply to my phone. Thanks a lot anyway.

FYI, at the moment I'm using the Xposed module XinternalSD, which works quite fine as long as you stick to obb folders. Definitively not as universal as a mounting solution, but still a nice workaround.
[Android Software Development] der_Kief:
i just quote myself because there is no answer from dev :(
[Android Software Development] madmack:
Sorry, didn't mean to ignore anyone. I thought I did reply about MM compatibility.

I have a nexus 6 running stock with SuperSU and FM works fine. The issue is most likely related to the ROM you're using, root method, or SELinux policies. If you have stock MM with SuperSU and SELinux switched off, then I'll take a bug report.
[Android Software Development] Herbie_2005:
Foldermount gets root privileges. Then it says: Cannot write on external sd card ...

Shall I try to fix it and restart phone? - Yes

...

Something must have gone wrong. Please contact the developer.

(or similar)

I use Super-Su 2.52 (Chainfire) and "setenforce 0" --> SE permissive

on Htc One M8 (S-Off).
[Android Software Development] der_Kief:
I tried it on different ROMs based on AOSP and CM, builtin root and SuperSu and Selinux = permissive but NO GO.

I get in contact with some of the ROM devs and they cant confirm your statement that this problem is ROM related !

I seems that this is getting a mutual finger pointing .......

BTW:

didnt know that Nexus 6 has a sdcard slot ;)