yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Dark-Coder:
i have around 180 Apps installed and approx 160 Apps are Linked... Taking Too Much Time to Load Apps List (5-10mins Aprox), i Recreated Mount Script , No Luck... And Also Apps are Not Auto Relinking after Update........ ... :/ (Older App2SD auto Relink the Updated Apps) ,...
[Android Apps and Games] vickybonick:
Ok i'll add an option to disable size scan which should reduce response time. Auto link has a bug, i'll fix that in next release
[Android Apps and Games] keysikasuy:
+1 sir. I hope Autolinking will be able to link all the files also relinking after update has a bug. I need to relink manually again the app after updates. I also noticed that after updating apps then go to sdext2 in data,the apk files are duplicated which adds up on the memory. Can it be deleted automatically after app updates?
[Android Apps and Games] leejasonsmith:
hi, never sure where to reply in these things? just tried your app. wouldn't partition my card so did it on pc. wouldn't batch move but I was able to do it individually - which I would rather do. all seems to be working ok - cheers. my question is, I made my 2nd partition one gb but I have quickly filled this. can I resize the partition without losing everything and having to start again?
[Android Apps and Games] vickybonick:
You can do it using gparted, Apps2SD inbuilt partition tool is not capable of resizing. Make sure you take backup before doing it.
[Android Apps and Games] vickybonick:
The auto linking will be fixed in next release. You can use clean 2nd partition option to remove unwanted files from 2nd partition.
[Android Apps and Games] jigharas:
Pls help me I put my system apps on my SD card but I accidentally deleted it now I can't download anything because my download manager is gone and my camera to pls help me to restore them
[Android Apps and Games] vickybonick:
Try Clear orphan data and lib files, Clear dalvik-cache files and reboot. If it is not working then i'm afraid you need to flash your device or wait for someone else to suggest something.
[Android Apps and Games] keysikasuy:
So everytime I update apps can I clean the 2nd partition to free up more space from duplicating apks? Won't it mess up the links?
[Android Apps and Games] vickybonick:
Yes you can. It won't mess anything
[Android Apps and Games] ashish0304:
Hi,

I'm using link2sd. Seeing features of apps2sd, I've decided to move to it. One question, if I'm clean flashing any rom, how to restore apps from second partition using apps2sd.

Thanks.
[Android Apps and Games] vickybonick:
Apps2SD won't restore the apps if you flash a new ROM. But if you install Apps2SD without flashing it will detect linked apps
[Android Apps and Games] ashish0304:
Is there anything like backup links in apps2sd?
[Android Apps and Games] vickybonick:
No Backups
[Android Apps and Games] ashish0304:
Thank you for your instant reply. Can you suggest best way to do it? I mean after linking, flashing a new rom and restoring it back.
[Android Apps and Games] vickybonick:
I'm not sure if it is possible because when you wipe data partition it'll wipe the symlinks and without the symlinks it's not possible to restore
[Android Apps and Games] Tech 4 9:
Test
[Android Apps and Games] Iceman:
Hi Vicky,

Latest version apps2sd fail to link everything after been updated Google play service 8.3.01...:(, I try many time still fail to relink everything..it will automatically disable Google play service apps, sorry i not able to provide logs...I was reverse back previous version of apps2sd is was working perfectly with latest Google play service 8.3.01...Hope can fix it in latest version. Thanks
[Android Apps and Games] Tech 4 9:
So...this seems as convoluted as it is interesting. Example: It's suggested multiple times to make a backup before beginning....which is completely negated by the fact that during reformatting/repartitioning we lose all data from extsd card. I guess it's assumed that either the backup or the entire extsd card be copied to pc or something other than phone? Thanks.
[Android Apps and Games] williamacker77:
Hello y'all , I have used apps2sd in the past , and it did what it said , freed up some of my internal memory. I just got a new phone (T-Mobile Note 3 running lineage 14.1) and I have plenty of internal memory. My question is , does app2sd free up RAM as well ?
[Android Apps and Games] mielletseed:
How should this happen? :laugh:
[Android Apps and Games] patrickdrd:
In fact it's the opposite, apps2sd uses ram for itself, that's why there's a "garbage collector" option to clean-up ram (when it's possible) in the app settings
[Android Apps and Games] vickybonick:
Version 13.3 released in play store and attached in OP

Changelog:

Added Oreo support

Updated translation

Added option to export/Import app component states

Added size info in Action/Multi Action window

Added partition alignment while creating partitions

Fixed display issue in Throttle CPU

Fixed Script manager issue

Fixed backup/Restore issue for files larger than 4GB

Other bug fixes and Performance improvements
[Android Apps and Games] williamacker77:
Oh , I understand. Thanks
[Android Apps and Games] patrickdrd:
update for the above question and another one:

I saw that titanium backup is backing up sdext partition,

is restoring recommended on a new sd card?

I mean will it create the new partition and transfer files there and

will apps2sd recognize that partition?
[Android Apps and Games] martyfender:
This again concerning my Nextbook Ares 8A x86, Android 6.0.1 tablets.

I am now using your partition tool to format my external SD cards.

Despite trying about 5 cards, both brand new and old, I continue to have intermittent problems with them mounting on insertion and or when waking from standard doze.

when inserted they often slowly come up first as Unsupported in Androids settings, Storage & USB. some time after that in up to minutes, I will see checking......., then it either mounts the fat32 partition or I get a corrupted message.

As you have stated previously, it is not corrupted and this is confirmed when I run the partition tool's repair option, when the card does mount the fat32 partition.

Concerning the options in settings:

Set external SD card

and:

Use custom device block

what are the differences between the two?

My cards have the following partitions:

fat32: /dev/block/mmcblk1p1

metadata: /dev/block/mmcblk1p2

ext2: /dev/block/mmcblk1p2

what do I set?

set: /dev/block/mmcblk1 ?

set: /dev/block/mmcblk1p1 ?

set: /dev/block/mmcblk1p2 ?

or:

set: /dev/block/mmcblk1p3 ?

or something completely different such as storage path, mount path or vold?

on two of the tablets vold shows up at this path:

/dev/block/vold

disk:179,80

public:179,81

On one of the tablet where I previously mentioned External SD card problems, vold shows up in the following paths:

/dev/block/vold

disk:179,64

public:179,64

when the Android storage window shows unsupported

and a different value when the disk does show up as mounted and is usable:

/dev/block/vold

disk:179,64

public:179,65

Do you have any thoughts on the what might be going on?

Thank You
[Android Apps and Games] vickybonick:
1) Custom block should be used when your SD card block is different then mmcblk1 or mmcblk0

2) Set external SD card should be used if the app is not able to determine the sd card path (e.g. /storage/sdcard1)

3) Not sure what the problem is but I can add a new option to mount 2nd partition (if not mounted) after device wakes up
[Android Apps and Games] vickybonick:
That should be a question to TB dev. Below is the recommended process to change SD card
[Android Apps and Games] vickybonick:
Please check out the below tutorials

https://www.youtube.com/watch?v=P1V4UQnZq0w

https://www.youtube.com/watch?v=I-gICKXfj2Q

https://www.youtube.com/watch?v=eE4yY87r5mY

https://www.youtube.com/watch?v=QbFBphPFUL0
[Android Apps and Games] vickybonick:
Only su.d/magisk methods preserve /system partition other method will break SafetyNet. You can try the Advance method (will break SafetyNet) to create mount script if you're having issue with Su.d/Magisk method
[Android Apps and Games] vickybonick:
That's an issue with your ROM, either switch to a different ROM or try the app Linking feature

Please check out the below tutorials

https://www.youtube.com/watch?v=P1V4UQnZq0w

https://www.youtube.com/watch?v=I-gICKXfj2Q

https://www.youtube.com/watch?v=eE4yY87r5mY

https://www.youtube.com/watch?v=QbFBphPFUL0
[Android Apps and Games] patrickdrd:
sorry, typo error, I meant TWRP (nandroid backup)
[Android Apps and Games] vickybonick:
Try version 13.3 and let me know if the issue persists
[Android Apps and Games] vickybonick:
Answer is still the same
[Android Apps and Games] vickybonick:
There's a task manager and App hibernation module which can free memory by killing other apps
[Android Apps and Games] vickybonick:
You can link whatever the app allows. But I don't suggest linking any app related to Play store (e.g market app, services etc)
[Android Apps and Games] martyfender:
concerning:

Set external SD card, which correct, then:

/dev/block/mmcblk1 or

/storage/7ACD-0AF4 0r

/mnt/media_rw/7ACD-0AF4

?

Thanks
[Android Apps and Games] Kireto00:
I have very strange problem happening to me ... If i download app from google play it not linked until i open app2sd it autolinked after only opening app2sd app .... If i dont open it after downloading app auto link dont working..... So pls any help here
[Android Apps and Games] vickybonick:
/storage/7ACD-0AF4
[Android Apps and Games] Kireto00:
7.1.2 RR ... It was working perfect but this week i dont know what happened to it
[Android Apps and Games] Herbie_2005:
[LineageOS 14.1 (CM 14.1):] Mounting of the second sd partition on /data/sdext2 prob

Hello!

I have been using APPS2SD PRO successfully for a long time now. My actual devices are HTC One M8 (2014) and Samsung Galaxy Note 10.1 (2014). I have been using LineageOS 14.1 (CM 14.1) for several months, and there was no problem using APPS2SD PRO until Dec 5th/6th 2017.

Flashing the new versions of LineageOS 14.1 (CM 14.1), Dec 05th/6th 2017, the one APPS2SD PRO feature does not work anymore: I cannot mount the second partition of the external sd card anymore. Whenever I try to do so, the error message is "invalid argument".

It it no longer possible to mount /dev/block/vold/public:179_66, and it is no longer possible to mount /dev/block/mmcblk1p2.

APPS2SD PRO always shows error message "invalid argument". Same thing, if I try to recreate the mount script. I have also tried to do the mounting manually in the terminal emulator. No success, "invalid argument".

What I have noticed: Before Dec 5th/6th 2017, the second partition of the external sd card had always been shown as "damaged" by the android system, as long I was using Nougat 7.1.2; but the second partition had always been mounted successfully on /data/sdext2 by APPS2SD PRO.

Now the second parttition of the external sd card is already mounted by the android system, and it is shown as a regular (second) sd card, that can be used to save folders and files. APPS2SD PRO, however, cannot mount this partition to /data/sdext2 anymore.

I suppose, APPS2SD cannot mount the second partition of the external sd card, because the andoid system already uses it. - Is that right?

Should APPS2SD PRO get a fix then, so that the second partition of the external sd card can be mounted on /data/sdext2 again, as it had always been the case?

Greetings from Herbie_2005
[Android Apps and Games] Herbie_2005:
Supplementation:

I have found out the following work-around:

I can ...

boot my device and wait, until booting process is finished

remove the second partition of the external sd card safely from android settings (it is listed as regular (second) external sd card there)

recreate the mount script inside APPS2SD PRO, which immediately makes the second partition of the external sd card mount successfully on /data/sdext2

use my device normally until the next reboot :o

But, of course, it would be very nice to have things be done automatically again.

Greetings from Herbie_2005
[Android Apps and Games] Zehlek:
Is there anyway to make it use a Usb OTG? I now have a new phone but it doesn't come with SD card slot, but it uses usb storage
[Android Apps and Games] zdoe:
URGENT HELP NEEDED - folder mount ran amok

scenario: tried mounting (symlinking) a specific folder to external SD card. mount failed.

restored a TWRP backup.

now the source folder is "not found" by ES file manager (root), despite its name being visible. and recreating it by ES fails, but it does get recreated by restoring a titanium backup.

i suspect that the mount script still exists somewhere and keeps trying to folder-mount/symlink the folder, fails, and makes it inaccessible, both to ES file manager AND the app that needs it (wechat).

so far i've tried to prevent the mount attempt by renaming all apps2sd files at \system, and trying apps2sd's own clean-up functions. no jive.

where does apps2sd store such folder mount scripts? clearly not at \system. - or, does it somehow make (persistent) changes to the file system? if, how to undo such change?
[Android Apps and Games] vickybonick:
Use the "Use custom device block" option to set otg block path and use "Set external SD card" to set otg mount point then create partitions and mount script
[Android Apps and Games] vickybonick:
Goto Link apps to SD card and use Delete mount script option from left navigation drawer
[Android Apps and Games] zdoe:
i tried that (and the rest of the apps clean-up functions), it doesn't do anything for this problem. it might, if i had an app linked to 2nd partition on the sd. that's not the case here.

mine is a non-working folder mount symlink/whatever from internal SD to external SD. again, where might the mount script for that be, when not at \system? or - has apps2sd modified the partition?
[Android Apps and Games] vickybonick:
There's no additional script. Try to disable the pair then delete it
[Android Apps and Games] zdoe:
the folder pair does not exist in apps2sd screens anymore. either i deleted it already, or it got lost when i restored the system from TWRP backup. not sure.

however, its effect persists.

if there's no script, then apps2sd has made persistent changes to the partition...
[Android Apps and Games] patrickdrd:
I'm interested in this one too, can we have applications installed in a usb-otg and use it "on-demand"

(i.e. connect it only when it's needed?)
[Android Apps and Games] vickybonick:
Unless you created symlink it's not permanent. If you did create symlink then use terminal to move the folder back
[Android Apps and Games] vickybonick:
It's possible but a reboot/soft reboot will be required
[Android Apps and Games] Zehlek:
Sorry dumb question, where do I look to find the location paths?
[Android Apps and Games] vickybonick:
Use df to list mount points
[Android Apps and Games] zdoe:
ok - i assume i did create symlink, as it's still persisting and not behaving as a regular folder right now. is there a way to view existing symlinks on a given partition?

and/or - could you please walk me through the command line i need to use to remove symlink in terminal. i'm a linux noob.

it's created something like this:

internalSD/tencent/crypticFolderName > externalSD/temp
[Android Apps and Games] zdoe:
ok - so now i've researched linux a bit. i'm at terminal via ADB.

i get:

cd CrypticFolderName

/system/bin/sh: cd: /sdcard/tencent/micromsg/CrypticFolderName: Permission denied

as SU:

chmod -R 777 CrypticFolderName

chmod -R 777 CrypticFolderName

chmod: No CrypticFolderName: Permission denied

:/storage/emulated/0/tencent/MicroMsg #

but if i do

ls -la

on the folder above in the tree, the

CrypticFolderName

is listed with the same permissions as the rest of the folders, that are accessible.

drwxrwx--x 26 root sdcard_rw 4096 2017-12-12 12:16 CrypticFolderName

what to try next? or - do i need to format the partition that the sdcard is on? which partition is it on? does TWRP wipe do a format?
[Android Apps and Games] vickybonick:
I'm out of town till 18th, I'll check after that
[Android Apps and Games] zdoe:
problem resolved by reformatting the data partition. re:

https://xdaforums.com/g5/help/please-xt1675-stock-fastbboot-firmware-t3692083/page2#post74872938

but - please, [MENTION=6726362]vickybonick[/MENTION], walk me through on how to "symlink" a folder on /data to externalSD with your app - the way the foldermount app used to do in past versions of android.
[Android Apps and Games] ericotena:
[MENTION=6726362]vickybonick[/MENTION] what other workaround i can't seem to mount my 2nd partition on boot. I tried the 4 options. Although i was able to boot my 2nd partition before I formatted my phone.
[Android Apps and Games] chandr1000:
[MENTION=6726362]vickybonick[/MENTION] Could you change the mounting script for "I've su.d support on my device / I use Magisk interface" to be like the attached one?

It would solve mounting issues especially for mounting EXT4 image file
[Android Apps and Games] martyfender:
Just out of curiosity, what does this modification do in your case and why do you wish for Vicky to modify it? And without, of course reading my original what is modified in it? Adding the data.img file? And what is this data.img file? mine appears to be my second, ext partition: /dev/block/mmcblk1p3

Thanks
[Android Apps and Games] Artieza:
I formatted SD from FAT32 to exFAT (32K block size) and got problem. Apps doesn't see content... But file managers see it as mounted...

From the logs: block size is 4K, but I have 32K. ?
[Android Apps and Games] zdoe:
could you, [MENTION=6726362]vickybonick[/MENTION], or is this even possible? i'd like the app writing to /SOURCEFOLDER to be oblivious to the fact that the files are actually written to /TARGETFOLDER. it's not obvious to me whether the mount function does this or not. in my case, source is internalSD f2fs, target the externalSD fat32. e.g. what standalone foldermount app (with developer AWOL) used to do.
[Android Apps and Games] vickybonick:
Version 13.4 released in play store and attached in OP

Changelog:

Fixed mount script issue for su.d and Magisk mount method (You'll have to recreate mount script)

Fixed naming issue in Share apk function

Added new option in Settings to remount 2nd partition when device wakes from sleep (Disabled by default)

Translation update

Other bug fixes
[Android Apps and Games] martyfender:
Hey Vicky, is there a way to stop the rate this app message that sometimes appears when I launch it. I rated the app on the playstore some time back, thinking this was all I needed to do to stop the message, but it still appears and is very annoying, by the way I gave a good rating back then.

Thank You
[Android Apps and Games] martyfender:
Added new option in Settings to remount 2nd partition when device wakes from sleep (Disabled by default):

Thanks for adding this but it appears to not be working on the 2 of my devices that are having the issues.

Both devices need time for the External SD card to mount first, before this option is run. My guess is that it runs right away, instead of a persistent service.

I can go into the app after the cards are mounted and successfully mount the second partition in the apps section.

Two brand new devices with newer build numbers: V2.1.5 and V3.0.4 and newer IFWI bios, do not exhibit this problem at all, so I do not have your new setting enabled on the new devices.

I am looking for a way to pull the IFWI bios and flash the newer version to the older tablets, as I this this is where the major change was, not in the newer rom builds.

I currently have the V3.0.4 rom on one of those two older tablets V1.1.1 and it works great except for this issue.

I know this is not an Apps2SD issue.

Since I have 2 good, working devices, I am willing to risk bricking the older device to solve the issue.

On the two newer devices, The new release is working perfectly so far.

I could abandon those 2 older devices, but it is more of a technical challenge for me to try and solve the issue.

Thanks for all of your hard work
[Android Apps and Games] vickybonick:
Not sure it's fixable from my end
[Android Apps and Games] vickybonick:
I'll fix it in next version
[Android Apps and Games] vickybonick:
Update to latest version and recreate the mount script using su.d/magisk option if you use Magisk/Supersu
[Android Apps and Games] vickybonick:
It differs from device to device. There is textbox to enter custom block path use it. Also update to latest version and recreate the mount script it might fix your mount issue
[Android Apps and Games] vickybonick:
Symlink should be created between ext2/ext3/ext4/f2fs filesystems only (both source and destination) for other filesystems (both source and destination) use the bind option.

Note: binding/linking folders between ext2/ext3/ext4/f2fs filesystems and non ext2/ext3/ext4/f2fs filesystems is not advisable because it'll result in permission issues and app crash
[Android Apps and Games] vickybonick:
1st partition is mounted by the System. Make sure exFat is fully supported on your device
[Android Apps and Games] zdoe:
yup, got that. i'm using "symlink" metaphorically, i meant bind. have since tried it, but the app didn't see (or be able to use) the contents on the externalSD. or - could this be because i duplicated the files and they were present in both source / target?
[Android Apps and Games] vickybonick:
Use the Folder Mount module to create pairs (binding folders between ext2/ext3/ext4/f2fs filesystems and non ext2/ext3/ext4/f2fs filesystems is not advisable because it'll result in permission issues and app crash)

Checkout the below tutorial:

https://www.youtube.com/watch?v=QbFBphPFUL0
[Android Apps and Games] vickybonick:
Export the folder pair and attach the xml
[Android Apps and Games] ericotena:
Suppose i uninstall my version of apps2sd and install a new one, could i access my apps in the 2nd partition or do i need to unlink my apps before uninstalling?
[Android Apps and Games] vickybonick:
You can access all apps as long as mount script is not deleted (mount script is not deleted when you uninstall Apps2SD)
[Android Apps and Games] martyfender:
What commands could I use to do it in the task scheduler so that it runs

if

the first partition is mounted?

here are my paths:

/dev/platform/pci0000:00/INT33BB:01/
/dev/block/mmcblk1
/dev/block/mmcblk1p1
/dev/block/mmcblk1p2
/dev/block/mmcblk1p3

/storage/37A1-080A/
/mnt/media_rw/37A1-080A/[
/data/sdext2/

The one, oldest tablet works great in almost every other way and I can copy files to it from mtp, especially to the internal Sd, consistently, so I hate to retire it entirely.

Thanks
[Android Apps and Games] vickybonick:
Assuming the 2nd partition is ext4 and block is /dev/block/mmcblk1p2 try below

if ! mountpoint -q /data/sdext2
then
mount -t ext4 -o noatime,rw /dev/block/mmcblk1p2 /data/sdext2
fi

if mountpoint binary is missing then use busybox mountpoint
[Android Apps and Games] martyfender:
The 2nd partition is ext2 as you recommended changing to. I could put it in one of the newer tablets though and re-format it to ext4 if that would help. Or just change that one word in the script to ext2? Would I create it with the shell script option? and create the file I select with an .sh extension at the end of it?

/dev/block/platform/pci000:00/INT33BB:01/by-name
android_meta -> /dev/block/mmcblk1p2
Samsung -> /dev/block/mmcblk1p1
second_part -> /dev/block/mmcblk1p3

in /system/bin I have:

mountpoint -> toybox

in /su/xbin I have:

mountpoint -> busybox

Thanks
[Android Apps and Games] vickybonick:
That's fine use below code

if ! mountpoint -q /data/sdext2
then
mount -t [B]ext2[/B] -o noatime,rw /dev/block/mmcblk1p2 /data/sdext2
fi

is the block correct?