1. View traffic usage for an app
ADB Shell Cat/proc/net/xt_qtaguid/stats | Findstr (uid#)
such as: adb shell Cat/proc/net/xt_qtaguid/stats | Findstr 10063 (10063 for UID)
-Wlan00x0 10063 0 454072 1151 93233 1713 454072 1151 0 0 0 0 93233 1713 0 0 0 0 -Wlan00x0 10063 1 8672660 6156 396296 5302 8672660 6156 0 0 0 0 396296 5302 0 0 0 0
where 6th and 8 are listed as Rx_bytes (receive data) and tx_bytes (transmit data) contain statistics on all network traffic such as TCP,UDP.
Note: See how to Apply UID
ADB shell Dumpsys Package Com.example.myapp | Findstr userid=
2. Send command to simulate the low-power environment of mobile phone:
" Level " 3 " Scale " -
remark: extension ~ How to restore factory settings
ADB shell am broadcast-a Android.intent.action.MASTER_CLEAR
Call : adb shell am start-a android.intent.action.call-d tel:10086
Summary of performance test methods