[MODULE] [DEV] Magisk FolderMount v0.8.7.2

Codebucket

Recognized Developer
Mar 12, 2016
369
493
78
Kraków
www.codebucket.de
Hey Folks!

I am currently working on a module which allows you to easily mount internal SD card folders to external SD folders. This module installs a script in /system/bin, so you can use it later in your scripts, flows or even apps.

Usage
Currently the script allows you to mount and unmount folders. Later, in v0.9 these folders will be added to a list, which will rebind all currently mounted folders after a reboot.

The basic usage for mounting a folder:
Code:
fmount -b [source] (destination)
Source is the folder on your internal SD card in /data/media/0, destination is the folder on the external SD card, which will be detected automatically. If no destination is provided, then it will use the same folder name for the external SD card folder as the from source.

Example:
Code:
fmount -b "WhatsApp" ".foldermount/WhatsApp"
This will result into mounting "/mnt/media_rw/XXXX-XXXX/.foldermount/WhatsApp" as "/data/media/0/WhatsApp". Easy huh? :)

To unmount a folder, just enter the following command:
Code:
fmount -u [source]
Future plans
This module aims to be a alternative solution to FolderMount, a app created by madmack, but unfortunately his app does not work with MagiskSU anymore. With v0.9 it is planned to add the ability to rebind folders at post-fs-data, so these will be still mounted even after a reboot.

For more information, see this issue on GitHub.

Download
https://www.androidfilehost.com/?fid=889764386195917003

Support
  • Twitter: @codebucketdev
  • Telegram: @divadsn
  • Telegram Group: @magiskfoldermount

XDA:DevDB Information
Magisk FolderMount, Tool/Utility for the XDA Community Apps

Contributors
Codebucket
Source Code: https://github.com/codebucketdev/magisk-foldermount


Version Information
Status: Testing
Current Beta Version: v0.8.7.2
Beta Release Date: 2017-07-19

Created 2017-04-18
Last Updated 2017-07-20
 
Last edited:

Codebucket

Recognized Developer
Mar 12, 2016
369
493
78
Kraków
www.codebucket.de
Changelog

v0.8
  • Initial release
v0.8.5
  • Small bugfixes and improvements
  • Added alternative way to mount folders on boot (post-fs-data.d support)
v0.8.7
  • Updated Magisk module template to v4
  • Fixed regex for lowercase UUIDs on some ROMs
v0.8.7.1
  • Added busybox binary back, Magisk v13 doesn't provide it's own anymore
v0.8.7.2
  • Reverted broken commits

Download (source code):
https://github.com/codebucketdev/magisk-foldermount/releases/tag/v0.8.5
 
Last edited:

Codebucket

Recognized Developer
Mar 12, 2016
369
493
78
Kraków
www.codebucket.de
Forked ;)
One question, what does listFunc do (when finished)? List the mounted folders?
Yes, this should show up a list with folders currently mounted, I will add some comments about this feature later.

The list will contain folder pairs that are mounted, but maybe with v1.0 there should be a way to unmount a folder without removing it from the list.
 
Last edited:

Codebucket

Recognized Developer
Mar 12, 2016
369
493
78
Kraków
www.codebucket.de
Can it used to mount obb folder on sd ( because no xposed for nougat so cant use obb on sd module)
Sure, have not tested yet, but it should work by just mounting the right app folders by typing:
Code:
su
fmount -b "Android/obb/xyz.myapp"
Where xyz.myapp the package name of the application is.

Please note that you have to create a start script in Tasker or Automate, otherwise you have to retype it everytime you restart your device. But with v0.9 this shouldn't be a problem anymore, soon™ :)
 
Last edited:

iG0tB0lts

Senior Member
Aug 4, 2012
401
162
0
Goa
www.sites.google.com
Wow, I've spammed your thank button but I'd also like to type out a thanks!
I have a 16GB internal storage so this is a huge help for me, I'm very grateful!! I'd love to donate toward the continued future development of this, if you could provide a method :laugh: :good:
 
  • Like
Reactions: Codebucket

Codebucket

Recognized Developer
Mar 12, 2016
369
493
78
Kraków
www.codebucket.de
Wow, I've spammed your thank button but I'd also like to type out a thanks!
I have a 16GB internal storage so this is a huge help for me, I'm very grateful!! I'd love to donate toward the continued future development of this, if you could provide a method :laugh: :good:
Thank you, stay tuned for future releases!

You can donate me via PayPal by using this link here: https://paypal.me/Codebucket/5
 
Last edited:

Codebucket

Recognized Developer
Mar 12, 2016
369
493
78
Kraków
www.codebucket.de
Great and very useful module. Could You explain step by step how to use it?
There is already a small example in the OP, currently it is only a command line tool which requires you to type it into Terminal Emulator with su, but maybe later I will create an app for easier use (or someone else :highfive:). Also this module is in it's very young stages of development, many things are planned, but work is in progress, so stay tuned for more! :)

To contributors, I've opened an issue where we can discuss features and how to achieve them. I already have found a problem to work on, so maybe you could help me out :)
https://github.com/codebucketdev/magisk-foldermount/issues/1#issuecomment-295399213

Ah, and thanks for any support I received today, I appreciate it very much! <3
 
Last edited: