*** jrt is now known as Guest39138 | 02:28 | |
ahappyhuman | Say I'd like to play audio directly using pulseaudio (no Qt involved), how would I make my application follow the system media volume? I've set the pulse audio media role of my application to "game", but it still plays at maximum volume. | 14:30 |
---|---|---|
ahappyhuman | I'd like to patch the SDL library to support this. I tried reading documentation on https://wiki.merproject.org/wiki/Nemo/Audio including the examples and source code of projects on there, but I don't know what I should exactly do. | 14:33 |
*** vilpan is now known as Guest22118 | 14:33 | |
*** Guest22118 is now known as vilpan | 14:33 | |
ahappyhuman | I'm stupid. I need to set the pulseaudio media role to "x-maemo" and then it works. Something, somewhere is setting the media role to "game" by default, which breaks something somewhere. | 14:45 |
attah | flypig: Thanks for the kind mention, especially since your Scintillon is more feature complete | 17:42 |
attah | ...and i'm afraid i cheated myself on the list; all i did was upload the aarch64 build, no actual features since a long time | 17:43 |
ol | Is anyone here who understands how Alien Dalvik mounts directories inside its container? | 18:29 |
ol | For some reason, my banking app started looking for its files in "/storage/sailfishos_storage/Android". I see that "/storage/sailfishos_storage" has the same contents as "/home/nemo" outside of container (so it can be a bind mount), whereas banking app's files are actually in "/home/nemo/android_storage/Android". | 18:29 |
ol | Where does my banking app take "/storage/sailfishos_storage" path from? Is there some configuration option inside Alien Dalvik? | 18:34 |
ol | Also, I don't understand how "/storage" is populated inside the container. I found nothing in config files in "/var/lib/lxc/aliendalvik". | 18:35 |
ol | "/opt/alien/system.img" squashfs image has "/storage" directory, but it's empty. | 18:36 |
ol | The only file containing "sailfishos_storage" string inside squashfs image is "/system/bin/vold". But this is a binary executable files, so it's unclear how it uses this string. | 18:42 |
mal | ol: so what exactly is the problem? it's not seeing something or what? | 20:32 |
ol | mal (IRC): It shows splash screen and then hangs showing white screen. | 20:33 |
mal | did it work before in some earlier version? | 20:34 |
mal | ol: if you want to check what the logcat of android app support says you can use "lxc-attach -n aliendalvik -- /system/bin/logcat" | 20:35 |
ol | Yes, it did. Few days ago an update was released. After that update it started chashing. Today another update was released. After this update it started hanging with white screen. | 20:35 |
ol | mal (IRC): This is exactly what I did. And this is the reason of my questions. | 20:35 |
mal | you mean new version of the app? | 20:35 |
ol | Yes. | 20:36 |
ol | I started looking at logs and this is what I found: | 20:37 |
ol | 05-06 19:17:13.629 7 7 E cutils : Failed to mkdirat(/storage/sailfishos_storage/Android): Read-only file system | 20:37 |
ol | 05-06 19:17:13.630 6931 6931 W ContextImpl: Failed to ensure /storage/sailfishos_storage/Android/data/com.bankofireland.mobilebanking/files: java.lang.IllegalStateException: Failed to prepare /storage/sailfishos_storage/Android/data/com.bankofireland.mobilebanking/files/: android.os.ServiceSpecificException: (code -30) | 20:37 |
mal | hmm | 20:37 |
ol | Code -30 is EROFS. | 20:38 |
ol | That makes me wonder why it tries to access "/storage/sailfishos_storage/Android". Where can it get this path from? | 20:38 |
mal | ol: the mounting is done in /usr/sbin/alien-generate-bsp-config.sh but there is matching path in the container side | 20:45 |
ol | mal (IRC): I've thoroughly studied "/var/lib/lxc/aliendalvik/bsp_config" file generated by this script, but found that "/home/nemo" is munted to "/mnt/media_rw/sailfishos_storage" inside the container. Also, I found "/init.rc" file inside squashfs image and found that it mounts "/mnt/runtime/default" to "/storage". It's still unclear to me how "/mnt/media_rw/sailfishos_storage" gets mapped into "/mnt/runtime/default/sailfishos_storage". The later directory is | 20:51 |
ol | mounted as FUSE filesystem. | 20:51 |
ol | But I don't think that if I find out how all directories are mounted inside Alien Dalvik container I can solve the problem. | 20:52 |
ol | The question still remains: why the banking app even tries to access "/storage/sailfishos_storage/Android"? Where is the config it takes this path from? | 20:52 |
ol | I'm pretty sure that this app is absolutely unaware about Sailfish OS and Alien Dalvik, so the path containg "sailfishos_storage" can't be hardcoded into this app. | 20:53 |
mal | afaik that is what is told to android side to use as the internal storage | 20:54 |
ol | How is it told? And why all other apps still work (and even this app was working before its update)? | 20:54 |
mal | ol: do you see the old app data anywhere? | 21:09 |
mal | look for the things mentioned in the error message | 21:09 |
ol | mal (IRC): I can find app-specific directory in the following places *outside* of Alien Dalvik container: | 21:12 |
ol | * /home/.android/data/data | 21:12 |
ol | * /home/nemo/android_storage/Android/data | 21:12 |
ol | And they are not the same. | 21:13 |
mal | are there any other messages later in logcat? | 21:13 |
mal | from that app | 21:13 |
ol | Also, the last directory can be seen as "/sdcard/Android/data" inside the container. | 21:14 |
mal | ok | 21:15 |
mal | please check logs for more messages | 21:15 |
mal | it could be that is falls back to other location and the real error is something else | 21:16 |
ol | There are many of them. How can I tell messages caused by this app from other noise? | 21:16 |
mal | show all, unless there is some information there you don't want to show, then you can email me the log | 21:17 |
ol | mal (IRC): What's your email? | 21:19 |
Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!