Use networkStatsService to get detailed network uid stats.
The native implementation of network stats no longer keep a persistent stats since boot. Everytime networkStatsService read the detail stats, the data will be cleaned for performance reason. For the service that are directly calling networkStatsFactory, the results are no longer accurate anymore. Use the binder interface provided by networkStatsService instead to get a cumulative detailed uid stats since device boot. Bug: 111441138 Test: android.app.usage.cts.NetworkUsageStatsTest Change-Id: I230c1edbf64cfeb3dbb560db368b5e420f7b79a4
Loading
Please register or sign in to comment