????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 ???????.