天天看點

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