We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

Android apps do not recognize symlinks?

asked 2016-10-29 03:04:15 +0300

DarkTuring gravatar image

updated 2016-11-04 10:43:02 +0300

coderus gravatar image

I am trying to use a symlink to save pictures generated by an android app in the /home/nemo/android_storage/Pictures/AndroidApp onto the external SDcard.

However when selecting save image in android app nothing happens. When i replace the symlink by a regular folder it saves the image again.

save image android usecase

Symlink to external SD folder

In the file explorer when i select the symlink by hand it goes to the SD card specified pictures folder just fine.

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
1

answered 2016-11-03 18:43:13 +0300

DarkTuring gravatar image

updated 2016-11-04 00:40:29 +0300

Found the answer:

https://together.jolla.com/question/82683/bug-yliaavanlampi-android-app-doesnt-have-access-to-memory-card/

I believe allowing android apps to read symlink defined folder would actually be more secure then remounting the SD card and alllowing all content be read by all android apps.

https://gist.github.com/javiermon/3551dc42f03625ccb9a2

Here is the proposed solution on github, however the bash nano command cannot be found when i enter it in the terminal, the other question where do i save files .sh and .service?

edit flag offensive delete publish link more

Comments

you have to install it first -> pkcon install nano

lakutalo ( 2016-11-04 09:51:46 +0300 )edit

@lakutalo thanks i got nano installed, in the GitHub instructions i replaced UUID with my SD card mount ID, i have no luck with the procedure, Android still wont recognize when creating a symlink from android_storage to the external SD card, any other fields that need to be customized in the procedure?

I rebooted the phone too.

DarkTuring ( 2016-11-05 05:19:51 +0300 )edit

If you want to integrate your sd into Android this link might be quite useful for you: https://together.jolla.com/question/40802/how-to-format-your-usd-card-to-share-space-with-android

lakutalo ( 2016-11-05 14:22:06 +0300 )edit

@lakutalo that looks good ill try the Jolla C instructions and hope theyll work for the Turing Phone.

DarkTuring ( 2016-11-07 01:20:53 +0300 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2016-10-29 03:04:15 +0300

Seen: 344 times

Last updated: Nov 04 '16