google android 模拟器emulator 参数大全(转)
在启动模拟器时候,需要很多参数.可以通过
./emulator -help 参看.蛮多的.
-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
具体用法得看情况.
比如现在我们用的启动方式是:
emulator.exe -skindir ../platforms/android-1.6/skins -skin HVGA -sdcard sdcard.img -partition-size 256 -debug all > log.txt