yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] jhYoG79:
Hi, Great app! Thanks for developing this! :D

I cant make a full backups anymore of my external partition?

It used to work fine. But now, after the backup process has finished (approx. 45 mins) it says: Operation not Permitted ( i cant post a link or screenshot :( )

Exact message is

"rsync mknod [path] operation not permitted (1)"

Is there another way of making a backup? I noticed theres a symlink(?) in my root/data folder that points to /sdext2. But i cant access that folder on my pc!
[Android Apps and Games] vickybonick:
Are you using the latest version?
[Android Apps and Games] 513263337:
Latest app version. Bug report (based on my guess of what's happening, so pardon me if I'm not saying this correctly):

* I believe at one point Apps2SD would link an app's odex file to /data/sdext2/apk/com.xx/base.odex

* Later I believe it was changed to link an app's odex file to /data/sdext2/odex/com.xx/base.odex

* Therefore, once an app gets updated from Play Store, Apps2SD would automatically link its odex to the new location /data/sdext2/odex/com.xx/base.odex, but leaving the old odex still in the old location /data/sdext2/apk/com.xx/base.odex, causing following issue #1

Issue #1: SD 2nd partition size gets filled by these duplicate odex when apps are updated.

* Moreever, the "clean up sd 2nd partition" function seems to have not been updated to know the new location, therefore it seems to erase the /data/sdext2/odex/... folders, causing lots of apps to lose the linked odex file, leaving only an orphan link pointing to empty /data/sdext2/odex/com.xx/base.odex, causing following issue #2

Issue #2: After using "clean up sd 2nd partition", when phone next time restarts, it spends a lot of time rebuilding odex for such apps.
[Android Apps and Games] vickybonick:
It has been fixed in v12.3 please update and try again
[Android Apps and Games] bamtan2:
I've been searching but I can't find the answer. What's the best "method", and how do I set it up with android 4.4 CM11?
[Android Apps and Games] 513263337:
Thanks!
[Android Apps and Games] vickybonick:
1) su.d

2) Advanced

3) init.d

4) Normal
[Android Apps and Games] bamtan2:
Thank you! I created new sdcard partitions with your tool and tried each method, but none worked. I installed the same small app each time and tried to move it and reboot, and the icon either disappeared or changed to its app file name. I also tried again with ext2 instead of ext4. I also replaced the CM root with supersu and still no go. Afterwards I tried Link2SD and that app worked on the first try. The apps2sd-mount-script.log looks like it only contains the very last failure, but it says says "mount: device or resource busy" twice, and then "Nothing to bind..." Is there something you'd like me to test to get it going?
[Android Apps and Games] vickybonick:
Goto Error Report window, set your email, send device info from the menu then pm me your email
[Android Apps and Games] belmethos:
Hi [MENTION=6726362]vickybonick[/MENTION] ,

Thanks for the good tool you provide us, i am the one asked for a cpu max when throttled.

I thank you a lot for implementing it, lets see if it works. :)
[Android Apps and Games] chwiejak:
Hello,

It is normal that after linked 2 apps booting take take around 40s more than before linking?
[Android Apps and Games] Cps777:
Great app cheers!
[Android Apps and Games] maven33:
[MENTION=6726362]vickybonick[/MENTION]

I lost my 2. partition and the files because of a corrupted sd card.

The problem is, I can not reinstall the (previous linked & lost) Apps.
[Android Apps and Games] vickybonick:
Use the broken app cleaner
[Android Apps and Games] gusmomar:
Database error

After uninstalling apps2sd the 2nd partition doesn't mount anymore and after reinstalling Apps2SD i get this error:

"error opening database. if you keep getting this error please clear app2sd data and try again"

Where do i have to search?

Thanks in advance.
[Android Apps and Games] vickybonick:
Clear Apps2SD data
[Android Apps and Games] martyfender:
To be clear and thorough, go to Android settings, apps, apps2SD and choose: clear data. You don't do that in the apps2SD app.
[Android Apps and Games] HighFidelity2k:
I also do have a corrupted 2nd partition.

"needs_recovery flag is clear, but has journal... '

Inconsistency error.

E2fsck with linux or twrp doesnt work too.
[Android Apps and Games] vickybonick:
Backup if you can and reformat
[Android Apps and Games] vickybonick:
Version 12.4 released in play store and attached in OP

Changelog:

Fixed Japanese translation

Updated other translations

Bug fixes
[Android Apps and Games] HighFidelity2k:
I could at least backup the data. It seems to be not a problem with your app Apps2SD Pro - i think my micro sd card 128gb sandisk ultra is damaged.

Even if i delete partitions in windows and even delete partition table with gparted, the Whole microsd card with exactly the same contents is recreated. I know there is a write protect switch on sd adapters, but on a micro sd??
[Android Apps and Games] vickybonick:
Did you try Apps2SD partition tool to format?
[Android Apps and Games] HighFidelity2k:
Yes, but after reboot even the smallest file is exactly still on the micro sd card. Did you ever hear about a locked *micro* sd card?
[Android Apps and Games] martyfender:
I've had good luck using minitool in Windows to do the formatting and partitioning. It has been a while, but I think the standard windows tool will not see the 2nd, ext partition, but minitool can.

Did you, by chance, use the android port of gparted, aparted? I had strange problems when I used it in the past. It has been to long to remember, but I had similar problems after I used It. I believe it was minitool that I used to solve it. Some how, it was aparted in android that really messed things up. It took me some time to solve it. Sorry, it just has been to long to remember all of the steps I took to solve it.

I may have, at some point, used the official sd card formatter, from the SD card association also, to return it to a factory default state.

https://www.sdcard.org/downloads/formatter_4/
[Android Apps and Games] davidshen84:
What is the recommended size for the 1st partition?
[Android Apps and Games] eliotargy:
When starting app2sd hangs on checking for root. Any ideas?
[Android Apps and Games] sjamie:
[MENTION=6726362]vickybonick[/MENTION], what causes fully linked apps to become partially linked and how can this be prevented? This phenomenon also happens to apps that have not been recently updated by the Google Play Store.
[Android Apps and Games] martyfender:
I thought I had that problem licked, but when I went back to a previous nandroid backup, the problem re-appeared despite following the same method and mount script.

I thought I had solved it by trying the advanced mount method, but yesterday the partial link problem re-appeared. I only have one app linked which has obb files and data files: Gameloft's GT Racing 2.

I'm not sure what I do that triggers this, as it is random. my script still has the setenforce 0 fix in it.

Furthermore, when ever I restore a nandroid backup that had the game installed, it doesn't show up anymore. so I go into total commander, /data/sdext2/apk/com.gameloft.android.ANMP.GloftRAHM-4/base.apk, and reinstall the app. I then relink it so I usually don't have to redownload the large, almost 1gb file again. Sometime my progress is still there, sometimes it is not and I have to start the game from the beginning. Maybe the pro version would have backup features that would prevent this in the future? But back on topic, the partially linked apps is still an ongoing problem. I can provide logcats if necessary, but that may only show the problem if I do them when this error occurs?

Thanks
[Android Apps and Games] shashankpal:
Is there anyway to grant apps2sd sd card write permission without making 2nd partition?

Otherwise it gives the following error (refer to the attached image)
[Android Apps and Games] mielletseed:
afaik this is not a problem with write permissions but with file systems. The external sd-card normally has a FAT filesystem (FAT32 or VFAT) but for bind you need an unix filesystem like ext2 or ext3
[Android Apps and Games] shashankpal:
Nope for foldermount you only need fat32 partition. Specifically need this app for foldermount, as the main one not working.
[Android Apps and Games] vickybonick:
Sd card root directory can't be used as source or destination. Use a sub directory
[Android Apps and Games] shashankpal:
LOL thanx!
[Android Apps and Games] guastucci:
Help..

Never mind. Kernel issue...
[Android Apps and Games] lee99:
Hi

Download diskinfo from google play store.

Open and check your second partition on sdcard.

Maybe you have wrong mounting point in settings.

Check this out please.

Best regards
[Android Apps and Games] ProudRed:
I cannot move apps to adoptable storage. Can someone help me with a fix ?
[Android Apps and Games] mielletseed:
[MENTION=6726362]vickybonick[/MENTION]

I have a problem when I connect my device to a windows PC via USB. I see my device in windows explorer and there are two folders "Phone" and "Card". When I open "Phone" I see the contents of my internal "sd-card", when I open "Card" I see only one empty folder "cache". But before, the size (16,6 GB of 47,0 GB free) is shown correctly.

Do you know how to access my "external" sd-card from Windows 10 again?

I formatted my first partition as FAT32 and my second partition as ext4

best regards
[Android Apps and Games] martyfender:
I am running a test version of supersu: SuperSU-v2.80-20170525215916-bindfix.zip, from the supersu beta thread, where some issues with bind mounts were observed if mount namespace separation was enabled in supersu. I have mount namespace separation enaled in supersu and apps2sd appears to be mounting partitions ok, at least with the advanced mounting method I am using. You have always recommended in the past to disable it for apps2sd to work properly.

Could this be a potential fix allowing mount namespace separation to be enabled all of the time? I haven't yet reverted back to my old method of using the su.d option of creating the mount script. When I was using that method, I was getting the partially linked app error, after a few reboots. Any thoughts on this would be greatly appreciated.

Thanks
[Android Apps and Games] lee99:
Can you try to install last good stable 2.79?

I see where are some issue with 2.80 and 2.81 but what is weird on my old phone latest 2.81 is working good. I upgrade supersu from 2.79 to 2.81 using custom recovery as always. I am using old kitkat device.

Best regards
[Android Apps and Games] vickybonick:
Reinstall Apps2SD and Super user app
[Android Apps and Games] vickybonick:
It'll be helpful if you can capture screenshots of App detail Window before and after update so it can be determined what component is not linked
[Android Apps and Games] vickybonick:
Probably it's not supported by your device/ROM
[Android Apps and Games] vickybonick:
Apps2SD binds all folders using the mount script which runs in init context so mount namespace separation doesn't affect the binds. But for newly bound folders or folders which were not bound by the mount script mount namespace separation must be disabled otherwise System/other apps will not see the bind (only the process which binds the folders will be able to see it).
[Android Apps and Games] vickybonick:
Can't say. Probably someone else can help
[Android Apps and Games] ProudRed:
It has option to move as well from the rom itself.
[Android Apps and Games] vickybonick:
Does it work?
[Android Apps and Games] ProudRed:
No it says insufficient storage.
[Android Apps and Games] vickybonick:
Then it'll not work from Apps2SD as well.

Btw do you have split partition or single adoptable partition. If you have split partition then try single partition
[Android Apps and Games] ProudRed:
I have tried both ways. Doesnt work. But when I made a 2nd partiction the linking thing worked.
[Android Apps and Games] vickybonick:
Ok, stick with Linking
[Android Apps and Games] martyfender:
In the past I had both 2.79 and 2.79 SR3 installed with no issues on 5.1.1.

---------- Post added at 11:03 AM ---------- Previous post was at 10:56 AM ----------

I believe, in my case, it was the dex file that needed to be relinked. However when I restore a nandroid backup, I'm not sure. I have not restored one recently.
[Android Apps and Games] martyfender:
This is in regards to: SuperSU-v2.80-20170525215916-bindfix.zip

Test version that (maybe) fixes mount namespace separation / su.d / bind mounts at boot / AdAway

Quote:

Originally Posted by Chainfire

Just try it. If apps2sd isn't properly built to cope with mount namespace separation, then it will not work properly. I don't have a definitive answer for you, and neither will the app's author. Trying it seems like the quickest way to go.
[Android Apps and Games] vickybonick:
What exactly is the bind fix in SuperSu any description/details? If it affects su.d then it'll affect su.d mount method in Apps2SD. Is there any documentation provided by Chainfire on how to cope with it?
[Android Apps and Games] martyfender:
Posted on the Supersu beta thread by [MENTION=631273]Chainfire[/MENTION]:

"This statement is only partially correct. The mount script should run in the master mount namespace (regardless of init context), which can be reached in SuperSU by using 'su --mount-master' from SuperSU v1.93 onwards. This should allow it to propagate to all apps, even when mount namespace separation is enabled. As documented here: http://su.chainfire.eu/#how-mount

Harm is a big word. Mount namespace separation prevents some race conditions for root apps that modify the files in ramdisk or system, and allows them to privately mount resources. It's not an issue until it is - probably for 9 out of 10 users, you would never encounter a problem with this. But this is the case with most security features!

You will probably be fine. But it would be better if apps2sd worked even when mount namespace separation was enabled."
[Android Apps and Games] vickybonick:
I use 'su -mm' because i remember i had issues with 'su --mount-master'. Does SuperSU support 'su -mm' ?

Edit: Nevermind I'll ask Chainfire
[Android Apps and Games] martyfender:
Thanks, Vicky. I saw your posts there.
[Android Apps and Games] vickybonick:
He responded it does support
[Android Apps and Games] Infy_AsiX:
Thanks for your app. I've been using it for a few weeks with success so I'd like to share my experiences and tips in hope it may help others with similar needs. I've also got a couple of questions and issues to bring up.

I'd been running into space issues on my 16GB Sony Z3C. I use the app FolderMount for linking obb and external data folders. After moving all my apps to SD using the older app Link2SD I had the issue of apps returning to internal after being updated. With Play Store's auto updating on and little spare space, moving apps to external again often was an inconvenient and time consuming practice. I'd also found that Link2SD was a bit buggy on it's multi-selecting list, not keeping awake to move properly during screen off and would close if running while multitasking. I decided to revisit linking to sdext but hadn't tried since my old phone last time. Since then I'd found Link2SD seems to not work after Lollipop. I considered adoptable storage but Sony has it disabled and re-enabling via modding comes with its own issues.

Your Apps2SD works well in linking apk and lib files and the auto linking after updating suits me. I had bad lag when testing linking odex/dex so don't link them now, this may be compounded by the fact I use a large ZRAM that already has occassional significant slowdowns. I also had issues with linking the private app data where the phone would freeze after bootup during loading. I did try disabling mount namespace separation in Supersu as well as enabling su during boot to which the latter would help it work but seemingly randomly upon reboot the phone would freeze at the same moment again and only quickly toggling off and on the setting during bootup in Supersu would prevent the freeze.

I found Apps2SD held a fairly long partial wakelock of around a few hours a day from checking in BetterBatteryStats sometimes. After disabling "Acquire wake lock" in settings I don't see it anymore. Is the wake lock required for successful screen off linking of auto-updates for example? I haven't needed to manually link many apps after turning it off but I assume linking any with screen off would be slower now. Perhaps if it's possible the wake lock could be configured to only work when plugged into a power source? One change I've personally made is to set the app as "resident" using Xposed module App Settings to keep it in RAM, which I do for a few system apps I need always running in background. Does this help with ensuring auto-linking updates occur?

One more thing, I found the backup function seemed to be smaller and contain less files. I used Root Browser set to "Resident" as aforementioned to just copy out data/app and app-lib for backup.

Space wise I haven't gained extra compared to moving to SD as that moves the same apk and lib. That's moving to SD using root though so where many apps don't allow it, they still can be moved. But gaining auto-linking after updating is what I wanted and this fits. Finally I found I still run out of space on my phone due to app caches not being cleared automatically in many cases so I'm testing clearing app caches at the moment.
[Android Apps and Games] passport619:
If your second partition runs out of space can you increase its size without having to format? I had this problem in the past with another app. Messed up everything but it was my fault.
[Android Apps and Games] martyfender:
Turn off your phone

- Pull out your sdcard

- Put your sdcard in a card reader in a computer

- Resize partitions using MiniTool Partition Wizard or similar program, in Windows. There are many free ones out there.

If the PC is linux, I believe you can use gparted to do this.

Before you do this though, you should back up files to the pc. I used Diskinternal's Linux Reader to backup the second ext4 partition.

Before you proceed, there may be something to do in apps2sd.

If I remember correctly, apps2sd's help website shows the procedure, if any. It may just be as simple as relinking apps. Sorry, I don't remember exactly.

Vicky should be able to fill in any gaps I left out.

Here is a link to MiniTool Partition Wizard tutorial for Windows: https://www.partitionwizard.com/help/about-partition-wizard.html

UPDATE: I am not sure it this tool works resizing without data loss when the first partition is FAT32 and the second partiton is ext. You may have to backup through mtp, for the fat32, use linux reader to backup the ext partition, then resize and re-format with minitool or apps2sd's partition tool, then restore the files from the pc. I did this before, but it has been to long to remember everything.
[Android Apps and Games] koyo:
When I try to link some apps, I get an error and it leaves them as Partially Linked. It doesn't happen on my Cyanogenmod Marshmallow devices but I have a Alcatel OneTouch Conquest running Lollipop 5.0.2. Using Apps2sd 12.4

https://imgur.com/8IAQv9t
[Android Apps and Games] passport619:
Thank you for responding. I'm just gonna wait till I find an app that can do this without other procedures. That's how I screwed up my last SD[emoji21]
[Android Apps and Games] vickybonick:
Set your email in the app, send the device info from menu option and pm me the email
[Android Apps and Games] godrick15:
I was wondering, would apps run faster on a high speed SD cards (evo +) over the internal memory of older devices? I have a Note Pro 12.2 Exynos 5420 and would like to speed it up.
[Android Apps and Games] sjamie:
It seems to be Apk, Odex, and Lib that keep getting unlinked.
[Android Apps and Games] vickybonick:
Before screenshot?
[Android Apps and Games] sjamie:
Here ya go!
[Android Apps and Games] vickybonick:
Seems like Apps2SD service is not running when an app is updated. Is don't auto link apps on update is checked? Are you on miui? Use privacy guard or any similar security app which restrict apps from being auto started?
[Android Apps and Games] sjamie:
Nope, disable auto link is unchecked. I'm using Resurrection Remix 5.8.3 with built-in Magisk. Maybe Magisk is causing the problem?
[Android Apps and Games] hellicious:
help im new to android and idk what to do with this error message

it says mount: mounting /dev/block/mmcblk1p2 on /data/sdext2 failed: file exists
[Android Apps and Games] vickybonick:
Does it auto link newely installed apps?
[Android Apps and Games] vickybonick:
Recreate partitions using the inbuilt partition tool
[Android Apps and Games] sjamie:
Yes, most of the time.
[Android Apps and Games] vickybonick:
I can send you an apk with some logging next week if you want
[Android Apps and Games] sjamie:
Yes, of course. Anything to help!
[Android Apps and Games] Allen kao:
How do I solve this error

Where is the option can cheses
[Android Apps and Games] vickybonick:
Goto "Link apps to SD card" then from Left navigation drawer select "Recreate mount script" then select I've su.d support and press OK
[Android Apps and Games] koyo:
PM'd
[Android Apps and Games] vickybonick:
Mount points on your ROM is pretty weird. Try below and see if it works.

Goto Apps2SD settings and "Set internal SD card" to /mnt/shell/emulated/0
[Android Apps and Games] koyo:
It's still a no go. I got the error again
[Android Apps and Games] vickybonick:
attach error screenshot
[Android Apps and Games] koyo:
I take that back. Error seems to have resolved itself and all of the apps are now linked with no errors. Thanks man
[Android Apps and Games] godrick15:
Just bought the pro version. How can I increase my 1st partition? Would I have to reformat? I really trying to avoid that, having all my twrp backups on there. Trying to move them again would be a pain, especially if I want to increase storage again.

Also, could you recommend swap settings? I have internal ram of 3gb. I have a 64 Samsung Evo SD. What would be the max ram to set?
[Android Apps and Games] martyfender:
If you truly have 3gb of ram, I wouldn't think you would need to worry about a swap file.

Are you sure you are not confusing internal storage space with RAM? What device is it? You can check it with an app like AIDA64, System: under installed RAM and internal storage total space.

My device, for example, has 1gb of RAM, 16 of internal storage, 10.29gb of which is useable and currently 5858MB free.

By default, my device uses 400MB for zram at 100% swappiness. It functions very well at this default level. However, I only have one graphic and memory intensive app on it: GT Racing 2: the real car exp. This game runs very well on my device. This is also the only app I currently have moved to my external Samsung EVO SD card. On my previous rom, I also had Asphalt 8 moved to the external card.

About a year and 1/2 ago, I had tried 3 different Sandisk Ultra high speed cards and had speed problems with them. In tests with Apps2SD's sdcard booster and other apps in windows, I found the Sandisks had good write speeds, but very poor read speeds. Maybe it was a bad batch of cards? Sandisk extremes pluses should fair better. When I switched to the Samsung EVO card, it had good read and write speeds. It has performed very well indeed.

I would imagine that the newer, EVO+ or EVO Select series, would improve upon this performance.
[Android Apps and Games] godrick15:
I definitely need more ram as there's only 10% left. I'm running a fairly old tablet. Samsung Note Pro 12.2, Lineage 14.1, Exynos octa core, OC 2ghz, 32gb internal storage, 3gb internal ram, 64gb evo SD. But I also have a Motorola Xoom, 12gb storage, 1gb RAM, 32gb max SD support, 1.6ghz, that I would like to restore.

How would I know the max swappiness my device can support? Also, would apps run smoother on a fast SD if the internal RAM is too full? Chrome is very RAM hungry. Maybe I should move it to external? Or move other apps to external and have heavy RAM apps on internal?