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

Alien Dalvik does not recognize external SD card

asked 2014-01-10 10:19:48 +0200

Jörg gravatar image

updated 2014-01-13 10:05:34 +0200

Several Android navigation apps require an SD card to be present (e.g. MapFactor, Navmax, Be-on-road). Apparently the presence of an SD-card is detected by an API call and is not hard-coded (see section "Checking media availability" here: http://developer.android.com/guide/topics/data/data-storage.html#filesExternal), therefore the following threads do not solve the problem (I tried it): https://together.jolla.com/question/1888/add-optional-access-to-external-sd-card-from-android-app/ https://together.jolla.com/question/5755/how-to-let-android-apps-to-write-to-real-sdcard. I installed all of these apps above but cannot start them since all of them complain that no SD card is installed, although I have one installed which is also detected by Sailfish, e.g. in the Media application. So it seems that the Alien Dalvik does not recognize the card.

edit retag flag offensive close delete

Comments

@launchpad Please convert your comment as one optional answer. Of course, we still hope to see a permanent fix via system update too.

simo ( 2014-01-10 12:50:13 +0200 )edit

@launchpad: As I wrote above, this does not fix the problem. You can make Android applications access the SD card this way. However, the Alien Dalvik still does not recognize the mounted directory as an external SD card. If applications request the mount point of the external SD card by using the API the Alien Dalvik seems to return that no external SD card is installed.

Jörg ( 2014-01-10 13:22:57 +0200 )edit

@Jörg Thanks for your valuable feedback ---> have to try some navigation apps once by myself (if I got some time ;-) ) ... so one vote up anyway because Dalvik compatibility & resource access has to be solved more coherently ...

launchpad ( 2014-01-10 18:54:47 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2014-01-10 10:29:50 +0200

launchpad gravatar image

updated 2014-01-14 21:13:21 +0200

Nux gravatar image

Actually this can be "fixed" ( working for me with VLC's Android-player at least ) :

Get root access then...

mkdir /data/sdcard/My\ real\ sdcard/
mount -o bind /run/user/100000/media/sdcard /data/sdcard/My\ real\ sdcard/

After this, Android apps could read my sdcard as "/sdcard/My real sdcard". I tried a couple of media players and they worked.

You probably would need to change permissions if you wanted the apps to be able to create files.

Source (gcobb): http://forum.jollausers.com/jolla-phone/jolla-sd-card/15/#subject_2344

edit flag offensive delete publish link more

Comments

Thank you. That workaround is work. But only before reboot... IMHO we need official fix. Edit: In native application i can navigate to SD card, but Android app, for example FBReader, not has access rights.

hyper_sonic ( 2014-01-11 08:01:37 +0200 )edit
2

@launchpad: Sorry, but as I tried to point out already twice above this does not solve the problem I am referring to. You are talking about mounting the external SD card somewhere in the "Android filesystem". I am talking about a specific return value of the Alien Dalvik API.This is somewhat related, but not the same. Whereas the first can be fixed by Jolla, the latter seems to need a fix in the Alien Dalvik. See also section "Checking media availability" here: http://developer.android.com/guide/topics/data/data-storage.html#filesExternal

Jörg ( 2014-01-13 09:29:56 +0200 )edit

I'm waiting a jolla answer or a guide "how to" with all words I have to digits in terminal In the second case....the method must be completely without problems or risks

idro ( 2014-02-01 00:40:19 +0200 )edit
Login/Signup to Answer

Question tools

Follow
6 followers

Stats

Asked: 2014-01-10 10:19:48 +0200

Seen: 1,640 times

Last updated: Jan 14 '14