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

android_storage contents disappear when Alien Dalvik is stopped

asked 2015-06-27 01:56:25 +0300

ScumCoder gravatar image

One of the (very few) Android programs I use on my Jolla is Firefox, for a lot of reasons which I'll not particularize here. I download a lot of documents/music/whatnot and it all ends up in the android_storage folder.

I am used to stop Alien Dalvik as soon as I finish working with Android apps. For a long time, it wasn't a problem because Android files remained in place. I could, for example, download a bunch of music and then listen it right from the Downloads folder.

However, since Aaslakkajärvi I can't do that anymore. As soon as I stop Alien Dalvik, all contents mysteriously disappear. Looks like the whole 'Android-on-Sailfish' system was seriously reorganized in Update 15.

Could you please tell me where are the Android files stored when Alien Dalvik is not working? They obviously are not removed, since they reappear the same moment I start Dalvik.

edit retag flag offensive close delete

1 Answer

Sort by » oldest newest most voted
2

answered 2015-06-27 14:06:43 +0300

Vamp898 gravatar image

There is no solution. The Android Storage is an FUSE Storage. You stop it, its away.

You'd have to mount it to get it back.

But there are simpler solutions. The Apps (Gallery, Media and so on) cant access the android_storage, so its less use anyway.

Get yourself a bash script you use to pull the data out of android_storage and sort it into the right directories.

Here is my example

$ cat sync.sh

#!/bin/bash
rsync -av ./android_storage/DCIM/ ./Pictures/
if [ "$?" == "0" ]; then
    find ./android_storage/DCIM/ -type f | while read line; do
        rm "$line"
    done
fi

rsync -av ./android_storage/Music/ ./sd/Music/
if [ "$?" == "0" ]; then
    rm -rf ./android_storage/Music/*
fi
edit flag offensive delete publish link more

Comments

The Apps (Gallery, Media and so on) cant access the android_storage, so its less use anyway

That's not the case, even with Aaslakkajärvi. See my answer to your thread.

ScumCoder ( 2015-06-28 22:58:59 +0300 )edit

@Vamp898:

The Android Storage is an FUSE Storage

Maybe you know where the contents of this folder are stored? Is it a separate partition on the internal flash card? A file? A database of some sort?

Also, do you (or anybody) know why this was done? What was the problem with just storing everything Android-related in a normal folder?

ScumCoder ( 2015-07-01 00:54:00 +0300 )edit

@ScumCoder, have a look under /data/data/. Does that contain everything? https://together.jolla.com/question/2980/bug-removing-android-app-data/

AnaT ( 2015-07-21 18:20:14 +0300 )edit

@AnaT, this folder only contains the application data of the Android programs. I don't see any database file or whatever which is supposedly mounted in ~/android_storage.

ScumCoder ( 2015-07-21 23:53:44 +0300 )edit

Yes, I noticed that today. I found some hints here towards /data/media/, though. My developer mode doesn't work, so I can't see what's in there.

AnaT ( 2015-07-22 11:48:03 +0300 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2015-06-27 01:56:25 +0300

Seen: 354 times

Last updated: Jun 27 '15