yashsingh1/xdaforums huggingface dataset:
[Magisk] wstephen:
I am also a user. Why you want to update from v1.0.9 to v1.1 when it is all working fine? It has already been mentioned in #191.

---------- Post added at 23:32 ---------- Previous post was at 23:31 ----------

I would suggest you check with your file explorer to see if there is a "/data/ts-bind" in your directory in the first place, and there is also 1) ts-binds.log; 2) config, 3) cached-folderlist.sh, and 4) fresh-folderlist.txt inside that directory. If yes, then put your "ts-binds-folderlist.txt" into "/storage/emulated/0". And type/run the following terminal shell command one-by-one:

1) su

2) tsbinds update (it should echo something like "... found new bind and updated cached-folderlist")

3) tsbinds bind all (it should echo the binding process)

4) tsbinds pairs (to check your binding pairs in a list)

5) exit (to leave the su mode)

6) exit (to close your terminal shell)

Now check your folders are really bound using your file explorer.

But, I have problem in sending and receiving images (both Avarta and photos) with WhatsApp, which are not the case on WeChat and KakaoTalk (they are good). I am not sure is it because of my device problem, a problem with this module or a problem with the New WhatsApp application.

I really like to hear from you of how WhatsApp is going to behave in your device.
[Magisk] zukers:
but I do not have ts-bind folder in /data
[Magisk] wstephen:
Did you install any earlier version of ts-binds?
[Magisk] zukers:
no, in modules I have only ExSDCard Access Enabler
[Magisk] the gladiator:
Given the fact that more and more users claim the lack of the main folder (/data/ts-bind) I strongly suspect that there is something to be fixed in the app itself. Don't get me wrong: support from everybody is more than welcome, first of all wstephen's support, very active and valid in this thread.

My proposal/wish/suggestion would be: why TechnoSparks and VR25 (hoping he can read me), the author of fbind, the similar app, don't share efforts and knowledge coming out with a solid and definitive app as a solution?
[Magisk] wstephen:
Now, try uninstalling the module, reboot to system. Reboot to Recovery and do a TWRP backup in case of anything would go wrong.

Then, re-install v1.1 again, to see if the re-installation can create "/data/ts-binds" with those runtime files.

---------- Post added at 23:50 ---------- Previous post was at 23:48 ----------

I absolutely agree! Thanks.
[Magisk] zukers:
uninstalled exsdcard access enabler then reinstalled ts-binds but still no /data/ts-bind folder
[Magisk] wstephen:
No, no, only uninstall ts-binds, you need exsdcard access enabler if you don't have "/mnt/media_rw" in your directory.

Now, it is very clear that v1.1 has a problem with your device and/or rom. I would advise you not to install any earlier version of it, because that might cause more complications. We'll just leave it for [MENTION=5765352]TechnoSparks[/MENTION]'s return.

If you badly in need of folderbinding, I suggest you try Apps2SD which is currently deployed in my other devices running Oreo and Magisk 18.
[Magisk] TechnoSparks:
Oh no! I didn't notice that there is a discussion in the thread! I didn't receive email from XDA for weeks and I find this slightly infuriating. Sorry on my behalf.

First and foremost, I would like to wish everyone a very happy new year. May 2019 provide us exciting opportunities ahead!

Okay, now, I would like to address my silence. From my last post, I have been in hot water with my college projects' issues and had to solve them myself, because, well do you know how it feels to be someone that knows stuff but your whole classmates don't? That is what I have to face throughout my studies. After the whole projects issues, I need to study for my final examination as it is now indeed my final semester. My finals haven't finished, yet, but I will surely restart development once I break free! :good:

It has also come into my attention that Magisk version 18 has been released. I still don't have issues with this module, but I see a lot of problems reported in this thread. Here is what I have in mind when I start development again: make compatible with Magisk v18, inspect the code (again) and fix a bug on my end (unbind all yields error), release an updated version with hopefully minimal bugs, and request some of the bug reporters to test the new version. Most importantly, a rewrite is needed on how ts-binds read config file. Since the project have attracted big attention (thank you to all of you users), it is important to eliminate an elephant in the room: sourcing the config file can execute unintended arbitrary code (thanks to SebiderSushi reminding me about this on GitHub)

I hope you guys hang on tight. Expect to hear from me again soon. Apologies for the silence, and Thank you for reporting the issues!
[Magisk] VR25:
Thanks for the suggestion (and I just saw your PM).

We don't work together per se and our scripting styles are a bit incompatible. Occasionally we share our findings/codes, though. :)

By the way, [MENTION=5765352]TechnoSparks[/MENTION], some devices lock and reboot after remounting /mnt/runtime/write/.... They work fine without that.
[Magisk] iamMG:
Same issue here. /data/ts-binds not getting created. Hope to see this being fixed in a future release. ??️
[Magisk] Schwinni:
I have the same problem. No /data/ts-binds. Phone is Xperia Z5 Compact with LineageOS 14.1.
[Magisk] TheMDJ:
I installed ts-binds but there is no text file in internal storage to add syntax
[Magisk] ZzManRoolez:
Strange Problem

Hi! I'm trying ts-bind for a game, at first run no /data/tsbind folder and no txt created on internal memory, I have created the folder and the file then mounted a game data folder (/data/media/0/Android/data/"gamefolder") on the already created link2sd folder where is mounted ext2 file system (/data/sdext2). Bind seems to work, if I run unbind files on internal SD disappears and if I rebind all files re-appears, but when I run the game and the game downloads something it seems that the files are not saved, the game works but re-downloads the content every time!
[Magisk] TechnoSparks:
Hiatus Announcement

I can't help but feel guilty as days went without me voicing my progress. Today I would like to announce that the project will be on hold for the time being. I had a huge turn of event for my life (towards the better) and I would like to invest my time on that aspect. Additionally, I am employed at a location that is quite far from my home, and the transport time alone have consumed a lot of my "idle" time.

As of far, the progress I have made on the source code is that I have worked on an alternative to the sourcing method hence would be safe from arbitrary code execution. And that would be the only change for the time being. The problem with /data/ts-binds not creating is still haven't looked into. I intend to change to another directory anyway as Magisk v18 has its directory paths changed.

I do not have a specific duration for the development break. But my plans is to resume the development once I am enrolled into Degree of CS.

For the time being, if folder binding is crucial to you like it is to me, your best bet is to use fbind by VR25, or App2SD.

Apologies if this caused inconvenience.

Regards
[Magisk] zenaufa:
Thank you for all of your work, wish you all the best in your enrolling process :o
[Magisk] bobbyp1086:
Man, I was coming to ask about the non creating folder, but that post summed it up. I could always look at the source code and if I find a fix post it here, if that's OK. I haven't had a chance to use your module but I'm in dire need. My favorite app, Unipad, can see the directory but refuses you load from it and no help from devs yet, I have over 12gb of songs and covers for the app and transferring back and fourth is a hassle.
[Magisk] TechnoSparks:
I managed to find flaws in my logic that made the folder not creating. I still do not know if what I find is the exact cause of bug, but it is high on my checklist at the moment. I wish I could say a new version would be released right now, but then no, I haven't tested the changes yet, and I don't think it is suitable for pre-release either.

As of now, you can use the module with no problems, but you will need to manually create the /data/ts-binds folder first, and copy over "fresh-folderlist.txt" file from within the module installation zip. Yes, you can do this before or after installation, should be of no issue. If you did this after installation though, make sure to issue command "tsbinds reinit" in a terminal emulator.

I have to say, if this module doesn't work for your setup even after small attempts to make it work, you shouldn't spend your precious time trying to fix it. Instead, I highly recommend to hop over to VR25's module as it is well supported. :)

I am pleased that you dropped by this thread, by the way. Cheers!
[Magisk] Full House:
Hi for me it does not work I do not see any file tsbinds anywhere ?

And when I open Terminal emulator :

:/ $ su -c tsbinds reinit

Unbinding all entries

/system/xbin/tsbinds[378]: .: /data/ts-binds/cached-folderlist.sh: No such file or directory

/sbin/.core/img/ts-binds/service.sh[10]: can't create /data/ts-binds/ts-binds.log: No such file or directory

Lineage 16 With SM-G901F

Can you help me please thank you...
[Magisk] TechnoSparks:
You might want to try and follow my reply here: https://xdaforums.com/showpost.php?p=79046552&postcount=234
[Magisk] TechnoSparks:
It was fun while it lasted

Greetings everyone who still keeps an eye on this module. When I announce the development pause, it has never come to me that I would ever drop this module. However, in the span of weeks since the announcement, I have faced greater challenge in using Magisk on my device (Nokia 6). The experience is very bad for me and I had enough in the end. Thus I decided to get a new device instead. My new device do not have an SD Card slot. It is a feature I wanted, but I had to take compromise because other device options do not fit my important set of prerequisites.

Since this device do not have an SD Card, ts-binds is useless on it. And as I did maintain ts-binds because I myself used it, now there is actually no point in developing it when I myself stopped using it.

What used to be my own automated solution using init.d, it has now turned into a Magisk module with considerable attention. I am more than happy that although it does not reach the popularity like other modules do, this module did help people who wishes to bind folders.

I have made a promise to fix the bug involving the data folder. I will still deliver on that. Once the final version is released though, consider the project EOL. It may be reinstated in the future if I upgrade to a device with an SD card slot, but that might be long (i use my devices an average of 3 years). The final version may be usable for the foreseeable future, but again new Magisk template requirements or any changes to how storages are mounted on Android might ultimately kill this module.

As an alternative, I highly recommend using VR25's fbind module. It is very advanced and well tested, in addition to more popular than mine. My module is simple and do not handle certain quirks involving a few set of ROMs. Thankfully fbind does. VR25 is also a good developer, judging by his catalogue of interesting Magisk modules.

Thank you for using ts-binds. Have a nice day!
[Magisk] Full House:
Thank you for responding but I tried to do what you say it's too complicated this module before I used a module xposed (obb on sd) you just had to move the data on sd card ext ...I'm not comfortable with Terminal emulator there is not such a simple module on magisk?
[Magisk] TechnoSparks:
Well, the world of Magisk modules depend quite much on the terminal (shell) and a slightly advanced knowledge of Linux environment. That is just what it is.

You can wait for a patched version of ts-binds, which again i can't give ETA on and it's not even close. My workplace has a project that I lead, and of course I have to prioritise that one first.

Or you can try fbind Magisk module first.
[Magisk] Full House:
ok thank you for taking the time to answer, I Tried to follow the instructions with fbind too but without success, I would like a module as simple as obb on sd but in magisk.

I do not understand what I'm doing wrong I create the folder ts-binds But it does not work :(
[Magisk] Gravemind2015:
[MENTION=5765352]TechnoSparks[/MENTION]: Hello. I am a longtime user of this module; however now that it's development is stopped, I am trying to create a script to auto-mount my folders. The farthest I've gotten is the commands work when I manually execute them but return error when executing the script.

mount --rbind /mnt/runtime/default/4E06-9044/WhatsApp/ /mnt/runtime/default/emulated/0/WhatsApp/
mount -o remount,gid=9997,mask=6 /mnt/runtime/read/emulated/0/WhatsApp
mount -o remount,gid=9997,mask=6 /mnt/runtime/write/emulated/0/WhatsApp

and same for another two folders.

My phone seems to mount it with mask=6 by default, and the above command, when executed in termux, actually worked without the mask argument once. When this is saved as a shell file and executed, there is an error saying:

mount: Max 2 arguments

' not in /proc/mounts
' not in /proc/mountswrite/emulated/0/WhatsApp/
mount: '/mnt/runtime/default/4E06-9044/DCIM/'->'/mnt/runtime/d': No such file or directory
' not in /proc/mountsread/emulated/0/DCIM/
' not in /proc/mountswrite/emulated/0/DCIM/
mount: '/mnt/runtime/default/4E06-9044/Pictures/'->'/mnt/runti': No such file or directoryes/
' not in /proc/mountsread/emulated/0/Pictures/
mount: '/mnt/runtime/write/emulated/0/Pictures/' not in /proc/mounts

The funny thing is, that one time I somehow managed to mount WhatsApp folder, I took the exact commands, made another script and tried to execute it; and the only error I got was that read/write path not being in /proc/mounts. It did work when done manually.

I was following your blog post here, and I think I'm messing something up in the script itself. I'm attaching my script file down below(saved as txt to allow XDA to upload it). I am a total beginner in this field. Any suggestions would be greatly appreciated. Thank you.

Edit: I just remembered that the error output was copied from termux screen and the screen can't be horizontally scrolled so it's possible those abruptly ending paths could actually be full, but couldn't be copied. I couldn't pipe the error to a file (noob here).
[Magisk] xn0live:
is it working on pie
[Magisk] TechnoSparks:
The module's development have long stopped and i recommend using alternatives. It may not work on Pie.
[Magisk] TechnoSparks:
My absolute apologies. It seems i forgot to reply to you for 2 whole years. I "liked" your post because i wanted you to know that i read it, but alas, my memory failed me.

Since it has been years, i hope you have found a solution or have used alternative modules. I am genuinely sorry for not responding to you throughout the years. 🙇‍♂️
[Magisk] TechnoSparks:
With the newest test release still installed, and that Ogi folder couple in folderbind-list.txt is uncommented, please give me the /proc/mount output.

I intend to see the Ogi line if I can get any other useful information for me to attempt support, while also at the same time to check if internal storage is under forced usage of sdcardfs.

Also please run this and return me the output:

getprop | grep sdcardfs

This is to check if the props were set successfully.

----

And for now, I'd suggest for you to open /magisk/ts-binds/system.prop and comment the line "ro.sys.sdcardfs=false" by adding # before it. Reboot and see if of any use.
[Magisk] ogisha:
Sorry. I am very busy these days.

I have some deadlines. I will do further tests as soon as I finish the work.

Thank you.
[Magisk] ogisha:
Hello again. I am back now.

I did not do any further tests, because I had found somewhere that my phone is not capable of binding folders. It is rom limitation, as you have said sometimes before.

But instead, Huawei added an option in Storage Settings to select the default storage location and if you choose external sdcard, device restarts and all system folders are set to be on external sdcard, including Download, DCIM, Android/data, Android/obb, etc. All applications that need them, set their folders on external sdcard by default. Only explicitly, if you insist, you can choose them to be on internal sdcard.

So I concluded that I actually do not need folder binder at all, because all of my needs are pleased with system solution.

Thank you very much for your patience. I hope I did not bother you too much. I really did not know for this option's existence.

At least I helped you finding some bugs.

Thank you very much again. ??
[Magisk] TechnoSparks:
Yes it's been quite a while. Such a feature is very neat, I wish this could have been contributed back to the AOSP tree, or at least baked into some ROMs.. :(

I hope you can answer me a few questions though, as a final contribution and so that I can put proper notice to Huawei users in the module's README.

What Huawei device are you using?

What is the underlying Android version is it using?

Are you using the adopted storage feature?

Is this a fairly new feature that is introduced to Huawei stock ROM? Do I expect to see such a similar feature on a completely different Huawei device?

Could you copy the build.prop and attach it here so I can further analyse the situation?

Your help is very much appreciated. ?
[Magisk] TechnoSparks:
I will also release the recent changes as 1.0.7 including a newer base template (v14). This means 1.0.7 will require the Magisk version 14 to be installed in order to run. I just need to do a few testing. A newer version will also be released afterwards to address some logic issues in regards to adopted storage.
[Magisk] ogisha:
What Huawei device are you using?

Huawei P9 L09C432B386.

What is the underlying Android version is it using?

Nougat 7.0.0.

Are you using the adopted storage feature?

I think I am not using it because my apps are still on internal storage and sdcard is fat 32 formated not ext4.

Is this a fairly new feature that is introduced to Huawei stock ROM? Do I expect to see such a similar feature on a completely different Huawei device?

I don't know.

Could you copy the build.prop and attach it here so I can further analyse the situation?

No problem.

https://drive.google.com/file/d/0B6Te_OKfoyoJLUpyVW1tYkVodWc/view?usp=drivesdk

Your help is very much appreciated. ?

I am glad if I helped. ?
[Magisk] TheXorg:
I'm trying to use your module on my Moto G4 Plus, on Stock Rom. It does not seem to work, after binding a folder (WhatsApp in my case) the folder on the internal storage is still empty, but there's no error message in log file. Files attached. If you need further logs, etc. please tell me. I've tried using https://github.com/laggardkernel/extsd-fix-rw-magisk/releases but it did not change anything
[Magisk] TechnoSparks:
Hello, [MENTION=4657522]ogisha[/MENTION], thank you for all of the information provided. ?

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

Hello

I have added two important paragraphs concerning the incompatibility issues ts-binds might present on a device. This is just composed, so I think I should put it here too so you could read it before we continue ?

Now on to the issue! :D

Indeed, the log may not show any error, but it does show something abnormal; it states that whatsapp is already binded. This is extremely unusual. Thank you though for attaching the log!

ts-binds checks the /proc/mounts file to see if the folder is already binded to prevent a recursive binding from happening, of which some systems may actually do.

I need you to disable the module and then reboot. Once rebooted, please grab a copy of /proc/mounts and then attach it here. I will try to see what is going on with the directory "/data/media/0/WhatsApp" when the module is inactive.

Thank you ?
[Magisk] TheXorg:
I've attached it.

And I've tried something else - I've created a second folder (WA2) on the internal storage and tried to mount it manually in termux (mount --bind WhatsApp WA2). Then I've checked the second directory in my file explorer (Solid Explorer) but it was still empty. But when I listed the contents in termux using ls WA2 and then the correct contents were listed. I've also tried Android's built-in file explorer and it also shows the directory as empty. I'm not sure if WhatsApp will recognise the files, but i don't think so. I'm guessing it's some permission issue and mount --bind works fine in my rom.
[Magisk] TechnoSparks:
It seemed that when the module is disabled, no such thing is "whatsapp" is there in the mounts file. Strange! Before you continue, I have released the v1.0.7 of the module. Update by using the repo or this zip. Now I need you to enable the module, and uncomment the whatsapp line. After a device restart, using a terminal do these (would be very easy if you us adb shell):

su
ls -al /mnt/media_rw/6C70-5B9F/WhatsApp > /tmp/truelist.txt
ls -al /storage/6C70-5B9F/WhatsApp > /tmp/emulatedlist.txt
getprop | grep sdcardfs > /tmp/procsdfs.txt
cp /proc/mounts /tmp/procmounts.txt

Afterwards, attach the files "truelist", "emulatedlist", "procmounts" and "procsdfs" from /tmp here.

Thank you for the extra info, but how Android handles storages is a lot complex and what you did does not actually tell me anything. :( You could try though by `cd` into `/data/media/0`, and then afterwards `mount --bind WhatsApp WA2`. `/data/media/0` is the "true" directory for internal storages. But the real question is about bridging between the internal and external storages. This is where it gets tricky, by default, `/mnt/media_rw` is the "true" place for sdcards, but I've read on other Magisk module threads (the ts-binds alternatives) that some ROMs change this. Your situation might be of this one.
[Magisk] lcsboy:
Hi TechnoSparks,

ts-bind doesn't work in my phone.

After installing the mod and reboot from Magisk V14.0, I can not find /data/_fbind directory.

My cell phone is hTC M9 w/ Android 7.0
[Magisk] lcsboy:
Hi TechnoSparks,

ts-bind doesn't work in my phone.

After installing the mod and reboot from Magisk V14.0, I can not find /data/_fbind directory.
[Magisk] mohand06:
Hi [MENTION=5765352]TechnoSparks[/MENTION], my device is on stock 7.0, supersu. I'd like to bind 2 folders both on int.sd, can I use your flashable app?
[Magisk] TechnoSparks:
My Magisk module is different than that of Magic Folder Binder. Please read the “Bind two different folders” section on my website.

Although this reply is sooooo late (sorry), I hope you already figured that out by now ?

You can always try :)
[Magisk] Brentana:
Hallo TechnoSparks

first thanks for the module.

ts-bind is working fine on my lineage 14.1 and s4 mini lte: mapped internal /whatsapp/media to external whatsapp/media, and the application allow me to read anything.....

problems came on new messages with media attached: when i try to lock at the photo, or video, whatsapp telsl me that the media is not present in the memory, and that is true, because i cannot find the new media even searching with a file explorer.

Is there a solution, or am i doing something wrong?

I got the same exact results with fbind ad app2sd too....

Thanks, regards,

Luciano
[Magisk] TechnoSparks:
Sorry for the late reply.

This seems to be a very weird behaviour. Could you explain what do you mean by “application allow me to read anything”?

If you explore both Internal/WhatsApp/Media and External/WhatsApp/Media, both contents in the two folders should be the same. Is this correct to you?