yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] pfavayi:
MAKING FOLDERMOUNT WORK - THE CORRECT MOUNT POINT

In FOLDERMOUNT (And I suppose in every other aspect of apps2sd) apps2sd does not confirm that your own point is correct, so you could be using the wrong Mount point.

In folder mount in Android 10 you can mount the MicroSD as:

/storage/5EA6-DD5C or

/mnt/media_rw/5EA6-DD5C

There are probably other options too but I just used these two which are very common.

(My micro SD card is 5EA6-DD5C. Yours will be different.)

This /storage/5EA6-DD5C can be manually mounted in the application but cannot automount on boot.

But /mnt/media_rw/5EA6-DD5C can be automounted on boot so it is the correct mount.

So the correct mount point of a folder would be

/mnt/media_rw/5EA6-DD5C/00_MOUNTS/SD_CallRecordings

And not

/storage/5EA6-DD5C/00_MOUNTS/SD_CallRecordings

You can check the correct micro SD mount by using either

/storage/5EA6-DD5C or

/mnt/media_rw/5EA6-DD5C

As a mount point when mounting a folder.

See screenshots below.

**The show how to choose the correct mount path. not every path to the MicroSD can autmount on boot.

Afterwards the real Mount point should be a subdirectory of the root of the MicroSD***

IN SETTINGS:

Set su.d/post-fs-data.d/service.d should be

/data/adb/post-fs-data.d or

/data/adb/post-fs-data.d/service.d

Both work in Android 10. Alternatively you can use your root file manager to find where "post-fs-data.d" is on / and then set the path according to what you find.

Enable "force restart apps2sd service"
[Android Apps and Games] pfavayi:
check my post titled:

MAKING FOLDERMOUNT WORK - THE CORRECT MOUNT POINT

[MENTION=10400385]dimstrdan[/MENTION]

[MENTION=5085387]peterf81[/MENTION] [MENTION=6726362]vickybonick[/MENTION] [MENTION=1958376]mcmanuf[/MENTION] [MENTION=7274885]stormy1777[/MENTION] [MENTION=3149095]robrazil[/MENTION]
[Android Apps and Games] vickybonick:
You should not use SD card root as the source or destination always use a sub directory
[Android Apps and Games] dimstrdan:
I didn't use foldermount to mount the obb folder. I used link menu so I can get my obb folder auto link to 2nd partition. So I supposed the problem is I can't change the setting of internal obb folder location? Well I guess I will use foldermount to manually link my obb folder with some typing and creating folder. Thanks for your feedback! :)
[Android Apps and Games] pfavayi:
No I did not use the destination root as the Mount point. That is only Necessary to prove that the Mount path is automountable. Afterwards you choose a subdirectory.
[Android Apps and Games] evildog1:
How can I prevent apps2sd from auto unlink obb?

It happens when the app gets killed in the background. It's so annoying. I thought the app doesn't need to run in background

Nothing in error report
[Android Apps and Games] jakall:
Hi,

great tool, it works as expected in LineageOS 16 on Samsung S4 mini. Thanks a lot [MENTION=6726362]vickybonick[/MENTION]

BUT

Just after installing it, making first run and allowing root, the whole system UI starts to stutter a LOT, scrolling through app drawer, file manager, apps, gallery, just everything is lagging, like there were high CPU usage. I checked task manager and found that surfaceflinger uses a lot of CPU time.

After restoring backup from just before installing your app, UI works normally. I tried one more time to install but this situation repeats.

Why your app causes this?
[Android Apps and Games] :
What should be in custom dev path as well as internal and external sd card path according to the attached image? I get error no file or directory found while creating mount script.

Update- set those values correctly now mount script is created and 2nd partition is mounted but it does soft reboot after every reboot. Even entering /data/adb and post fs or service.d path still it does soft reboot after every reboot. My device is Redmi Note 8 Pro on MIUI 11 with Android Pie. Any solution/fix for it.

Update- Fixed automatically after few days.
[Android Apps and Games] zamar27:
Hi everyone. My Xiaomi smartphone came with Google apps preinstalled, and other Google products. I recently tried to move YouTube to SD Card with Apps2SD, it moved and worked OK. But after YouTube auto update from Google Store the updated release was auto installed back on Internal Storage. What can I do to keep it on SD Card?
[Android Apps and Games] zamar27:
Hi everyone,

Why app Data Folders (like folder with pictures in DCIM or docs) used by apps I tried to move are not listed in Apps2SD Link an App list of folders for the app? It looks like Apps2SD can't identify where certain apps store actual data collected by a user, such as PDF files or scanned images.
[Android Apps and Games] JudgeDread11:
Because dcim is not an app data folder.

App data folders are app specific and live in /data/data or internal storage Android/data

Dcim is a general purpose folder that can be accessed by all apps with storage permissions.
[Android Apps and Games] AnonVendetta:
[MENTION=7808224]zamar27[/MENTION]: It is because DCIM is located on internal storage and not in the /data partition, per se (technically they are in /data, but I won't get into that explanation). However, you maybe be able to use the folder mount function to bind them to the 2nd partition, instead of linking. But then there might be permissions issues. If you have an SD card in your device and the 1st partition is formatted as FAT32/exFAT, I would consider binding them to that location instead (those filesystems are permissionless so no issues there). In the latter case, the 1st partition would be your main partition on the SD card, and the 2nd partition would be for Apps2SD linking.
[Android Apps and Games] zamar27:
I understand that binding is available. I mentioned DCIM as the most typical, but generally every app saves files created by a user in it in some sort of folder in Internal Storage. My point is these files created by user activity with an app often take the most space, and require moving to SD Card as biggest priority compare to other (service) data folders created by the same app. Yet Apps2SD almost never identifies these app folders where user created files are stored. This makes the task of transferring an app to SD Card a bit senseless, since a user still must do manual search to figure out what are the biggest app data folders to move or bind.

So my question remains the same: why Apps2SD search algorithm always missing the biggest "user work" storage folders created by each app targeted to move?
[Android Apps and Games] JudgeDread11:
For apps that store data in the internal storage you can use storage redirect, to force an app to store all it's files in the apps private data folder.

Apps to SD doesn't activity monitor which files are used by which app. So it will only detect standard app data. An app with storage permissions can write files anywhere on internal storage.

The intention fort internal storage is for files which require cross app interaction or direct use interaction (like dcim). Unfortunately not all apps adhere to this. Storage redirection can help with these apps.

https://play.google.com/store/apps/details?id=moe.shizuku.redirectstorage

It does require Riru core (magisk module) and storage redirect (magisk module)
[Android Apps and Games] HJarausch:
Export Settings fails with permission denied on Android 9.

This occurs on the internal as well as on the external SD card.

Many thanks for a hint,

Helmut

---------- Post added at 06:27 PM ---------- Previous post was at 06:26 PM ----------

Export Settings fails with permission denied on Android 9.

This occurs on the internal as well as on the external SD card.

Many thanks for a hint,

Helmut
[Android Apps and Games] :
Apps2sd does not load apps until manual soft reboot.

My device is redmi note 8 pro, I have given correct mmc path using ls /dev/block. But my major minor number is different in apps2sd script it is 179,1 but for me it shows 179,33 in ls -l /dev/block. Can anyone help with those manual soft reboot need to load apps?

Update- deleting and recreating mount script fixed it but the problem of mount and soft reboot still persists.
[Android Apps and Games] BES96:
Apps disappearing after reboot

The apps disappear after reboot and I can get them back only by "restore apps (ext2)", I changed namespace seperation settings in magisk to Global but it didn't work, I mounted using the advanced method, also didn't work, what can I do?

Galaxy j7 nxt, rooted, custom rom using magisk latest version
[Android Apps and Games] martyfender:
In Apps2Sd settings: Set su.d/post-fs-data.d/service.d path. sometimes service.d path works, in other devices, post-fs-data.d path works.

Here is the path that is currently set on my Android 9 tablet: /data/adb/post-fs-data.d. Some devices may need: /data/adb/service.d.

With older versions of Magisk the service.d path worked for me, so you can try both, if one does not work.
[Android Apps and Games] bs2x:
This app fix internal problem on my ancient galaxy s2

Thanks
[Android Apps and Games] AnonVendetta:
Quick tips for anyone that is using Magisk and getting a mount error on boot:

1. Temporarily put Magisk in core only mode and reboot, this will disable Magisk Hide and all modules

2. Select "ignore systemless root" and "save script in system partition" in Apps2SD options (if you don't mind /system being modified)

3. Manually remount system as RW before creating script again

4. Delete mount script if you previously created it. Then recreate it again, choose the correct filesystem option (usually ext4), and select "advanced" option

5. Reboot, make sure you don't get a mount error. Reboot again to be sure

6. Disable core only mode, reboot, if no error then you are fine

In my case, my sdext2 partition was successfully mounted on boot, but I still got a mount error. I used the steps above to fix it. If thsee steps still don't work, try temporarily putting SELinux in permissive mode before creating mount script.
[Android Apps and Games] wilsonhlacerda:
Hi [MENTION=6726362]vickybonick[/MENTION] I know that long time you are not working on apps2sd anymore, but as you wrote last year that you would update it by November/December of 2019, I'd like to ask you now if do you plan that yet. It would be fantastic to have at least one more release with better Magisk support / compatibility and properly Split Apps handling!

I know current devices usually have huge internal memory, but Apps2SD is a fantastic app and lot of people use it with old devices + up to date custom ROM + Magisk yet.

Thanks!

---------- Post added at 04:54 AM ---------- Previous post was at 04:47 AM ----------

By the way, last year I wrote some improvement suggestions also. All them would be nice, but sure only maintenance to better support Split Apps and Magisk would be already a huge gift from you to all current users.
[Android Apps and Games] vickybonick:
I still plan to update the app but not getting enough time to do it. Hopefully I'll get some free time by September/October. I did note your suggestions earlier if they don't take enough time I'll implement them
[Android Apps and Games] zamar27:
Hello guys,

Pls help to figure out, what combination of Apps2SD Settings allows to keep on SD Card after update the full apps manually moved to it earlier by a user, while installing new apps to internal memory only?
[Android Apps and Games] martyfender:
By default, that should be set in Apps2SD settings. If not, uncheck: Auto link apps in settings.
[Android Apps and Games] zamar27:
If I only uncheck "Auto link apps", then the apps earlier linked to SD Card after update remain in internal storage, and only Data and Cache auto linked back to SD card. What extra settings should I choose to auto relink to SD Card all app components previous stored there?
[Android Apps and Games] martyfender:
Have you tried Link apps to SD card, on the right menu, restore apps(sdext2, 3 or 4) ? You then may have to relink the app. In Apps2SD settings, I also have set:

Set su.d/post-fs-data.d/service.d path to:

/data/adb/post-fs-data.d

some have better luck with:

/data/adb/service.d

Sometimes you must delete and recreate the mount script after doing this. And, of course, reboot.

This is on my Onn 8, Android 9 tablet with the latest Magisk Canary debug build.

My SD card has the first partition as fat32 and the second partition as ext2. I used the Apps2SD partition tool to create the partitions. This creates 3 partitions: the first as fat32, a second as meta partition for Apps2Sd and a third, ext partition.
[Android Apps and Games] :
Mine soft reboot required every reboot for missing apps got fixed after update to magisk 20.4 now apps are not missing and partition is mounted after every reboot.
[Android Apps and Games] pfavayi:
Check again.

I think mounting on boot depends on the correct Mount path of the MicroSD.

Generally that path is in /mnt/media_rw/
[Android Apps and Games] rei_hunter:
Right so, my phone's a Nokia 5, 8.1 64bit.

Before yesterday, my phone was running on Magisk 16.1 and Magisk Manager 6.1.0; Apps2SD was working well (Meaning sdext2 was getting mounted every 2nd reboot)

Now, i used this method Issue 2629 on topjohnwu's magisk on github (Still a newbie)

to update my magisk version from 16.1 to a canary version and then to 20.4.

Magisk Manager is a Canary Build.

Right, the problem, Apps2SD becomes a bit more "crashy" than usual.

Installed BusyBox from 20.4's library of modules.

Hence, when i rebooted the phone normally, i get a sdext2 mount error, and prompts me to Yes to mount the 2nd partition/sdext2 or no to just leave it be.

Sure enough, i click on yes, Apps2SD blinks for a second into a "working" loading type scenario, and then the phone just softreboots.

During this launch up, sdext2 is mounted, but the SD Card becomes "ejected". Everything becomes super slow when it comes to accessing the SD Card (or actually even running). Games work fine at least. Android takes a while to load, like 10 more seconds than usual. Play Store can see what apps are installed, but Android itself can't display my drawer fast enough. Takes a while to load.

Settings -> Storage tells me the SD card has been ejected.

A restart allows me to get into the SD card again, but no access to sdext2/2nd partition, and thus missing apps from my apps drawer.
[Android Apps and Games] Dizkal:
My Micro SD card is not working when I used the erase sd card in the partitioning tool. How do I fix this or is it gone?
[Android Apps and Games] Secuential:
This saved me. I'm using latest Magisk (20.4) and /data/adb/post-fs-data.d worked for me, thanks a lot.
[Android Apps and Games] ajsalas:
FolderMount unmounting some folders

Hi everyone, I have used previously Apps2SD with great success, but after the update to Android 9 I'm having a lot of issues mounting the folders. I only use Apps2SD as folder mount since I don't have a second partition, but every time I restart (and even randomly after manually mounting all) some of the folders get unmounted. I have uninstalled and reinstalled, deleted and recreated the mount script, but it's not working. Have you guys experienced something similar? I'm rooted with magisk. Thanks.
[Android Apps and Games] stormy1777:
[MENTION=7487940]ajsalas[/MENTION] , the app is not fully adopted to android 9, by end of year maybe, until then best workaround found in this post:

https://xdaforums.com/showpost.php?p=80697949&postcount=5368

u have to edit files and set up a separate mount script, maybe others know better, that's how got mine to work :) i can't go beyond that post, maybe others can help, short on time right now :)
[Android Apps and Games] Ram.h:
i've recently updates to magisk 20.4 from 16.0 ( fresh install ) and when i try to create the mount script it gives me an error saying "unable to determine su.d path" can anyone help me fix this problem ?
[Android Apps and Games] Child's Play:
First delete mount script then go to settings and select "set su.d/post-fs-data.d/service.d path" then type "/data/adb/post-fs-data.d" After that, recreate mount script and select "I've su.d support on my device/I use Magisk interface"
[Android Apps and Games] pfavayi:
Try this

https://xdaforums.com/showpost.php?p=81297337&postcount=5402

---------- Post added at 05:27 AM ---------- Previous post was at 05:26 AM ----------

Try this.

https://xdaforums.com/showpost.php?p=81297337&postcount=5402

[MENTION=7274885]stormy1777[/MENTION] [MENTION=7904443]Ram.h[/MENTION] [MENTION=7808224]zamar27[/MENTION] [MENTION=7441667]AnonVendetta[/MENTION] [MENTION=10683427]rei_hunter[/MENTION]
[Android Apps and Games] t375:
Hi! I have Samsung Galaxy A3 (2017), Magisk root. I have formatted my SD card into two partitions, one ext4 (for linking the apps) and one exfat (for photos/media), and I have managed to use Apps2SD for linking the apps to the ext4 partition. The only issue I am getting is that the exfat partition is recognized only every other boot of the phone, and when it is recognized, I get the notification "SD card. Tap here to transfer media files"

When it is recognized, mount command has the following output, related to the sd card:

/dev/block/vold/public:179,33 on /mnt/secure/asec type sdfat (rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,fs=exfat,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,utf8,namecase=0,adj_req,symlink=0,bps=512,errors=remount-ro)
/dev/block/vold/public:179,33 on /mnt/media_rw/3764-3531 type sdfat (rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,fs=exfat,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,utf8,namecase=0,adj_req,symlink=0,bps=512,errors=remount-ro)
/mnt/media_rw/3764-3531 on /mnt/runtime/default/3764-3531 type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=1015,mask=6,derive_gid)
/mnt/media_rw/3764-3531 on /mnt/runtime/read/3764-3531 type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,mask=18,derive_gid)
/mnt/media_rw/3764-3531 on /mnt/runtime/write/3764-3531 type sdcardfs (rw,nosuid,nodev,noexec,noatime,fsuid=1023,fsgid=1023,gid=9997,mask=18,derive_gid)
/dev/block/mmcblk1p2 on /data/sdext2 type ext4 (rw,seclabel,noatime,data=ordered)

When not, only the last line:

/dev/block/mmcblk1p2 on /data/sdext2 type ext4 (rw,seclabel,noatime,data=ordered)

Apps2SD shows in Storage info, respectively:

or

How can this be fixed? Shall I modify the mount script somehow?
[Android Apps and Games] shasikala:
.hi
[Android Apps and Games] Nintenking:
Hello, I've been trying for a day to set up Apps2sd (also tried Link2sd but didn't work as well), I think I tried every suggestion at this point.

I partitioned my SD card as Fat32/ext2 and then tried Fat32/ext3 but so far neither has worked with the 2 apps I used; the problem is that I cannot manage to mount the second partition of the sd.

I'm using Magisk 20.4 and in the Apps2sd settings I set up the "/data/adb/post-fs-data.d" path but it keeps saying "operation not supported" when I try to recreate the mount script.

if it can help I'm running Leedroid Rom (8.0) on my HTC 10, don't know if Oreo isn't fully supported perhaps.

Any other information that could be useful I'll be glad to provide, thanks in advance to anyone willing to lend a hand here!
[Android Apps and Games] Child's Play:
Try ext4
[Android Apps and Games] Nintenking:
Thank you, I feel like a dumbass for not having even tried it, works perfectly fine now! Finally got to free some space from the internal storage :D

---------- Post added at 04:41 PM ---------- Previous post was at 04:35 PM ----------

I was playing around with the Folder Mount option: I tried to bound the DCIM/Facebook folder (in which the facebook app saves all the images) from the internal storage to another custom folder in my Sd card (in the Fat partition obviously).

I succeeded in doing so, every time I save an image from Facebook I find it in both the internal storage folder and the sd card folder; now what I would like to do is for the images to be automatically redirected and be saved only in the sd card folder (and not only a "copy"). Is this possible with the Folder Mount option if Apps2SD or not?
[Android Apps and Games] pfavayi:
mount means the contents appear in A when they're actually in B

In your case the contents are in A and they are COPIED to B

All you need to do is move the contents from A to B, delete the contents of A and mount the contents of B to A. And all of this can be done bye ticking this option in the screenshot below.
[Android Apps and Games] pfavayi:
Take a look at this. it might help

https://xdaforums.com/showpost.php?p=81297337&postcount=5402
[Android Apps and Games] t375:
Thanks. I tried to get some inspiration from that post, but I am failing. I am not using foldermount, but if I try, I obviously get the same issue. Yes, my SD card is supposed to be mounted on boot onto /mnd/media_rw/1234-5678 ... but it is not :)

I can actually mount the card manually from the terminal via sm mount, but more precisely it looks like this:

a3y17lte:/ # sm list-volumes
private mounted null
public:179,32 unmounted null
public:179,33 HiddenMount 8E3B-FA6A
emulated mounted null
a3y17lte:/ # sm unmount public:179,33
a3y17lte:/ # sm mount public:179,33

So, I have this "HiddenMount", whatever it means...
[Android Apps and Games] pfavayi:
Provide your folder Mount screenshot like the one below.

Look at my sm list-volume output.

In foldermount you can mount the sd in many ways. But for it to automount on boot there is one way.

I only use foldermount and so that is where my knowledge and experience are limited to.

I don't see any need for an ext4 partition on micro SD. I can foldermount any folder on internal storage to the MicroSD. So most, if not all, data on internal storage is transferred to the micro SD. My internal storage is now free for applications only. So I won't have a reduction in performance because of transferring applications to the micro SD.
[Android Apps and Games] t375:
Thank you for your reply. Unfortunately it seems that our use cases are different: in my case I was running of the internal storage because of too much space occupied by the APKs themselves, without any data, so I had to use the Link2Sd functionality. So I have an ext partition, so that I am able to use the symlinks. So, my foldermount list is.. empty :) I can't share the screenshot.

The sm list-volumes output is as follows:

a3y17lte:/ # sm list-volumes
private mounted null
public:179,32 unmounted null
public:179,33 HiddenMount 8E3B-FA6A
emulated mounted null
a3y17lte:/ # sm unmount public:179,33
a3y17lte:/ # sm mount public:179,33
a3y17lte:/ # sm list-volumes
private mounted null
public:179,32 unmounted null
public:179,33 mounted 8E3B-FA6A
emulated mounted null

So the only change is HiddenMount -> mounted
[Android Apps and Games] t375:
Ok, I did some research and it seems that HiddenMount is the Samsung specific volume mounting option, and from the location (https://github.com/fonix232/SCoverR...ung/android/security/SemSdCardEncryption.java) I assume, it means something like "The SD card encryption state is unclear". I guess it is because Apps2SD waits for the second partition to be mounted, and it might conflict with some other system waiting for the first partition. So, I "solved" it with creating a wait-and-remount script in /data/adb/service.d:

#!/system/bin/sh
CNT=0
while [ ! -d /mnt/media_rw/8E3B-FA6A/ ]; do
CNT=$(( $CNT + 1 ))
sleep 1
if [ "$CNT" -eq 30 ]; then
break
fi
done
sm unmount public:179,33
sm mount public:179,33

The "Tap here to transfer media files" notification is annoying, but I see it now as an indication of "SD card mounted properly" :)
[Android Apps and Games] Child's Play:
Brilliant! Since you know how to write a script, I need to write a script to mount 2nd partition by UUID but I don't know how to do it. The issue is 2nd partition shows as sda2 then it shows as sdb2 after every reboot on the Fire TV Stick. The sda2 and sdb2 keep switching that prevents 2nd partition from mounting. Is BusyBox required for writing a script or is it already included in Magisk? I don't know