ADB常用命令

115 阅读1分钟
  • 查看apk签名信息 

keytool -printcert -jarfile <apk_path>

  • 启动activity

adb shell am start -n com.xiangzhu.audio/com.iflytek.cyber.iot.show.core.EvsLauncherActivity

  • 输入文本

adb shell input text "tvEvtQaoFCw7N9K4"

  • 打开系统设置

adb shell am start com.android.settings/com.android.settings.Settings

  • 打印指定进程的日志

adb logcat —pid=3728

  • 查看Android系统版本

adb shell getprop ro.build.version.release

  • 保存日志到本地

Mac:adb logcat > /Users/wangcheng/Desktop/log.txt

windows: adb logcat -v time > D:\log.txt

  • 查看设备abi

adb shell getprop ro.product.cpu.abi