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

Android debug traces

asked 2014-03-27 14:11:01 +0300

jake9xx gravatar image

updated 2014-07-24 11:27:56 +0300

jiit gravatar image

Prereq: Developer mode

Sometimes you (or someone like you) wants to develop android application on Jolla.

Even the blind 'adb logcat' might not work out of the box, it's not all bad news. Once APK is built, transfer (scp) that to device into directory: /data/app.

Now begins the interesting stuff. Shutdown alien-dalvik on command line as root:

systemctl stop aliendalvik.service

then enhance LOG settings:

export ANDROID_LOG_TAGS="*:d"

Finally start it:

systemctl start aliendalvik.service

Now alien puts out a lot of debug stuff. You can read them on device with logcat:


It's recommended not to make the change permanent into alien dalvik's scripts as there will be a lot of traces flowing.

edit retag flag offensive close delete


Thanks a lot for this tip! This is exactly the information, I needed.

In order to fulfill "Prereq: Developer mode", I did

devel-su /bin/bash

And typed all those commands.

ralooyar ( 2015-09-24 18:26:20 +0300 )edit

Maybe let's make this a wiki and include everything we know for each device...?

Yo ( 2019-11-23 18:09:35 +0300 )edit

3 Answers

Sort by » oldest newest most voted

answered 2019-11-23 17:47:07 +0300

micuintus gravatar image

For XA2:

lxc-attach -n aliendalvik -- /system/bin/logcat

See https://jolla.zendesk.com/hc/en-us/articles/204110913-Collecting-logs-from-Android-Support-with-Logcat-Debugging-Android-apps-

edit flag offensive delete publish link more


I don't seem to have any lxc-attach..?

Tanghus ( 2019-12-01 01:45:21 +0300 )edit

answered 2019-02-07 08:59:45 +0300

balta gravatar image

Does anybody know where I can find logcat on the XA2?

edit flag offensive delete publish link more



For Sony Xperia XA2 you just have to execute:

devel-su /system/bin/logcat
Alex ( 2019-04-07 00:35:09 +0300 )edit

thanks, but this seems to be missing the logs of Android apps

balta ( 2019-04-07 02:00:17 +0300 )edit

Yes it seems to be not as detailed as desired.

I am also searching for a way to debug an android app that refuses to start.

Alex ( 2019-04-07 02:18:19 +0300 )edit

answered 2018-02-03 18:00:24 +0300

DrYak gravatar image

And for Sailfish X (with Android 4.4 Kitkat compatible AlienDalvik) :

chroot /opt/alien /system/bin/logcat

(To be confirmed: might also be needed for other 4.4 devices such as Jolla Tablet)

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

Question tools



Asked: 2014-03-27 14:11:01 +0300

Seen: 1,724 times

Last updated: Nov 23 '19