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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章