高频使用的adb命令一

名称: 介绍:
adb logcat -c 清空缓存Log
adb logcat -G 2m 扩大缓冲区大小
adb devices 查看连接的设备名称
adb -s xxx shell 连接指定设备,xxx指序列号
adb kill-server && adb start-server 停止、启动adb服务
adb tcpip 5555 && adb connect <手机ip> 通过wifi连接adb
adb disconnect && adb usb 断开wifi、切换至usb模式
adb reboot bootloader && fastboot flashing unlock 进入fastboot模式、unlock解锁
adb root && adb disable-verity && adb reboot 获取root权限、禁用verity、重启
adb root && adb remount 将文件系统重挂载可读写模式
adb reboot recovery && adb sideload xxx.root.zip OTA升级
adb reboot edl 高通平台进入9008口
adb push xxx.file /vendor/ 将文件push至vendor分区
adb install -r xxx.apk 安装apk(-r表示覆盖安装)
adb shell dmesg 打印开机Log
adb shell cat dev/kmsg 实时打印kernel log
adb shell;logcat -v time threadtime > 1.log 打印android log(带线程信息)
adb shell;logcat -v time grep -E "camera
adb shell;logcat -v time findstr /c:""
adb shell screencap -p sdcard/01.png 截屏
adb shell screenrecord /sdcard/record.mp4 录像
adb shell getprop ro.build.id 查看版本号
adb shell getprop ro.build.type 查看user或者debug版本
adb shell getprop ro.product.model 查看产品名称
adb shell getprop ro.build.version.release 查看android版本号
posted @ 2025-12-02 17:44  RichardHuang1  阅读(0)  评论(0)    收藏  举报