yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] casouzaj:
You can rename any of them the way you want.
[Android Apps and Games] jospokoke:
Folder mount auto mount after reboot

Hi, is there any way to make folder mount auto mount after reboot? I use the latest apps2sd n magisk v20..
[Android Apps and Games] martyfender:
I just got an Onn, Android 9 tablet and have it rooted with the latest Magisk Canary.

How many of you are successfully running this app devices with Android 9?

I did search the thread briefly for posts concerning Android 9, but never confirmed that the users got it working in Android 9.

Thanks

I installed Apps2SD on the above new device last night, and so far, after a couple of minor hicupps, which I solved, it has been working fine. If I encounter any issues in upcoming days or weeks, I will post back here. So it is confirmed working on my Onn 8, Android 9 tablet.

With Magisk Canary v20001, Magisk Manager v246.
[Android Apps and Games] martyfender:
The only issues I have encountered in the last couple of days were apparently due to other boot scripts in Magisk post-fs-data.d and service.d folders, blocking the running of the Apps2SD script. The end result was the second, ext2 partition not being mounted at boot. This with the latest Canary build of Magisk.

The MagiskHide Props Config module also blocked the running of the script on My brand new, Onn 8, Android 9 tablet.

I may do a removal of Magisk and reinstall to see if it fixes it.
[Android Apps and Games] josepz:
I had to restore the rom of my xiaomi phone from a TWRP backup i did yesterday, and after that, all the apps I have in sd aren´t showed anymore. I am not sure what I did in app2sd, but it it said me to reboot the phone, and the apps was here again!. But after next power off at night and power on again this morming, the apps aren´t not here again.... Please, could you let me know the steps to follow? thanks.
[Android Apps and Games] martyfender:
Have you tried recreating the mount script in Apps2SD and the restore apps function?

It has been a while since did a restore with TWRP but I believe I also had that issue with apps in the past, when restoring from a TWRP backup, however, it has been a long time. I usually just restore my stock or factory reset, then start over, fresh. I have had much fewer problems doing it that way.

I my Nextbook Ares 8A's do not have a stock rom download, so I have to depend on a TWRP backup of stock created when the device was brand new.

By the way, what Phone, rom and Android version do you have?
[Android Apps and Games] josepz:
I have a Xiaomi Redmi Note 3 pro, Europe official Miui 10 rom (android 6 I think). I tried to restore apps but every time I reboot the phone the apps are gone again...
[Android Apps and Games] martyfender:
Is the second partition being remounted on boot? Are you using Magisk?

If you are using Magisk have you tried adding In Apps2SD settings: Set su.d/post-fs-data.d/service.d to either:

/data/adb/service.d

or:

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

The difference is that they each run at different stages in the boot process. I use the first above options. I believe some have better luck with the second option.

I had to remove MagiskHide Props Config Magisk module on my new Android 9 device, because it is apparently blocking Apps2SD's scripts. Therefore the second partition was not being mounted and my apps also disappeared. The author of the module is investigating to confirm it is his module, or not.
[Android Apps and Games] stormy1777:
was told apps2sd was not yet tested/"certified" on Pie (Android 9), in my case timeout in mount script (1200) was not always enough, had to increase a bit; also the 16MB placeholder partition caused the block device number to be off by one.. reported to author and fixed that on my device, now running with own custom mount script named differently so it won't get overwritten :)
[Android Apps and Games] martyfender:
[MENTION=7274885]stormy1777[/MENTION]

Could you share how you did this, because I don't see an option to do that in Apps2SD settings. Mabe you could share the script here as an attachment?

Thanks
[Android Apps and Games] martyfender:
Thank You. I realize you are traveling, so you will not see this for a while, but on my new Android 9 device, Apps2SD is working perfectly, as far as I can tell. However, My older, Android 6 device loose the mount on a wake from a long doze, every 2-3 days. I have removed Apps2SD from battery optimization, and some others also, such as autorunservice, external storage and media storage. but that does not help. I have greenify with aggressive doze set and I shut that off, but I believe it still happens. I may now totally uninstall Greenify to see if that makes a difference, but I don't hibernate very many apps, and certainly not any system apps.

I may also put my settings script in /data/adb/post-fs-data.d, instead of /data/adb/service.d to see if it makes a difference.

Thanks

If anyone else has any ideas, let me know.
[Android Apps and Games] markintoshplus:
i need help please how to revert sdfix the internal storage of my phone went missing after i did the sdfix and I can't download apps properly. I've tried to use the revert sdfix settings in the action menu but it only says there is no backup.
[Android Apps and Games] stormy1777:
I'm not sure if sdfix is relevant to newer devices/phones.. maybe try 'restorecon -R /...' on the storage location, it might help, at least it should not hurt.. careful, it's a rooted device, so, save state before changes.
[Android Apps and Games] AnonVendetta:
A recent issue I've noticed: Apps2SD doesnt fully support linking apps that are installed as split APKs (what Google calls them, and it is the format that many Play Store apps are now using). The base apk gets linked but the split config apk(s) do not. Apps still work fine after being linked. I do not expect this to be fixed, since Apps2SD is basically discontinued.

Which brings me to my next question:

[MENTION=6726362]vickybonick[/MENTION]: It's nice that you've given out the pro version for free as a farewell gift. But, would you consider fully open-sourcing the code so others can improve it? As Android changes there may come a time when Apps2SD fails to work as expected. Link2SD is the only alternative we have, and even after the most recent update last year, it still does not support binding files (ex. obb files, etc) on SDCardFS. Linking works for apps in /data that are linked to /data/sdext2, just not binding. If using FUSE then binding works fine.

Thanks!
[Android Apps and Games] :
Restoring app causing an issue. Screenshot attached. The problem is for some reason base.apk is not accessible. So I installed it manual and then restored it worked. Can anyone please explain how the back up and restore works w.r.t aapk files? Also is it possible to extract and manually install these backups ?
[Android Apps and Games] :
This is the screenshot.

My guess is that the app2sd does not have permission to install unknown app.
[Android Apps and Games] vickybonick:
Ignore it
[Android Apps and Games] vickybonick:
It seems like a selinux issue. Either set it to permissive before restore and change afterwards or Install the apps first then use the restore option
[Android Apps and Games] :
The selinux is enforcing.

Can you explain me the process of backup ? Or manual restore ? The reason is most backup apps are not able to restore google authenticator. This is the only app which was able to restore google authenticator with all the codes as it is.
[Android Apps and Games] JudgeDread11:
I use titanium backup and Google authenticator get restored just fine.
[Android Apps and Games] vickybonick:
Method 1: Set selinux to permissive (run

setenforce 0

in root shell), restore appk file then set selinux back to enforcing(run

setenforce 1

in root shell)

Method 2: Install all the apps individually then restore appk file. The process is failing during installation part so if you install the app before restoring it'll work

Method 3: Use Titanium backup
[Android Apps and Games] :
I wanted to know the logic behind the backup procedure you follow. As I heard in some post above that this project is now no longer will be updated. I hope could write shell script to backup and restore by myself.
[Android Apps and Games] leovince23:
flashing a new custom Rom

Hi there. I've been using apps2sd on my redmi4x for more than a year already. I'm running on MIUI EU 10..5 9.6.27 based on android 7.1.2. I have two partitions on my sd card, one is ext4 where i link my apps.

So, i'm planning to flash Lineage OS as my current rom is beginning to lag on me. Is there a way i can flash a new custom rom and restore most, if not all of the apps linked to my sd card?

If so, how? Sorry for the lengthy post. Thanks in advance :):):)
[Android Apps and Games] DroidJP:
I have stopped using apps like app2sd link2sd due to the nature of android. Titanium backup is not as good as it once was despite of the recent update. I manually created .sh scripts that does this exact same thing.

To get around SElinux though, you must edit the selinux labeling context and add it to the scripts otherwise, you won't get anywhere and apps will crash.

I managed to link the entire data/app folder from internal to 2nd partition of the micro sdcard and now google play store automatically installs its apps to the 2nd partition. Basically, set it and forget it. Problem solved lol.

And i am also thinking of linking the data/media/obb, or even the entire data/media folder to the 2nd partition as to set it and forget it too lol. The only thing i will leave internally is the data/data/ and data/user_de since the data partition is encrypted.

That is where my backup and restore scripts comes in handy lol.

But remember, you must know how to have SElinux on your side or else you will go insane and all of this be for nothing. For my device, there is no such thing as permissive. Google has removed the option in my device kernel. I was reading if i want selinux permissive, the boot.img would have to be recompiled from source.

But now that i figured out how SElinux does things. There's no need to set it permissive anymore. If it can't be disabled, manipulate SElinux to work in your favor. Once you do that. Now you can link your apps, data including the whole emulated sd card anyway you want. Endless methods of linking :)
[Android Apps and Games] robrazil:
Problem:

After to install Magisk Magisk-v20.1(20100).zip and MagiskManager-v7.4.0.apk, the Apps2SD stopped mount 2nd partition. The link of applications disappeared and a few seconds after start the phone, the "soft reboot" did a restart of the phone mounting the 2nd partition, doing the aplications linked go back.

Before, I used the Apps2SD with superSU normally, set to give permissions on boot.

Device: Samsung Galaxy J1 Ace (SM-J110M)

Android: Lollipop 5.1.1.

Processor: arm-v7a

API level: 22

Solution:

1- In the "Settings" of Apps2SD, on the "Set the path for su.d/post-fs-data.d/service.d", I specify the new path for the mount script as

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

;

2- In the "Link apps in the SDcard", on the left menu, I choose recreate mount script as "I've su.d support on my device/I use Magisk interface" mount method";

3- Restarted the phone and worked right.
[Android Apps and Games] vickybonick:
It has been removed in v5.1.1
[Android Apps and Games] vickybonick:
Did you format your 2nd partition recently? what is the 2nd partition file system?
[Android Apps and Games] keysikasuy:
Yes sir I reformatted my 2nd partition recently
[Android Apps and Games] vickybonick:
Using which tool? if possible format again. No need to create, you can select format option and 2nd partition checkbox
[Android Apps and Games] keysikasuy:
Using the built in tool sir. Can you send a screenshot of what should I check. I am using a 16gb sd card thanks
[Android Apps and Games] vickybonick:
See attached. Select file system as f2fs if it is supported, or ext4 or ext2
[Android Apps and Games] pollazht:
Hi,

I just updated Google docs with Apps2SD version 5.1.2.

Before updating I checked the app and it was linked.

After updating no notification showed up and no linking happened.

Also app didn't get linked after a reboot.
[Android Apps and Games] vickybonick:
Is auto linking of newly installed app working?
[Android Apps and Games] niltonsojr:
Hey Vicky!

I'm having trouble to partition my sd card (64 gb). I've tried to create a 40gb, and a 20gb partitions, but the tool created a 144mb, +/- 63gb partitions. And if I try to partition with APartition or MiniTool I get an error: "can not mount partition"
[Android Apps and Games] vickybonick:
Can you try with gparted? It should work. If you don't have gparted then delete the sd card partitions(keep it unallocated) and create the partition using the inbuilt tool and see if it works.
[Android Apps and Games] niltonsojr:
Sorry, this still not works

I've tried to delete all partitions and create new ones with App2SD. It doesn't work. The App2SD ask me to reboot after creating the partitions and, after rebooting, ask me to reboot again and again in an infinit loop... The phone is a Moto E, XT1021, rooted with KingRoot, KitKat 4.4.4.
[Android Apps and Games] vickybonick:
Then use gparted to create partitions
[Android Apps and Games] vickybonick:
Tutorial attached to the OP
[Android Apps and Games] alrashad:
test
[Android Apps and Games] feromgar:
Great app! I got almost everything working fine, I do have a problem:

I have Xposed framework and I'm on CM 12.1 (Official, Xperia SP)

Some apps give me a "I/O error (5) resynch error: some files/attrs were not transferred (see previous errors) (code 23) at jni/main.c(1052)" when I try to link dex, or the apk. It seems to be a random thing.

I revoked SU access to the app, granted it again. Didn't fix it. Uninstalled and reinstalled busybox. Didn't do anything either. Any ideas on how to fix this?

Edit: Uninstalled XInternalSD (Xposed Module). Problem still persist.
[Android Apps and Games] vickybonick:
Can you send me the error report
[Android Apps and Games] feromgar:
Sure! thanks in advance!

(I took some screenshots and zipped them)
[Android Apps and Games] vickybonick:
You can send the full error log from within the app. It's a menu option in AppList
[Android Apps and Games] feromgar:
Done!
[Android Apps and Games] vickybonick:
It looks like it has something to do with your 2nd partition file system. Can you use f2fs(if you kernel supports it) or ext4
[Android Apps and Games] a231X:
My device is a Samsung Galaxy S7 Edge (G935F)

I have formatted correctly my 128GB SD Card (An EXFAT partition and a F2FS partition), but when i use APPS2SD to try and create the mount script i get an error: "mount: mounting /dev/block/mmcblk0p2 on /dat/sdext2 failed: No such device", i am using TWRP. Before i create the mount script the app says i am using a systemless root, so i select "no" when it asks if it can edit the system partition.

Also, when i format the second partition as EXT2, the phone ALWAYS says that my SD card is corrupted and every app i have moved to my sd card using the native android function stops working. When i format the second partition as EXT3/EXT4/F2FS it works correctly.

What can i do to fix these issues? I always have a lot of free space on my SD card but my internal storage is full 24/7 and i can' t install any new apps, APPS2SD would fix many of my issues :/
[Android Apps and Games] mcmanuf:
[MENTION=6726362]vickybonick[/MENTION] - Thank you for this wonderfull tool, which I have just discovered.

I have an Sony XZ1c with Android Pie (9.0) (stock firmware), and Magisk Root 20.1.

I have 1 major wish for this tool.

I would like to successfull folder mount/bind folder between internal storage and external SD card. Specifically for WhatsApp media folder, which is filling up very quickly.

So far the tool can successfully bind mount internal storage to external SD.

1) WhatsApp can view/read older downloaded material, ie. pictures and videos. This is very good. So the read from the external SD is working perfect.

2) WhatsApp can write to ext. SD when sending material. This is good.

3) WhatsApp cannot write recieve media files anymore, and have stopped downloading any new material. This is not good, which prevents me from using the program to recieve media.

Any idea how to progress from here and solve item 3. Specially because item 1 and 2 works great??

These are my bind mounts.

Source folder:

/storage/emulated/0/WhatsApp/Media

Destination folder

/storage/6534-3933/.WhatsApp/Media

I would be very gratefull to any help, as this is my main reason to root my phone.

So I am devastated it does not work.

I have added output from /proc/mount on the following page.

http://snippi.com/s/ce13u9q
[Android Apps and Games] pfavayi:
Why is your WhatsApp folder on the MicroSD hidden ?

I think you should try

/storage/6534-3933/WhatsApp/Media

Also try in settings:

ignore Mount namespace error

force restart apps2sd service
[Android Apps and Games] mcmanuf:
Hi.

Thanks for the suggestions.

I tried them all with no luck unfortunately :(

I am not understanding this issue. How come WhatApp can read perfectly media from external SD.

And also can write to the external SD when i send material, it is correctly stored on the SD card. The only thing not working is when recieving media and storing on the SD.
[Android Apps and Games] pfavayi:
maybe the transfer is not done immediately.... App2sd might Periodically transfer the files to micro SD.

try and check after 30 minutes

But how can you tell that the file has not been transferred to the micro SD ? When the folders are mounted everything appears like it was in the WhatsApp folder on internal storage - so you cannot tell a file which is in the WhatsApp folder from a file which is one the MicroSD.
[Android Apps and Games] mcmanuf:
For sure there is a different behaviour between internal and microSD. The 30 minutes does not help.

When on internal, the file gets downloaded straight away on storage, and you can press and enlarge an image. When on external microSD via apps2SD, the file cannot be downloaded at all. There is a "down arrow" the middle of the thumpnail of the recieved image, and when pressing it, nothing happens. So I can never enlarge/open a recieved image, because its somehow not allowed to be stored on the SD card.
[Android Apps and Games] vickybonick:
Does this happen with only WhatsApp or other apps as well?
[Android Apps and Games] mcmanuf:
[MENTION=6726362]vickybonick[/MENTION]

I have only tried with WhatsApp, as this is the main app I have the biggest issue with regarding internal disk usage.

I have added two pictures before and after.

And also catlog of process com.whatsapp in time frame of the pictures send. 30/11-2019 between 9.44 - 9.48

With internal storage and external storage.
[Android Apps and Games] stormy1777:
this was discussed in October on this thread, closest you can find are general steps described here:

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

with these changes, the app/whatsapp are doing what you'd expect, but this is not for the faint of heart, and u have to always remember this special setup. Pie was never tested with apps2sd.

good luck.
[Android Apps and Games] bsports666:
Hello....can anybody help me about 'hibernate' options? I have add many apps to hibernate when screen is off but i found tbat this not working for one my app that is for my camera system (and i remove this app from battery optimization in android) and also play store was not hibernate after screen is off? Is this option work for all apps or only to some apps? Or is better to use greenify app? Sorry for my bad english
[Android Apps and Games] martyfender:
From my personal experience and from everything I have read, it is not a good Idea to hibernate system apps.
[Android Apps and Games] pfavayi:
Has anyone got folder mount to work in Android 10 ?
[Android Apps and Games] Sidicas:
Having an issue with apps2sd.

1. The 2nd partition which is ext4 is automatically getting mounted to a different location. I believe /storage/ABCD-EFGH or similar.

2. When I try to "remount 2nd partition" this fails no matter which option I select.

3. I then go into Settings -> Storage and eject the EXT4 partition on the SD card.

4. Then I go back into apps2sd and "Remount 2nd Partition" works with "Normal" selected and also with "Advanced".

5. I have no problems linking apps to the 2nd partition. Everything works great.

6. However, when using "Advanced" after reboot Android is unhappy. It says the partition is corrupted, tap to fix.

7. I check diskinfo and it's mounted at the correct location.

8. I check apps2sd and everything looks fine here. All my apps are there.

9. When I "tap to fix" the corrupted partition it wants to reformat it as Internal Storage or Portable storage. I've tried both and it just sets me back to needing to reformat the partition as ext4 which takes me all the way back to the very beginning.

Is the proper thing to do just ignore the "partition is corrupted" message?

Edit: Nevermind, I guess on page 173 of this thread it's stated that "partition is corrupted" is a dummy message and I shouldn't try to fix it. I guess I am my own problem. I'll just leave it alone.
[Android Apps and Games] mcmanuf:
Unfortunately not working for me.

I have attached original script and new script (renamed from *.sh to *.txt).

For some reason I cannot attach logs, so have attached them on external site.

The original script log:

https://pastebin.com/U7fhx3ND

The modified script log:

https://pastebin.com/MCtQjiuN

Maybe you can see something im missing.

However I do see that the new script which I have increased the /dev/block/vold/public:179,2 from original 179,1 cannot be found??

I am really desperate here.

--------------------------------------------------- EDIT 29/12-2019

After weeks of trobleshooting, and researching and researching i finally made it work on my phone.

A really simple solution really.

Eberything i did originally was correct apart from one thing.

You should NOT mount the subdir of WhatsApp directory.

I mounted the WhatsApp/Media folder. This will not work.

Insteasd you should mount the complete WhatsApp dir instead. Then it will work.

So happy I made it work. Hope someone else will benifit from this information.
[Android Apps and Games] pfavayi:
You are trying to hibernate system applications.

There is no guarantee that system applications will stay hibernated.
[Android Apps and Games] martyfender:
From my past experiences with it, many will not stay hibernated and can cause unintended consequences.
[Android Apps and Games] :
Obb external folders on second partition gets unbinded after cca 1 hour, basically i have to press 'Rebind external folders' almost every time I want to run an app which has obb on sd card.
[Android Apps and Games] dimstrdan:
Android 10 obb location change & mount script location change

Hey, I just want you to know that Android 10 changed its obb location, it's not in /data/media/obb anymore. I hope that you can fix this ASAP, I really appreciate it ;)

[IMG="Android 10 apps2sd problem"]https://i.imgur.com/cBkNMYs.png[/IMG]

Also the mount script was not working in Android 10, so I did workaround copying it to post-fs-data.d in Magisk folder and it worked.