Search code examples
.net-standardtizen

Monitoring sensor usage on smartwatch with Tizen


I'm trying to write an app for a Samsung Galaxy Watch 3 that runs on Tizen (wearable 5.5). The goal is to monitor other apps that use the various sensors so that I can display in real time which app uses what sensor.

I've gone for a .NET app, but depending on the possibility I could switch to webapp or native. The Tizen .NET API doesn't provide methods to retrieve sensor usage. My other idea was to try parsing the system log, as it contains PIDs of apps, "SENSOR" tags, and sensor info. If I could access it (according to the documentation, the log is situated in /dev/log_main), I could easily determine which app uses what sensor and base my app on this.

So my questions are:

  1. Is there a way to achieve my goal?
  2. Is it possible to access the system log from my app? If yes, I assume I'll need root privileges?
  3. From the previous question, is there currently an accessible and safe way of gaining root access? The watch I used belongs to my University.

Thank you.


Solution

    1. Is there a way to achieve my goal?

    Unfortunately, there seems to be no way to achieve it(both native and web).

    1. Is it possible to access the system log from my app? If yes, I assume I'll need root privileges?
    2. From the previous question, is there currently an accessible and safe way of gaining root access? The watch I used belongs to my University.

    As far as I know, you can't get root privileges legally. also, logs are just information(it can be changed at any time by any reason), not the protocol promised with the Application programmer. So even if you can parse the log, it doesn't seem like a good idea.