Ask / Submit
10

Android debug traces

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

jake9xx gravatar image

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

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.

edit retag flag offensive close delete

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 +0200 )edit

2 Answers

Sort by » oldest newest most voted
3

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

balta gravatar image

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

edit flag offensive delete publish link more

Comments

1

For Sony Xperia XA2 you just have to execute:

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

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

balta ( 2019-04-07 02:00:17 +0200 )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 +0200 )edit
1

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

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

Follow
5 followers

Stats

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

Seen: 1,487 times

Last updated: Feb 07