yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] frpnit:
[MENTION=6726362]vickybonick[/MENTION]

Ok,

I've edited the script as you pointed out. After that:

1) I rebooted once, got saved log and renamed as apps2sd-mount-script_1.log

2) Rebooted once more (not soft rebooting), got saved log and renamed as apps2sd-mount-script_2.log

So i read both logs. No sign of /dev/block/sda or /dev/block/sda2. But curiously, on second log, it shows /dev/block/vold listed, but nothing mounted. So i've edited script to continue listing /dev/block recursively a lot of times during 5 seconds, to see what happens. Obviously i got a huge log file ( wich i renamed as apps2sd-mount-script_3.log ), reading the thing i saw vold mounting both internal and external sdcard (i have a small sdcard just for TWRP), but again no sign of dev/block/sda during that 5 seconds, but surprise: dev/block/sda2 appears mounted linked to data/sdext2 on end of log.

There are some intriguing mount points (for the ordinary guy here, at least) like:

1) tmpfs /storage tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0, wich, judging by all three logs, seems like some kind of underlying mounting system that 'talks' to fuse and mounts /sda and /sda1

2) adb /dev/usb-ffs/adb functionfs rw,relatime 0 0, wich, right after it, /sda1 got mounted. Yeah, looks like some kind of magic, hehe.

Edit: Okay, looks like those points above are pointless. Was supposing things and i guess they are not what i thought they could be.

But, you are the man - so i've got all three logs (of course i've stripped log 3 because was huge and many repeated outputs, i guess that what's important, is there) and my own changes to mount script, packed everything in a zip and uploaded here:

https://drive.google.com/file/d/0B5dLxb6EeakbempBLW9wakI2VEU/view?usp=sharing

(sorry but i can't direct link, since i'm a new user). I hope there is something that can be done. But if not, well i still can use flawlessly, just having the annoyance of soft rebooting.

Sorry about long posting, just trying to be as clear as i could to help your debugging. Thank you so much by you app and support.

Cheers,

Fabrício
[Android Apps and Games] vickybonick:
Looks like the thumb drive is not available when the script is running. I'll add some delay in the script. Btw on average how many seconds it took for the drive to be available? It'll be very helpful if you can do some testing on the timings.
[Android Apps and Games] Zehlek:
[MENTION=6726362]vickybonick[/MENTION] I decided to clean my phone which wipes internal storage (used Mi Flash to Redmi Note 3). Before hand I copied my obb files to pc and also backup data with titanium backup. Can I just restore from 4ext partition or do I need to down all apps again and re link each one as if it is my first time using Apps2SD?
[Android Apps and Games] frpnit:
To be honest, i don't know how many seconds it takes to be available, all i know is, the moment home screen pops up, surely my thumb drive is mounted. I even thought in editing script and make those while loops 'infinite', so they would run forever until ls dev/block/sda2 returns true, but was afraid of causing a bootloop and not being able to enter TWRP to revert / delete script.

And,during 5 seconds as you could see, no /dev/block/sda listed. Those last entries (that bunch of mounting points) on log file are written by script or when app service runs after boot?

Thanks for attention and patience. Sorry if my english isn't that good, i'm brazilian so not my main language ^^

Cheers,

Fabrício.
[Android Apps and Games] vickybonick:
I'll post a beta tomorrow
[Android Apps and Games] frpnit:
Cool! Just want to point out that i'm on free version, so can't run PRO betas. Meanwhile, could i try making while loop infinite until /dev/block/sda2 be available, or it's pointless?

Ah, would ' send device info' be of some help?
[Android Apps and Games] vickybonick:
Making infinite loop is risky. If somebody removes the card device may stuck on boot. I've kept a 15 second loop. Pm me the primary gmail account you're using on your device, i'll add it temporarily in testers list
[Android Apps and Games] vickybonick:
Install the attached beta and recreate mount script then test it
[Android Apps and Games] frpnit:
Hey,

I've installed beta, recreated mount script and tested. No dev/block/sda, 'dev/block/sda2 not found' message on log. So i dig script again and raised that -ge 150 to 200. Nothing again. Raised to 300, it have found sda partition, but accused device or resource busy (perhaps because boot time has passed?). So i edited again to log /dev/block after sda was found. Interesting results, like:

/dev/block/platform/c9000000.dwc3/xhci-hcd.0.auto:
drwxr-xr-x root root 2014-12-31 22:00 by-num
lrwxrwxrwx root root 2014-12-31 22:00 sda -> /dev/block/sda
lrwxrwxrwx root root 2014-12-31 22:00 sda1 -> /dev/block/sda1
lrwxrwxrwx root root 2014-12-31 22:00 sda2 -> /dev/block/sda2

Another thing, it has mounted thumb drive as it was an sd card right after normal reboot, and not as an OTG disk, as it normally does.

Have attached both logs: log_1 is with original script, log_2 after changing number to 300 and logging /dev/block/ . Dunno if any solution exists in my case. Maybe things are just mounted after boot?

Cheers,

Fabrício.
[Android Apps and Games] AguxOne:
Data consumption issue

Hi, i have been using the Apps2Sd Pro app for more than a week.

Everything was ok until today, android is detecting that the Apps2sd app is heavily using data conecction, it consumed 700mb today and more than 1gb since last week. Using wifi it consumed 4,25gb.

I am quite worried since i can't figure it out.

I have linked quite a lot of apps. But also linked some folders with the folder mount option, linked the download folder and the whatsapp folder, i am asking myself if this has something to do (i am afraid that i dont have enough space to unmount whatsapp folder).

I had the task manager to backup some data of some apps only when on boot and when using wifi, i deleted that task but that did nothing.

I am quite desperate since the app is the draning my data really fast (i charged some mb and the app took 100mb in than an hour) and drains the battery quite fast too.

I would like to know if i am doing something wrong, if it is just me, and more important if it has a solution.

Thanks in advance.
[Android Apps and Games] vickybonick:
That's weird, Apps2SD doesn't use internet apart from app backup(task scheduler). Uninstall and reinstall Apps2SD and see if it helps
[Android Apps and Games] vickybonick:
Were the linked apps missing after reboot? Can you perform below test:

1) Fully link couple of apps

2) Close Apps2SD and modify the mount script to have 30 seconds loop

3) Reboot and see if the Linked apps are missing
[Android Apps and Games] fubo73:
[MENTION=6726362]vickybonick[/MENTION]: I still have this issue. Now I mounted also Whatsapp folder, and I can only see it when connecting my phone to PC.
[Android Apps and Games] frpnit:
No, apps were missing, but if i'm not wrong, that message about not mounting 2nd partition, didn't showed up. Was assuming at 30 seconds, my device had its boot completed (yeah, it boots really fast). Plus, those 'device or resource busy' really intrigued me. Anyway, maybe i screwed up anything? I've at first leave both free and beta PRO version installed on device, and done the thing i've told you. After that, i uninstalled beta PRO, mantaining my modified script, rebooted, have read the log. Same outputs as i've sent you. Should i have just beta PRO installed? Didn't uninstalled my free version because was afraid of losing my links and having to reinstall stuff again.

And, no problem performing test above. Just need to know if there is a problem leaving this or that Apps2SD version.

Thanks,

Fabrício.
[Android Apps and Games] vickybonick:
The script will not work then
[Android Apps and Games] vickybonick:
Try the beta i posted earlier
[Android Apps and Games] Carbon8:
The beta completely fixed my issue with linking Dex files. Thank you so, so much for working on my error and thank you for all your hard work on this wonderful app.
[Android Apps and Games] fubo73:
Can't, I use Free one.
[Android Apps and Games] AguxOne:
If i uninstall the app, what will happen with the mounted folders? If they get unmounted i have to backup everything
[Android Apps and Games] frpnit:
So looks like there is no other way but soft rebooting my device, right? That's okay, i will setup Apps2SD to automatically reboot device if 2nd partition is not mounted. Anyway, thank you so much for attention and patience. Your app rocks!

Cheers,

Fabrício.
[Android Apps and Games] vickybonick:
Version 12.2 released in play store and attached in OP

Changelog:

Updated translations

Fixed Partial link issue on app install/update

Fixed obb/ext data linking issue

Added sd card support for Swap files

Added option to disable Apps2SD service

Added option to delete broken symlinks

Added revert SDFix option

Added full magisk support

Added custom su.d path support

Added display size in Folder mount

Added background copy/move in Folder mount [Pro]

Added search option in App analyzer [Pro]

Added link type sort

Other bug fixes and performance improvements
[Android Apps and Games] fubo73:
I installed latest 12.2 release and recreated mount script, then reboot. Same behaviour: when connected to PC I can only see the content of whatsapp bound folder. With a df from adb shell I see:

/storage/008B-418F 59.6G 42.2G 17.4G 128.0K
/storage/emulated/0/WhatsApp 59.6G 42.2G 17.4G 128.0K
/storage/emulated/0/Download 59.6G 42.2G 17.4G 128.0K
/storage/emulated/0/CamScanner 59.6G 42.2G 17.4G 128.0K
[Android Apps and Games] vickybonick:
You'll have to use the unmount only option before connecting to a pc then use mount only option afterwards
[Android Apps and Games] fubo73:
But when unmounted while connected to the pc, if one of the app uses its folder (for example whatsapp) it will not find the files, unless everytime I connect to the pc I enable copying back of data. Am I right?
[Android Apps and Games] J_M_V_S:
1) Moved all DEX from linked apps back to internal storage. System Process keeps hanging.

2) Never tried that before. This is for the mounting script, right? How should I do it and why you think this could affect System Process?

3) I really don't know. I guess that's a kernel thing, right? Is there any way I can check? I already contacted the kernel's author but not reply so far.

Relating the hanging...could it be Apps2SD background service? I have not yet updated to the latest version (which shows supporting disablling background service)

Also, I have a feature request. I've tried the Hide apps & games but I would like to know if you could implement something similar but without actually hiding the apps from drawer...just asking for pin when opening.

Thank you very much.
[Android Apps and Games] vickybonick:
If destination folder is on sd card then it'll be visible on pc, you don't have to copy files back
[Android Apps and Games] vickybonick:
1) Apps2SD simply moves files from internal storage to external storage, it doesn't in any way run apps

2) yes it's for mount script. Advanced method is faster than other methods so it can help

3) yes it's a kernel thing. You may want to try the latest version

There are few app lock apps you can try
[Android Apps and Games] vickybonick:
Anyone using Kitkat willing to do beta testing for one of my other apps?
[Android Apps and Games] justjr:
Ever thought about opening a beta channel on play store?
[Android Apps and Games] sjamie:
Does "restore apps(sdext2)" do the same thing as restoring apps via Titanium Backup?
[Android Apps and Games] zputnyq:
Hi [MENTION=6726362]vickybonick[/MENTION],

I'm wondering why apps2sd service always runs in setting>apps>running? How can I disable it?
[Android Apps and Games] sonic_ear:
Because your link app need to be run in the background,if u disable it app may crash. If im not mistaken.
[Android Apps and Games] zputnyq:
Yes of course, I mean what are behind apps2sd service that always running. If it is only meant to link apps I think it's better if apps2sd could work silently like supersu app. Moreover, I had ever used another similar app to apps2sd, it also works like that too. But of course that app only has a function to link apps
[Android Apps and Games] emef:
"Odex" files do not remain linked

Hello everyone,

I am with a Galaxy Note 3, on which runs "Resurrection Remix [09.03.2017] [Nougat 7.1.1]", with the kernel "Xenial, built 14 of 09/04/2017" and the latest version of this application.

And I have a problem: my applications, which I spend my time to connect one by one, are found after two or three days in "partially linked".

These are usually the "Odex" files that seem to cause problems. I never had this kind of problem on the "Marshmallow" version of the rom, would it be possible that "App2Sd" is not compatible with Android 7.1.1? :(

Thank you in advance for your advice.
[Android Apps and Games] sjamie:
Many of my "linked" apps also become "partial" linked eventually. Not sure of the reason but Apps2SD works perfectly outside of this issue for me.
[Android Apps and Games] emef:
You are under Nougat? Because I never had this problem under Androit 5 or 6 ...
[Android Apps and Games] sjamie:
Correct. My ROM is Resurrection Remix 5.8.3 (Android 7.1.2).
[Android Apps and Games] emef:
So, in your opinion, that's normal and there's nothing I can or should do? Otherwise, continue to see my files "Odex" unfold without bothering me? :confused:
[Android Apps and Games] sjamie:
I don't know if this is the intended behavior on N or not. Hopefully, [MENTION=6726362]vickybonick[/MENTION] will chime in. I'm just dealing with it. Every few days, I filter the "partial" linked apps and relink them.
[Android Apps and Games] emef:
Yes, I do the same, but it's boring (it looks like a bottomless puit). Above all, I do not understand the logic of these "disappearances" links.

It would push me back to Android 6.
[Android Apps and Games] sjamie:
There are too many things I like about N to go back to M. :good:
[Android Apps and Games] emef:
Ok, thank you for your answers. I'll keep this thread to the eye, in case ... :)
[Android Apps and Games] E_Ben:
Can't you enable relink Odex/dex/lib etc. in apps2sd settings? I agree that this is probably only a workaround, but it is better than doing that manually.
[Android Apps and Games] emef:
I have tried several times and app2SD tells me that the various operations have succeeded ... but that does not change anything, and my applications always appear as "partially linked", which obliges me (?) To connect them "by hand" and it left again for a turn: after two or three days (I do not check every day) files "odex" seem untied. :(

I have +/- 80 applications on my Note 3 (I do not move system files, nor anything that could work at low levels, such as SuperSU, Magisk, no Google app etc.).
[Android Apps and Games] jesuita:
Hello everyone.

Yesterday after Linking some apps to the 2nd partition my phone rebooted a few hours later. This is strange as it rarely happens.

Today I've seen that some of those apps I had linked disappeared, but not all (firefox, lastpass and imdb, maybe more).

Is there anyway get them back without installing them again?

And is there any way to explorer the second partition?

Thanks in advance.
[Android Apps and Games] sjamie:
Same here except I have 271 apps installed which wouldn't even be possible without using Apps2SD. ?

That's why I just deal with the partial links stuff. I am so thankful for this app; otherwise, I would have had to purchase a new phone a long time ago. If linked apps could stay "linked", that would just be super awesome! ?

Are you using f2fs file system? If so, you may want to convert back to ext4 for greater stability.
[Android Apps and Games] jesuita:
[MENTION=4204995]sjamie[/MENTION] No, using ext4.
[Android Apps and Games] sjamie:
Try using the restore option...
[Android Apps and Games] jesuita:
Didn't know that option existed :)

After trying I was able to restore 2 apps but not the other 2 I was missing.

At least it gives me a view of which apps are gone.

Thanks again!
[Android Apps and Games] vickybonick:
It is used for task scheduling, hibernation, cpu throttling and widgets. You can disable it in settings
[Android Apps and Games] vickybonick:
Recreate the mount script and see if it helps
[Android Apps and Games] vickybonick:
This is how the Restore apps(sdext2) works:

Step 1) It scans all the apk and data on SD card 2nd partition (Apps2SD folders only)

Step 2) It scans all the obb and ext data on SD card 2nd partition as well as 1st partition (Apps2SD folders only)

Step 3) If an apk is already installed, it relinks all the other components found on SD card (data, obb, ext data)

Step 4) If an apk is not installed, it'll install the apk and relinks all the other components found on SD card (data, obb, ext data)

So if you didn't link apk and app is uninstalled/missing, you can install the apk and Restore other components using the Restore apps(sdext2) option.
[Android Apps and Games] sjamie:
[MENTION=6726362]vickybonick[/MENTION], I upgraded my ROM to one using Magisk v12. As a result, my folder pairs don't mount properly after a reboot. They still appear blue or green in Apps2SD but they are clearly not linked in any file manager. Have any suggestions?
[Android Apps and Games] vickybonick:
Recreate the mount script
[Android Apps and Games] sjamie:
Magisk or Advanced method?
[Android Apps and Games] vickybonick:
Magisk then Advanced
[Android Apps and Games] sjamie:
Just tried this... thanks. Although they "look" bound in Apps2SD (blue/green color), folder pairs are no longer bound after a reboot. Have other suggestions?
[Android Apps and Games] vickybonick:
Send device info. How do you determine they're not bound?
[Android Apps and Games] sjamie:
Folder A is bound to Folder B which contains many files.

When working correctly, opening Folder A shows the files contained in Folder B.

If working incorrectly, Folder A is empty. Unmounting Folder A then remounting it results in Folder A showing the contents of Folder B as expected. After a reboot, Folder A is empty again.
[Android Apps and Games] vickybonick:
Send device info then
[Android Apps and Games] sjamie:
It's been stuck on "Sending Report... " for at least 10 minutes. How long should it take?
[Android Apps and Games] vickybonick:
Keep it running
[Android Apps and Games] sjamie:
It's still running! ?
[Android Apps and Games] vickybonick:
Maybe it's stuck. I'm traveling right now. I'll check with you tomorrow
[Android Apps and Games] sjamie:
Thank you. I let it run all night but the app was not in the foreground when I woke up this morning. Did you ultimately receive the device info?

For me, everything about Apps2SD is working for me except auto remounting of folder pairs after reboot. Apps stored on 2nd partition work properly after reboot so the mount script is working. Folder pairs is only problem.

As long as I never reboot, everything is good. ?
[Android Apps and Games] vickybonick:
Did you set your email in the app? pm me the email
[Android Apps and Games] emef:
Unfortunately, I have tried various methods of re-creating links, they seem to be successful (reminding me that the script is restored) but this does not change anything: partially linked applications are still only partially linked, and Odex files continue to To untie themselves, sometimes several times the same day. It gets tiresome, while everything worked perfectly under Android 6.1. :crying:
[Android Apps and Games] vickybonick:
Looks like your ROM doesn't like odex to be symlinked so it recreates them. Setting selinux to permissive should fix it but that's not recommend
[Android Apps and Games] emef:
I'm already in permissive :confused:
[Android Apps and Games] sjamie:
Done!

BTW, the newest version fixed the issue where some linked apps were being converted to "partially linked" after app updates. Great job! :good:

My only remaining problem is with folder pairs not rebinding after reboot.
[Android Apps and Games] vickybonick:
Then no idea
[Android Apps and Games] martyfender:
I am on an Intel baytrail x86 tablet with Android 5.1.1 with permissive SE Linux. In the latest version and some previous versions, I sometimes have to re-link the Dex file after reboots because I see that an app is partially linked. If I choose the setting: Relink Dex: Relink dex files on startup, should this fix this issue? The app is GT Racing 2, moved to the the 2nd, ext4 partition of my External sdcard1. I mount with the su.d option.

Thanks

UPDATE: Later I also checked: "Force dex linking", and I am still getting the app partially linked for the only app I have moved and linked: GT Racing 2, a Gameloft game. A few hours before I discovered this I did a logcat at boot, through adb and when I search it for apps2sd, I see quite a few errors. The logcat is attached.

My device is a Nextbook Ares 8 tablet, which came with Android 5.0. 5.0 was terrible on this device. Nextbook usually doesn't release os updates, so xda member, vampirefo, took the 5.1.1 rom from the newer release of the tablet, and modified only, (I believe), the boot image and removed encryption, (dmverify?) in the boot image. His previous rom I used was also 5.1.1, and was ported from another BayTrail tablet, the Iview 708Q. When on that older rom, I used older versions of apps2sd, with no partial linking errors. I could uninstall and reinstall an older version to test it, if that would help. That was about a year ago so I'm not sure what version I had then. On my sdcard1, I have versions 101, 111, 7.7 and 5.3.1, free. did you change version numbers along the way, as I don't see some of those in your OP listings? I should probably purchase the pro version to help you out. I have never entered a card for my google account though.

Thanks
[Android Apps and Games] sjamie:
[MENTION=6726362]vickybonick[/MENTION], for some reason my phone is not sending the device info to you no matter how many times I've tried. It just stays on "sending report..." for over 45 minutes without success. Maybe someone else who is experiencing the same or similar problem will be able to send their device info to you successfully to help you fix the problem.

Description of Problem:

1. Set up folder pairs using the included Folder Mount utility to bind folders stored on internal memory to folders stored on the external SD card.

2. Device and apps behave as expected by storing data to external SD card instead of internal memory.

3. Reboot device

4. Use a file manager to open a folder stored on internal memory that was bound to the SD card and no files will be present which indicates the folder is no longer bound.

5. Repeat test with a few other supposedly bound internal folders to verify missing files.

6. Open Apps2SD -> Folder Mount

7. Tap Menu -> Unmount only (all)

8. Wait for process to finish.

9. Tap Menu -> Mount only (all)

10. Use a file manager to open a folder stored on internal memory that was bound to the SD card and notice all expected files appear successfully.

Can anyone else using a Nougat ROM built with Magisk v12 reproduce this issue? I am currently using Resurrection Remix 5.8.3. (permissive selinux). This problem did not occur for me with ROMs that do not use Magisk v12.
[Android Apps and Games] deschmit:
I have the pro version of the app so if I force move apps to the adoptable storage your app will attempt to move any app updates of the same force moved apps back to the adoptable storage. What I've found is some of the apps eventually fail to move back to the adoptable storage after an update. Eventually, I run out of space on my phone. I then open your app and manually move the same apps back to the adoptable storage. Sometimes the app fails on the first attempt to move. However, if I immediately try to move the app a 2nd time it moves to the the adoptable storage without issue. I have no idea why the 2nd time is the charm. I'm wondering if you could make your code that automatically moves apps back to the adoptable storage attempt the move twice before giving up. I'm thinking this might save doing the same manual adoptable storage moves every week or so when my phone runs out of space.