Skip to content

bevis-tseng/Debug_Tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

enable_debug_flags.sh

To enable debug flags of ril, mms, network in runtime:

  1. chmod +x enable_debug_flags.sh
  2. ./enable_debug_flags.sh
  3. Wait for B2G restarting complete.
  4. Capturing main logcat by adb logcat -v threadtime > logcat.txt
  5. 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.

tcpdump

To capture the packets in the devices.

  1. Install attached tcpdump command into test device:

    adb remount; adb push tcpdump system/bin/;adb shell chmod 777 /system/bin/tcpdump

  2. Start capturing tcpdump:

    adb shell tcpdump -i any -p -s 0 -w /data/capture.pcap

  3. Backup tcpdump result:

    adb pull /data/capture.pcap .

About

Debug Tools for B2G

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages