yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] felixdd:
Sorry for noob question. I searched and couldn't find any obvious solution for this.

Phone: OnePlus X, stock OxygenOS 3.1.4,

Root: Magisk v18.0

BusyBox: Magisk BusyBox for Android NDK 1.29.3

Problem:

Foldermount links are not always triggering on reboot. I have to manually go into to re-mount them from time to time. No errors are thrown. No green SUCCESS window popup. I suspect it's more the fact that something's not triggering on boot. On the other hand, there's been no issues with mounting partition 2 -- this is just isolated to FolderMount links.

It may not exclusively be an issue with Apps2SD because other programs (AccuBattery) also occasionally does not startup on boot. Kernel Adiutor (KA-Mod Reborn), however, reliably starts up.

Is there a way for me to prioritize Apps2SD FolderMount? It's mainly for WhatsApp's media contents

EDIT

: Possibly found the culprit -- Kernal Adiutor was set to have a 5 second delay on auto-boot. Setting it to 0s seems to have improved the problem. Finally, setting Apps2SD to show notification on boot seems to improve things further, to the point that it reliably re-mounts my folders.

What happened?
[Android Apps and Games] bossxxl:
can somebody help me i have this problem :unable to copy data unable to copy lib open error report

cp cant stat
[Android Apps and Games] salmaank6:
Please help me to load sdcard my apps on boot

#!/system/bin/sh

if ! applypatch -c EMMC:/dev/block/bootdevice/by-name/recovery:21049344:8ca32272f7e18c6036fec4ac27945e812bbea826; then

applypatch -b /system/etc/recovery-resource.dat EMMC:/dev/block/bootdevice/by-name/boot:14450688:b7a722c7cf8003efa70c4915096f22bc264005de EMMC:/dev/block/bootdevice/by-name/recovery 8ca32272f7e18c6036fec4ac27945e812bbea826 21049344 b7a722c7cf8003efa70c4915096f22bc264005de:/system/recovery-from-boot.p && log -t recovery "Installing new recovery image: succeeded" || log -t recovery "Installing new recovery image: failed"

else

log -t recovery "Recovery image already installed"

fi
[Android Apps and Games] francwalter:
Hello

I use Apps2SD Pro (vs16 code 160) on my ChuWi Hi10 Plus, which i rooted exactly to use Apps2SD, because the internal Storage space is low (only 8GB).

So I partitioned the 32GB SD card to 6 GB as 2nd with ext4 and the rest with fat32, good.

I moved all data (checked all checkboxes) of the bigger apps (all over 50 MB) to the 2nd and I had free over 2 GB now. Great.

But now after some days, I have only about 400 MB free on internal, without installing any apps, it goes less and less and I have the message "Internal storage space is low!"

Apps2SD does not report any error, shows me the successful linking of all these apps (15).

What can that be?

Is the system report of the free space is wrong?

When I look with tools (DiskUsage) this seems so. When I look with total commander it looks different, here I seem to have plenty of space when I add the size of the folders, but in general it shows the same wrong(?) little size.

Please help. Thanks. frank

EDIT: I found it myself. It was a huge ammount of logfiles, in dirs crashlogX and aplogX, which occupied nearly 4 GB of the /data/logs/ dir. I found that with DiskUsage app.

In the Terminal (su and mount o remount,rw /data) with rm -r /data/logs/aplog* and rm -r /data/logs/crashlog* I got rid of them.

Now I have back over 4 GB of free space in internal sd :)

Because I have never met anybody in any forum or group, who could sensefully read any of these system log files (me at very last) I consider them as absolutely useless for me anyway ;)
[Android Apps and Games] francwalter:
What is the best way if I want to use a bigger size SD-card and don't want to install all apps again?

I have at the moment a 32 GB sd with 6 GB 2nd partition (ext4), the rest is FAT32. But the 2nd partition is too small now.

I cannot move the linked apps to internal sd, because there is not enough space (this ChuWi Hi Plus 10 tablet has only 8 GB internal memory).

How can I do it?

Thanks, frank
[Android Apps and Games] hyborian:
Since you have more than 2GB 2nd partition, I am not sure if the last sentence below can be ignored, and just back up to PC anyway. Just try the backup option i guess.

from : https://www.apps2sd.info/faq

I want to change my SD card, do I need to unlink all the applications and link again to new sd card?

No. Copy the contents of SD card 1st partition (fat32) to OTG/PC and use the Backup function to backup SD card 2nd partition (make sure there's no error), remove the old card, insert new card, create two partitions if not already created, Delete mount script using "Delete mount script" option in "Link apps to SD card" left navigation menu, Create mount script using "Recreate mount script" option in "Link apps to SD card" left navigation menu, copy SD card 1st partition (fat32) backup into SD card 1st partition and restore the SD card 2nd partition backup using Restore function and you're done

Note: If SD card 2nd partition used size is more than 2GB use Phone storage to save the backup or any partition with non fat32 filesystem
[Android Apps and Games] francwalter:
Thank, I see, I can backup the 2nd with Apps2SD to the 1st, where I have enough storage space :)

Seems easy then. Hopefully it works, I am on it...
[Android Apps and Games] francwalter:
Exactly said, this is not 2GB but 4GB in size, when FAT32 is not anymore usable :(

I made the backup of about nearly 6GB to the FAT32 external sd (first partition of it) and it came down to nearly exactly 4GB, the size FAT32 can only handle (not 2GB).

On my Tablet I cannot use extFAT, it is not working, only FAT32 is working unfortunately.

So now I am stuck, because I don't have the space on internal sd and FAT32 on 1st of external sd. I cannot backup that nearly 6GB, because the backup is one single zip-file (as .appk file).

I try to restore it anyways but I am not in good hope.
[Android Apps and Games] vickybonick:
You can use a pc to copy files with permission and extended attributes from the partition. Permissions and extended attributes needs to be copied properly otherwise it'll not work. On Linux it's very simple but on Windows you'll have to use 3rd party software
[Android Apps and Games] francwalter:
Ok then i don't backup with Apps2SD, but just copy the 2nd to the Linux computer?

You mean i take the sd out of the phone, put it in the Linux and copy it?

The backup feature of Apps2SD is not very useful, i consider now, because it only helps with file system of 1st not FAT32 when files on 2nd are less 4gb. But files on 2nd less 4gb is not very likely as exactly that is the use case of Apps2SD, to have a lot of space in the 2nd.

Or did i understand wrong?
[Android Apps and Games] francwalter:
I copied it now with Linux (an Ubuntu 16.04 vm) in VMware, but that didn't work neither. Apps2SD cannot recreate the script, says:

And repair didnt work neither:

But reboot didn't change things:

Now I unlinked as many apps till the 2nd had less than 4gb (yes, this was possible) and try again to backup the 2nd...
[Android Apps and Games] francwalter:
OK, that did the trick:

I unlinked as many apps till I got less than 4 GB on the 2nd partition (of the old sd)

Apps2SD-Backup of the 2nd partition to the 1st partiton (on the old sd)

Delete the Mount script

Change sd card old out, copied the 1st partition in PC (windows) to HDD.

Put the new sd in my Android device

I partitioned the new sd with Apps2SD and not with Mini Partition Tool (from Windows OS)

Put the new into PC and copied the 1st partition of the old (with backup of 2nd) to the new 1st partition

Put the new sd in Android device and recreate Mount script

Restore the backup of 2nd to the 2nd (of new sd)

Now it works again with 128 GB SD-Card (~100gb 1st, ~20gb 2nd)

The caveat was the partitioning. It did not work for Apps2SD when I partitioned it in Windows with the Mini Partition Tool (free version), seems to be some incompatibilities, either Apps2SD is not doing defaults or Mini Partition Tool. Or I did something wrong, which is very unlikely ;)

I should have tried it in Ubuntu (vmware's) with Gparted.

:)

EDIT: the joy was of short time, now the sd is not anymore recognised from my tablet. A lot of errors come up. Even Google play is not working anymore and i haven't linked it to 2nd :(

And the sdcard is not broken. I can read the FAT32 in Windows and both partitions in Ubuntu :( Maybe the tablet (ChuWi Hi10 Plus) has problems with this 128 GB sdcard despite of saying it can handle up to 128 GB.

My fault was to link Google Play Services (com.google.android.gms). I did it by mistake. I never want to link system apps, exactly for this reason, when the sdcard stops working, the important apps should still be working.

But I also did (not by mistake) link "Downloads" (com.android.providers.downloads), because it was so big. I didnt think enough, because "Downloads" is system. I didn't expect that the sd wouldn't be recognised by the system anymore. Bad luck and sillyness.

I had to delete the dead-end-links from /data/data/... to /data/sdext2/data/... and reinstall the Google Play Service from apkmirror. Google Play is back, but still I have errors.

Next thing I did was to copy under Ubuntu the folder sdext2/data/com.android.providers.downloads (with Terminal and sudo/su) to the old (and working) sd, 2nd partition. Then I had back the Download Manager and the errors where gone.

Next thing I will do is to install a 64 GB sd card (as above 1.-9.) and never link any system app to the sd. Never again. Never, never, never.

EDIT 2019-09-25: in the meantime I had tried a lot of bigger sized sdcards, but none of them was visible in the ChuWi. It seems that the ChuWi only detects sdcards with very low Class-size, e.g. Class 2 sdcards.
[Android Apps and Games] The Analog Kid:
Right after updating to Magisk V18.1 Apps2SD started not mounting second partition at boot anymore, requiring "soft reboot" all the time. Back when recently updated to V18.0, I briefly had the same issue, apparently solved by using "preinstaled busybox" which is the Magisk busybox module. I've tried changing the path (attached) as suggested somewhere else here before, but it makes no difference. Any hint?... BTW, what exactly is a "soft reboot" doing that is required to "fix" what is not done at reboot?
[Android Apps and Games] mielletseed:
for me it was the same, I solved it by moving the mount scripts manually to /sbin/.core/img/.core/service.d (/data/adb/service.d) and giving that files execution permission. Now the 2nd partition is mounted again.

dunno what changed within magisk...
[Android Apps and Games] bsports666:
How you do this? Can you explain more details I'm not so pro like you in this staff.... Is there any manual screenshot for this...Thanks
[Android Apps and Games] mielletseed:
sorry, I have not the time and am not in the mood to explain it more detailed. Since we are in the the XDAdevelopers forum here, I think that hint should be enough. Maybe someone else want's to make a step by step instruction.

Good luck!
[Android Apps and Games] bsports666:
Sure I understand. Of course i will try to find procedure for this. This is more than good that you say where is the problem and what to do. Best regards
[Android Apps and Games] martyfender:
Magisk no longer uses magisk.img with the new version of Magisk.

In Magisk Manager settings, make sure Mount Namespace Mode is set to Global Namespace.

I had to switch to the advanced mounting method when my 2nd partition was not mounted after updating Magisk. I believe this is not systemless, though.

Maybe your method would have also solved it for me without using the advanced mount script.

With the new Magisk, the paths have changed over what you wrote above, but the old paths are symlinked for backward compatibility.

My mount script is in /sbin/.magisk/mirror/system/etc.

post-fs-data.d and service.d are now in /data/adb, as well as modules and the magisk.db.

My device is on the latest unofficial build with the latest commits by [MENTION=4470081]topjohnwu[/MENTION]. I have other devices on today's latest Canary release, with the same commit levels as above.
[Android Apps and Games] felixdd:
mielletseed's method solved it for me.

I actually tried switching over the advanced mount like you did. After a few boot-ups, my phone would freeze on boot and I had to dirty-flash my ROM to get out of it.

FWIW, I did mielletseed's method without touching the namespace setting in Magisk. What does the namespace thing do anyways?
[Android Apps and Games] martyfender:
All I know is that is what [MENTION=6726362]vickybonick[/MENTION] recommended in the past for Magisk. On a recent update to Magisk, mine was changed to the default Magisk: Inherit Namespace and my second partition did not mount on boot, until I changed it to Global.
[Android Apps and Games] The Analog Kid:
First, you must use a file explorer, go to device root (represented by "/") then go to subfolder "data", then subfolder "adb". Inside "adb" you should find something like (attached) there you should see folder "post-fs-data.d"... open it and you should see file (attached). Now, what I did was not to move the ".sh" file (which is the Apps2SD mount script) instead, I just copied and pasted it in folder "service.d" then you change permissions as they were in "post-fs-data.d" and you must also change "service.d" permissions equally. Reboot and Apps2SD now should mount second partition at boot again. I've thanked [MENTION=5522383]mielletseed[/MENTION] for the tip. I recommend you do the same even if it doesn't work for you ?
[Android Apps and Games] The Analog Kid:
Deleted
[Android Apps and Games] bsports666:
Thanks for explain I really respect that. Best regards.

I try this but in folder post-fs-data.d there is nothing no file
[Android Apps and Games] The Analog Kid:
Look for "su.d"
[Android Apps and Games] zetsui:
What are the distdatnagages of formatting my card and adding ext2? Can is till access sd card from windows explorer? how abotu in android using root explorer?
[Android Apps and Games] 300:
When Magisk was updated to 18.x, Apps2SD stopped working (i see, not only for me). After the normal reboot, the folders (Folder Mount) were normally mounted, but the linked applications disappeared. After doing a soft reboot (as recommended), the linked applications were here, but the folders were not mounted.

Solution:

There in the settings of Apps2SD "Set the path for su.d/post-fs-data.d/service.d" specify the new path for the mount script as /data/adb/service.d , then recreate mount script as suggested for Magisk.

Now everything works fine.
[Android Apps and Games] martyfender:
Question: is there a good reason to use service.d for this and not post-fs-data.d?

Never mind, I found this in Magisk documentation:

I tested your method and it appears to be working for me.

Thanks
[Android Apps and Games] mielletseed:
that's cool - didn't know that there is a setting for that - thought this was hard coded :)

It works for me too (as expected).

Thank you!
[Android Apps and Games] hyborian:
Yes, I put scripts I want to run at boot in service.d, all good.

I don't use the linking feature of apps2sd anymore as my phones are all minimum 64gb already which is more then enough for my use so I didn't notice this problem.
[Android Apps and Games] The Analog Kid:
Well, a good reason for using "service.d" instead of "post-fs-data.d" is that the second is not working for everyone on V18.1... using settings new path, for some reason only works randomly (in my case) at boot. I've even copied Chainfire's "LiveBoot" app script to service.d (which became useless since V18.0) and it started doing it's thing again.
[Android Apps and Games] 123xdagsm:
[MENTION=6726362]vickybonick[/MENTION]

My FAT32 partition is encrypted(enable sd encrypting).

I linked some apps "external data folder" 1est partition"FAT32"

Why not encrypt data in the folder "storege/FAT32/Apps2SD" ?
[Android Apps and Games] bsports666:
Thank you! Finally one method that work for me!!!! You save my phone storage! Thank you again. Regards
[Android Apps and Games] moloko01:
Hello, I have moved my tab to LOS 16 (+ Magisk 18.1).

With APPS2SD I moved folders to SDCard again (without other partition and systemless Magisk) and after reboot folders are not mounted. So I have to mount manually after reboot. How to fix? Thank you.
[Android Apps and Games] bsports666:
Anybody know how to convert user app to system app in directory "/system/priv-app" and not to "/system/app" I would like do this but when I convert it convert me automatic to /system/app? I have android 6.0 magisk.

Because I have install Cerberus and in manual it say that if there is factory reset you got to convert to system app, but in priv-app directory. Is this really different where to convert user app? What is different from this two directory?
[Android Apps and Games] martyfender:
I use the Magisk Module: App Systemizer (Terminal Emulator) to make Greenify a system privileged app. You have to have a terminal app installed to choose the app you want to systemize and you are given the option to install it as a system app, or a system privileged app (priv-app).

With the current version, after installing it and rebooting it, from a root terminal, type systemize and hit enter to see the various options.

https://xdaforums.com/apps/magisk/module-terminal-app-systemizer-ui-t3585851

https://stackoverflow.com/questions/19868138/what-is-the-difference-between-system-apps-and-privileged-apps-on-android

Or a google search may yield better description.

Greenify, for example, has extra options when run in this mode.

I think this may be off topic for this thread, though as I am not sure what it has to do with Apps2SD.
[Android Apps and Games] bsports666:
Yes I know for this magisk module but not working I got empty apps list after i execute systemize
[Android Apps and Games] bsports666:
Yes I know for this magisk module but after I execute "systemize" I got empty list app. Yes this is nothing to do with apps2sd, but you can also convert user app to system app with apps2sd but it will not convert to system/priv-app. Only convert to system/app
[Android Apps and Games] martyfender:
Are you running the terminal in root mode by typing su then enter first before you enter the systemize command? once you do that you usually choose option 1 in the systemize menu,enter, then a list of installed apps comes up and you enter the app number, enter, then you select option 2 enter to install it as /system/priv-app. Finally, you must now reboot. In my case, since I already have Greenify systemized, it does not now show up in the app list.

If you have any problems with this, I would suggest that you ask in the systemize module thread for help, because I have not had any problems in doing the above steps.

If your app is already systemized, it may not show up in the app list and you may need to reinstall it as a user app first, which also means you my first need to remove it from system. You can also select apps by their actual package name in the systemize menu.

Another option, which I have done in the past to systemize and app involves copying the app folder from /data/app to /system/priv-app and setting the proper permissions for that folder and it's contents. The permission for the folder must be 755, the app in the folder must be 644, the lib folder, 755. There can be other folders in there, which I forget the permissions for.

Somewhere in the many greenify xda forums there are instruction or if you search for how the make an app /system/priv-app.
[Android Apps and Games] hyborian:
Try a different terminal emulator maybe ... I use this -> https://play.google.com/store/apps/details?id=jackpal.androidterm&hl=en_US
[Android Apps and Games] bsports666:
i try 3 other and none working... but i remember before time mybe 2 or 3 months ago i was using this systemizer and it was working but now with last update magisk not working anymore.... anyway dont bother i was install app to priv-app via twrp thanks to all for support...best regards
[Android Apps and Games] martyfender:
It appears your device may not be rooted and magisk is not installing properly.
[Android Apps and Games] bsports666:
All other apps that required root works so is not possible that is not root correctly
[Android Apps and Games] jcruzcruz35:
It is normal? It does not show the actual size of the file.

And, it shows the file in the two routes, Internal memory and first partition.

( /storage/emulated/0/Android/obb/com.tencent.ig

/storage/5C7A-C116/Apps2SD/Android/obb/com.tencent.ig )
[Android Apps and Games] hollal:
Hello all. I'm using a Moto G5 (Cedric) rooted with Magisk and using Magisk Manager 11.6 as at the time it was one of the only, if not the only, version that would work on this device. I looked into Link2SD but eventually found that it doesn't work on Nougat so I carried on looking at found this. I can't use any modules on Magisk because the internal storage is formatted as f2fs and there's some detail about Motorola's implementation that breaks something. Anyway, I recall that when I go into Titanium Backup it mentions it's rooted via Kagisk and things may not work properly but I've never had any issue with any root apps so far, touch wood.

I've not dabbled within the bowels of Android for a few years so consider myself fairly out of touch with anything. Last time was several years ago when I still had a Galaxy S2. Anyway, this thread is reasonably long so I thought I'd ask and hope for guidance, but essentially I'd like to know if anyone with the same device has got this working without any troubles? If so, are there any caveats to keep in mind?

Thanks in advance.
[Android Apps and Games] Skadis:
Hi,

I'm using a Moto G 2014LTE running an los 14.1 rootet with Magisk version 18.1 (Manager 7.0.0)

When trying to create a mount script I get the error message

mount: mounting /dev/block/mmcblk1p2 on /data/sdext2 failed: invalid argument
mount: mounting /dev/block/vold/public:179_66 on /data/sdext2 failed: invalid argument

I tryed the following:

set mount namespace mode to global in Magisk Manager

changed the path for su.d/post-fs-data.d/service.d to /data/adb/service.d in Apps2SD

yet I still get the same error message. My second partition is formated with ext4 and I continue to get android system information that my sd card is damaged.

Any help would be nice. Thanks ahead ;)
[Android Apps and Games] Herbie_2005:
Hi!

Your problem may be that Android already uses the second partition of your external sd card. Please check

Android settings --> storage.

If the second partition of your external sd card is already in use, remove it safely. Afterwards return to APPS2SD and try to create the mount script once more.
[Android Apps and Games] Skadis:
Hi,

thanks for your answer.

The storage is not mounted but it says that it is damaged.

Any other idea?
[Android Apps and Games] JudgeDread11:
If Android see the storage as damaged, doesn't that imply that Android mounted the storage. If the stage wouldn't be mounted it would not be possible to check whether it's damaged.

But since it is marked as damaged it doesn't allow access to it.
[Android Apps and Games] theodor.sudarja:
Hi;

Swap Button Greyed, and it says;

Swapon: Couldn't swapon 'dev/block/mmcblk1p4': Function not implemented

What's going on? What's wrong?

[IMG="Swap"]https://i.imgur.com/jjLmySu.png[/IMG]
[Android Apps and Games] ZUUUNNNNN:
It says "permission denied" when I tried to do sdcard speed test. Please help
[Android Apps and Games] Chocolatetrain:
Thanks very much man, finally it works!
[Android Apps and Games] Herbie_2005:
I think the kernel of your ROM does not support swap. Thus you cannot use it.
[Android Apps and Games] celloh123:
Wyenever I try to link an app it says "device or resource is busy. Try fixing this by repairing 2nd partition..."

I repaired 2nd partition and reboored but it doesn't work