tizentizen-emulatortizen-sdktizen-sdblinux-smack

How do you read logs on a Tizen TV emulator?


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?


Solution

  • 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"