asksven / BetterBatteryStats

An attempt to provide advanced battery stats for Android
618 stars 156 forks source link

No network stats #394

Open GermainZ opened 11 years ago

GermainZ commented 11 years ago

With root features enabled and root granted, the Network tab is completely empty. Alarms show fine.

Logcat:

--------- beginning of /dev/log/main I/InputReader( 2042): dispatchTouch::touch event's action is 0 I/InputDispatcher( 2042): Delivering touch to current input target I/InputReader( 2042): dispatchTouch::touch event's action is 1 I/InputDispatcher( 2042): Delivering touch to current input target I/ReferenceStore(15215): Populating cache I/ReferenceStore(15215): Added ref ref_boot I/ReferenceStore(15215): Added ref ref_unplugged I/ReferenceStore(15215): Added ref ref_current I/ReferenceStore(15215): Finished populating cache I/ReferenceStore(15215): Populating cache I/ReferenceStore(15215): Added ref ref_boot I/ReferenceStore(15215): Added ref ref_unplugged I/ReferenceStore(15215): Added ref ref_current I/ReferenceStore(15215): Finished populating cache I/ReferenceStore(15215): Retrieved reference from storage: Reference ref_unplugged created 6 m 3 s (Wl: 0 elements; KWl: 11elements; NetS: 0 elements; Alrm: 6 elements; Proc: 0 elements; Oth: 4 elements; CPU: 4 elements) I/StatsActivity(15215): refreshSpinners: reset spinner selections: from='ref_unplugged', to='ref_current' I/StatsActivity(15215): refreshSpinners Spinner values: SpinnerFrom=[ref_boot, ref_unplugged] SpinnerTo=[ref_current] I/StatsActivity(15215): refreshSpinners: request selections: from='1', to='0' I/StatsActivity(15215): refreshSpinners result positions: from='1', to='0' --------- beginning of /dev/log/system D/PowerManagerService( 2042): acquireWakeLock flags=0x1 tag=M D/PowerManagerService( 2042): releaseWakeLock flags=0x1 tag=M D/dalvikvm(15215): GC_CONCURRENT freed 1299K, 51% free 3648K/7367K, external 1666K/2173K, paused 9ms+6ms D/StatsProvider(15215): Added Deep sleep:2 h 5 m 54 s (7554 s) Ratio: 82.2% I/StatsProvider(15215): rawRealtime = 9193566000 I/StatsProvider(15215): whichRealtime = 8740486 I/StatsProvider(15215): Trace: Calling root operations2013-05-08 10:58:53 E/su (15484): sudb - Opening database E/su (15484): sudb - Database opened E/su (15484): sudb - Database closed D/LibQmg_native(15488): register_android_app_LibQmg I/ActivityThread(15496): Pub com.noshufou.android.su.provider: com.noshufou.android.su.provider.PermissionsProvider D/dalvikvm(15488): GC_CONCURRENT freed 103K, 67% free 343K/1024K, external 0K/0K, paused 2ms+5ms D/jdwp (15488): adbd disconnected I/ApplicationPackageManager(15496): cscCountry is not German : D/su (15484): 10123 com.asksven.betterbatterystats_xdaedition executing 0 /system/bin/sh using shell /system/bin/sh : sh I/AlarmsDumpsys(15215): getAlarms: SDK=10, RELEASE=2.3.6 D/PowerManagerService( 2042): acquireWakeLock flags=0xa tag=KEEP_SCREEN_ON_FLAG E/su (15507): sudb - Opening database E/su (15507): sudb - Database opened E/su (15507): sudb - Database closed D/LibQmg_native(15511): register_android_app_LibQmg I/ApplicationPackageManager(15496): cscCountry is not German : D/dalvikvm(15511): GC_CONCURRENT freed 103K, 67% free 343K/1024K, external 0K/0K, paused 1ms+1ms D/jdwp (15511): adbd disconnected D/su (15507): 10123 com.asksven.betterbatterystats_xdaedition executing 0 /system/bin/sh using shell /system/bin/sh : sh D/dalvikvm(15215): GC_CONCURRENT freed 886K, 52% free 3599K/7367K, external 1666K/2173K, paused 4ms+5ms I/StatsProvider(15215): Trace: Finished root operations2013-05-08 10:58:55 I/ReferenceStore(15215): Serializing reference ref_current I/StatsActivity(15215): LoadStatData: refreshing display for stats ref_unplugged to ref_current I/StatsActivity(15215): Since 2 h 27 m 12 s Bat.: -6% (99% to 93%) [2.4%/h] W/InputManagerService( 2042): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@407fbde0 D/PowerManagerService( 2042): acquireWakeLock flags=0x1 tag=M D/PowerManagerService( 2042): releaseWakeLock flags=0x1 tag=M D/BatteryService( 2042): update start I/ReferenceStore(15215): Saved ref ref_current D/PowerManagerService( 2042): releaseWakeLock flags=0xa tag=KEEP_SCREEN_ON_FLAG D/PowerManagerService( 2042): acquireWakeLock flags=0x1 tag=AlarmManager

asksven commented 11 years ago

/proc/net/xt_qtaguid/stats is the source for the stats. As it is read with su I guess your kernel does not write it. Could you check?

GermainZ commented 11 years ago

/proc/net/ doesn't have the xt_qtaguid directory. Could BBS read what's in /proc/uid_stat/ as a fallback?

localhost net # cd /proc/uid_stat/
localhost uid_stat # ls
10003  10034  10068  10089  10096  10117
10010  10043  10085  10090  10099  10118
10012  10044  10088  10093  10104  10119
localhost uid_stat # ls 10003
tcp_rcv      tcp_snd      udp_rcv      udp_snd
tcp_rcv_pkt  tcp_snd_pkt  udp_rcv_pkt  udp_snd_pkt
localhost uid_stat # cat 10003/tcp_rcv; cat 10003/tcp_snd
128421
5033
vitaly51370 commented 4 years ago

Please help! LG-G3s, Android 8.1, Network tab is completely empty, BBS v2.3.248/v2.5-325

jag3gds:/ # id uid=0(root) gid=0(root) groups=0(root),1004(input),1007(log),1011(adb),1015(sdcard_rw),1028(sdcard_r),3001(net_bt_admin),3002(ne t_bt),3003(inet),3006(net_bw_stats),3009(readproc),3011(uhid) context=u:r:su:s0 jag3gds:/ # getenforce Permissive jag3gds:/ # cat /proc/net/xt_qtaguid/stats idx iface acct_tag_hex uid_tag_int cnt_set rx_bytes rx_packets tx_bytes tx_packets rx_tcp_bytes rx_tcp_packets rx_udp_bytes rx_u dp_packets rx_other_bytes rx_other_packets tx_tcp_bytes tx_tcp_packets tx_udp_bytes tx_udp_packets tx_other_bytes tx_other_packe ts 2 wlan0 0x0 0 0 63804 989 153323 2322 15878 271 29294 232 18632 486 15812 338 11787 182 125724 1802 3 wlan0 0x0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 wlan0 0x0 1000 0 13358 74 10840 86 6446 62 6912 12 0 0 10840 86 0 0 0 0 5 wlan0 0x0 1000 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 wlan0 0x0 10052 0 4444 8 1335 9 4444 8 0 0 0 0 1335 9 0 0 0 0 7 wlan0 0x0 10052 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 8 wlan0 0x0 10085 0 1210458 1533 262613 1865 1210458 1533 0 0 0 0 262613 1865 0 0 0 0 9 wlan0 0x0 10085 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 10 wlan0 0x0 10087 0 18998 40 8708 53 18998 40 0 0 0 0 8708 53 0 0 0 0 11 wlan0 0x0 10087 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12 wlan0 0x0 10091 0 10695271 8658 746101 6075 10695271 8658 0 0 0 0 746101 6075 0 0 0 0 13 wlan0 0x0 10091 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 14 wlan0 0x0 10094 0 41727 50 12727 68 41727 50 0 0 0 0 12727 68 0 0 0 0 15 wlan0 0x0 10094 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16 rmnet0 0x0 0 0 3311 41 151530 2541 280 7 3031 34 0 0 514 9 2288 34 148728 2498 17 rmnet0 0x0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 18 rmnet0 0x0 1000 0 39274 223 29635 269 39046 220 228 3 0 0 29407 266 228 3 0 0 19 rmnet0 0x0 1000 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 20 rmnet0 0x0 10087 0 434 4 454 5 434 4 0 0 0 0 454 5 0 0 0 0 21 rmnet0 0x0 10087 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 22 p2p0 0x0 0 0 0 0 31488 492 0 0 0 0 0 0 0 0 0 0 31488 492 23 p2p0 0x0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 24 lo 0x0 0 0 0 0 616 7 0 0 0 0 0 0 0 0 0 0 616 7 25 lo 0x0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 26 lo 0x0 10085 0 616 7 0 0 0 0 0 0 616 7 0 0 0 0 0 0 27 lo 0x0 10085 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 28 dummy0 0x0 0 0 0 0 168 3 0 0 0 0 0 0 0 0 0 0 168 3 29 dummy0 0x0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

gaich commented 4 years ago

Виталий, попробуй, пожалуйста, удалить программу, очистить кэш и установить её заново с предоставлением разрешений. Решение так себе, но один раз мне помогало.:-)