vip-order and adb shell

99 篇文章 0 订阅
80 篇文章 0 订阅

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值