vip-order and adb shell

adb logcat -v threadtime > g:/work/loglist/log.txt

adb pull data/anr/

adb shell getprop | grep gsm

adb shell dumpsys media.audio_flinger > d:/dumpsys.txt

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
adb shell cat proc/kmsg
adb shell logcat -v time | tee logcat.txt
adb shell cat proc/audio
adb shell cat /proc/meminfo
adb shell ls
adb shell service list
adb shell dumpsys media.audio_flinger
adb shell dumpsys media.player
adb shell dumpsys > /home/syh/dumpsys.txt
adb shell dumpstate > /home/syh/dumpstate.txt
adb shell ps
adb shell dmesg 會打印出內核的調試信息
adb devices 取得當前運行的模擬器/設備的實例的列表及每個實例的狀態
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
adb shell cat /proc/cpuinfo
adb shell cat /proc/meminfo
adb shell cat /proc/vmallocinfo
adb shell cat /proc/audio
adb shell top -m 5
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
adb shell setprop streamout_ori.pcm.dump 1  //streamout_ori.pcm.dump 寫到驅動的數據
adb shell setprop streamout_ori.pcm.dump 0
adb pull /mnt/sdcard/StreamOut_Ori_Dump.pcm /home/syh/work/work2c/
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
adb shell setprop streamin.pcm.dump 1       //StreamIn_Dump.pcm
adb shell setprop streamin.pcm.dump 0
adb pull /mnt/sdcard/StreamIn_Dump.pcm /home/syh/work/work2/
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
placecall: |onnewring|ondisconnect: cause|bbkcallrecorder|acceptcall|internalanswercall

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

gg; shift v; shift g; =; format code
:wq 保存
:set number 顯示行號
cc 進入編輯 或 i
u  撤消上一步操作
dw 刪除單詞
dd 刪除行
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
調整光標到要編輯的行,進行編輯
:w 保存當前編輯的行 相當CTRL+S
:wq 保存並退出文件,不再編輯
:255 跳到第255行
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SW Version: cat mediatek/config/common/ProjectConfig.mk

Modem Version: cat mediatek/custom/common/modem/project_name/modem.info

ELF文件和database在./mediatek/custom/common/modem/bbk15_td_ics_tdd128hspa_PD1215/

mv jb_rel-A8064AAAAANLYA161030 jb_rel-A8064AAAAANLYA161030-2085

source insight open an file : project window --->  pitch on the file ----> right-hand button ---->search files --->

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

在出現問題時,請查看下modem的狀態,抓下寄存器的信息,抓下錄音的PCM數據,和mtklog信息:
(1)查看modem的狀態異常,請輸入以下命令確認modem狀態:
出問題時,請抓取modem狀態信息(命令: adb shell cat /sys/class/BOOT/BOOT/boot/md > modem_err.txt)把modem_err.txt附在對應bug附件中
(2)抓取寄存器的狀態的信息:
出問題時,請抓取audio寄存器信息(命令: adb shell cat /proc/audio > register_err.txt)並把register_err.txt附在對應bug附件中
然後將正常通話時的寄存器也導出一份(命令: adb shell cat /proc/audio > register_ok.txt)並把register_ok.txt附在對應bug附件中
(3)在出現問題時,請抓取下錄音的PCM數據:抓取步驟如下:
1.進入工程模式->Hardware Testing->Audio->Audio Logger->勾選Audio Stream Input Dump (其餘項不要勾選)
2.進行Sound Record錄音,復現問題,記錄復現問題的時間點和出現問題時對應的PCM數據。(每次錄音都會生成對應的PCM數據)
3.再取消勾選Audio Stream Input Dump
4.將mtklog文件夾中的audio_dump附在對應bug的附件中
(4)進入工程模式->Log and Debugging->MTKLogger->開啓ModemLog MobileLog NetworkLog
注意:記錄下出現問題的時間.跟蹤前請先清空下log,並每隔2小時,如果沒有出現問題,清空下log。並把mtklog添加到對應bug的附件中。

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

雙擊運行.bat

adb vivoroot
adb remount
adb push libaudio.a2dp.default.so system/lib/
adb push libaudio.primary.default.so system/lib/
adb push hw/audio_policy.default.so system/lib/hw/
adb reboot
pause

發佈了82 篇原創文章 · 獲贊 5 · 訪問量 22萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章