yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] sremick:
Well, the middle part/quote of my previous post was me responding to him letting him know the outcome of me trying that. Except I set selinux to permissive via the Kernel Adiutor app and set it to apply on boot.
[Android Apps and Games] vickybonick:
Selinux mode has to be set before boot for the mount script to work on your device
[Android Apps and Games] 5mohsen5:
Galaxy j2

Android ver. 5.1.1

stock rom
[Android Apps and Games] vickybonick:
Do apps require additional permission to auto start similar to miui?
[Android Apps and Games] sremick:
Ok I went through the instructions you linked to to modify the boot.img file and enable selinux permissive (there was a new Bliss update anyway so I did it to that then flashed). I confirmed that it was enabled without having to use the boot script. However I'm getting the same behavior as before: first boot after flashing gets me to the desktop quick (after "updating" applications) but I get the notification that the 2nd partition wasn't mounted and a soft reboot is necessary. After soft reboot I get the spinning boot animation for hours... although if I wait long enough I imagine it'll boot to the desktop like before, just no linked apps appearing.

So that wasn't it. Thoughts?
[Android Apps and Games] vickybonick:
Are you using SuperSU?
[Android Apps and Games] sremick:
Yes I am. SuperSU Pro in fact.
[Android Apps and Games] vickybonick:
Recreate the mount script and select su.d option and let me know if it works
[Android Apps and Games] mielletseed:
[MENTION=6726362]vickybonick[/MENTION]: I have some problems with the classic app2sd feature. I'm on samsung 5.1.1. When I try to move apps to SD or even back to internal I get a time out error and only some parts where moved. Any idea how to avoid the time out?
[Android Apps and Games] vickybonick:
Try removing and reinserting the card
[Android Apps and Games] sremick:
Took me a while to find the "Recreate mount script" option, but I did. Chose the correct format of the partition (fsfs) and the last option (su.d/SuperSU) and it said script was recreated successfully. Same behavior, though (first boot = fast, but partition doesn't mount and prompts for soft reboot, which then hangs on boot animation). Honestly though I'm not sure which of the 3 methods ("normal","init.d","su.d") is appropriate for my device... I'm running Bliss ROM which is CM13-based.

Thanks for your patience and trying to assist this newbie in getting the app to work. I was happy to pay for it as it seems like just the tool I need, and I do believe in supporting devs... especially those who support their users. :good:
[Android Apps and Games] jce2005:
Hi Everyone,

Using Apps2SD PRO and have no problems with the App so far, all works great, but I encountered a strange problem after I have setup Apps2SD PRO.

The problem is :

I CAN'T install any .apk file, I CAN'T restore any app from Titanium Backup, I CAN'T restore any app or apk file from another Backup app, I CAN'T install any downloaded Xposed modules....... However, I can perfectly fine install programs from PlayStore and also update them. And Apps2SD PRO moves them after instill to the sdcard.

And yes, I know, "Install from unknown sources" must be checked which it is and I also have Developers Option USB Debugging enabled.

It's like that the switch from the "unknown sources" isn't working....... Problem stared suddenly after I have setup Apps2SD PRO, did not make any other changes.

BTW, my On5 is rooted with latest SuperSU PRO and custom TWRP installed.

Any ideas or fix I can try ????

Thx.
[Android Apps and Games] vickybonick:
Capture the logcat and attach
[Android Apps and Games] mielletseed:
Didn't work, used the built-in feature of Android to move my apps to sd-card.
[Android Apps and Games] Vianze:
Hey viki, I just bough and sd card and try to use your app. It works great, I can partition my sd card and link my app.

But the issue here, I must do soft reboot to be able to see my linked app in my drawer but it cause my main sd card storage cant be detected by my phone, if I only use normal reboot, I cant see my linked app in the drawer but my phone can detect the main sd card storage

Is there any solution on this? I'm using redmi note 2 with CM 12.1 rom
[Android Apps and Games] vickybonick:
Use SuperSU and select su.d option while creating mount script
[Android Apps and Games] Vianze:
I've tried that also but it doesn't, but know I just tried the init.d support and fix the permission for 2nd partition. All seems fine know, I can see both sd card and linked apps.
[Android Apps and Games] jce2005:
Hi,

here is the log.... Not sure if I got the log correctly.....

Thanks
[Android Apps and Games] vickybonick:
Capture the logcat while installation
[Android Apps and Games] vickybonick:
Apps2SD website changes:

www.apps2sd.info

Updated FAQ section

Added Features section

Added Known issues and solutions section

Added Suggestions section

Added Permissions used section

Updated Screenshots section

Updated Changelog section

Added Search function

In progress:

New Video tutorials
[Android Apps and Games] jce2005:
Seems like the aLogcat app I used did not really capture anything...... So I went to PlayStore and got a ROOT version.......

Please find attached the captured log.

PS: I tried to install the Xposed modul "Gravitybox"........ And it still says "App not installed" ! It does that with any .apk file I try.

Thanks for helping to find out the problem.
[Android Apps and Games] vickybonick:
Set install location to internal and try again
[Android Apps and Games] vickybonick:
Version 10.5 released in play store and attached in OP

Changelog:

Fixed Backup and Restore apps function

Fixed 'Android is upgrading... Starting Apps' on boot issue (if you have this issue then unlink apk and dex of all apps then link them again)

Added Manage option in App Detail menu and App long click menu

Fixed issue in Partition tool Repair option

Updated Android support library

Other bug fixes and performance improvements
[Android Apps and Games] sremick:
I can't seem to get this file to copy or send off from that location. I've tried sending directly to my email app, copying to DropBox, but all those kick an error. When I tried using Root Explorer to copy to the exfat partition on the external SD card, Root Explorer crashes. Do I need to get Apps2SD to let go of that file? It currently only shows a size of 224 bytes which doesn't seem right.
[Android Apps and Games] vickybonick:
No it's not locked by apps2sd, use terminal emulator to copy to sd card
[Android Apps and Games] jce2005:
Thanks for the tip, please see below.

Tried to use Terminal Emulator as well as ADB Shell, but get error messages....

ADB Error :

C:\Program Files (x86)\Minimal ADB and Fastboot>adb shell

shell@on5ltemtr:/ $ pm set-install-location 1

pm set-install-location 1

Error: java.lang.SecurityException: Package android does not belong to 2000

1|shell@on5ltemtr:/ $

Terminal Emulator Error :

Error: Could not access the Package Manager. Is the system running?

Not sure what to do now.....
[Android Apps and Games] sremick:
Ok that worked. See attached
[Android Apps and Games] vickybonick:
run su first
[Android Apps and Games] vickybonick:
It looks good. Do you still get soft reboot error?
[Android Apps and Games] sremick:
I do, unfortunately. I even tried updating to the new Apps2SD, then recreating the mount script.

Current (ongoing) behavior:

First boot: boots fast, but I get the "Continue? 2nd partition was not mounted some apps might not be detected. A soft reboot is required to mount. [No] [Yes]". I can either choose [No] and continue to use my phone without my previously-linked apps being available (how I've been limping by for now), or I can choose [Yes] and the phone reboots

2nd reboot: I get the boot animation perpetually... never seems to go away (I've waited hours before)

3rd reboot: I am forced to do a hard reboot, either via battery-pull or holding [volume-down]+[power] for 5+ seconds. This then boots fast like on the 1st boot above, but I get the mount warning again. But at least I can use the phone (minus my previously-linked apps).

Now here's some additional data:

- Apps2SD still "sees" my 2 partitions in the Partition Tool (see attached screenshot)

- If I re-install an app that was previously linked but is no longer appearing, it comes up in Apps2SD now as a "partially linked" app, with Data and Cache linked (but not Apk, Odex, or Lib) and it seems to pick up my previous data/settings ok. (See attached screenshot) However, rebooting breaks this and the re-installed apps vanish.
[Android Apps and Games] Lukapetr:
auto-link app has stopped worked....i didn't touch anything in the app setting, before it worked like a charm, now i have to manually move the apps to sd...This problem occured even with link2sd Pro.

Any ideas ?
[Android Apps and Games] jce2005:
I actually did run su first when I tried the command in Terminal Emulator...... and it didn't work either.....

However, now I tried the su command in ADB Shell first and than the pm set-install-location 1 and it WORKED !

Thank you soooooooo much, it saved my day...... ;)
[Android Apps and Games] vickybonick:
Do you have Privacy guard or similar app?
[Android Apps and Games] vickybonick:
:good::good:
[Android Apps and Games] vickybonick:
The only thing i can think of now is format your sd card 2nd partition as ext4 and recreate the mount script. Edit: is any of the linked app missing after initial boot (without soft reboot)?
[Android Apps and Games] sremick:
Ugh. Not looking forward to the performance drop, especially considering that f2fs is supposed to work (and was working). Is there any way for me to temporarily mount the existing f2fs or otherwise unlink the existing linked apps and their data so I don't lose all that?

Yes, all of them (as previously stated).... unless I'm misunderstanding your question.
[Android Apps and Games] vickybonick:
I think your ROM is locking the 2nd partition or may be unmounting the 2nd partition. Try below

1) Enable "Enable addition of commands in mount script" in Apps2SD settings

2) Open Recreate Mount script, Enter mount > /data/mount.log in "Append command after mount script" textbox and Recreate the mount script

3) Reboot and attach the /data/mount.log file
[Android Apps and Games] Lukapetr:
No.

EDIT: i tried to un-check and then check the option "auto Link App" and now seems it works again, i downloaded 2 apps just for testing and it automatically moved apps to sd card.This is strange though.What do you think about it?
[Android Apps and Games] jce2005:
Last question....... I read your FAQ about steps to go when upgrading to a new sdcard. It says I need to copy a folder of the old sdcard, but I do not have this folder........

Also, how would I copy all the linked Apps from the ext4 partition if I don't have enough space in Main Memory ?

Would a USB drive over OTG work to do this ? Also, can an OTG be used to make a backup of the ext4 data ?

Would like to get change to a larger sdcard and it would be great if you could let me know all the steps I need to do before, during and after I put the new card in.

AND I do have to say WOW, WOW, WOW......... Never saw or experienced a developer who is so responsive to ALL the questions users have....... How do you even find time to program....LOL Absolute first class service..... THUMBS UP for Vicky
[Android Apps and Games] vickybonick:
Not sure
[Android Apps and Games] vickybonick:
Thanks. The faq has been updated.

Use the Backup option to backup SD card 2nd partition (you can use a custom path: OTG), remove the old card, insert new card, create two partitions if not already created, mount the 2nd partition, restore the backup and you're done
[Android Apps and Games] sremick:
Requested file attached. Hope it sheds some insight.
[Android Apps and Games] vickybonick:
It shows 2nd partition is mounted. Now do below

1) Disable Apps2SD

2) Capture mount output from root shell and non root shell after the boot

Send both mount output and /data/mount.log file
[Android Apps and Games] sremick:
Do you mean simply "Delete mount script"? Is that sufficient, or did you mean something more involved? As there isn't an explicit "Disable" function in Apps2SD"
[Android Apps and Games] jce2005:
I tried to create a Backup as you suggested, but after selecting "SD card and 2nd partition", when I click on the Output path, I only get three choices :

/data/data

/storage/emulated/0

/storage/ED47-6700 ( that is the current sdcard )

There is NO way to bring up the keyboard to enter any custom path and there is also NO browse option.......,.

My OTG flash drive is recognized by the systems internal File Explorer as well as in FX File Explorer.....

And BTW, it would be great, if you could add a 4th option, to just backup the 2nd partition...... I mean, not eveyone has a second, large sdcard or OTG drive to backup the whole sdcard ( which also can be copied to the computer and re-copied to the new card.... The main problem for me ( and other users ) is, to backup the second partition ext4, which cannot be read by Windows computers.....

Thx......
[Android Apps and Games] vickybonick:
There is an option to backup 2nd partition only but custom path is not available. I'll add in next version
[Android Apps and Games] vickybonick:
No don't delete the mount script it is needed. By disable i meant freeze Apps2SD using System app manager
[Android Apps and Games] jce2005:
Col, can't wait for the new version with the Browse Option.... ;) Thx for adding it.

How do I select to backup only files on the 2nd, ext4 partition ???
[Android Apps and Games] vickybonick:
Backup/Restore function -> Backup Tab -> SD card 2nd partition radio button
[Android Apps and Games] blackstar55:
shi vicky,

Can you add force adopt apps. since some apps cant be moved to adopted storage
[Android Apps and Games] vickybonick:
It's already supported
[Android Apps and Games] blackstar55:
is only available on pro version? i cant move facebook, messenger and other with free version.
[Android Apps and Games] vickybonick:
Both versions support it. If you are getting error then the app can't be moved
[Android Apps and Games] lee99:
Can you add encryption to backup up apps files?
[Android Apps and Games] vickybonick:
Full encryption or password protection?
[Android Apps and Games] lee99:
I think full encryption will be better choice :D
[Android Apps and Games] vickybonick:
Both will be difficult due to lack of appropriate library.
[Android Apps and Games] vickybonick:
Notification Remover app to get rid of SD card corrupt message or any other annoying message. Notification Remover
[Android Apps and Games] oldschool63:
Problem with root icon

Hi,

I am currently evaluating apps2sd on my tablet. I am running CM13 (SELinux is set to permissive during boot) and apps2sd is working fine (mount script has been setup using the init.d method).

However, every time I boot up my system, the "#" icon (app with root rights running) appears in my status bar. Manually launching apps2sd from the launcher and then removing it from the list of recent apps makes the icon go away.

To me this looks like you are doing a "startup" job (of course you do, you check if the mount is successful ;) ) and when you are done with it, you should really try to "dismiss" your app to kill the "#" icon in the status bar. The "#" icon is really useful to remind the user that an app with root rights is running. But it totally beats the purpose if it is there all the time because of a startup job.

Any chance that this can be fixed? If you need more info (or a logcat), let me know.

Markus.
[Android Apps and Games] vickybonick:
Well Apps2SD service keeps a root shell open (in sleep mode off course ) for any incoming commands
[Android Apps and Games] Arter7:
Nice app thx
[Android Apps and Games] oldschool63:
Actually I don't think that's the problem. As I wrote in my original statement ... after boot process is finished and tablet is operational, I can run apps2sd from the launcher menu, only to push the home button to dismiss it and then remove it from the "recent apps" list and the "#" icon will go away. I am sure this procedure will not by any means influence the root shell you started when apps2sd's service was launched.

Are you sure that you are not launching any activity during startup (even if nothing is shown in case everything is fine )? If so, you would have to dismiss that activity and instruct Android to forget about it. If there is really nothing launched (besides the service), it might work to launch a dummy (do nothing) activity and immediately dismiss it. I have used a method found here ( http://stackoverflow.com/questions/22166282/close-application-and-remove-from-recent-apps ) in my own apps sucessfully.

Markus.
[Android Apps and Games] armavista:
Hello Vicky,

Thanks for that impressive tool you created.

I was wondering how do i locate my second ext4 partition when i try to mount a folder on it using your app.

I found, in the Mount Folder explorer, 3D11-C9B0 (containing Android, Apps2SD and LOST.DIR folders), is it this one?

Anyway Apps2SD won't let me bind it, it says "You are not authorized to write to storage/3D11-C9B0"

Can you help me?

Many thanks!
[Android Apps and Games] B0nb0n:
Hi, I am unable to get the boot mounting to work properly, I always have to do a soft reboot to see my linked apps.

I am using CM13 and can't install the supersu, so that one is a no-go. The standard method does nothing as well so I selected the init.d method. Now CM13 has no init.d support (as far as i know) so I installed this app https://play.google.com/store/apps/details?id=com.ryosoftware.initd&hl=en which executes the apps2sd init.d script after each boot (as a root). But even after doing this, I still can't see my linked apps without doing a soft reboot. The apps2sd app CAN see the mounted second partition but the linked apps simply remain invisible until I do the soft-reboot.

I don't mind having to do the soft reboot, the problem is that if I place icons for linked apps on my home screen, then they get deleted after each phone reboot, because the system thinks the apps have been removed, so it removes their icons.

Any way to work around this issue? Thanks.
[Android Apps and Games] vickybonick:
You'll have to set Selinux to permissive. Read below post

http://xdaforums.com/showpost.php?p=68249166&postcount=2269
[Android Apps and Games] vickybonick:
2nd partition is mounted on /data/sdext2

Mounting sd card root directory messes things up so it's restricted
[Android Apps and Games] B0nb0n:
Thank you for your reply.

Just have couple questions about it:

1) After editing the boot.img do I have to put back into the rom zip and flash the entire thing, or can i just flash the boot.img file by itself in the twrp?

2) Do i have to do a factory reset during flashing?

3) Is this dangerous? If I for example screw up the boot.img and flash it, will it hard brick my phone, or will it only result in a bootloop, so I will be still able to easily boot into twrp and reflash the normal rom file?
[Android Apps and Games] vickybonick:
1) flashing boot.img is enough

2) no

3) it won't boot. Flashing original boot image should fix it
[Android Apps and Games] B0nb0n:
I did the selinux thing and it works now! The partition gets mounted during boot and everything works great, i never even had to add that "/system/bin/setenforce 1" thing into the mount script, it works without it.

The only minor issue now is that i have a constant notification displayed which says "Preparing SD card. Checking for errors" and it cannot be swiped away. I can long click it and set the CM13 to ignore it, but it comes back after every boot (that application you mentioned for removing notifications haven't worked as well). But this is just a minor inconvenience so I don't mind.

Thanks for your help.
[Android Apps and Games] vickybonick:
The setenfore command is to set selinux to enforcing. It's not needed by Apps2SD. It's good for security

Did you try the notification remover app in my signature?
[Android Apps and Games] B0nb0n:
Yes I did, but it had no effect. I think it is because this notification cannot be swiped away like normal notifications.
[Android Apps and Games] vickybonick:
ok. If you use xposed then try NotifyClean
[Android Apps and Games] jce2005:
Hi Vicky,

any news on the new release with the "Backup Destination Browse" function ?
[Android Apps and Games] B0nb0n:
that worked, thanks
[Android Apps and Games] vickybonick:
It'll be released on weekend
[Android Apps and Games] larswars:
I'm having only 1 question. What should I do if I wanna do a clean flash and don't want to download everything again? Thanks. ;)
[Android Apps and Games] The Analog Kid:
I have this question queued for some time ago: do we really have to keep "USB debugging" toggled ON all of the time for Apps2SD to properly work? Cause no other app is prompting me to keep it on...
[Android Apps and Games] Iceman:
Hi Vicky,

I not sure why always crash " unfortunately app2sd has stopped" in latest version 10.5, I think already sent you the log when the error message pop out..also after crash not able to open the app2sd apps anymore, I did try clear data or reinstall but after while when using happened again:crying, so now I revert back to version 10.4 so far not facing problem crash yet. Hope can look at it. Thanks in advance:)

My ROM latest Aosp 6.0.1_R68
[Android Apps and Games] andacro:
Is there a problem using phh with Magisk? Got permissive and init.d, but those I linked are gone after reboot. Running 6.01.
[Android Apps and Games] vickybonick:
Can you capture logcat after the crash and send
[Android Apps and Games] vickybonick:
Are the apps accessible after soft reboot? Attach below file

/data/apps2sd-debuggerd.log
[Android Apps and Games] vickybonick:
If you use init.d or su.d then it's not needed. If you use normal method then do a test without usb debugging enabled if after reboot apps are not disappearing and you are not asked for soft reboot then it's not needed
[Android Apps and Games] vickybonick:
Use backup/restore functionality in the app
[Android Apps and Games] Iceman:
OK I will try, between of that now I revert back to version 10.4 no crash issue happening use almost half day till now. Just let you know bro:)
[Android Apps and Games] andacro:
Nothing there., but "2nd partition already mounted... Nothing to bind.".

Been a mess, but seems to be working now. 1st partition fat32 became corrupted. Couldn't fix it from the app. Used Gparted, and had to create a new partition table to get it working again. Got fat32, ext4 and swap now. Were leftovers to clean from the two apps (Servestream and Tidal), but when that was done, I could reinstall and link them, and finally no problem any more. :)
[Android Apps and Games] armavista:
Thanks! I found it (i saw your video on Youtube, didn't know there were tutorial videos by the way).

If i want to link a data folder from an app, what is the difference between using "Link Apps to SD card" and "Folder Mount"?

Thanks!

P.S. I can help you with the French translation which is really not that good (i'm a French teacher...)
[Android Apps and Games] vickybonick:
Thanks, you can register at http://os3pxnq.oneskyapp.com/collaboration/project/54276 and start translation.

Use "Link Apps to SD card" to move/bind pre defined files/folders like apk/dex/odex/lib/data/obb/ext data and use "Folder Mount" to bind custom folders. "Link Apps to SD card" requires a secondary partition while "Folder Mount" doesn't.
[Android Apps and Games] armavista:
Thanks again!

I had some problems with apps after unlinking using "Link Apps to SD card" (Couchsurfing app for example won't start), so i will stick to "Folder Mount" for now. I guess, i'll format my SD card (just one exFAT partition) and link data apps to an Apps2SD folder on the SD card.

I started translating. Some of my translations are directly approved, some other need approval. Who gives approvals? I will translate everything step by step, day after day, but i don't want my work to be useless...

Great customer service Vicky Bonick!
[Android Apps and Games] vickybonick:
Thanks. Make sure you use folder mount between fat partitions only