Received bytes tracking not working for SIM cellular data
- Device: Meizu Pro 5 TD-LTE (Turbo, chinese version originally delivered with stock Flyme OS)
- Channel: Ubuntu Touch - RC
- Build: 2019-W38
Steps to reproduce
- Toggle wi-fi off and toggle cellular data on in the UT Network settings.
- Surf on the internet or watch a video for a while.
- Open the dataMonitor app.
- Tap on the "SIM data chart" button to watch the cellular data storage history.
- Check the mattdaemon.log (located in .cache/upstart, it can be viewed using the Logviewer app for ease of accessibility).
Expected behavior
Similarly to the wi-fi data when the wi-fi connection is toggled on, I'd expect the SIM cellular data to be monitored and stored and to be displayed in the relevant chart; the mattdaemon.log is expected to report the exact data received.
Actual behavior
The SIM chart doesn't display any data and the mattdaemon.log reports to have detected the SIM connection, but even when I'm sure my phone received Mbytes from the internet, it only reports a mere zero MBytes received today.
Useful additional information
SIM cellular data tracking not working is weird to me because there is a connection property used to verify whether the Platform on which the app is running is capable or not to send statistics such as received bytes; the mentioned property is QNetworkConfigurationManager::DataStatistics (for details refer to Qt documentation). The dataMonitor app does ckeck this property by reporting in the mattdaemon.log file the sentence "Platform is capable of data statistics for available connections.", in case of positive result.
I can confirm that the wi-fi received bytes tracking is performed my means of the library stored in the directory: /usr/lib/arm-linux-gnueabihf/qt5/plugins/bearer. The library is named libqnmbearer.so and it's probably the culprit for not allowing the SIM cellular data to be properly tracked down. I'm thinking that maybe an updated library could work better than this (Qt version seems to be the Qt5 on UT and the latest release of Qt seems to be Qt5.8). I'm investigating the matter but no solution so far. Any hint would be appreciated.