blob: fabac5c5c49ac7a939ba1abe2e3b346163a6fd61 [file] [log] [blame]
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -08001/* this header file can be included several times by the same source code.
2 * it contains the list of support command-line options for the Android
3 * emulator program
4 */
5#ifndef OPT_PARAM
6#error OPT_PARAM is not defined
7#endif
David 'Digit' Turner318e4f22009-05-25 18:01:03 +02008#ifndef OPT_LIST
9#error OPT_LIST is not defined
10#endif
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080011#ifndef OPT_FLAG
12#error OPT_FLAG is not defined
13#endif
14#ifndef CFG_PARAM
15#define CFG_PARAM OPT_PARAM
16#endif
17#ifndef CFG_FLAG
18#define CFG_FLAG OPT_FLAG
19#endif
20
21/* required to ensure that the CONFIG_XXX macros are properly defined */
David Turnerb58c44e2009-03-25 02:42:45 -070022#include "android/config/config.h"
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080023
24/* Some options acts like flags, while others must be followed by a parameter
25 * string. Nothing really new here.
26 *
27 * Some options correspond to AVD (Android Virtual Device) configuration
28 * and will be ignored if you start the emulator with the -avd <name> flag.
29 *
30 * However, if you use them with -avd-create <name>, these options will be
31 * recorded into the new AVD directory. Once an AVD is created, there is no
32 * way to change these options.
33 *
34 * Several macros are used to define options:
35 *
36 * OPT_FLAG( name, "description" )
37 * used to define a non-config flag option.
38 * * 'name' is the option suffix that must follow the dash (-)
39 * as well as the name of an integer variable whose value will
40 * be 1 if the flag is used, or 0 otherwise.
41 * * "description" is a short description string that will be
42 * displayed by 'emulator -help'.
43 *
44 * OPT_PARAM( name, "<param>", "description" )
45 * used to define a non-config parameter option
46 * * 'name' will point to a char* variable (NULL if option is unused)
47 * * "<param>" is a template for the parameter displayed by the help
48 * * 'varname' is the name of a char* variable that will point
49 * to the parameter string, if any, or will be NULL otherwise.
50 *
51 * CFG_FLAG( name, "description" )
52 * used to define a configuration-specific flag option.
53 *
54 * CFG_PARAM( name, "<param>", "description" )
55 * used to define a configuration-specific parameter option.
56 *
57 * NOTE: Keep in mind that optio names are converted by translating
58 * dashes into underscore.
59 *
60 * This means that '-some-option' is equivalent to '-some_option'
61 * and will be backed by a variable name 'some_option'
62 *
63 */
64
65CFG_PARAM( sysdir, "<dir>", "search for system disk images in <dir>" )
66CFG_PARAM( system, "<file>", "read initial system image from <file>" )
67CFG_PARAM( datadir, "<dir>", "write user data into <dir>" )
68CFG_PARAM( kernel, "<file>", "use specific emulated kernel" )
69CFG_PARAM( ramdisk, "<file>", "ramdisk image (default <system>/ramdisk.img" )
70CFG_PARAM( image, "<file>", "obsolete, use -system <file> instead" )
71CFG_PARAM( init_data, "<file>", "initial data image (default <system>/userdata.img" )
72CFG_PARAM( initdata, "<file>", "same as '-init-data <file>'" )
73CFG_PARAM( data, "<file>", "data image (default <datadir>/userdata-qemu.img" )
The Android Open Source Projectb3ee93a2009-03-13 13:04:21 -070074CFG_PARAM( partition_size, "<size>", "system/data partition size in MBs" )
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080075CFG_PARAM( cache, "<file>", "cache partition image (default is temporary file)" )
76CFG_FLAG ( no_cache, "disable the cache partition" )
77CFG_FLAG ( nocache, "same as -no-cache" )
78OPT_PARAM( sdcard, "<file>", "SD card image (default <system>/sdcard.img")
San Mehat68a8f7b2009-12-05 09:54:44 -080079OPT_PARAM( sdcard2, "<file>", "SD card 2 image (default <system>/sdcard2.img")
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -080080OPT_FLAG ( wipe_data, "reset the use data image (copy it from initdata)" )
81CFG_PARAM( avd, "<name>", "use a specific android virtual device" )
82CFG_PARAM( skindir, "<dir>", "search skins in <dir> (default <system>/skins)" )
83CFG_PARAM( skin, "<name>", "select a given skin" )
84CFG_FLAG ( no_skin, "don't use any emulator skin" )
85CFG_FLAG ( noskin, "same as -no-skin" )
86CFG_PARAM( memory, "<size>", "physical RAM size in MBs" )
87
88OPT_PARAM( netspeed, "<speed>", "maximum network download/upload speeds" )
89OPT_PARAM( netdelay, "<delay>", "network latency emulation" )
90OPT_FLAG ( netfast, "disable network shaping" )
91
92OPT_PARAM( trace, "<name>", "enable code profiling (F9 to start)" )
93OPT_FLAG ( show_kernel, "display kernel messages" )
94OPT_FLAG ( shell, "enable root shell on current terminal" )
95OPT_FLAG ( no_jni, "disable JNI checks in the Dalvik runtime" )
96OPT_FLAG ( nojni, "same as -no-jni" )
97OPT_PARAM( logcat, "<tags>", "enable logcat output with given tags" )
98
99OPT_FLAG ( no_audio, "disable audio support" )
100OPT_FLAG ( noaudio, "same as -no-audio" )
101OPT_PARAM( audio, "<backend>", "use specific audio backend" )
102OPT_PARAM( audio_in, "<backend>", "use specific audio input backend" )
103OPT_PARAM( audio_out,"<backend>", "use specific audio output backend" )
104
105OPT_FLAG ( raw_keys, "disable Unicode keyboard reverse-mapping" )
106OPT_PARAM( radio, "<device>", "redirect radio modem interface to character device" )
107OPT_PARAM( port, "<port>", "TCP port that will be used for the console" )
108OPT_PARAM( ports, "<consoleport>,<adbport>", "TCP ports used for the console and adb bridge" )
109OPT_PARAM( onion, "<image>", "use overlay PNG image over screen" )
110OPT_PARAM( onion_alpha, "<%age>", "specify onion-skin translucency" )
111OPT_PARAM( onion_rotation, "0|1|2|3", "specify onion-skin rotation" )
112
113OPT_PARAM( scale, "<scale>", "scale emulator window" )
114OPT_PARAM( dpi_device, "<dpi>", "specify device's resolution in dpi (default "
115 STRINGIFY(DEFAULT_DEVICE_DPI) ")" )
116
117OPT_PARAM( http_proxy, "<proxy>", "make TCP connections through a HTTP/HTTPS proxy" )
118OPT_PARAM( timezone, "<timezone>", "use this timezone instead of the host's default" )
119OPT_PARAM( dns_server, "<servers>", "use this DNS server(s) in the emulated system" )
120OPT_PARAM( cpu_delay, "<cpudelay>", "throttle CPU emulation" )
121OPT_FLAG ( no_boot_anim, "disable animation for faster boot" )
122
123OPT_FLAG( no_window, "disable graphical window display" )
124OPT_FLAG( version, "display emulator version number" )
125
126OPT_PARAM( report_console, "<socket>", "report console port to remote socket" )
127OPT_PARAM( gps, "<device>", "redirect NMEA GPS to character device" )
128OPT_PARAM( keyset, "<name>", "specify keyset file name" )
129OPT_PARAM( shell_serial, "<device>", "specific character device for root shell" )
130OPT_FLAG ( old_system, "support old (pre 1.4) system images" )
131OPT_PARAM( tcpdump, "<file>", "capture network packets to file" )
132
David Turnerb58c44e2009-03-25 02:42:45 -0700133OPT_PARAM( bootchart, "<timeout>", "enable bootcharting")
134
vchtchetkine9085a282009-09-14 15:29:20 -0700135OPT_PARAM( charmap, "<file>", "use specific key character map")
136
David 'Digit' Turner318e4f22009-05-25 18:01:03 +0200137OPT_LIST( prop, "<name>=<value>", "set system property on boot")
138
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800139#ifdef CONFIG_NAND_LIMITS
140OPT_PARAM( nand_limits, "<nlimits>", "enforce NAND/Flash read/write thresholds" )
141#endif
142
The Android Open Source Project8b23a6c2009-03-03 19:30:32 -0800143
144#undef CFG_FLAG
145#undef CFG_PARAM
146#undef OPT_FLAG
147#undef OPT_PARAM
David 'Digit' Turner318e4f22009-05-25 18:01:03 +0200148#undef OPT_LIST