yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] vickybonick:
Can you run the below command in terminal and send a screenshot

ls -l /data/app
[Android Apps and Games] keysikasuy:
Terminal emulator sir?

---------- Post added at 05:54 PM ---------- Previous post was at 05:49 PM ----------

I tried it in terminal command in twrp and it said not found
[Android Apps and Games] keysikasuy:
Not found sir

---------- Post added at 06:55 PM ---------- Previous post was at 05:59 PM ----------

Sigh. I think another reformat :(
[Android Apps and Games] keysikasuy:
Okay just reformatted and reinstalled everything. I just want to know sir what are the things I need to avoid so that it won't occur again. Also, is there any chance that I can still clean files? Clean master really cleans well and free up some space but it conflicts with app2sd. Thanks
[Android Apps and Games] keysikasuy:
Another scenario sir. I want to sideload nba2k14. I put the apk to sdcard then install but after it is being linked to app2sd it crashes
[Android Apps and Games] keysikasuy:
I got this working now sir. I checked sdext2 and there are multiple apk identical with the app I am having problem with. I deleted all of them and reinstalled the app and now it's working. I jist want to share this sir in case others might experience too
[Android Apps and Games] Cheetah64d:
Ok. I've got to admit, that I almost rate this app as 1 star, because it gave A LOT of bugs, but then, considering the big efforts puts into this app, based on the shiny look and the various features it has, I decided -

why not try to fix it instead of just rate it?

So I gonna do the whole process all over again, and try to solve all the bugs right here with you, guys. At the end - I'll rate the app just as the results will be.

To start out fresh, I flashed my phone (ZTE V5 Redbull) and installed CM12.1 with Gapps on the system folder.

So here is my first question:

On the app website, FAQ section (http://www.apps2sd.info/faq.html) it says:

Well, I've just installed the app, no busybox on my device, and no asking for busybox occurred. Is busybox really necessary or not?
[Android Apps and Games] vickybonick:
Yes busybox is required. If you're not asked for it then it means you have a copy of busybox.
[Android Apps and Games] vickybonick:
Can you unzip this binary to /cache and run below commands

chmod 777 /cache/apps2sd-arm
/cache/apps2sd-arm getsuinfo
[Android Apps and Games] btb55:
I uzipped to /cache, then when I run the first command get permission denied, so didn't run the second

$ chmod 777 /cache/apps2sd-arm
chmod: /cache/apps2sd-arm: Permission denied

Wait a moment please, sorry but I think my terminal, TERMUX isn't running as root, let me have a little time to see what is happening
[Android Apps and Games] vickybonick:
Run su first
[Android Apps and Games] justjr:
Awesome, looks like my problems are solved. I hope my 2nd partition do not corrupt, so I don't have to test the bootloop issue :)

Thanks!

ps.: I did not recreated the mount script, I use advanced method.
[Android Apps and Games] btb55:
Thank you, sometimes the simple things get overlooked, sorry.

su
root@hwplk:/data/data/com.termux/files/home # /cache/apps2sd-arm getsuinfo
"/sbin_orig/su 1 /sbin_orig "
root@hwplk:/data/data/com.termux/files/home #
[Android Apps and Games] vickybonick:
Do you use Hangouts or gmail? It'll be easier to communicate
[Android Apps and Games] btb55:
I still have you as a contact on WhatsAp from a previous issue, or you can connect to my phone with teamviewer. I can send you my teamviewer id on WhattsApp if thats OK with you?
[Android Apps and Games] vickybonick:
ping me on whatsapp
[Android Apps and Games] btb55:
Done , my number starts +44 and ends 1752
[Android Apps and Games] vickybonick:
I've changed my number can you pm me your number
[Android Apps and Games] justjr:
[MENTION=6726362]vickybonick[/MENTION] just as a suggestion that I think others will like too. On app filter list, it is hard to make it not close when you choose one filter? As it accept multiple boxes checked, often we have to open again and again to choose our filter combinations. On the other hand, this behavior is OK on the order list, cause we only can choose one order anyway.

Thank you!
[Android Apps and Games] vickybonick:
I also wanted to implement that but Android doesn't provide a way to do that and i haven't found a work around
[Android Apps and Games] vickybonick:
Try the attached apk (apps2sd-pro-v121-beta-2.apk). Also delete below file before installing the attached apk

/data/data/in.co.pricealert.apps2sd.pro/app_binary/apps2sd
[Android Apps and Games] justjr:
I understand.

I had to reinstall Lineage, is there any way to recover apps on 2nd partition?

I tried mount script and didn't helped, I don't remember when I created it. When it matters that you have to recreate one? I mean, what changes I make on system, like every new app installed or what?
[Android Apps and Games] vickybonick:
Use the Restore apps(sdext2). It's a menu option in Link apps window
[Android Apps and Games] E_Ben:
Hi Vicky,

wow, lots of communication here today. Thanks for the 12.1 beta2. After I installed it over v12pro, my issues related to Magisk seem to be solved. However, if I followed your advice and delete the apps2sd binary before installing the beta, I got a license error that I also get if I install one of your beta versions without having installed a pro version from play store before (I had reported this in a PM a while ago).

Edit1: That was a slightly too quick conjecture. The above is valid for a not completely clean install of Magisk, i.e. I had the apps2sd-related files left from before in the folder /magisk/.core/post-fs-data.d/

If I delete these files and try to rebuild the mount script using Magisk method (tried multiple times), the /magisk/.core/*.d folders remain empty, although to my understanding, the files "apps2sd" and "00000000apps2sd.sh" should be in /magisk/.core/post-fs-data.d/

Edit2: My Edit1 was wrong, I had simply forgotten to install the beta over v.12.0; Sorry for the confusion. Finally everything works: The mount script is properly installed in /magisk/.core/post-fs-data.d/

App linking to sdext2 works, just as folder mount from folders on internal to external SD card.

I also confirm that dirty flashing my Lineage OS does not cause bootloops any more. Good job, Vicky!
[Android Apps and Games] justjr:
Something is wrong, as soon I recreate mount script as advanced method, reboot it get stuck at logo, it does not bootloop, but also does not boot. Dirty flashing OS it boot, and then if I just delete or do not create mount script it reboots fine. Taking sd card out does nothing this time.
[Android Apps and Games] sjamie:
Did you try recreating the mount script using the 3rd option "Magisk Interface"?
[Android Apps and Games] justjr:
I've always used advanced method with no problem until latest beta. Su.d/magisk option always gave me problems as it does not mount the 2nd partition on boot, then it ask me to soft reboot (which corrupts my 1st partition sd card) or use advance method, and I have been used the later since ever with no problems, I suspect the fix for the bug I reported on the bootloop when 2nd partition is corrupted may have something to do with it. Taking sd card out does nothing this time.

I think I forgot to say it is happening with latest beta 2.

Best wait until [MENTION=6726362]vickybonick[/MENTION] sees it I think.
[Android Apps and Games] vickybonick:
This should fix the issue with Advanced method
[Android Apps and Games] 1emrys1:
I installed the pro version. I already had the free version and I have been using it from a few weeks. When I installed the pro version.. It installed as a separate app. So now I have two apps. Should I open the pro version? Will it detect all my data and mount scripts that I have active with the free version? I don't want to mess up everything!

Another thing. Supposed I move a big app like Facebook to 2nd partition. Then I uninstall it after a few days. I noticed that the files that I had moved don't get deleted from the second partition. They don't get deleted automatically and we can't do it manually either. Any solution?

Sent from my Redmi Note 3
[Android Apps and Games] 1emrys1:
Never mind about the first issue. I read the faq from end to end and successfully shifted to the pro version.

But I'm still unsure about the second issue, that is, leftover files after uninstalling an app. Although your faq says that it gets removed by the app itself but I found that not to be the case. As a temporary solution, I'm moving every app back to internal before uninstalling it.
[Android Apps and Games] vickybonick:
Either use the broken app cleaner or clean up 2nd partition. You can read about them in features section on the website
[Android Apps and Games] 1emrys1:
Okay. Thank you.

I have done the setup that I needed. I have moved necessary files and set up required folder mounts. Now can I greenify the app using Greenify? Will it cause any problems if I restart the device or otherwise?
[Android Apps and Games] sjamie:
Thanks for your fast and unmatched support! Do you recommend we use the Advanced method or the Magisk Interface method for those of us using a ROM with MagiskSU?
[Android Apps and Games] vickybonick:
Advanced method is faster but does modify the system partition and also on some ROMs it might get permission denied while mounting obb, ext data and foldermount pairs.
[Android Apps and Games] vickybonick:
Don't greenify/hibernate Apps2SD
[Android Apps and Games] 1emrys1:
I'm facing a display bug, I think. Most apps display the data in 'app info' screen correctly but a few don't. A notable example is whatsapp. It takes up about 400mb in my internal storage. I'm not including the Whatsapp folder on the SD card. That's different. Anyway.. When I move whatsapp using apps2sd, it gets moves successfully. But in apps info screen... It still show that it's taking up 400mb. I call it a visual bug because in reality, my memory card gains 400mb space so obviously the app has been moved.

I didn't attach the picture of whatsapp because i use it frequently and hence I have decided to put it back on internal. But I have attached the screenshots of hike. Pretty similar case.

Another thing.. This visual bug is present throughout. Even the app DiskUsage shows hike taking up that much data when in fact it isn't. Also I have rebooted more than a couples of times and the issue remains present.

I'm using a Redmi Note 3 snapdragon with Nitrogen OS (7.1.1). It has inbuilt Superuser.
[Android Apps and Games] justjr:
Hey [MENTION=6726362]vickybonick[/MENTION] please take a look at advanced method cause I keep stucking at boot problems on beta 3 over and over, this time removing sd card make it bootable again. I tried like 3 times, after boot without sd I put it in, mount and recover apps on sd2ext (so is not even corrupted, apps with apk on internal go back to work, linked, but I have to recover all the complete internal ones... every time, no way for it to auto recover it when it sees then on sdcard?), I when I reboot it happens again.
[Android Apps and Games] sjamie:
I think this behavior occurs because the phone "thinks" the app IS installed on internal storage. Only Apps2SD knows the "truth". However, I'll defer to [MENTION=6726362]vickybonick[/MENTION].
[Android Apps and Games] 1emrys1:
I guessed somewhat similar. But why only in some apps? And why only the data component generally. If other apps can work happily with thinking that all their components are elsewhere, I believe these apps can as well. The paytm app is the best case I have seen. After moving all its parts, it literally takes 0.5 mb in internal and the app info screen shows the same thing.
[Android Apps and Games] vickybonick:
Send me the device info with SD card inserted
[Android Apps and Games] justjr:
I just remade mount script, this time with su.d/magisk method and it rebooted, in the process of recover some apps and will send you the device info asap, let me know if it have what you need.
[Android Apps and Games] vickybonick:
I need it with advanced method. Follow below steps:

1) Create mount script with Advanced method

2) Send device info

3) Reboot

4) If device is stuck on boot, boot into recovery and copy the log file inside /data/apps2sd-log folder and send me
[Android Apps and Games] vickybonick:
Android caches the data directory size, so for apps with more data it'll take time to update
[Android Apps and Games] justjr:
Right, just to confirm, I restarted with the magisk method and it works fine. Will create advanced method and send now, then restart it. I will have to recover all apps again :'(
[Android Apps and Games] vickybonick:
Before rebooting delete the log file I mentioned
[Android Apps and Games] justjr:
Ok, this time it booted with advanced method, but there's something wrong. I will send info again after restart, and then if and when I get stuck again on boot, I will send you the log so you can take a look.
[Android Apps and Games] justjr:
Yeah, it happened. Looks like it can't find the sd card on boot, but after it it can.

Log content:

Thu Jan 1 08:56:20 GMT 1970 Starting...
/data/sdext2
mount: '/dev/block/mmcblk1p3'->'/data/sdext2': Device or resource busy
mount: '/dev/block/vold/179:66'->'/data/sdext2': No such file or directory

edit: I don't think I have a 179:66 file on /dev/block/vold/, only disk:179_64 and public:179_65

After booting without card, and putting the card, recreating script with advanced method and rebooting, this is the log:
[Android Apps and Games] vickybonick:
I'm a little confused, does it work or does it not?
[Android Apps and Games] justjr:
From what I see after some apps are installed, it proceeds to not boot again. I can't find exactly when or why. But in the end if I keep the phone on after installing all apps it keeps working, when I restart it does not boot.

When I said, it happened again, I mean that it don't boot. The log is the one I sent you with only 2 lines.
[Android Apps and Games] vickybonick:
Will you be available on email/hangouts after 4-5 hours from now?
[Android Apps and Games] justjr:
Probably yes, email and whatsapp. I will send you my info.
[Android Apps and Games] Goutham Ganesh:
can't turn on swap.

Nitrogen OS - 7.1.1
[Android Apps and Games] vickybonick:
Swap file needs to be created on a linux (ext2/ext3/ext4/f2fs) filesystem not fat filesystem
[Android Apps and Games] Goutham Ganesh:
how come is it working in /system partition then?
[Android Apps and Games] vickybonick:
Because system has a linux file system
[Android Apps and Games] Goutham Ganesh:
But ROEHSOFT RAMEXPANDER can create swaps in the /SD card, how's that possible?
[Android Apps and Games] vickybonick:
Apparently i was wrong. It'll be fixed in next version
[Android Apps and Games] justjr:
ops, already answered
[Android Apps and Games] Handsome Jack:
I use Minitool Partition Wizard free on Windows 10.

Micro sd card 64gb.

At first I created fat32 and ext3. It kept saying:

mounting /dev/block/data/sdext2 failed No such file or directory.

So I create fat32 and ext4. It works.

Not sure what happened?
[Android Apps and Games] justjr:
[MENTION=6726362]vickybonick[/MENTION] why when I format 2nd partition and reinstall apps, some of them keeps linked to data, with a broken link? The app link it automatically, but the files are not there? Can you take a look? I think it should not link if the files are not there. Thank you! Cleaning broken apps has been causing bootloop sometimes when I try to use it get rid of this problem after formatting.

I'm having a lot of problems after we last talked, and not been able to link most apps I used to be on both 3rd and 4th mount methods. :/

I've been desolated, hahahaha.
[Android Apps and Games] frpnit:
[MENTION=6726362]vickybonick[/MENTION] if i got 'apps2sd-mount-script.log' file in '/data/apps2sd-log/' folder, that means script is perfectly running at boot, right?

Well, that's the thing: i have a mediabox and i'm using Apps2SD to use second ext4 partition of my thumb drive as sdcard. I'm on Marshmallow. I've set custom block as '/dev/block/sda' and '/dev/block/sda2' as second partition. Log tells me that '/dev/block/sda2 not found', but after boot i see sdext2 is mounted and everything works great after soft reboot. Am i missing something here? There is something i could try to do on script or whatever?

Here my mount script:

#!/system/bin/sh
count=0
LOG=/data/apps2sd-log/apps2sd-mount-script.log
rm -f $LOG
echo "$(date) Starting..." > $LOG

ls -d "/data/sdext2" 1>>$LOG 2>>$LOG
if ! ls "/dev/block/sda2"
then
echo "/dev/block/sda2 not found" 1>>$LOG 2>>$LOG
else
while ! ls -d "/data/sdext2"
do
count=`busybox expr $count + 1`
if busybox test $count -ge 1500
then
break
else
sleep 0.1
fi
done
sleep 0.5
if ! busybox mountpoint -q "/data/sdext2"
then
while ! mount -t ext4 -o rw /dev/block/sda2 /data/sdext2
do
count=`busybox expr $count + 1`
if busybox test $count -ge 1500
then
break
else
if mount -t ext4 -o rw /dev/block/vold/public:8,2 /data/sdext2
then
break
else
sleep 0.1
fi
fi
done
mount -t ext4 -o rw /dev/block/sda2 /data/sdext2 1>>$LOG 2>>$LOG
mount -t ext4 -o rw /dev/block/vold/public:8,2 /data/sdext2 1>>$LOG 2>>$LOG
chmod 775 /data/dalvik-cache
chmod 775 /data/dalvik-cache/arm
chmod 775 /data/data
else
echo "2nd partition already mounted..." 1>>$LOG 2>>$LOG
fi
fi

/data/apps2sd/apps2sd-mountscript-2.sh
mount >> $LOG

EDIT: Forget to tell that, when i open ES File Explorer, on first boot, USB 1st partition appears mounted as OTG disk, named as 01D2A649779FF200 (path: storage/01D2A649779FF200), and on second boot, it appears mounted nos as an OTG disk, but like it was really an sdcard, named as External Storage (and same path, as checked both on ES File Explorer, and using df command on terminal emulator). Dunno if it helps at all.

Cheers,

Fabrício.
[Android Apps and Games] Zehlek:
For Final Fantasy games that have large obb files, do I manually copy the obb folder to 2nd partition with a root explorer or does Apps2SD do that for you and which option do I pick as I do not see move obb files or anything.

TIA
[Android Apps and Games] Carbon8:
Error with Latest Version

[MENTION=6726362]vickybonick[/MENTION]

I am getting an error with the latest version that I had never gotten with the previous versions. Anytime I try to link apps, every app has an error linking the dex file.

Here is an example error message when I tried to link the Google App:

Error! Unable to move Data(Ext). Open Error Report?

and the error report shows:

Google App Data(Ext) bind

cp: can't stat "/data/media/Android/data/com.google.android.googlequicksearchbox/.': No such file or directory

This happens on all apps I have tried to link but only after installing the latest version. I have tried reinstalling BusyBox, made sure SELinux was set to permissive, disabled Mount namespace separation in SuperSU, and checked to Use cp instead of rsync but still the error persists. Any other suggestions on how to fix this?
[Android Apps and Games] Carbon8:
Okay, thanks. I sent it.
[Android Apps and Games] J_M_V_S:
[MENTION=6726362]vickybonick[/MENTION] I've been using your app (PRO) for many months now and I would like to comment on a few quirks I'm having:

1) The most annoying thing is that from time to time my screen goes blank (or should I say black?) but remains on. To make it clear, the screen does not goes off, instead it is on and displaying nothing. When this happens the phone is almost in an unrecoverable state. The most common solution is to make a hard reset or if the device somehow still responds, do a normal shutdown. This seems to be related to System Process hanging. If I make the screen go off and on (with the power button) many times I can sometimes glimpse the popup dialog asking me if I want to Wait or Close the process (with no way of actually able to touch any option). I don't really know how to fix this one but maybe due to low memory? What can I do to help you trace this? I might add the phone in this state is unresponsive even connected to the PC and trying using ADB.

2) Following #1, if I do a hard reset (a hard-reboot actually) to recover the phone, all linked appllication are missing. I have to reboot again to make them appear. I can also take the phone to recovery or fastboot when doing the hard reset and reboot again from either of them and the apps do show up.

3) I'm trying to start using swap to check #1 but I can't seem to be able to use it. I've tried with swapfile (on data/ext2) and with swap partition. Both of them shows up in the Swap Manager but the "swapon" command fails everytime. Any pointers on how should I proceed?

EDIT: This is happening a lot less frequently since the last Apps2SD update (have recreated mount script). I'm using latest SuperSU with su enabled at boot.

Phone details on my signature.

Thanks in advance.
[Android Apps and Games] Zehlek:
[MENTION=6726362]vickybonick[/MENTION] thank you very much for your awesome app. I can finally have all ff games installed
[Android Apps and Games] fubo73:
Hi,

I bound a couple of folders to external SD using Folder Mount. I have two strange behaviors:

1) when I look at free space of internal SD, it takes into account also data in bound folders. I can clearly see this behavior running df:

11.8G 11.1G 713.3M 4.0K /storage/emulated

11.8G 11.1G 738.3M 4.0K /data

2) when I connect my S5 to a PC, mounted as MTB, I cannot see whole external SD card, but just a bound folder.

Any hint?
[Android Apps and Games] Zehlek:
Sorry dumb question, how do I recreate mount script as I updated my rom and I didn't wipe data, I don't see this option and my apps don't show installed

Thank in advance
[Android Apps and Games] Carbon8:
You might need to "Rebind external folders" in the side menu under "Link apps to SD card". Otherwise, the option to recreate mount script is in the same menu.
[Android Apps and Games] Zehlek:
Thank you it worked i had to use restore app on ext2
[Android Apps and Games] Carbon8:
No problem! Glad you got it working.
[Android Apps and Games] vickybonick:
PM me your email
[Android Apps and Games] vickybonick:
Add below line after ls -d "/data/sdext2" 1>>$LOG 2>>$LOG in the script and send me the log file after reboot (/data/apps2sd-log/apps2sd-mount-script.log)

ls -lR /dev/block 1>>$LOG 2>>$LOG
[Android Apps and Games] vickybonick:
It doesn't link it automatically, there is a left over symbolic link which is shown as broken link
[Android Apps and Games] vickybonick:
1) The issue maybe related to having more apps run from sd card. try moving odex or dex back to internal.

2) You can try the Advanced method

3) Does your device support swap?
[Android Apps and Games] frpnit:
Many thanks! Will do when i get back to home :)

Cheers,

Fabrício