To enable debug flags of ril, mms, network in runtime:
chmod +x enable_debug_flags.sh./enable_debug_flags.sh- Wait for B2G restarting complete.
- Capturing main logcat by
adb logcat -v threadtime > logcat.txt - Capturing radio logcat by
adb logcat -v threadtime -b radio > logcat_radio.txt
Note: network flag can be enabled at runtime since b2g 2.0.
To capture the packets in the devices.
-
Install attached tcpdump command into test device:
adb remount; adb push tcpdump system/bin/;adb shell chmod 777 /system/bin/tcpdump -
Start capturing tcpdump:
adb shell tcpdump -i any -p -s 0 -w /data/capture.pcap -
Backup tcpdump result:
adb pull /data/capture.pcap .