dump pcm数据和一些备忘

来源:互联网 发布:控制台java 编辑:程序博客网 时间:2024/06/07 03:29

dump pcm数据

void writepcmtofile(const char * fname,const void* buffer, size_t bytes){static FILE *fp=NULL;if(fp==NULL || access( fname, F_OK )==-1){fp = fopen(fname, "ab+" );   if(fp==NULL){       ALOGI("can't open file!");                 fp=NULL;                 return;   }}  if(fp!=NULL){  fwrite(buffer , 1 , bytes , fp );  ALOGI("write to file %d bytes",bytes);  }}

一些备忘

adb shell setenforce 0
adb shell chmod 777 /data/user

在ANR出现的时候,输入三次那个命令
adb shell debuggerd -b mediaserver的进程号 >D:\trace1.txt
adb shell debuggerd -b mediaserver的进程号 >D:\trace2.txt
adb shell debuggerd -b mediaserver的进程号 >D:\trace3.txt

adb logcat -c | adb shell logcat -v threadtime> D:\012901.log

git log –oneline -10

adb shell dumpsys wifi
adb shell dumpsys cpuinfo
adb shell dumpsys power

0 0
原创粉丝点击