How do you read logs on a Tizen TV emulator?

881 views Asked by At

Although the mobile emulator works fine for sdb, I cannot get it to work for the Tizen TV emulator. I'm running a Tizen 6.5 TV emulator in "Developing" mode on a Windows machine. Neither sdb dlog or sdb shell is working:

$ sdb shell ls
$ sdb dlog

Both commands generate kernel messages indicating an error with the smack security settings and some library libkUEPUser.

[ 2905.222855] audit: type=1400 audit(1645111214.210:236): lsm=SMACK fn=smack_inode_permission action=denied subject="User" object="System" requested=r pid=2598 comm="systemd" name=".wm_ready" dev="tmpfs" ino=18549
...
[reporter] pHandle Error : /usr/lib/libkUEPUser.so: cannot open shared object file: No such file or directory
[smack-logger] failed to send report

How can I access the log messages my application is emitting?

4

There are 4 answers

0
Ian Hunter On BEST ANSWER

Short Answer: You Can't

From the Tizen TV FAQ

This section lists limitations you might encounter while working with a Tizen TV emulator or a Samsung Smart TV. Common issues

sdb shell is not available
Cannot check the log messages
Cannot use debug mode

You can disable SMACK with a kernel flag in the QEMU startup, but I haven't been able to get it to completely boot after doing so.

Probably best to use a different logger than the Tizen logger.

Serilog works fine for my use case; its debug sink can at least send messages to the Visual Studio console.

using Serilog;

Serilog.Log.Logger = new Serilog.LoggerConfiguration().WriteTo.Debug().CreateLogger();
Serilog.Log.Information("Tizen TV application starting");

Debug output window of Visual Studio 2022 showing the message "Tizen TV application starting"

0
Jianhua Bi On

Mr. Lan Hunter's answer is correct.
1.There is no way to get Tizen log with the released image as security policy.
2.User can use serilog to debug .Netapp in Tizen project. Step as below:

  1. Install the Nuget package named Serilog.Sinks.Debug in visual studio
  2. use code as:
using Serilog;

Serilog.Log.Logger = new Serilog.LoggerConfiguration().WriteTo.Debug().CreateLogger();
Serilog.Log.Information("any log you want here ...");
  1. Log will be output to the debug output
0
Sangwook Lee On

I tested it on Tizen mobile 6.5 emulator. And then, I can use sdb shell and dlog ,too. Just I guess that it may be internal tv security policy.

1
stuckatzero On

if you are developing a web base app for Tizen Smart TV you can use web inspector