1

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.

  • 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 '13 at 10:35
  • 1
    @Izzy edited the question. Hope it is better now – Roman Saveljev Dec 3 '13 at 10:49
0

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.