yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] ShinraTensei04:
Every time I reboot, I need to soft reboot to mount 2nd partition. Any way to fix that?

SELinuxmodechanger, though set to permissive,

resets to enforcing on boot. Any other way to help mount 2nd partition on boot?

---------- Post added at 12:57 PM ---------- Previous post was at 12:53 PM ----------

One thing I want you to note:

Once you flash a new rom, all your linked apps' data are all lost. This includes the big obb files of games, which don't get backed up by something like Titanium. So, it would be best if there was some way to move data on 2nd partition to 1st partition/internal storage
[Android Apps and Games] vickybonick:
what is your android version?
[Android Apps and Games] vickybonick:
Restore will restore whole thing.

-1 means default used by the framework
[Android Apps and Games] ShinraTensei04:
5.0
[Android Apps and Games] vickybonick:
Are you using SuperSu and su.d option in Mount script?
[Android Apps and Games] ShinraTensei04:
I am using supersu, but not su.d. Well, I used normal method in mount script. Also, I'm using a stock-based rom(pre-rooted) with stock kernel and locked bootloader.
[Android Apps and Games] vickybonick:
Use the su.d option and create mount script. It should work
[Android Apps and Games] ShinraTensei04:
It didn't work... I didn't tick the "set script for recovery mode" or something while creating mount script. Is that why?
[Android Apps and Games] bmeacham363:
Hey, was just wondering if the SD card is set to use Adopted storage, can Apps2SD be used to force move the entire app, including OBB and data?
[Android Apps and Games] holamundo216:
Hi

I can´t link obb data and at every reboot all apps fail to link (initial orange message)

does this app still requires to SuperSU be in system-mode? because I am in stock 6.0 and the rom does not allow it.

I attached logcat and a picture failing to link obb

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Moto G 2014 XT1064

Apps2SD pro All in one tool[11]

SuperSU [2.78]

SeLinux status: permissive

busybox 1.25 in /system/xbin
[Android Apps and Games] Fiska:
Done, and it seems to recognize the partition, which I can browse in ES File Explorer and the like, but now I can no longer see the apps that were installed there (understandable being that it's formatted), and I can't reinstall them due to error code -506 (from Google Play store).

I formatted as ext2 on both partitions, using half of the 128GB card each.
[Android Apps and Games] vickybonick:
Format the first partition as fat32. Then use the broken app cleaner
[Android Apps and Games] vickybonick:
No it can't but you can use the folder mount option
[Android Apps and Games] Fiska:
Done, 2nd partition fails to mount now. Recommended selecting ext4 during recreating mount script. Did that, now seeing mount: mounting /dev/block/vold/public:179_65 on /data/sdext2 failed: Invalid argument.

Submitting Error Report in app now.
[Android Apps and Games] vickybonick:
change block path in mount script dialog to /dev/block/mmcblk1p3
[Android Apps and Games] bmeacham363:
Okay, thanks! :)
[Android Apps and Games] holamundo216:
the same problem as avobe partners; freezing message when trying to send crash data. but i will retry
[Android Apps and Games] Fiska:
That seems to work. I'll go ahead and avoid migrating data folders in the future...

Thanks!
[Android Apps and Games] andacro:
Running MM with init.d, deox, Magisk and phh's SuperUser on my S5. Had linked a few apps, and it worked fine, until yesterday when I restarted the phone and it begain optimizing all my apps as I had cleared my cache, and all my linked apps were gone after it had booted. :(

Got fat32, ext4 and a cache partition, and ran the mount script with init.d.
[Android Apps and Games] ShinraTensei04:
Sent just now.

---------- Post added at 10:10 AM ---------- Previous post was at 10:07 AM ----------

Partition your sd card using Minitool partition wizard on PC. I had the same error, so...
[Android Apps and Games] vickybonick:
Upgrade the 2nd partition to ext4
[Android Apps and Games] 5mohsen5:
1.99 or 2.99 ????

or
[Android Apps and Games] vickybonick:
If you reopen the app it'll show 2.99
[Android Apps and Games] sekiller:
App not istalled when linked, can't remove 2nd partition

Guys, whenever I link any app to 2nd partition, I cannot run it afterwards. I tried F2FS and EXT4, but no luck. (running CM12.1, F2FS file system)

I'm not sure what I'm doing wrong.

Also, how can I remove the 2nd partition of the SD card? If I try to format the SD card, I get error message that Fat32 File system cannot by used due to size of the card
[Android Apps and Games] Venomz33:
Any news of the test build? 4.1 update is on at play store. Is this the one you talked about? [MENTION=6726362]vickybonick[/MENTION]
[Android Apps and Games] vickybonick:
No it's not. I'll send you today
[Android Apps and Games] Venomz33:
Hi [MENTION=6726362]vickybonick[/MENTION] I'm not so sure if anybody asked this before, but why a single fat or ntfs partition is not supported using our sd card(like foldermount) ? Is it technically mandatory?

For example, Lets say I seperated a 5 gb of space for 2nd partition. When I decided to install another game and the space is not enough, I have to partition the whole card again (extending the space without format can sometimes brake things down.)
[Android Apps and Games] vickybonick:
You can use the folder mount feature without needing the 2nd partition. But to use the App linking feature you need 2nd partition. In App linking you can move obb and external data to first or 2nd partition.
[Android Apps and Games] Venomz33:
Thabks for the info. Waiting your test build.
[Android Apps and Games] vickybonick:
Install this one. Mount any folder and see if it's working.

Also send me the output of

mount
[Android Apps and Games] Venomz33:
I installed this and tried but nothing changed. See attachments below.
[Android Apps and Games] vickybonick:
I didn't notice you're first partition is exFat. I''ll build another apk and send you.
[Android Apps and Games] Venomz33:
Do you mean ext sd card?
[Android Apps and Games] vickybonick:
yes
[Android Apps and Games] Venomz33:
I really dont know which format is best for performance. So i let the phone format it. Which format do you prefer?
[Android Apps and Games] vickybonick:
exFat is better if your device supports it. I'll be sending you the test apk within 30 minutes
[Android Apps and Games] Venomz33:
Ok thanks. When your release is functional enough, I'll help you for Turkish localization. There are many people asking for it at play store.
[Android Apps and Games] vickybonick:
Can you try with this one
[Android Apps and Games] Venomz33:
This worked. But it doesn't seem to free up space at internal storage. Here are storage info before and after.
[Android Apps and Games] vickybonick:
You need to check delete source then only it'll free up
[Android Apps and Games] Venomz33:
Ok. I tried that way and everything is ok now. Many thanks. But your % indicator isnt working correctly. As you can see from the attached screenshot, the folder I bind is total 2.5 GB data in it. As soon as the copy process begins, the indicator shows %98.and also the total data is wrong as well. The app dows its job so this is not a big shot.
[Android Apps and Games] vickybonick:
Ok thanks I'll fix that. I'll let you know when i need translation
[Android Apps and Games] t13nif:
Help please

I finally got my SD card partitioned properly on my Galaxy Tab S and started linking apps. I have a big problem however. I had natively moved many apps to my SD card previously, and when i partitioned the card, obviously i lost all those apps. No problem, i thought, i will just re-download from the Play store. My problem is that the Google Play no longer works for me, when i click Install for any program, the store shuts down. I have cleared the data, cache and uninstalled updates. In the rare case that i am able to click Install without the store crashing, it tells me i am out of storage space. Also, every time i click on "Settings" in Apps2SD, it crashes, so i am not able to set up automatic linking for newly downloaded apps.

Please help. My tablet is quite useless without most of the apps working. Thanks in advance.
[Android Apps and Games] btb55:
I have a video app which cannot write to ext SD card in Android v6.0. It can only write to internal storage.

Can I use any of the Apps2SD functions to overcome this?

I've set up a Folder Mount to Bind the folder on Internal storage to the ext sd card, but the app still writes its files to the internal, so think I'm misunderstanding how it works. I've got a second ext4 partition on the sd card, can I link this in some way so the app doesn't actually write to internal storage, even if it it 'thinks' it does?
[Android Apps and Games] awilson13:
Vicky, first off thank you so much for your development and time on this app. I have paid, rated, and told everyone who will listen about it! I have used it for years without any issues. But upon moving to CM14.1, I was met with a nasty surprise...they switched to sdcardfs. Partitioning, mounting, and moving apps works without issue, but when you try to run them, they close immediately. I tried the fuse fix from your app but it just soft bricks my device. Am I out of luck? I would be more than happy to beta test or help in any way I can, I am a technical user so feel free to ask me anything you need. Thanks again!
[Android Apps and Games] agavia:
vic, i have to remount all over again my folder mount every reboot.... can u fix this...??? thx...
[Android Apps and Games] ahhazar:
I have the same problem...
[Android Apps and Games] vickybonick:
1st try the Sdfix option.

2nd you can use the Unmount only option in mount pair to see the actual location of the files
[Android Apps and Games] vickybonick:
As of now i don't have any solution for it apart from the patch. Soon i'll start digging
[Android Apps and Games] vickybonick:
Send device info from the app. Set your email in the app and pm me your email
[Android Apps and Games] vickybonick:
Create Mount script and select su.d option.
[Android Apps and Games] agavia:
just flash a new rom.... did everything as ussual but after creating mount script reboot...
[Android Apps and Games] vickybonick:
If you don't have sd card 2nd partition then check "Disable auto mount of 2nd partition" option in settings and Increase "Request timeout for root" to 20+ seconds in settings
[Android Apps and Games] ShinraTensei04:
The wipe 2nd partition option doesn't wipe obb files. Because even after wiping, I had 2.4 gb left, which consists of 2 games with 1 GB data each, and 1 with 300 MB.
[Android Apps and Games] vickybonick:
Is it in 1st partition?
[Android Apps and Games] vickybonick:
Version 11.1 released in play store and attached in OP

Changelog:

Reduced number of fullscreen ads

Updated Chinese Traditional, Portuguese (Brazil), Italian, Indonesian and German

Fixed crash after app update

Added confirmation in widget for reboot/shutdown etc

Added GCM indicator in Hibernate apps section

Bug fixes and improvements
[Android Apps and Games] ShinraTensei04:
No, when I linked the games, I successfully linked the obb files, which were originally in 1st partition, but after the link, in 2nd partition.
[Android Apps and Games] vickybonick:
After wiping the 2nd partition what are the contents of /data/sdext2
[Android Apps and Games] Android_noob17:
Am I the only one seeing this?
[Android Apps and Games] ShinraTensei04:
I can't really check contents via apps2sd, only see space used. Under Storage Info, it shows 2.4 GB used, 5.2 GB free., which adds up to the 7.6 GB I created. And since I had 3 games totaling to around 2.4 GB in size, I'd assume it'd be their obb files taking up the space.
[Android Apps and Games] agavia:
it's done but folder mount still need to remounted after reboot...
[Android Apps and Games] vickybonick:
Use a root explorer or df in terminal
[Android Apps and Games] vickybonick:
It's an experiment
[Android Apps and Games] ShinraTensei04:
What is the path of 2nd partition? I tried finding it through root explorer for quite some time, but couldn't find it.
[Android Apps and Games] vickybonick:
/data/sdext2
[Android Apps and Games] ShinraTensei04:
Okay, so 'Android' takes up 230 MB, 'apk' takes up 1.20 GB, 'data' takes up 1.20 GB.

Edit: There's also dalvik-cache(40 MB) and app-lib(60 MB)
[Android Apps and Games] vickybonick:
If you want you can wipe and check again
[Android Apps and Games] ShinraTensei04:
Still the same.
[Android Apps and Games] vickybonick:
Ok, i'll check it out
[Android Apps and Games] vickybonick:
There's a bug. The bug messes with the mount script so recreate the mount script
[Android Apps and Games] SlyApps:
Good i moved many files using it
[Android Apps and Games] ShinraTensei04:
I recreated it as ext4 using normal method, then rebooted, then wiped. Still no change.
[Android Apps and Games] vickybonick:
Wipe doesn't work it deletes the mount script. It'll be fixed in next version
[Android Apps and Games] ShinraTensei04:
Aha
[Android Apps and Games] ahhazar:
Vicky,

Due to new versions dex file linking error I revert to version 10.5. When will you solve this problem or will u? What have changed between version 10.5 and newer ones?
[Android Apps and Games] vickybonick:
You can use force dex linking option in settings but linking dex will probably trigger dex optimization on boot. You can also set selinux to permissive.

Checkout www.apps2sd.info/kedb.html for more details
[Android Apps and Games] ahhazar:
I am using v10.5 Pro and it has no extra dex optimization on boot.

I have tried setting selinux to permissive but not working.

I do not want to stay always at this old version.

I want only updating without that major problems. :(
[Android Apps and Games] passport619:
Hi. About to have a go at the app. I'm hoping it can help with my issue. I've tried various ext sd cards and they all seem to become corrupted after a while and my files start to become unusable. My current card is I believe 120gb. Would using this app and making a partition of about 50gb help in your opinion? I have an S5 and have read that cards over 60gb are not recommended for use on this phone. I can transfer apps for a while then in a few weeks I can't transfer anything without it becoming corrupted including videos and pics. Thank you for any feedback.
[Android Apps and Games] vickybonick:
The option is available in latest version
[Android Apps and Games] passport619:
Main Fat?
[Android Apps and Games] lee99:
First partition on your memory card must be a fat32 or exFat.
[Android Apps and Games] agavia:
failed after reboot.... vic, help please...
[Android Apps and Games] pritamguruji:
Partition problem

First of all vicky thanks for the great app...

I installed nd created partition in my one of phone it's working great...

But I m trying to make partition in my other old samsung phone..it's not able to create 2nd partition..it says me to reboot phone for formatting SD card...but after rebooting my memory card automatically getting unmounted.

And it fails to create partition...

Please can you help me..

That device is Samsung GT-s6312 and is SuperSU rooted also created mounted script with enable super su
[Android Apps and Games] vickybonick:
Try minitools or gparted
[Android Apps and Games] pritamguruji:
please can u help me about gparted or minitools

I'm really ignorant about gparted please can you help me how to do it..

Can I use them from android or will need pc?
[Android Apps and Games] vickybonick:
Pc. You can google it
[Android Apps and Games] ShinraTensei04:
Is it okay to delete all contents in second partition using root explorer to free up space?
[Android Apps and Games] vickybonick:
Don't delete any linked item and you're good. Use the 2nd partition cleanup option (Recommended)
[Android Apps and Games] vickybonick:
Guys,

I need few users to test the sdcardfs fix i've been working on.

1) Android Nougat with sdcardfs file system

2) Android Marshmallow with sdcardfs file system (If you applied the fuse patch you can revert it and help in testing)

3) Android Lollipop with sdcardfs file system (If you applied the fuse patch you can revert it and help in testing)

4) Android Kitkat with sdcardfs file system (If you applied the fuse patch you can revert it and help in testing)

5) Android below kitkat with sdcardfs file system (If you applied the fuse patch you can revert it and help in testing)

Thanks,
[Android Apps and Games] ShinraTensei04:
I've already tried that. Some files(2.3 gb) still stay behind.
[Android Apps and Games] mielletseed:
I could try for Samsung Marshmallow. Last test with fuse ended in a bootloop...
[Android Apps and Games] JoLander:
I can test marshmallow and nougat on my Moto G 2014 LTE (thea).

It's a spare device and I can reflash systems as often as I want.

I already wrote to you by mail because of the problems I have with mounts on sdcardfs.
[Android Apps and Games] dvdhngs:
If needed

I have a S5 with stock marshmallow and sdcardfs.

Ps: TWRP e root ok.
[Android Apps and Games] vickybonick:
Install the attached apk. No patching is needed.

Test 1) Use the link option to move obb and ext data to sd card 2nd partition. Do multiple reboots and verify

Test 2) Use Folder mount to move obb and ext data to sd card 2nd partition (/data/sdext2 if mounted). Do multiple reboots and verify

Note 1: If you are using the Pro version freeze/disable it

Note 2: Bind works between internal/emulated and SD card 2nd partition only. SD card 1st partition doesn't work
[Android Apps and Games] JoLander:
Here are my first test results:

[FONT="Courier New"]Device:	Moto G 2014 LTE
System:	MoKee 7.1 Nightly 20161127 (based on CM14)
GApps:	nano
SuperSU:	2.78 (SR4)
SeLinux:	Permissive (set with modified Kernel Adiutor)

3 Partitions on external SD:
1st. FAT32 46GB
2nd. EXT4 16GB
3rd. swap 1GB
(Partition 1 and 2 get automatically mounted on device boot)

Installing apps2sd	[COLOR="Red"]OK[/COLOR]
First start asking for root access	[COLOR="Red"]OK[/COLOR]
First start asking for permission on storage	[COLOR="Red"]OK[/COLOR]
Option 'Link apps to SD card' -> Create mount script (ext4 with su support)	[COLOR="Red"]OK[/COLOR]
Leaving app and Reboot.
Message 'SD card is damaged' after boot. Simply wiped away.
Checking mount points: /data/sdext2 is correctly mounted as ext4 to the second partition of SD card.
Second start of apps2sd	[COLOR="Red"]OK[/COLOR]
Linking one test app to second partition (selected 'all')	[COLOR="Red"]OK[/COLOR]
Checking 'bind results' says 'No Records found'	[COLOR="Red"]Not OK ?[/COLOR]
Tested app functionality	[COLOR="Red"]OK[/COLOR]
<Reboot>
Message 'SD card is damaged' after boot. Simply wiped away.
Tested linked app functionality	[COLOR="Red"]OK[/COLOR]
Starting apps2sd and select folder mount	[COLOR="Red"]OK[/COLOR]
Message regarding usage of second partition because of sdcardfs	[COLOR="Red"]OK[/COLOR]
Create folder mount between /storage/emulated/0/DCIM to /data/sdext2/.folders/DCIM
(with option 'delete source folder contents after bind' and with option 'bind')	[COLOR="Red"]OK[/COLOR]
Activate this folder mount	[COLOR="Red"]OK[/COLOR]
Existing folders and pictures are moved to new external folder	[COLOR="Red"]OK[/COLOR]
Checking 'bind results' says 'No Records found'	[COLOR="Red"]Not OK ?[/COLOR]
Checking 'mount' shows that DCIM is now mounted 4 times to SD second partition:
[I]/storage/emulated/0/DCIM
/mnt/runtime/default/emulated/0/DCIM
/mnt/runtime/read/emulated/0/DCIM
/mnt/runtime/write/emulated/0/DCIM[/I]

Taking a new picture with standard CM Camera [COLOR="Red"]OK[/COLOR]

View new picture in Gallery does not work. Only old existing pictures are shown. New picture is present, but shown as black frame.

Seems that the following happens:
1. Without Folder Mount the permissions of the files in /storage/emulated/0/DCIM/Camera are:
Perm	Owner	Group
----	------	---------
664	root	sdcard_rw

2. After Folder Mount and moving files to external SD the permissions of the files in /storage/emulated/0/DCIM/Camera are:
Perm	Owner	Group
----	------	---------
775	media_rw	media_rw

3. New picture taken get the following permissions:
Perm	Owner	Group
----	------	---------
600	u0_a26	u0_a26

These new pictures are unreadable by any tool (like Gallery, File Manager,...)
When I chmod the new image to 775, they are shown correctly in all apps.[/FONT]

Will continue with further tests soon.

Joe
[Android Apps and Games] mayank_9198:
How to move apps to sd card in unite2 lollipop
[Android Apps and Games] vickybonick:
Checkout https://www.youtube.com/watch?v=pmYRdDKCQ1M
[Android Apps and Games] vickybonick:
Try this one. It should fix the permission issue. Also i enabled the bind for 1st partition. It may or may not work. I kept a warning message so users will know what to do.
[Android Apps and Games] JoLander:
Tried the new version. I recognized the new warning message, but unfortunately, there is no change in the Folder Mount behaviour:

When I turn off the Folder Mount for this directory, the files get restored, but keep the permissions from before.

Therefore, the files created after the Folder mount are still unreadable.

When I perform the Folder Mount again, all files get the following permissions after the move:

Perm	Owner	Group

----	------	---------

775	media_rw	media_rw

Now, they are readable by everyone, but new pictures again get the weird permissions:

Perm	Owner	Group

----	------	---------

600	u0_a26	u0_a26

---------- Post added at 03:28 PM ---------- Previous post was at 03:18 PM ----------

I tried now to use Folder Mount with the first (FAT32) partition.

Here, I get different results. The newly created files after the Folder Mount do not get the strange permissions, but the following:

Perm Owner Group

---- ------ ---------

775 media_rw media_rw

These are usable by all apps.

Seems that there is some difference here when using FAT32 against EXT4...

Joe
[Android Apps and Games] vickybonick:
Can you run below commands and attach the output

su

mkdir /data/sdext2/test

/data/data/in.co.pricealert.apps2sd/app_binary/setfacl -Rm u::rwx,g::rwx,o:rx /data/sdext2/test
[Android Apps and Games] vickybonick:
Can you delete the destination folder, create again then bind
[Android Apps and Games] vickybonick:
Check your email
[Android Apps and Games] lee99:
I have one problem with latest pro version. When I update linked app sometimes .apk won't link again. It happened few times with bigger apps.

Also it seems apps2sd not working as is should be. I think is killed many times.

I am using KK with stock rom from Thl t6 pro.

Best regards.
[Android Apps and Games] tomaasz:
Hi

I have problem with well underspending bolded text :

"If you use a custom recovery like TWRP then select "Create script for recovery mode" option while creating mount script then boot into recovery, mount system and data partition as RW then execute the command sh /data/apps2sd/mount-script-recovery.sh to create Mount Script"

Do you know any more detailed description for this ?

Or is any youtobe tutorial to see how to do this ?

I've mounted System and Data partitions in TWRP (I don't know if RW) and I don't know how (and where) execute the command sh /data/apps2sd/mount-script-recovery.sh

I will be grateful for your help

BR
[Android Apps and Games] vickybonick:
Here you go
[Android Apps and Games] vickybonick:
Maybe android is killing Apps2SD service
[Android Apps and Games] imtawakkal:
Vicky i wanna ask, why my apps always missing after reboot? sometimes the apps popup to softreboot to fix that, but mostly not, how i can fix that? ah i use phh systemless super user, is that a problem?
[Android Apps and Games] tomaasz:
Thank you bro!
[Android Apps and Games] vickybonick:
Probably. Send device info from the Error Report window
[Android Apps and Games] lee99:
Who knows... maybe but I am not so sure about that.

Also I can't create backup of apps with both dex and odex files.

Best regards
[Android Apps and Games] vickybonick:
You can capture the logcat to verify. I'll look into the backup issue
[Android Apps and Games] lee99:
Here you go.

Thanks