ActivityWatch / aw-android

ActivityWatch for Android, using aw-server-rust as backend.
Mozilla Public License 2.0
174 stars 29 forks source link

Calls (screen off) not logged properly #37

Open ErikBjare opened 4 years ago

ErikBjare commented 4 years ago

It seems to not log calls if your display is off (speakerphone worked).

nicolae-stroncea commented 4 years ago

Had the same issue for a 7 minute call where AW reported it as 20 seconds. The other alternatives all correctly reported the same amount.

Probably has something to do with the events that the UsageStatsManager sends for a phone app. Easiest way to fix might be to get some logs of a call and see which events get fired for it.

Maybe https://github.com/ActivityWatch/aw-android/pull/40 fixes it, but I would be surprised if it does.