標籤:
在命令列輸入: emulator -help,即可顯示emulator支援的所有命令。
Android Emulator usage:
emulator [options] [-qemu args]
options:
-sysdir <dir> 在目錄<dir>中搜尋system.img
-system <file> 讀取system.img檔案<file>
-datadir <dir> 寫入使用者資料到目錄 <dir>
-kernel <file> 使用指定核心kernel-qemu檔案
-ramdisk <file> 指定ram 鏡像檔案ramdisk.img
-image <file> obsolete, use -system <file> instead
-init-data <file> initial data image (default <system>/userdata.img
-initdata <file> same as ‘-init-data <file>‘
-data <file> data image
(default <datadir>/userdata-qemu.i
mg
-partition-size <size> 分區大小MBs
-cache <file> cache.img
-no-cache 禁止緩衝
-nocache 禁止緩衝
-sdcard <file> sdcard.img
-wipe-data reset the use data image (copy it from initda
ta)
-avd <name> 使用指定AVD裝置
-skindir <dir> search skins in <dir> (default <system>/skins
)
-skin <name> select a given skin
-no-skin don‘t use any emulator skin
-noskin same as -no-skin
-memory <size> 實體記憶體大小MBs
-netspeed <speed> 最大網速
-netdelay <delay> 網路延遲
-netfast disable network shaping
-trace <name> enable code profiling (F9 to start)
-show-kernel 顯示核心訊息
-shell 終端啟用root shell
-no-jni disable JNI checks in the Dalvik runtime
-nojni same as -no-jni
-logcat <tags> 查看日誌
-no-audio disable audio support
-noaudio same as -no-audio
-audio <backend> use specific audio backend
-audio-in <backend> use specific audio input backend
-audio-out <backend> use specific audio output backend
-raw-keys disable Unicode keyboard reverse-mapping
-radio <device> 無線貓
-port <port> 串連控制台的TCP連接埠.
-ports <consoleport>,<adbport> TCP ports used for the console and adb bridge
-onion <image> use overlay PNG image over screen
-onion-alpha <%age> specify onion-skin translucency
-onion-rotation 0|1|2|3 specify onion-skin rotation
-scale <scale> 視窗縮放
-dpi-device <dpi> specify device‘s resolution in dpi (default 1
65)
-http-proxy <proxy> HTTP/HTTPS 代理
-timezone <timezone> 時區
-dns-server <servers> DNS伺服器
-cpu-delay <cpudelay> throttle CPU emulation
-no-boot-anim disable animation for faster boot
-no-window disable graphical window display
-version 版本
-report-console <socket> report console port to remote socket
-gps <device> redirect NMEA GPS to character device
-keyset <name> specify keyset file name
-shell-serial <device> specific character device for root shell
-old-system support old (pre 1.4) system images
-tcpdump <file> 記錄網路資料包
-bootchart <timeout> enable bootcharting
-prop <name>=<value> 設定系統屬性
-qemu args... pass arguments to qemu
-qemu -h 顯示qemu協助
-verbose same as ‘-debug-init‘
-debug <tags> enable/disable debug messages
-debug-<tag> enable specific debug messages
-debug-no-<tag> disable specific debug messages
-help 協助
-help-<option> print option-specific help
-help-disk-images about disk images
-help-keys supported key bindings
-help-debug-tags debug tags for -debug <tags>
-help-char-devices character <device> specification
-help-environment environment variables
-help-keyset-file key bindings configuration file
-help-virtual-device virtual device management
-help-sdk-images about disk images when using the SDK
-help-build-images about disk images when building Android
-help-all 協助(所有)
-------------------------
模擬器至少需要:
kernel-qemu
ramdisk.img
system.img
userdata.img
還可以包括:
sdcard.img
userdata-qemu.img
cache.img
system-qemu.img
轉: android emulator 命令詳解