yashsingh1/xdaforums huggingface dataset:
[Android Software Development] ktl20:
Hi i have problem on stock 4.4.2 Blackview Arrow busybox 1.24.1 root supersu 2.62 FM in app analyzer show all apps 0B nad in file manager dont see folders like it Has to. Any Good Solutions to make FM works on this device? My interal storage is /storage/sdcard1 and external storage/sdcard0 I have sdfix ...mayby someone manage to use properly link2sd on it? If then how?

PS This is my fstab.nand file

Android fstab file.

#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>

# The filesystem that contains the filesystem checker binary (typically /system) cannot

# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK

/emmc@usrdata /data ext4 noatime,nosuid,nodev,noauto_da_alloc wait,check,encryptable=footer

/emmc@protect_f /protect_f ext4 noatime,nosuid,nodev,noauto_da_alloc wait,check

/emmc@protect_s /protect_s ext4 noatime,nosuid,nodev,noauto_da_alloc wait,check

/devices/platform/mtk-msdc.0/mmc_host auto vfat defaults voldmanaged=sdcard0:emmc@fat,noemulatedsd

/devices/platform/mtk-msdc.1/mmc_host auto vfat defaults voldmanaged=sdcard1:auto

/devices/platform/mt_usb auto vfat defaults voldmanaged=usbotg:auto
[Android Software Development] madmack:
Is this an official MM ROM ?

Don't need one. I use an OTG USB dongle.

Thing is, can't fix what isn't broken for me personally.
[Android Software Development] der_Kief:
that doesnt help me .... so may i have my money back ;)
[Android Software Development] Herbie_2005:
I used different roms, e. g. Cm13 and GPE on my Htc One M8.

Foldermount cannot write on the external sd card though it has got root privileges.

What may the reason for this?
[Android Software Development] madmack:
Sure. Email me your transaction ID.

I'm not supporting custom ROMs at the moment (due to lack of time). If you loaded FM on a stock MM for the HTC One M8 and FM still has trouble, let me know and I'll have a closer look.
[Android Software Development] der_Kief:
[MENTION=1436971]madmack[/MENTION]

maybe an OTG USB dongle is handled different than a real internal sdcard slot ?
[Android Software Development] madmack:
Same SELinux policies and mount procedure applies. Only difference is Android's default read-only permission on external sdcards which FM tries to patch by modifying the platform xml file in /system.
[Android Software Development] Vule991:
Folder Mount 2.8.2 can't write data to SD (CM 13 -Marshmallow 6.0.1). I manually edited platform.xml to add WRITE_EXTERNAL_STORAGE permission because apk do not do this (show error: "Something must have gone wrong. Please contact the developer").

And when all set up and try send application data to SD, FM gives UNKNOWN error on notification bar and transfer stops at 0%.

Have:

1)SuperSU 2.62,

2)New nightly CM 13, and

3)SELinux turned OFF.
[Android Software Development] leon22heart:
Confirmed working with

1. Xperia sp + slimrom 4.4.4

2.HTC m8 Gpe 5.1 + elemental x kernel

3.Galaxy S4 stock both 4.4.4 and 5.1

Not working

HTC m8 Gpe 6.0
[Android Software Development] madmack:
Can you please see if an app that is not rooted (Astro file manager for example) can write files to the external sdcard?
[Android Software Development] Herbie_2005:
Well, on Marshmallow this is only possible, if the app asks for permission to write on an external sd card and the user grants the permission. The app has got to support this new kind of permission. If the app does not ask to get the permission, it will not be able to write on an external sd card (without root privileges).

I don't know what your intention is, madmack. Do you want Foldermount to ask for the writing permission? (It doesn't do so on my phone.) Or do you simply try to use root privileges, in order to be able to write on the external sd card?
[Android Software Development] Vule991:
This is notification message when i move file to external storage in Astro file manager.

"An error has occured" - at 0% progress bar (the same as FM)

And description: "Astro requires permission to write to SD cards and USB drives."

I hope this is helpful. :cowboy:
[Android Software Development] thangphysk48:
On KK, you have to install xpossed and sdcard write mod. After that, try to use FM again.

It worked on my N7100 with custom rom.
[Android Software Development] rkrohan:
[MENTION=1436971]madmack[/MENTION] does this support marshmallow(cm13)?
[Android Software Development] SpasilliumNexus:
Really? Do you not see the few posts before yours about it?
[Android Software Development] thewild:
OK, here it is. If you have time to look into it, thank you very much. No problem otherwise, I understand that you have other things to do than to solve a single person's problem.

Just sent you a new bug report as well.
[Android Software Development] naifaharsy:
Try soon.. thx
[Android Software Development] ahac85:
Hi I'm on stock MM for the HTC One m8, this doesn't work, unable to download stuff to sdcard

Sent from my HTC One_M8
[Android Software Development] madmack:
That's the issue right there. FM isn't the only affected app.
[Android Software Development] madmack:
What's the error exactly? It can be anything from move operation stuck at 0%, no green pin, green pin but files are not replicated.

Follow the "test steps" in the FAQ and let me know the results.
[Android Software Development] ahac85:
pins are green on old mount links, if I create a new one it's stuck on 0%, just says unknown error. Also the pins that are green show as mounted but when I open the folder it's not actually mounted. The destination in folder setup is fine.

Bug report

http://pastebin.com/6EGWdTn8

Sent from my HTC One_M8
[Android Software Development] SpasilliumNexus:
Change that to a pastebin link please. Some of us are on mobile, also keeping an eye out with this app, and don't want to scroll 100+ times because of that huge post.
[Android Software Development] Kanuki:
I'm also having exact problem with AOSP 6.0.

Can you teach me how to fix this with AOSP 6.0?
[Android Software Development] Dacoco:
Same here with MM One M8
[Android Software Development] snake2332:
Has anyone here redirected everything from /sdcard/ to their /extsdcard or /sdcard1/ partition? Mainly talking about /sdcard/Android/...

On my Note 10.1 (2014) 16GB version that I just inherited from my wife, I first of all redirected the /data/media/obb/ folder and had 8.75GB free of 11.79GB. I noticed that it said I had ~3GB in /sdcard/Android, so I figured "why not" and redirected it. I definitely lost 3GB of space on my microSD card when I did this, but didn't gain any empty space on internal memory - it still says 8.78GB free. I find it odd that the OBB files in /sdcard/Android/obb/ are the same as the OBB files in /data/media/obb, but somehow the /sdcard/Android/obb/ ones don't take up space on internal memory, but when redirected to the actual microSD card they do take up space. Kind of like Android dedupes them when on internal memory, or kind of like /sdcard/Android/obb is a pointer to /data/media/obb.

Can anyone clear this up? The other 2 folders in /sdcard/Android/ (data and media) appear to be unique and I'll probably set up FolderMounts for them and leave the OBB one un-FolderMount'ed.

EDIT: Weird, I removed the FolderMount relationship for /sdcard/Android, it asked if I wanted to move the files back to which I said yes, and now in both /sdcard/Android and /sdcard1/FolderMounted/Android, I have just 1 folder instead of 3, which is "data", and within it there is just 1 folder named com.estrongs.android.pop, oh and now there is a new 2nd folder named com.devasque.fmount in both locations. Appears like FolderMount deleted everything when attempting to move it, the relationship still exists but isn't listed in FolderMount, and 2 apps have created new folders in here. The games that had data in /sdcard/Android/obb/, which is now deleted, still work, as their data is still in /data/media/obb redirected to /sdcard1/FolderMounted/obb. My brain hurts now.

EDIT2: Rebooted and now the OBB shows up in /sdcard/Android/ and is mirroring the contents of /sdcard1/FolderMounted/obb, which is a relationship to /data/media/obb. So it appears that /sdcard/Android/obb is merely a pointer to /data/media/obb. I guess that clears that up.
[Android Software Development] bongster:
Hi guys,

just for your info, I installed today a new 6.0 rom which is based on aosp and FM just works. The problem has to be cm13 I guess.
[Android Software Development] Herbie_2005:
I have tried several Android 6.0 roms, but, for me, Foldermount does not work with any Marshmallow rom so far. I use a Htc One M8 (S-Off). Same errors as desribed above.
[Android Software Development] emef:
Same here, "Résurrection Remix 6.0.1" ?
[Android Software Development] Adarsh1998:
Anyone who on 6.0 Marshmallow based custom ROMs can see making FM as System app (move FM to /system/app, and give permission 644 (-rw-r--r-) and reboot) and see if its mounting the folders? I heard system apps not need permission to access sd card :)
[Android Software Development] wartomato:
Which ROM?
[Android Software Development] Herbie_2005:
Already tried that. No success, I'm afraid.
[Android Software Development] Adarsh1998:
Oh okay, thanks for the info....
[Android Software Development] doum:
Dear [MENTION=1436971]madmack[/MENTION] , if you want the short answer : Marshmallow 6.x.x not supported in FolderMount , regardless your OTG or any other story!!
[Android Software Development] DjowBr:
You tried to move the files manualy and then tried to mount?
[Android Software Development] dimm0k:
[MENTION=1436971]madmack[/MENTION] help! I upgraded from a crappy Samsung device, where FolderMount worked perfectly, to a LG V10 and it looks like I can't get any of the mounts working that I previous had. I'm successfully rooted and used Titanium Backup to backup and restore FolderMount from device to device. Upon starting up FolderMount I was told that the sdcard didn't have write permissions so I let it take care of that, which it did.

one of my mounts should be to mount /storage/external_SD/hellotalk under /storage/emulated/0/hellotalk, but if I manually toggle the switch to mount, it reverts back to gray (unmounted) when I leave FolderMount and go back in. If I reboot the device the mount happens and sticks, but when I look at the mount list in a terminal I see that it's mounted to /data/media/0/hellotalk. If I then check /storage/emulated/0/ all I see is a zero byte hellotalk file and no folder. If I unmount and manually mount at this point, I do see /storage/emulated/0/hellotalk except now it's an empty folder. Any suggestions?

EDIT: I'm using LG's Android 5.1.1
[Android Software Development] thewild:
Seems like I forgot to attach the zipped vold in my last message, so here it is.
[Android Software Development] sjurics:
I'm very familiar with android customization. I have used aplication as it is supposed to be used. I used this on Lg phone with stock kitkat. After i mounted 8 folders and tried to unmount it, one couldn't be unpinned. In the second one I have erased mounted folder on sd card and after that I couldn't erase mountpoint in internal memory. After reboot phone got into bootloop. Then I factory resseted the phone. It's working now with some minor problems. My question is what exactly sistem file(s) folder mount edit in order to mount folders, 'cos I want to replace that file(s) with original one.
[Android Software Development] egingell:
On your phone, nothing is replaced. The patch only applies to Samsung devices.

If I'm wrong, and it's happened before, then the original would be sdcard.backup in /system/bin.

Sent from: SGS4 - JB 4.2.2 MF9
[Android Software Development] p50kombi:
[MENTION=1436971]madmack[/MENTION]

I think the problem on mm is that except from nexus devices, all other devices give their external sd cards specific unique names.

For instance mine isn't called ext_sd anymore but now has a specific number, which again is different from the name a friend of mine has with exactly the same device and same rom.

Maybe you can build something that you can give in tour own name and that would help with writing to external sd cards?

**********

Sent from a tin of baked beans using some chewing gum, tinfoil, a piece of string and a manual written by MacGyver
[Android Software Development] leon22heart:
I second that on my m8 gpe 6.0 edition. My extsd is named with a codename.
[Android Software Development] Vule991:
I think this will be the solution to the problem and CM13 issue.

"to be included in next nightly:

cm: sepolicy: fix denials for external storage (android_vendor_cm)"

Happy new year!
[Android Software Development] Toyeboy:
On rooted G Flex 2 5.1.1. I've tried the test in the FAQ and when I mount it I look in my file manager and the folder is empty where the data is supposed to show up. And games can't find the data after a pair is made and mounted. I don't understand because it's showing that it's mounted in Foldermount. What can I do?
[Android Software Development] Beast_Slayer:
I would like to know, will there b future updates wid sdk23 (6.0/6.0.1) support added?
[Android Software Development] ankitj1611:
Hello,

I have installed this app and it works great but i having some issues.

I have some folders which were mounted and i uninstalled the app.Now they are stuck in my phone.I have reinstalled app and try to delete them but it dont work.

I get mesages Unable to delete.how to remove those folders which are stuck as mounted.

Thanks
[Android Software Development] egingell:
Reinstall and unmount them or just reboot your phone.

Sent from: SGS4 - JB 4.2.2 MF9
[Android Software Development] magicw:
Don't you think it's due to (again) changed permission handling in Android 6 and API23 ?

See --> http://stackoverflow.com/questions/32129716/how-does-storage-access-change-on-android-6

and

in particular
[Android Software Development] SpasilliumNexus:
If you have Xposed installed and just want to move files from /android/obb and/or /android/data, OBB on SD was just updated with Lollipop and Marshmallow support, until FM gets updated if you want to move more folders other than OBB.

Working perfectly here on Moto X Pure Edition with a 128GB SD card.
[Android Software Development] Toyeboy:
Xposed fixed it for me with XinternalSD module check box "Allow apps full access to SD card" it allowed Foldermount to do it thing. I know that obb on SD works as well but I still prefer this for some reason.
[Android Software Development] Herbie_2005:
Do you use Marshmallow?
[Android Software Development] p50kombi:
Not working for me on mm

**********

Sent from a tin of baked beans using some chewing gum, tinfoil, a piece of string and a manual written by MacGyver
[Android Software Development] Toyeboy:
No sorry forgot to say it's 5.1.1 but it seems to be a similar issue.
[Android Software Development] Herbie_2005:
Ok. Thanks. Never had any problem concerning Foldermount and Lollipop. But Foldermount does not work on Marshmallow for me.
[Android Software Development] enkidu70:
Does not work for me anymore since I use CM13 (Android 6.0.1).

But

mount -o bind <FROM> <TO>

works like usual. So I wrote an init.d script that now does the job, until FM is fixed. ;)
[Android Software Development] p50kombi:
Could you elaborate a bit more on this please?

Do you have to create the target folder?

Does it need the < and > symbols?

Does this enable the app to also write to the mounted folder?

**********

Sent from a tin of baked beans using some chewing gum, tinfoil, a piece of string and a manual written by MacGyver
[Android Software Development] enkidu70:
I guess FM is just a GUI around "mount -o bind" :) So if you are a bit keen on Linux and sh-scripting, you simply can replace what FM does by a simple script.

Try it yourself. Just open a root shell (e.g. adb shell)

# cd /sdcard
# mkdir tmp
# cd tmp
# mkdir A
# touch A/a
# mkdir B
# touch B/b
# mount -o bind A B
# ls -l A
# ls -l B

If your rom supports /etc/init.d you can place a script doing your mounts there. Or even better, if in /etc/init.d is something like userinit, check it and create a userinit-script and place it there.

Cheers,

Enkidu
[Android Software Development] ahac85:
Could someone do an example of how I would use this method to mount whatsapp folder on the internal sdcard to the external one?

Sent from my HTC One_M8
[Android Software Development] enkidu70:
I am about to rewrite my scripts so that also other (experienced) users may use them. But I need a couple of days. ;)

Cheers,

Enkidu
[Android Software Development] Herbie_2005:
Thanks for telling us about your idea, Enkidu! I have tried a similar way to get the mounts I want to have.

However, as far as I know, your suggestion does not work. If I follow your scripting above, the mount is ok for user root only, isn`t it?

If you try

ls -l B

as normal user, you get file "b", not "a". User root gets "a".

I think the mount should be made all users. -- Or do you think, I am wrong?
[Android Software Development] keityrobins:
this app is a killer, works seamlessly on asus zenfone go, it wont damage my internal right?
[Android Software Development] Legza:
Mount -o bind will work, for example, in the terminal app. But due to the android security, other apps will NOT see dirs binded manually to external SD.

This method worked on android < 4.2, but not later.

Maybe it can be resolved somehow with security settings, but "out of the box" - no.
[Android Software Development] dimm0k:
does this hold true even if it's done via init.d at boot? not sure where development for FM is headed, but it no longer works at all for me on my LG V10 running 5.1.1
[Android Software Development] der_Kief:
[MENTION=1436971]madmack[/MENTION]

maybe you should contact the dev of Apps2SD

The "folder mount" part of his app is working with MM. So there is a chance that he can help you out :)
[Android Software Development] Legza:
Unfortunately YES. On 5.1.1 no app will see manually binded to external SD path, including init.d. At least at stock ROM.
[Android Software Development] dimm0k:
damn, thanks for clearing this up for me! was hoping it was just a bug in this app...
[Android Software Development] Legza:
However, on my Moto G2 with 5.1.1 FolderMount is working well. I suppose it does not use mount -o bind in any way.
[Android Software Development] egingell:
Even if it does work, the sdcard isn't even available until after boot.

Sent from: SGS4 - JB 4.2.2 MF9
[Android Software Development] Herbie_2005:
Great! I have tried this app, and it works flawlessly for me.

Thank you, der_Kief.
[Android Software Development] der_Kief:
Koi Probläm. Spätzlespower hald :D

------------------------

No Problem at all ....
[Android Software Development] enkidu70:
I do not use an external sd, so for me bind -o still works like expected.

For those with external sd, I suggest using Xposed framework and HandleExternalSD. This should solve this problem. (All using FM do have root, so installing xposed is not a big deal.)

http://www.xda-developers.com/fix-external-storage-handling-with-xposed-module/

---------- Post added at 03:46 PM ---------- Previous post was at 03:43 PM ----------

I do not think so. I guess you do not try to mount to/from an external sd! :)

Cheers,

Enkidu
[Android Software Development] p50kombi:
Doesn't work for MM though...

so FM is still broken for us using MM roms
[Android Software Development] alershka:
I did try apps2sd today and while the links worked, I could no longer write to them. One of my mounts is the download folder and each attempt I made to download a file via my web browser did not work. I tried to un-link the directories but the internal sd folders couldn't be written to again. I also can not manually delete them. I wound up renaming it *downloads* and creating a new downloads folder so I could download files again. I can't seem to delete the *directories*.
[Android Software Development] Herbie_2005:
I had the same problem. You may backup important contents of the corresponding folder first and delete the "strange" folder in Twrp afterwards.

It worked for me.
[Android Software Development] enkidu70:
Before you delete it in recovery mode, you'd better also do a e2fsck and fix filesystem problems.
[Android Software Development] enkidu70:
[SCRIPT][ROOT] UPDATE: foldermount.sh v1.1 (workaround for Android 6 / Marshmallow)

foldermount.sh v1.1

is online!

Download foldermount.sh

New:

# 15.01.2016 v1.1 + added possibilitiy to process only one entry
# + added possibility to disable an entry
# o misc. fixes snd improvements

See initial posting for Usage!

Cheers,

Enkidu
[Android Software Development] fizzingbees:
question?

the method described in OP is for transferring game date from internal to external sd card with source being intenal sd card an destination being external sd card

what i want to do is mount a game file already located in my external sd card ? so in this case how will i proceed with source and destination ?

also i have noted that game launches very slowly when mounting from external sd card. is that normal? i am using 128gb class 10 Kingston card.
[Android Software Development] white7561:
Btw. New to thread. Sorry for noob question. But im using marshmallow and i need this so badly. The app say to fix permissions. After i say yes. It said failed. So how to got it work with marshmallow? Thx
[Android Software Development] enkidu70:
Currently only with my root shell script: foldermount.sh
[Android Software Development] p50kombi:
Will that work to external sd as well?

**********

Sent from a tin of baked beans using some chewing gum, tinfoil, a piece of string and a manual written by MacGyver
[Android Software Development] enkidu70:
I don't know. (I do not use an external sd.) This problem is an Android issue, not a foldermount issue. Just try it... Just play around with

mount -o bind <SRC> <DST>

Maybe you need some workaround like some modules offered for xposed framework. Or reduce Android security level.
[Android Software Development] egingell:
No, it won't. The external SD is not available until *much* later in the boot process.

Sent from: SGS4 - JB 4.2.2 MF9
[Android Software Development] white7561:
That means. Use smanager app to run that script after boot. Cuz after boot. The sdcard is available
[Android Software Development] egingell:
That's all well and good, but if Folder Mount can't do it, neither can Smanager or ROM Toolbox or Tasker or any other app that executes shell scripts... shouldn't, anyway. They're doing the exact same thing.

Sent from: SGS4 - JB 4.2.2 MF9
[Android Software Development] white7561:
No they can. They are like terminal commands. That use SU. Foldermount cant. Cuz foldermount didnt updated to support the new permissions system on marshmallow. I hope he support it maybe on his beta tester thing. I really. Really. Didnt want to use scripts. Cuz i wanted to be clean as possible :) but anyway thx.
[Android Software Development] egingell:
I'm aware of what they do. *That* is what FM does.

As to the permissions, that's probably why it works; however, I assume the problem introduced with 4.2 - can't mount folders without tapping into the debugger daemon - is still a problem.

Sent from: SGS4 - JB 4.2.2 MF9
[Android Software Development] white7561:
Oh. Ok. Hope it can get fixed soon. Cuz i really need this app :)
[Android Software Development] kaman237:
For Marshmallow users: for the time being I was able to bind whole external sd as internal media memory using xposed module XInternalSD and setting custom path to intenal sd there. It is only temporary solution as it replaces whole internal sd with external but works quite well for me. :)
[Android Software Development] jagarwolf:
I've just installed folder mount from google play store for rooted devices. It wanted restart, after restart, I don't see internal nor ext sd card, only root. And I can't copy to that normal files nor can I install any app. Please advise.

Phone: i9505, Rom: Omega Rom, Lollipop 5.0.1.