scp拷贝文件
scp -P xxxx -r chenqw@xxx.xxx.xxx.xxx:/home/zhangx/.ssh/chenqw@ubuntu208.pub .
高通Android9.0查看CPU频率
cat /sys/bus/cpu/devices/cpu0/cpufreq/cpuinfo_cur_freq
高通查看GPU频率
cat /sys/bus/platform/devices/soc\:qcom,gpubw/devfreq/soc\:qcom,gpubw/cur_freq
查看中断次数
cat /proc/interruts
高通常用调试
1、去掉B34命令
AT+CNVW=6828,0,"95000000E00100000000000000000000"
AT+CNVW=6829,0,"95000000E00100000000000000000000"
2、查看去掉B34是否成功,主要对比上面的数字是否一致
AT+CNVR=6828,0
AT+CNVR=6829,0
3、查看单双卡
persist.radio.multisim.config
4、adb 进入dump log模式
echo 1 > /sys/module/msm_poweroff/parameters/download_mode //enable ramdump
echo c > /proc/sysrq-trigger //trigger ramdump
5、sensor 配置调试
adb root
adb disable-verity
adb reboot
adb root
adb remount
adb shell rm /mnt/vendor/persist/sensors/sns.reg
adb push qcom_def文件 /vendor/etc/sensors/
adb shell chmod 644 /vendor/etc/sensors/sensor_def_qcomdev.conf
adb reboot
6、dwc3调试宏打开
echo -n 'file dwc3-msm.c +p' > /sys/kernel/debug/dynamic_debug/control
7、打开kernel调试
echo 8 > /proc/sys/kernel/printk
8、查看adc
/sys/class/hwmon/hwmon0/device/mpp2_adc
/sys/class/hwmon/hwmon0/device/mpp2_adc
9. GOIO 调试
1) 导出
/sys/class/gpio# echo 19 > export
2) 设置方向
/sys/class/gpio/gpio19# echo out > direction
3) 查看方向
/sys/class/gpio/gpio19# cat direction
4) 设置输出
/sys/class/gpio/gpio19# echo 1 > value
5) 查看输出值
/sys/class/gpio/gpio19# cat value
6) 取消导出
/sys/class/gpio# echo 19> unexport
10.Android9 adb shell 播放音乐
am start -n com.android.music/com.android.music.MusicBrowserActivity -d /storage/emulated/0/qingzang.flac
11、 查看是否熔丝
getprop | grep secure
12、导出git文件
git diff 86b4fcf583f2765ead11b7765433aa720df8e2d7 87b75d568b3068dcf3032ce69b01c28319ba5205 --name-only | xargs tar -czvf 20201016_patch.tar.gz
13查看wifi工作制式
wpa_cli -i wlan0 status
14、adb 查看modem版本
cat /dev/smd11 &
echo -e "ATI\r" > /dev/smd11
15、adb 开启屏幕打印信息
echo ‘file mdss_fb.c +p’ > /sys/kernel/debug/dynamic_debug/control;
echo ‘file mdss_dsi_panel.c +p’ > /sys/kernel/debug/dynamic_debug/control;
16、adb 过滤 error
adb logcat *:E
17、linux 查找并且删除
find -name .git |xargs rm -rf
18、马里奥摄像头log抓取:
adb shell
logcat -b kernel -b main -b system > /sdcard/android_kernel.log &
19、查看输入设备信息
dumpsys input
20、查看输入设备信息
dumpsys display
21、开启摄像头调试log
adb shell setprop persist.vendor.camera.sensor.debug 5
22、查看摄像头配置信息
cat vendor/etc/camera/camera_config.xml
23、开启电池调试命令
echo 8 > /proc/sys/kernel/printk
echo -n 'file qpnp-smb5.c +p' > sys/kernel/debug/dynamic_debug/control
echo -n 'file smb5-lib.c +p' > sys/kernel/debug/dynamic_debug/control
echo -n 'file qpnp-qg.c +p' > sys/kernel/debug/dynamic_debug/control
echo -n 'file step-chg-jeita.c +p' > sys/kernel/debug/dynamic_debug/control
24、高通CPU 性能调试
adb root
adb wait-for-device
adb shell stop mpdecision
adb shell stop thermal-engine
sleep 1
adb shell "echo 1 > /sys/devices/system/cpu/cpu1/online"
adb shell "echo 1 > /sys/devices/system/cpu/cpu2/online"
adb shell "echo 1 > /sys/devices/system/cpu/cpu3/online"
adb shell "echo 1 > /sys/devices/system/cpu/cpu4/online"
adb shell "echo 1 > /sys/devices/system/cpu/cpu5/online"
adb shell "echo 1 > /sys/devices/system/cpu/cpu6/online"
adb shell "echo 1 > /sys/devices/system/cpu/cpu7/online"
sleep 1
adb shell "echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
adb shell "echo performance > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor"
adb shell "echo performance > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor"
adb shell "echo performance > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor"
adb shell "echo performance > /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor"
adb shell "echo performance > /sys/devices/system/cpu/cpu5/cpufreq/scaling_governor"
adb shell "echo performance > /sys/devices/system/cpu/cpu6/cpufreq/scaling_governor"
adb shell "echo performance > /sys/devices/system/cpu/cpu7/cpufreq/scaling_governor"
adb shell "echo Y > /sys/module/lpm_levels/parameters/sleep_disabled"
25、cat proc/cpuinfo