Android Emulator Commands

The following table contains a list of the most common Android Emulator commands. These are the commands that were available as of the March 2008 SDK release. A short description is provided with each command.

Emulator Command

Function

emulator -console

Enables the console shell on the current terminal

emulator -data <filename>

Uses a different file as the working user-data disk image

emulator -debug-kernel

Sends kernel output to the console

emulator -flash-keys

Flashes keypresses on the device skin

emulator -help

Prints a list of all Emulator commands

emulator -http-proxy <proxy>

Makes all TCP connections through a specified HTTP/HTTPS proxy

emulator -image <file>

Uses <file> as the system image

emulator -kernel <file>

Uses <file> as the emulated kernel

emulator -logcat <logtags>

Enables logcat output with given tags

emulator -mic <device or file>

Uses device or WAV file for audio input

emulator -netdelay <delay>

Sets network latency emulation to <delay>. (The <delay> parameter simulates the delay experienced on specific types of networks.) The <delay>s you can use are as follows:

• <min>:<max>

emulator -netfast

Shortcut for -netspeed full -netdelay none

Emulator Command

Function

emulator -netspeed <speed>

Sets network speed emulation to <speed>. (The <speed> parameter simulates the data speed experienced on specific types of networks.) The <speed>s you can use are as follows:

• <up>:<down>

emulator -noaudio

Disables Android audio support

emulator -nojni

Disables JNI checks in the Dalvik virtual machine

emulator -noskin

Specifies not to use any Emulator skin

emulator -onion <image>

Uses overlay image over screen

emulator -onion-alpha <percent>

Specifies onion skin translucency value (as percent)

emulator -qemu

Passes arguments to QEMU

emulator -qemu -h

Displays QEMU help

emulator -radio <device>

Redirects the radio modem interface to a host character device

emulator -ramdisk <file>

Uses <file> as the ramdisk image

emulator -raw-keys

Disables Unicode keyboard reverse mapping

emulator -sdcard <file>

Uses <file> as the SD Memory Card image

emulator -skin <skinID>

Starts the Emulator with the specified skin:

• HVGA-L 480x320, landscape

• HVGA-P 320x480, portrait (default)

• QVGA-L 320x240, landscape

• QVGA-P 240x320, portrait

emulator -skindir <dir>

Searches for Emulator skins in <dir>

emulator -system <dir>

Searches system, ramdisk, and user-data disk images in <dir>

emulator -trace <name>

Enables code profiling (press F9 to start), written to a specified file

Emulator Command

Function

emulator -useaudio

Enables Android audio support

emulator -verbose

Enables verbose output

emulator -verbose-keys

Enables verbose keypress messages

emulator -verbose-proxy

Enables verbose proxy debug messages

emulator -wipe-data

Deletes all data on the user-data disk image (see emulator -data <filename>) before starting

0 0

Responses

Post a comment