adb 命令备忘
2023-11-08 本文已影响0人
SodaCrush
查询cpu:
adb shell getprop ro.product.cpu.abi
查看app详细信息:
adb shell dumpsys package com.ss.android.ugc.aweme
查看app安装路径:
adb shell pm path com.ss.android.ugc.aweme
清除app数据缓存:
adb shell pm clear com.ss.android.ugc.aweme
查看mac地址
adb shell cat /sys/class/net/wlan0/address
查询机型代号:
adb shell getprop ro.product.name
或者在 Fastboot 模式下通过命令 fastboot getvar product
查询android_id
adb shell settings get secure android_id
wifi adb 方式连接:
确保所有设备和pc在同一局域网内
确保当前仅有一台设备通过usb连接pc
adb tcpip 5555
保持usb连接,查看设备ip, adb connect device_ip
adb devices 检查是否成功
拔掉usb线
查看其他设备ip,并依次 adb connect 一遍