-
Android调试桥版本1.0.31
Android Debug Bridge version 1.0.31
-
-d -将命令指向唯一连接的USB设备
-d - directs command to the only connected USB device
-
如果存在多个USB设备,则返回错误。
returns an error if more than one USB device is present.
-
-e -将命令指向唯一正在运行的仿真器。
-e - directs command to the only running emulator.
-
如果多个模拟器正在运行,则返回错误。
returns an error if more than one emulator is running.
-
-s <specific device> -将命令指向具有给定的设备或模拟器
-s <specific device> - directs command to the device or emulator with the given
-
序列号或限定符。
serial number or qualifier.
-
覆盖ANDROID_SERIAL
Overrides ANDROID_SERIAL
-
环境变量。
environment variable.
-
-p <产品名称或路径> -简单的产品名称,如'sooner',或
-p <product name or path> - simple product name like 'sooner', or
-
产品的相对/绝对路径
a relative/absolute path to a product
-
输出目录,如' Out /target/product/sooner'。
out directory like 'out/target/product/sooner'.
-
如果不指定-p,则ANDROID_PRODUCT_OUT
If -p is not specified, the ANDROID_PRODUCT_OUT
-
使用环境变量,它必须
environment variable is used, which must
-
做一个绝对的路径。
be an absolute path.
-
Devices [-l] -列出所有连接的设备
devices [-l] - list all connected devices
-
('-l'也会列出设备限定符)
('-l' will also list device qualifiers)
-
connect <host>[:<port>] -通过TCP/IP连接设备
connect <host>[:<port>] - connect to a device via TCP/IP
-
如果不指定端口号,则默认使用5555端口号。
Port 5555 is used by default if no port number is specified.
-
disconnect [<host>[:<port>]] -从TCP/IP设备断开连接。
disconnect [<host>[:<port>]] - disconnect from a TCP/IP device.
-
如果不指定端口号,则默认使用5555端口号。
Port 5555 is used by default if no port number is specified.
-
使用此命令,不带任何附加参数
Using this command with no additional arguments
-
将断开与所有连接的TCP/IP设备的连接。
will disconnect from all connected TCP/IP devices.
-
设备命令:
device commands:
-
Adb push <local> <remote> - copy file/dir到设备
adb push <local> <remote> - copy file/dir to device
-
Adb pull <remote> [<local>] -从设备复制文件/dir
adb pull <remote> [<local>] - copy file/dir from device
-
亚行同步[<directory>] -复制主机->设备仅当更改
adb sync [ <directory> ] - copy host->device only if changed
-
(-l表示列出但不复制)
(-l means list but don't copy)
-
(参见“adb help all”)
(see 'adb help all')
-
Adb shell -以交互方式运行远程shell
adb shell - run remote shell interactively
-
Adb shell <command> -运行远程shell命令
adb shell <command> - run remote shell command
-
Adb emu <command> -运行模拟器控制台命令
adb emu <command> - run emulator console command
-
adb logcat [<filter-spec>] -查看设备日志
adb logcat [ <filter-spec> ] - View device log
-
Adb forward <local> <remote> - forward套接字连接
adb forward <local> <remote> - forward socket connections
-
前向规格是:
forward specs are one of:
-
tcp: <口>
tcp:<port>
-
Localabstract:<unix域套接字名称>
localabstract:<unix domain socket name>
-
Localreserved:<unix域套接字名称>
localreserved:<unix domain socket name>
-
Localfilesystem:<unix域套接字名称>
localfilesystem:<unix domain socket name>
-
Dev:<字符设备名称>
dev:<character device name>
-
Jdwp:<进程pid>(仅限远程)
jdwp:<process pid> (remote only)
-
列出承载jdwp传输的进程的pid
adb jdwp - list PIDs of processes hosting a JDWP transport
-
Adb install [-l] [-r] [-s][——algo <算法名称>——key <十六进制编码的密钥>——iv <十六进制编码的iv>] <file>
adb install [-l] [-r] [-s] [--algo <algorithm name> --key <hex-encoded key> --iv <hex-encoded iv>] <file>
-
-将此包文件推送到设备并安装
- push this package file to the device and install it
-
(“-l”表示向前锁定应用程序)
('-l' means forward-lock the app)
-
(“-r”表示重新安装应用程序,保留其数据)
('-r' means reinstall the app, keeping its data)
-
('-s'表示安装在SD卡上,而不是内置存储器上)
('-s' means install on SD card instead of internal storage)
-
('——algo', '——key'和'——iv'表示文件已经加密)
('--algo', '--key', and '--iv' mean the file is encrypted already)
-
Adb uninstall [-k] <package> -从设备中删除此应用程序包
adb uninstall [-k] <package> - remove this app package from the device
-
('-k'表示保留数据和缓存目录)
('-k' means keep the data and cache directories)
-
Adb bugreport -从设备返回所有信息
adb bugreport - return all information from the device
-
这应该包含在bug报告中。
that should be included in a bug report.
-
亚行备份[- f <文件>][apk | -noapk] [shared | -noshared][-][系统| -nosystem][<包…>]
adb backup [-f <file>] [-apk|-noapk] [-shared|-noshared] [-all] [-system|-nosystem] [<packages...>]
-
-写入设备数据的存档到<file>。
- write an archive of the device's data to <file>.
-
如果没有提供-f选项,则写入数据
If no -f option is supplied then the data is written
-
“备份。
to "backup.
-
“Ab”在当前目录下。
ab" in the current directory.
-
(-apk|-noapk启用/禁用。apks本身的备份
(-apk|-noapk enable/disable backup of the .apks themselves
-
在档案中;
in the archive;
-
默认为noapk。)
the default is noapk.)
-
(-shared|-noshared启用/禁用设备的
(-shared|-noshared enable/disable backup of the device's
-
共享存储/ SD卡内容;
shared storage / SD card contents;
-
默认为noshared。)
the default is noshared.)
-
(-all表示备份所有已安装的应用程序)
(-all means to back up all installed applications)
-
(-system|-nosystem切换-all是否自动包含
(-system|-nosystem toggles whether -all automatically includes
-
系统应用程序;
system applications;
-
默认是包含系统应用程序)
the default is to include system apps)
-
(<包……
(<packages...
-
>为需要备份的应用程序列表。
> is the list of applications to be backed up.
-
如果
If
-
首先传递-all或-shared标志,然后传递包
the -all or -shared flags are passed, then the package
-
List是可选的。
list is optional.
-
应用程序上明确给出
Applications explicitly given on the
以上翻译结果来自有道神经网络翻译(YNMT)· 通用场景