0

Does anybody knows a possibility to add a log entry into the logcat main log?

I need to inject an log line with custom text into this log on arbitrary devices.

The main problem is that I can't just install an own app that does inject the log entries. I need to create the log entry directly on adb.

3
  • 1
    Use the log commandline tool. Commented Oct 8, 2020 at 18:52
  • @IrfanLatif Thanks that looks good. Do you know if log universally available or do I have to expect device that don't support this command?
    – JMax
    Commented Oct 9, 2020 at 7:13
  • 1
    log is a toybox applet, available since Android 8: android.googlesource.com/platform/external/toybox/+/…. For older releases you can port the binary. It's very minimalistic. Commented Oct 9, 2020 at 9:47

0

You must log in to answer this question.

Browse other questions tagged .