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

Android Support for external SD-Card [answered]

asked 2016-01-04 18:15:52 +0300

nemesis2k3 gravatar image

ahoy,

in order to do offline navigation turn-by-turn (GPS) with nokia HERE Maps is there any workaround to access sd-card from android apps???

the maps will take an big amount of space and thus id like to save space using sd-card.

best regards, tobias

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Asmir
close date 2019-02-17 21:21:45.247850

4 Answers

Sort by » oldest newest most voted
1

answered 2019-02-17 03:36:53 +0300

olf gravatar image

See [How-to] Externalising android_storage and other directories / files to SD-card for a proper solution.

edit flag offensive delete publish link more
0

answered 2016-01-04 18:23:29 +0300

updated 2016-01-04 18:24:50 +0300

Is this sufficient?

https://together.jolla.com/question/40802/how-to-format-your-usd-card-to-btrfs-and-share-space-with-android/

Or, create a symlink between the map folder and a SD card folder. Easy to do using Cargo Dock for example.

edit flag offensive delete publish link more
0

answered 2016-01-04 18:26:17 +0300

AkiBerlin gravatar image

Try this as root

mkdir /home/nemo/sdcard
mount --bind /media/sdcard/XXXX-XXXX /home/nemo/sdcard

where XXXX-XXXX is the Id of your sd-card

Thus, the sd-card can be accessed by Android apps under /home/nemo/sdcard

You have to repeat the second step whenever you reboot the device

edit flag offensive delete publish link more

Comments

1

I recommend making this into a script and running it at startup

jollailija ( 2016-01-04 18:28:20 +0300 )edit
0

answered 2016-01-04 18:28:45 +0300

mynameisnotimportant gravatar image

Note that I do not know what the long term affects of this are (I had to reset my phone due to an unrelated problem). Do this at your own risk (though realistically, nothing bad should happen...)

What I did was copy the contents of ~/android_storage to a subfolder on my sdcard called "Android". Then I deactivated alien dalvik (not uninstall, deactivate/stop service) and renamed the android_storage folder to android_storage.old. Finally, create a link (I think ln -s /home/nemo/android_storage /full/path/to/sdcard/Android should work) to the Android folder in the home directory and called it 'android_storage'. Now re-enable the alien Dalvik service. With any luck your new Android SD Card is located in a folder of your real SD Card.

Note: I am typing this up from memory. If it for some reason doesn't work, deactivate the dalvik service, and rename the android_storage.old folder back to android_storage. Everything should be back the way it was after starting the alien dalvik service again...

edit flag offensive delete publish link more

Comments

symlinking doesn't work. it somehow still shows free space of the internal storage. Also when writing files this ends up somewhere else than the sdcard..

accumulator ( 2016-09-27 17:10:43 +0300 )edit

Question tools

Follow
4 followers

Stats

Asked: 2016-01-04 18:15:52 +0300

Seen: 1,771 times

Last updated: Feb 17 '19