yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Blackman75:
Ok thanks, at least that gives me a place to start. Honestly I had no clue as this is my first Android phone ever. Thanks again.

---------- Post added at 01:45 PM ---------- Previous post was at 01:43 PM ----------

Oh by the way will I have to delete the files off of the internal memory after mounting to the card or is that automatic?
[Android Software Development] cbeckstein:
During boot, when the system loads widgets et al after I entered my PIN at the lock screen, until Foldermount is ready mounting its folders, the system is extremely slowed down

When folder mount has done its work ()i.e. has shown its "mounting" and shortly after its "done" popup) system is back to normal speed

What could be the reason?

Foldermount 1.6 pro, stock XXEMD2 ROM
[Android Software Development] egingell:
FM is waiting/sleeping (there's a built-in delay) which eats up CPU cycles. That's my theory, anyway.

Edit: I'm assuming you mean from when you see your lock screen to when FM binds the folders when you say "during boot."
[Android Software Development] cbeckstein:
aha... but why should this wait eat CPU cycles? Active wait?

If this system slow down during the wait really is unavoidable, is there a way to shorten the waiting / sleeping period?

---------- Post added at 08:34 AM ---------- Previous post was at 08:31 AM ----------

yepp...

the slow down happens / starts after I entered my SIM PIN at the lock screen (busy loading widgets and starting backup processes) and until Foldermount shows its "mounting" popup
[Android Software Development] egingell:
I have no idea, but madmack could tell you with more detail.

A suggestion that the wait method be changed to something a little less CPU heavy (assuming that is indeed the problem) or add an option to change/disable the timeout would be good.

P.S. I also have this issue, but I never thought it was FM.

Edit: I switch "Mount on boot" off (or whatever the verbiage is) and rebooted, I didn't notice any significant difference in boot time other than StatusBar apps loading sooner, the widgets on the Home screen took about the same time to load.
[Android Software Development] madmack:
Likely not due to FM. I certainly don't have any increase in lag. FM is silent when the phone boots and wastes 0 CPU cycles. It really executes no code at all until you see that status bar notification on top. That's when Android executes my app and that's when it does its magic :cool:

Android is jittery at boot on all my devices, whether FM is installed or not. This is mainly due to the initialization and loading of all widgets and start up apps.
[Android Software Development] egingell:
I uninstalled and rebooted. I still saw no difference in boot time.
[Android Software Development] madmack:
v1.6.5 is out.

That was a ***** to fix. Spent two days reverse engineer some binaries to get things going with this device. Samsung just had to frak this up. It should be working fine for you guys now. :highfive:
[Android Software Development] VTR1000SP:
not updated on Play store yet ?
[Android Software Development] egingell:
Ooo. And it offers to restore the backup.

Yes, it is.

Sent from my E4GT.
[Android Software Development] VTR1000SP:
not on my local store yet, singapore still showing v1.6 not compatible with samsung devices.

btw any diff if i install from the link that posted here ?
[Android Software Development] egingell:
No difference at all.

Sent from my E4GT.
[Android Software Development] Sammath:
Yay, i can finally use my galaxy s4 now haha. After days of reverting back to mu trusty note 2 :p

You know, you actually woke me up twice yesterday when you rebooted it while i was a sleep :p

Im glad you got it to work!
[Android Software Development] VTR1000SP:
tks for the fast reply, going Pro now !

tested & work now on JB i9505 MDE build !
[Android Software Development] johnnobts:
not working with my rooted att gs4... dunno why.
[Android Software Development] VTR1000SP:
did u check ur storage ? my 1st test after reboot sd card unmounted, need to manually mount sd card, 2nd reboot it boot up fine, maybe some bugs ?
[Android Software Development] johnnobts:
how is your SD card formatted? I link to a Gameloft game, then delete the source data and it still redownloads data rather than use replacement directory.
[Android Software Development] Sammath:
You don't have to delete the source data as it's moved to your external sd card. The app basicly makes the phone think it's still on the internal sd card but it isnt.

If you move the app to the sd card and link the folder, then delete the source data, well offcourse it will redownloas the stuff since it can't find the files :p
[Android Software Development] VTR1000SP:
Q:1 sd card device formatted. tested : data, obb & gameloft folder mounted without any problem ! :D

Q:2 some 1 answer urs already 1 post be4 me.
[Android Software Development] Mastiha:
Still doesn't seem to work on my S4.

Everything looks like it works but the source and the destination contain the same files even after the move and the apps still run with the source.
[Android Software Development] egingell:
Did you not read the thread? The files are moved and linked, so they will appear to be in both places.

Sent from my E4GT.
[Android Software Development] madmack:
Thanks to you man. Giving me access to your phone was what practically fixed this. Waking you up at night was a small price to pay :p
[Android Software Development] Mastiha:


Ok. Sorry about that.

So how can I tell if it's really working? When I use to use Directory Bind, it was easy to tell that the source was a virtual folder.
[Android Software Development] madmack:
unpin. if source becomes empty, then it's working. The green pin is how you know that it's working.
[Android Software Development] johnnobts:
It says my files are moved and I get a green pin on a folder. how do I verify that the files have actually moved to my SD card? unpin and check storage? also I reverted back to ex fat. should I reformat to fat32 again?

---------- Post added at 03:34 PM ---------- Previous post was at 03:32 PM ----------

think I'm figuring this out finally. so I'm thinking with this method i can't have multiple folders pinned all at the same time if it exceeds the 9gb capacity limit of my internal storage correct?
[Android Software Development] madmack:
incorrect. you will definitely be able to exceed the limit of the sdcard because you're actually freeing space on it. these reports aren't accurate: they included bound folders that they see inside the internal sdcard, but the reading is inaccurate.

if you unpin and the internal sdcard has no files, then everything is working as it should.

you can pin multiple pairs at the same time. sure.

edit: get diskusage from the play store. i believe it correctly excludes bound folders when calculating total size of internal sdcard.
[Android Software Development] johnnobts:
ok, nevermind, its all working fine now. have no idea why it wasn't working before. i just rebooted and unmounted the card a couple of times and for some reason its just fine. great app. bought the pro version.
[Android Software Development] baileyjr:
Previous DirectoryBind user here. Have now made the move to Paranoid Android which runs android 4.2.2 so that was not an option anymore.

App works fine here. Only mounting 3 folders at the moment but bought the pro version to show support :good:

I did think I had an issue with not being able to get the mounts to stick at reboot, but as it happens I just wasn't waiting long enough after boot for the mount process to take place. This takes about 2 min to happen after boot on my Note 2. Thats ok know I know about it, but obviously a way to reduce the delay would be beneficial in my opinion.

Keep up the good work.
[Android Software Development] egingell:
Also Partition Table is what I use. I'm sure there are dozens of others. :)

Sent from my E4GT.
[Android Software Development] alx37:
Working on my S4 but not automatically after reboot, even after multiple reboots. Can confirm Navigon working.

ALexander
[Android Software Development] madmack:
what does it say after a reboot? Does it report "failed" in the toast or do you not see any FM activity?

It's weird because it's been tested as working by a few S4 users that I'm in contact with.
[Android Software Development] madmack:
I have the note2 running an aosp 4.2 rom as well but it doesn't take 2 minutes to mount. It takes roughly 20 seconds or so from cold boot. FM waits until your external sdcard is mounted before it attempts to mount. perhaps your external sdcard is getting mounted late in the boot sequence?
[Android Software Development] alx37:
It's weird, I see no activity. It worked once out of 8 tries, but I fail to reproduce. When hitting the pin directly in the app 100% perfect.

I suppose it could be some timing thing.

OK, I did a reboot and did not touch the S4 for 3 mins - working ok.

2nd go - waiting 2mins - working ok.

3rd go 30secs - failure.

4th - 45 sec - failure.

1 min - fail

1:15 - fail

1:30 - fail

I go to bed, testing more tomorrow.

Alexander

Timing starting when lockscreen first seen after reboot.
[Android Software Development] madmack:
When you say fail, what is failing exactly? I need you to be a little more verbose. Does the toast show fail or do you get another error?
[Android Software Development] egingell:
If you open Gallery or Camera during your timing, does it complain that the media scanner is running? My phone doesn't show any progress notification while it's running.

Sent from my E4GT.
[Android Software Development] gelhack:
One photo app that I have seen reliably report that the media scanner is running is fishbowl. I have never seen a notice from the stock gallery app on my N7.
[Android Software Development] alx37:
I sometimes get a message when pressing power and seeing lockscreen informing about success of FM, however not always. I never got a message saying failed.

Anything you want me to test specifically?

ALexander
[Android Software Development] egingell:
Are you saying that you let the screen turn off while you're timing the boot waiting for the toast? That means it is entirely possible that you are missing the toast. Don't let the phone's screen turn off.

Also, if you never get a message that says it failed, how do you know it failed? Programmers love details. More details === easier to fix.
[Android Software Development] baileyjr:
I don't understand how that would happen, would it be ROM or Kernel Based?

Anyway I don't think thats the issue, I can fire up a file manager and browse the contents of the external SD card as soon as I unlock the device, so the card is obviously mounted :confused:

It takes about 1min to get the "excluding from media scan" notification and probably another min to get the "mounting folders" notification.
[Android Software Development] alx37:
So what I can say:

it takes approximately two minutes with my S4 to reach the point where the mounting happens.

Obviously I've been to impatient.

So when waiting long enough, everything fine from my end.

Alexander
[Android Software Development] madmack:
I'm not sure I understand what's exactly failing on your s4.

that would be a rom issue most certainly because FM is not being notified of the extSdCard mount as soon as it happens so it falls back to the 2m delay. FM attempts to mount after 2m if the ROM did not explicitly notify it of the availability of the extSdCard.

the mounting folders should appear relatively quick (less than 20s in my case) but the exclude command can take forever depending on how much data your media scanner has to go through before FM starts excluding them. On my phone, this can be up to 10m. Yep, my media scanner takes that long to finish all my media files :cool:
[Android Software Development] Eambo:
Big thanks for the s4 support - made my phone useful again :)
[Android Software Development] egingell:
You could periodically check to see if the SD cards are mounted and start binding the instant they are. It would eat CPU cycles on boot, but I doubt it would be noticeable. Besides, a check box in the settings to switch between "wait for media scanner" and "wait for SD card mount" would satisfy the people who think they can see a difference. Wait... Isn't there an event for "card mounted"?
[Android Software Development] Thealshear:
hi everybody, I already have the data on my sdcard is there anyway to bind without transferring back to my internal
[Android Software Development] madmack:
You're welcome :)

There is an event indeed and that's what I'm using but apparently either this event doesn't get called on some phones or that there is a bug in my logic somehow. :confused: I'm not able to reproduce this issue on my S3 and Note 2. Both AOSP and Stock roms call that event and therefore mounting happens pretty quickly here.
[Android Software Development] egingell:
FM only moves files from source to target. The only way the files would move back is if you put the folders in the wrong way.
[Android Software Development] VTR1000SP:
i think he mean binding original source which the data file already on the ex sd card & just create a empty data file name on the internal sd which the directory bind tools can be done like this. able to add this feature to new update ? btw premium user here :fingers-crossed:
[Android Software Development] egingell:
There's no difference in creating the folder pairs. If the source is empty, FM won't bother asking you if you want to move anything. FM has the "create folder" button when selecting the source as well, so I think this "feature" has already been passively implemented; however, depending on where the source folder is (/mnt/obb, /sdcard/Android, /data), it may need to be made via other means, the best way is to let the app make the folder, stop the app once it starts the download, then delete the files from said folder prior to using FM to link it.

Edit: I successfully used FM to make a folder in /sdcard/Android (it's FAT32, so there are no permissions getting in the way), it does, however, fail to make folders in /data and /mnt/obb (EXT4 permissions won't allow it) and, even if it can/will, the owner of the folder would be FM (similar to "u0_a123"), "root", or "system" instead of the intended app, so it wouldn't work anyway (I posted about this problem in a previous post in this thread).
[Android Software Development] madmack:
ok guys, v1.6.6 is out. It has some framework changes namely to the boot process and the remounting of extSdCard (when permissions are incorrect).

Technical detail: FM will start the boot process once either a) FM has been notified that your external sdcard is mounted or b) FM manually checks after 20 seconds and determines that your extSdCard is mounted already. This should take care of all these cases where the event notifier isn't working for some reason.

Edit: one more thing. This won't be on the play store for a bit. Want you guys to test the hell out of it before I put it out there ;)

This should already work. Simply add the pair, bind. :highfive:

yea, I'm aware of these issues. I have no intention on fixing it though. FolderMount is really meant to move stuff from and to sdcards that it has read/write access to. I don't want to deal with cases where I don't have permission (as an app) to write or worse, having to fix permissions of folders/files because the apps expect them to be a certain way. I added the "/ path" feature to the file explorer simply so that you advanced guys can explorer the possibilities with a combination of other apps. :cool:
[Android Software Development] egingell:
I figured as much and I'd be the same way. It would be nice, though, to be able to dump the folder pairs as a preformatted mount script, but not necessary (I used TiB to dump the backup DB to a CSV file and edited it into a mount script. :D (I know, I'm a nerd.)).

Sent from my E4GT.
[Android Software Development] madmack:
This should be easy. Send me a sample of that script and where exactly are you placing it? (yea, i can be lazy soemtimes). I never fiddled with init scripts on Android actually.
[Android Software Development] egingell:
I have since changed it to be even more lazy. Nevertheless, I can attach my debuggerd script or link it since I am not at my computer.

http://db.tt/mpG5xcNS

The file resides in /system/bin. You must rename and call the original debuggerd as shown in the script *after* everything else in said script. It can also be a stand-alone script in /system/etc/init.d if the ROM is already setup for it and that's where it is (mine is /data/local/init.d) or renamed to install-recovery.sh and placed in /system/etc (I recommend renaming and calling the original if present).

/system/etc/install-recovery.sh and /system/bin/debuggerd are executed every boot regardless of the ROM or installed apps.

But if you're just going to dump a script file for the user to do with as he wishes, it doesn't much matter as long as there's a "mount -o bind destination source" line for every folder pair.

One last thing, a pre-boot script won't work for any pairs involving the SD cards (save for second partitions mounted pre-boot) as they are mounted post-boot and pre-mounting the SD cards only causes chaos. :)

Edit: oops, that doesn't have my mount script in it. Hold, please.

Edit: Ah, there it is. It even checks to make sure it's not already bound.

http://db.tt/LIwmKasb

Toward the bottom after all my convenience symlinks.

Sent from my E4GT.
[Android Software Development] baileyjr:
Nice, thanks for the update, installed and can confirm my folders now mount 20 seconds after boot :good:
[Android Software Development] VTR1000SP:
tks for the reply, did not play ard too much, just tested, select Destination file 1st (game data on exsd card) follow by create the source manually (type in the data name in internal sd) pin it, it works ! :victory:
[Android Software Development] acerulz:
whenever i try to browse thru the source dir it shows cannot link executable.. same as in destination dir too
[Android Software Development] madmack:
reinstall busybox
[Android Software Development] Zer0_:
This is honestly the greatest app and exactly what I've been looking for. I just bought an S4 and been downloading a lot of games and all that, and this great for freeing space.

I can't love you enough for this app! <3 :D
[Android Software Development] madmack:
Awesome :good::highfive::good: Might get myself one of these S4s after all.
[Android Software Development] Zer0_:
Haha, just stay away from the AT&T version since it has a locked bootloader!

Other than that, its a great phone and gameplay is smooth!
[Android Software Development] omf05:
I must be doing something wrong.

I'm on the GS4 and I transfer the Real Racing 3 file using Folder Mount, but now real racing isn't loading up for me now.

I also thought this app would save the whole app/file to the sd card, so it wouldn't use the internal space on the phone.

Am i missing something?
[Android Software Development] egingell:
It only moves the files from the folder you select as the source. It does not move anything else.

As for why it's not playable, you'll need to provide more information. See OP.

Sent from my E4GT.
[Android Software Development] omf05:
What I did was

1. Create a folder called Real Racing 3

2. Went into Android and selected real racing folder as the source.

3 I let it auto create the destination for me.

Then I went to open Real Racing and it opens then it will its music and just freezes out of the app.
[Android Software Development] madmack:
ah, thanks for the info.

I'm a little confused though, if we're not using init.d (because the sdcard isn't initialized properly when init scripts are executed), what would be the use of a "script dump" ?

one more thing, debuggerd does indeed get executed when you boot up, but not necessarily the install-script.sh thingy. Isn't that a Samsung "hack" to revert any custom recoveries?
[Android Software Development] madmack:
yea, if I get one, it'll be the tmo m919 version. It supports the AT&T LTE bands as well :good: just waiting for the optimus g pro to come out before I make up my mind. I'm just too used to the 5.5" screen on my note 2.
[Android Software Development] omf05:
I was able to get it working.

Am I supposed to reboot the phone to mount the files correctly?

After a reboot is worked fine.

---------- Post added at 12:32 AM ---------- Previous post was at 12:26 AM ----------

Nevermind it seems it just recreated then files back on to the internal drive. Now I have a copy on the internal and on thr sd card.

I'll submit what you asked a few posts back.
[Android Software Development] egingell:
I don't know exactly what install-recovery.sh is for. It isn't even included in the stock ROM.

As to why a script-dump, some may not want to learn how to write shell scripts, but still want to do what I did or similar and otherwise know what they're doing and where to put the files. :)

---------- Post added at 10:49 PM ---------- Previous post was at 10:46 PM ----------

You don't have to reboot, but you do have to at least hit the pin so it turns green.

As for files still being on your internal, trust me, they are not. Read the numerous posts about that in this thread.

Sent from my E4GT.
[Android Software Development] omf05:
Thanks for explaining that!

I thought I kept missing up and even deleted my files.

Glad to see I did it right just didn't understand. Again thanks!

I even bought the pro version :)
[Android Software Development] egingell:
Incidentally, I wrote yet another script. This one takes the output from df and formats it in a way (see below).

I just wish I could figure out how to find out where a directory is bound to.

/dev/block/vold/253:1 -> /storage/extSdCard
Used: 3.63G
Free: 16.1G
Total: 19.7G
/mnt/secure/asec
/dev/block/vold/253:2 -> /data/sdext2
Used: 903M
Free: 8.49G
Total: 9.37G
/data/data/com.amazon.venezia/app_resources
/data/data/com.andrewgarrison.dummydefense/cache
/dev/block/vold/259:3 -> /storage/sdcard0
Used: 807M
Free: 10.7G
Total: 11.5G
/dev/block/mmcblk0p1 -> /efs
Used: 4.12M
Free: 15.5M
Total: 19.7M
/dev/block/mmcblk0p10 -> /data
Used: 584M
Free: 1.40G
Total: 1.97G
/dev/block/mmcblk0p12 -> /preload
Used: 241M
Free: 65.8M
Total: 307M
/dev/block/mmcblk0p7 -> /cache
Used: 4.88M
Free: 290M
Total: 295M
/dev/block/mmcblk0p9 -> /system
Used: 470M
Free: 33.0M
Total: 503M
[Android Software Development] madmack:
nice one. Yea I agree, it would be nice to know the destination. It seems there isn't a way from my initial research except by manually traversing the paths. The destinations are always reported as the block devices that host the destination path.
[Android Software Development] gelhack:
I'm not really sure what you are looking for, but have you tried parsing the output of mount? Or maybe mount | grep sdaX?
[Android Software Development] BurnHard:
Hey all,

i'm using this great app since a few days to mount my google play music cache to external sd. But i encounter the following problem. After reboot there is no remount independent how long i wait. Also the new version with the "20 sec" remount time does not remount automatically. I always have to remount manually. For your information i'm on a samsung galaxy note 1 powered by asylum cm10.1 - 4.2.1. Please tell me what information is additionally needed to spot the problem.

Thanks in advance.
[Android Software Development] roan67:
Perfectly on Galasy S4 9505

thans for this job. Perfect => pro => directely !!!!

Fantastic on SDXC 64 Go SAMSUNG 70-20 MB/S.

NFS Most Wanted is to big: 1.9GO

I'am happy, Thanks :laugh:
[Android Software Development] beaver2233:
Hi all,

I own a Galaxy S4 (i9505) and came across this app which initially worked just fine. Now all of a sudden I am unable to successfully mount anything (the pins do not turn green). I have no idea why, I've cleared the data of the app and tried again, though have no luck. Any help is appreciated!