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

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:

/opt/alien/system/bin/logcat

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

Comments

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 )

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

Yo ( 2019-11-23 18:09:35 +0300 )
add a comment

3 Answers

Sort by » oldest newest most voted
3

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

balta gravatar image

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

link

Comments

1

For Sony Xperia XA2 you just have to execute:

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

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

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

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 )
add a comment
2

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)

link
add a comment
2

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-

link

Comments

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

Tanghus ( 2019-12-01 01:45:21 +0300 )
add a comment
Login/Signup to Answer

Question tools

Follow
5 followers

Stats

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

Seen: 1,871 times

Last updated: Nov 23 '19