4

It is possible to write encoded messages into /dev/log/main and then see them in the adb logcat output.

The command should be executable through adb from the host PC. Ideally, it should look like:

adb shell ... my log message

Is there some way to encode the logs without installing anything?

So far, we have used very simple native application, which will print whatever is passed over its command line to the log.

2
  • Are you asking from a user's view (some context would help then), or are you looking for "code pieces" to establish that in your app?
    – Izzy
    Dec 3, 2013 at 10:35
  • 1
    @Izzy edited the question. Hope it is better now Dec 3, 2013 at 10:49

1 Answer 1

3

Write the following in terminal (replace 123456789 with the device serial number/id):

adb -s 123456789 shell log -t "TAG" "MESSAGE"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .