天天看点

Android模拟器参数大全 (转)

Android模拟器emulator.exe文件包含了很多参数,平时在Eclipse IDE中模拟器运行自动调用的,如果仅仅使用android emulator或采用NetBean这样的开放环境又如何设置呢? Android开发网总结出所有m5-rc15 SDK中模拟器的所有参数及使用方法,由于采用的是Qemu内核可以自定义加载的img映像文件或皮肤等等操作,我们做简单的分析。

Android Emulator usage: emulator [options] [-qemu args]

  options:

Android模拟器参数大全 (转)

  -system <dir>       read system images from <dir>

    -datadir <dir>      write user data into <dir>

    -kernel <file>      emulated kernel 指定内核文件

    -ramdisk <file>     ramdisk image (default <system>/ramdisk.img) 创建内存磁盘

    -image <file>       system image (default <system>/system.img)

    -initdata <file>    initial user image (default <system>/userdata.img)

    -data <file>        working user image (default <datadir>/userdata-qemu.img)

    -wipe-data          reset the user data image (copy it from initdata) 清除所有用户数据

    -nocache            disable the cache partition 禁止分区缓存

    -sdcard <file>      SD card image (default <system>/sdcard.img) 使用SD卡映像

    -skindir <dir>      search skins in <dir> (default <system>/skins) 搜索外观皮肤路径

    -skin <skin>        select a given skin 选择Android模拟器皮肤ID

    -noskin             don't use any emulator skin 不使用任何模拟器外观,Android开发网提示这样有助于提高模拟器速度,内存小的用户可以尝试

    -netspeed <speed>   maximum network download/upload speeds 设置网络速度如GPRS、EDGE、3G更多详细的下面有介绍

    -netdelay <delay>   network latency emulation 网络延时设置

    -netfast            disable network shaping (full speed, no latency) 网络全速工作

    -trace <name>       enable code profiling (press F9 to start) 跟踪调试

    -debug-kernel       send kernel output to the console 内核调试

    -console            enable console shell on current terminal 启用控制台shell在当前中端

    -nojni              disable JNI checks in the Dalvik runtime 禁用JNI检查

    -logcat <tags>      enable logcat output with given tags 设置log输出标签

    -noaudio            disable android audio support 禁用音频支持

    -useaudio           enable android audio support (default) 启用音频支持

    -mic <file>         WAV file for audio input 使用wav文件模拟mic麦克输入

    -flash-keys         flash key presses on the device skin

    -raw-keys           disable Unicode keyboard reverse-mapping

    -radio <device>     redirect radio modem interface to character device

    -oldradio           enable old VM-based simulated radio

    -onion <image>      use overlay image over screen

    -onion-alpha <%age> specify onion skin translucency (default 50)

    -http-proxy <proxy> make TCP connections through a HTTP/HTTPS proxy 代理服务器设置

    -verbose            enable verbose output

    -verbose-keys       enable verbose key presses

    -verbose-proxy      enable proxy debug messages

    -version            display emulater version number

    -qemu               pass arguments to qemu

    -qemu -h            display qemu help

    -help               print this help

   Default network latency is 'none'

  <proxy> can be one of the following:

    http://<server>:<port>

    http://<username>:<password>@<server>:<port>

  the 'http://' prefix can be omitted. If '-http-proxy <proxy>' is not used,

  the 'http_proxy' environment variable is looked up and any value matching

  the <proxy> format will be used automatically

  If the environment variable ANDROID_LOG_TAGS is defined and not empty,

  its value will be used to enable logcat output by default