ADB常用命令

ADB Debugging

  • List of devices attached
adb devices
  • List connected devices (-l for long output)
adb devices -l

Wireless

  • adb connect

STEP 1.
Set the target device to listen for a TCP/IP connection on port 5555
disconnect the USB cable from the Android device

adb tcpip 5555

STEP 2.

Connect to a device over Wi-Fi.

find your Android device IP address at Settings > About phone > Status > IP address

adb connect 192.168.100.12

STEP 3.

Confirm that your host computer is connected to the Android device over Wi-Fi


adb devices

Package Manager

  • app installation - push a single package to the device and install it
adb install test.apk

File Manager

  • adb pull

copy files/dirs from device
To copy a file or directory and its sub-directories from the Android device

adb  pull /mnt/sdcard/Download/test.apk pc.apk

preserve file timestamp and mode.

adb  pull -a /mnt/sdcard/Download/test.apk pc.apk
  • adb push
    copy local files/directories to Android device
adb push pc.apk /mnt/sdcard/Download/test.apk

only push files that are newer on the host than the Android device

adb push --sync pc.apk /mnt/sdcard/Download/test.apk

ADB

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值