android,emulator/logcat工具

来源:百度文库 编辑:神马文学网 时间:2024/04/28 16:48:06

Android SDK工具参考项目,它们给了你一些命令行选项,可以在Android模拟器和Android调试桥中使用。
Android模拟器命令
下表包含了大多数常规的Android模拟器命令.
Emulator Command 模拟器命令 功能
emulator -console Enables the console shell on the current terminal
在当前终端上激活控制台外壳
emulator -data Uses a different file as the working user-data disk image
使用一个不同的文件作为工作用户数据磁盘镜像
emulator -debug-kernel Sends kernel output to the console
发送核心输出到控制台
emulator -flash-keys Flashes keypresses on the device skin
在设备皮肤上闪烁keypress
emulator -help Prints a list of all Emulator commands
列出模拟器列表
emulator -http-proxy Makes all TCP connections through a specified HTTP/HTTPS proxy 通过一个定义的HTTP/HTTPS 代理制作所有的TCP连接。
emulator -image Uses as the system image 作为系统镜像
emulator -kernel Uses as the emulated kernel 作为模拟的核心
emulator -logcat Enables logcat output with given tags
用指定的标签激活logcat输出
emulator -mic Uses device or WAV file for audio input
使用设备或者WAV文件作为音频输入
emulator -netdelay 设置网络反应时间模拟到Sets network latency emulation to .
(The parameter simulates the delay experienced on specific types of networks.参数模拟在定义类型的网络)
The s you can use are as follows
可以使用的如下:
● Gprs
● Edge
● Umts
● None

:
emulator -netfast Shortcut for -netspeed full -netdelay
none
emulator -netspeed 设置网络速度模拟到。Sets network speed emulation to . (The
parameter simulates the data speed
experienced on specific types of networks.) The
s you can use are as follows:
● Gsm
● Hscsd
● Gprs
● Edge
● Umts
● Hsdpa
● Full

:
emulator -noaudio Disables Android audio support废除Android音频支持
emulator -nojni Disables JNI checks in the Dalvik virtual machine在Dalvik virtual machine中废除JNI检查
emulator -noskin Specifies not to use any Emulator skin
定义为不使用任何模拟器皮肤
emulator -onion Uses overlay image over screen
在屏幕上使用覆盖图像
emulator -onion-alpha Specifies onion skin translucency value (as percent) 定义半透明皮肤值(百分比)
emulator -qemu Passes arguments to QEMU
传递参数到QEMU
emulator -qemu -h Displays QEMU help
显示QEMU帮助
emulator -radio Redirects the radio modem interface to a host character device重定向无线调制解调器接口到一个主字符设备
emulator -ramdisk Uses
as the ramdisk image作为ramdisk镜像
emulator -raw-keys Disables Unicode keyboard reverse mapping禁用Unicode键盘转换映射
emulator -sdcard Uses
as the SD Memory Card image作为SD内存卡镜像
emulator -skin 使用定义的皮肤启动模拟器Starts the Emulator with the specified skin:
● HVGA-L 480x320, landscape
● HVGA-P 320x480, portrait (default)
● QVGA-L 320x240, landscape
● QVGA-P 240x320, portrait
emulator -skindir Searches for Emulator skins in
内查找模拟器皮肤
emulator -system Searches system, ramdisk, and user-data disk images in
内查找系统,ramdisk和用户数据磁盘镜像
emulator -trace
Enables code profiling (press F9 to start), written to a specified file
启动代码分析(按F9启动),写入一个定义的文件
emulator -useaudio
Enables Android audio support启动Android音频支持
emulator -verbose
Enables verbose output激活冗长的输出
emulator -verbose-keys
Enables verbose keypress messages激活冗长的的按键信息
emulator -verbose-proxy
Enables verbose proxy debug messages激活冗长的的代理调试信息
emulator -wipe-data Deletes all data on the user-data disk image在用户数据磁盘镜像中删除所有数据(开始前参见emulator - data)
(see emulator –data ) before
starting
Android调试桥命令
下面的是gsm命令。通过连接到Android模拟器的终端控制台使用。如果你不了解端口终端控制台,它是一个比调试端口少的端口。执行adb来获得活动的设备列表和相关的端口号。
adb Bugreport Prints dumpsys, dumpstate, and logcat data to the screen, for the purposes of bug reporting
为故障报告在屏幕上打印dumpsys,dumpstate和logcat数据
adb call Simulates an inbound phone call from
模拟一个呼入的电话
adb cancel Cancels an inbound phone call from
取消一个呼入的电话
adb -d {|} Lets you direct an adb command to a specific Emulator/device instance, referred to by its adb-assigned ID or serial number
允许你指引一个adb命令到一个定义的模拟器/设备示例中,通过它的赋值adb ID或者序列号来引用
adb data Changes the state of the GPRS data
connection to 改变GPRS数据连接状态到
adb Devices Prints a list of all attached mulator/device
instances
打印所附模拟器列表/设备示例
adb forward Forwards socket connections from a specified local port to a specified remote port on the Emulator/device instance
在模拟器/设备示例中从一个定义的本来端口转递socket连接到一个定义的远程端口
adb get-serialno Prints the adb instance identifier string
打印adb示例标识符字符串
adb get-state Prints the adb state of an emulator/device instance
打印一个模拟器/设备示例的adb状态
adb help Prints a list of supported adb commands
打印支持的adb命令列表
adb install Pushes an Android application (specified as a full path to an .apk file) to the data file of an Emulator/device
推入Android应用程序(作为一个完整路径一个.apk文件)到模拟器/设备示例
adb jdwp Prints a list of available JDWP processes on a given device
在指定的设备上列出可用的JDWP进程
adb kill-server Terminates the adb server process
终止adb服务器进程
adb logcat [