如何按時間從android獲取trafficStats信息? (How to get trafficStats information from android by time?)


問題描述

如何按時間從android獲取trafficStats信息? (How to get trafficStats information from android by time?)

有沒有辦法從某個日期獲取 trafficStats?例如從上個月開始。

我正在使用這個 獲取 wifi 流量統計信息android 並且從代碼中您可以看到,該文件中只有流量的數值,但例如在 DroidStats 應用程序中,數據是從最後一天/一個月等開始計算的。

還有當我重新啟動手機或搞亂網絡設置時總是 0


參考解法

方法 1:

Is there a way how to get trafficStats from some date? For example from last month.

You would have had to have been running last month, collected the data yourself, and saved it to a database or something. TrafficStats does not have any history. It only reports current cumulative values, except for resets (e.g., reboots).

Also value is always 0 when i reboot my phone

Correct. This is working as intended.

do i have to store this data myself if i don´t want to lose them?

Yes.

(by BlackessCommonsWare)

參考文件

  1. How to get trafficStats information from android by time? (CC BY‑SA 2.5/3.0/4.0)

#network-traffic #Android






相關問題

網絡流量操縱(虛擬局域網) (Network traffic manipulation (Virtual LAN))

如何在linux中了解特定端口的流量 (How to know traffic to a specific port in linux)

僅嗅探/記錄應用層 (Sniffing/recording application layer only)

Android:監控應用程序的數據流量使用情況 (Android: Monitor an app's data traffic usage)

如何按時間從android獲取trafficStats信息? (How to get trafficStats information from android by time?)

在 FreeBSD 中使用 SSH 隧道進行所有流量轉發 (All traffic forwarding using SSH tunnel in FreeBSD)

Wireshark - 僅查看多播和廣播流量 (Wireshark - see only multicast and broadcast traffic)

java套接字中的奇怪流量 (Strange traffic in java sockets)

是否有任何程序可以模擬不穩定的網絡連接? (Are there any programs that can simulate an unstable network connection?)

獲取 XHR 響應(網絡流量)並在 Katalon Studio 中解析 (Get XHR response (network traffic) and parse it in Katalon Studio)

Visual Studio 2019 中的網絡流量工具在哪裡 (Where's the Network Traffic Tool in Visual Studio 2019)

為什麼我不能用 chrome 調試 Service Worker? (Why I can't debug Service Workers with chrome?)







留言討論