????1??log?????????
????????? ??????校? logcat main ?? logcat radio ?? logcat events ?? tcpdump ?????懈???????????QXDM ???
????????? ???校? adb shell cat /proc/kmsg ?? adb shell dmesg ?? adb shell dumpstate ?? adb shell dumpsys ?? adb bugreport ??????????
????2??LOG?????
????l  ?????
????adb logcat -b main -v time>app.log  ?????贸???? log
????adb logcat -b radio -v time> radio.log ?????????? log ?? SIM STK ????????妫� modem ????ATcommand ???????? QXDM ????????
????adb logcat -b events -v time  ??????????????????绱�???????????
????tcpdump ????????????? TCP/IP 协?????????????????????? adb shell tcpdump -s 10000 -w /sdcard/capture.pcap ??????? mms ????????? UA profile ?? browser ???????????? proxy ?? APN ????? streaming ???????????? UA profile ???
?????????????? QXDM ??????????? Android ?????????芯???????????????????????????????芯??????????????????????????????????缍�???????? ... ??????????????????????????????(QXDM ?? LOG????????慰? QPST?? QXDM????????????????? )
????l  ?????
????o   bugreport ?????? adb bugreport>bugreport.log) ??????????? dmesg ?? dumpstate ?? dumpsys ??
????o   dumpstate ???????????????????????????????????????? cpu ????? logcat ???妫� kernel ???????
????o     adb shell dumpsys ?????????? service ???????????????妫�????????懈??????梅??????? adb shell dumpsys meminfo system ??? system ??? process ??????????
????o   kmsg ??
????adb shell cat /proc/kmsg > kmsg.txt ??????? msm_kgsl ???
?????????????????? printk ??????????????魏???????????????谐??????????????????????????????????????? syslog ??????些??????????????? dmesg ????????? klogd ??????些????? proc ????????????? ?? ??味???? kmsg ?????????????????????? ?? ??????? ?? ????????????????????????????? ( ???????效???? )?? ????????味????????????? ??????????????? ?? ???????????小???? ?? ??????????????????写???? ?? ????????????????? . ???????? /proc/kmsg ?????????懈?????????? ?? ????械?? ??????????????
????o   dmsg ??
????adb shell dmesg > dmesg.txt
????????? dmesg ???????????????? kernel ??????????娲�?? ring buffer ?小?????????????????????????????? dmesg ?????? dmesg ?? kernel ?? log ??????? kernel ????????? driver ??????????????????? usb ???????????????????????? /var/log ???校?????? dmesg ??????? more /var/log/dmesg
????o   ???????? log ????
???????? Apollo ??????? *#*#8888#*#* ?? ????????? LOG ???????????????? SD ?????? LOG ??PC.
????3??Log??????
????Get Log from Android System
????adb bugreport > bugreport.txt
????copy bugreport to the current directory.
????bugreport ???????????? log ??? ?? ???? log ????????????????????????????? .
???????????? :
????1.adb shell 2. ???????????????? 3. ???????? 4. ?????????
??????????????????????? 1.adb shell 2. ???? ps -P 3. ????????????????
????Log Archive Analysis
????1.bugreport
????bugreport ??? android ???????? log?? ????????????? ?? ?????????斜?????????? VM ???????.