I have a Moto G (2nd generation) with Android 5.02 on it. Internal SD card is about 8Gb and I have an external SD card with 16Gb free space.
Moving application to SDCARD from the application's menu moves it to sdcard0 which is the internal SD card.
Adb shell command:
I tried to set installation location through:
pm set-install-location 2
But I'm getting this error:
Error: java.lang.SecurityException: Package android does not belong to 2000
That is I believe complaining about root permissions.
And because it's a production build trying:
adbd cannot run as root in production builds
Is there any way to set the applications install their data to external SD card?
P.S: I don't want to install a custom rom or install third party software to root the phone.
I've noticed that applications data was stored in the folder
/storage/sdcard0/Android, so I thought of moving this folder to
/storage/sdcard1/ and creating a symlink this way instead:
ln -s /storage/sdcard1/Android /storage/sdcard0/Android
will this do the job?