I'm trying to create a folder shortcut inside another folder. I tried Es file explorer but it shows option to add shortcut to the homescreen only.. Does anyone know how to create a folder shortcut inside another folder in android.? .. thank u in advance.
To create a "shortcut" to a folder on a file system, you can use symlinks(symbolic links) or bind mounts. You can use an app(e.g. Apps2SD) to do that, or run the command through adb or terminal emulator.
1. Using Apps2SD
You can use an app like Apps2SD to create symlinks(symbolic links) or bind mounts.
You can go to its official site to look for some more help. But according to my experience, you need to be careful about the SD card partition whose underlying filesystem format is
extFat(Type 1), in contrast with the internal storage or the 2nd partition on the SD card created by Apps2SD, whose filesystem could be
ext3 / ... (Type 2).
You can freely create symlinks from a place in Type 2 to another place in Type 2.
But when it comes to file system Type 1, you might have to use bind mounts, which is not exactly a shortcut. For example, using
rm -r on a parent folder may have different consequences, as mentioned here:
I should warn against
rm -ron a
mount --bind. With a
ln, it removes the link, whereas for a
--bind, it has the same effect as running the
rm -ron the target. Not good, as I found shortly before rebuilding one of my servers...
You can, however, create a mount bind using Apps2SD, with the source being in the internal storage(Type 2) and the destination(where the data really is) being in the 1st partition of the SD card(file system of Type 1), in order to save space in the internal storage.
The usages of Apps2SD mentioned above are my personal experiences. You will have to try it yourself if you want to use it differently.
2. Using shell command or shell script
You can do it yourself using commands like
mount --bind to create symlinks or bind mounts, respectively.
Other info that might help(provided by Irfan Latif):
How can I make a symlink (or equivalent) inside /storage/emulated/0? - Android Enthusiasts Stack Exchange
This is about how to make a "shortcut" in the SD card. Note that
/storage/emulated/0is the SD card.
PS: Below is my previous answer to this question. I misunderstood this question as the OP was trying to create a folder shortcut inside another folder on the desktop.