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

Android folder structure

asked 2017-10-11 09:16:03 +0300

Jens2017 gravatar image

updated 2017-10-11 10:04:43 +0300

jiit gravatar image

Is it possible to use the same folders for Android as for the native apps? E.g. the same folders for pictures, documents etc. would be helpful.

edit retag flag offensive close delete

3 Answers

Sort by » oldest newest most voted
2

answered 2017-10-11 12:17:59 +0300

DrYak gravatar image

To expand the answer : it's not technically possible.

TL;DR: they are completely different type of entities


Your Sailfish OS native apps use the classic folders (Pictures, etc.) in your home folder. Depending on your device, that's the @home subvolume of the BTRFS partition (Jolla 1), or the home EXT4 partition (Jolla C, tablets).

i.e.: they are actual real folders on your actual partition.


Meanwhile, alien-dalvik uses a Fuse plugin to make its data (/data) appear (in ~/android_storage) with the fixed access right as a FAT32/exFAT-formated data partition/SDcard would have been showing up on a real android device (i.e.: everything is mapped to be owned by "media_rw" user and group, and has world-access rights ("rwxrwxrwx" / 0777))

i.e.: they are not even an actual folder, it's a virtual tree mounted thanks to a FUSE plugin


The solution would be an awfully complex overlay based mounting.

Or simply just keep the current situation, and use Aliendalvik control by CoDeRuS whenever you need to manipulate a native file with an android app (e.g.: send a picture from the gallery/photo app using whatsapp).

edit flag offensive delete publish link more
1

answered 2017-10-11 09:33:31 +0300

chris_bavaria gravatar image

updated 2017-10-11 09:35:19 +0300

No.

For pictures and music you can use Patch: Tracker path settings Android apps get not full access to the sailfish-files. It is not possible to delete sailfish pictures from android app.

edit flag offensive delete publish link more
0

answered 2017-10-11 12:19:23 +0300

pisarz1958 gravatar image

This is probably a bad idea, but you can symlink ~/android_storage/Pictures etc. to your home directory (it doesn't work the other way around) using terminal.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
3 followers

Stats

Asked: 2017-10-11 09:16:03 +0300

Seen: 593 times

Last updated: Oct 11 '17