answered
2019-06-22 19:35:34 +0200
AFAIK, there is no easy way to share your SD card with Android apps. This feature is probably not ready yet for Android 8.1 emulation found in XA2 devices.
There are however some options you could try to work around that.
Method 1:
Create a symlink pointing to your SD card somewhere in /home/nemo
, e.g.:
ln -s /media/sdcard/<uuid> /home/nemo/sdcard
The /home/nemo
is visible to Android as /storage/emulated/0/nemo
(at least that's the case for SFOS 3.0.3.9).
While this approach is probably the simplest one, I found that not all Android apps will be happy about it.
Method 2:
Use a bind mount, like this:
mkdir /home/nemo/sdcard
mount --bind /media/sdcard/<uuid> /home/nemo/sdcard
The mount
command requires root privileges, and you will most probably run into some issues with file/dir permissions, that Android apps are also not particularly happy about. Also, you need to bind mount again after reboot.
Method 3 (the most reliable, I think):
Use fuse's bindfs
:
mkdir /home/nemo/sdcard
bindfs /media/sdcard/<uuid> /home/nemo/sdcard
This doesn't require being root, but still needs to be redone after reboot.
I found this solution to be the most transparent to Android apps, and the only one, that allowed me to send photos stored on SD card via FB Messenger :)
As a note, I haven't found a way to bind the SD card automatically upon reboot, I was only able to achieve a bootloop while trying :) The search continues...