adb命令
来源:互联网 发布:27度甲烷热力学数据 编辑:程序博客网 时间:2024/04/28 21:11
Microsoft Windows [版本 10.0.10586]
(c) 2015 Microsoft Corporation。保留所有权利。
C:\Users\Fred>adb help
Android Debug Bridge version 1.0.32
-a - directs adb to listen on all interfaces for a connection
-d - directs command to the only connected USB device
returns an error if more than one USB device is present.
-e - directs command to the only running emulator.
returns an error if more than one emulator is running.
-s - directs command to the device or emulator with the given
serial number or qualifier. Overrides ANDROID_SERIAL
environment variable.
-p - simple product name like ‘sooner’, or
a relative/absolute path to a product
out directory like ‘out/target/product/sooner’.
If -p is not specified, the ANDROID_PRODUCT_OUT
environment variable is used, which must
be an absolute path.
-H - Name of adb server host (default: localhost)
-P - Port of adb server (default: 5037)
devices [-l] - list all connected devices
(‘-l’ will also list device qualifiers)
connect [:] - connect to a device via TCP/IP
Port 5555 is used by default if no port number is specified.
disconnect [[:]] - disconnect from a TCP/IP device.
Port 5555 is used by default if no port number is specified.
Using this command with no additional arguments
will disconnect from all connected TCP/IP devices.
device commands:
adb push [-p]
- copy file/dir to device
(‘-p’ to display the transfer progress)
adb pull [-p] [-a] []
- copy file/dir from device
(‘-p’ to display the transfer progress)
(‘-a’ means copy timestamp and mode)
adb sync [ ] - copy host->device only if changed
(-l means list but don’t copy)
(see ‘adb help all’)
adb shell - run remote shell interactively
adb shell - run remote shell command
adb emu - run emulator console command
adb logcat [ ] - View device log
adb forward –list - list all forward socket connections.
the format is a list of lines with the following format:
” ” ” ” “\n”
adb forward - forward socket connections
forward specs are one of:
tcp:
localabstract:
localreserved:
localfilesystem:
dev:
jdwp: (remote only)
adb forward –no-rebind
- same as ‘adb forward ’ but fails
if is already forwarded
adb forward –remove - remove a specific forward socket connection
adb forward –remove-all - remove all forward socket connections
adb reverse –list - list all reverse socket connections from device
adb reverse - reverse socket connections
reverse specs are one of:
tcp:
localabstract:
localreserved:
localfilesystem:
adb reverse –norebind
- same as ‘adb reverse ’ but fails
if is already reversed.
adb reverse –remove
- remove a specific reversed socket connection
adb reverse –remove-all - remove all reversed socket connections from device
adb jdwp - list PIDs of processes hosting a JDWP transport
adb install [-lrtsd]
adb install-multiple [-lrtsdp]
- adb 命令
- adb 命令
- adb命令
- adb命令
- adb 命令
- adb 命令
- adb 命令
- adb命令
- adb命令
- adb命令
- ADB 命令
- adb命令
- adb 命令
- adb命令
- adb 命令
- adb命令
- adb命令
- adb命令
- Python flask模块快速入门
- tomcat clean时 eclipse报错
- 3504: [Cqoi2014]危桥
- HTML5 LocalStorage 本地存储
- 欢迎使用CSDN-markdown编辑器
- adb命令
- ble 传输速率
- Android数据存储之Sqlite采用SQLCipher数据库加密实战
- 图结构练习——BFSDFS——判断可达性
- plsql远程连接数据库出错
- python3转exe
- Android设计模式源码解析之Builder模式
- iOS黑客技术大揭秘
- Java重难点面试(一)