The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 1 | # This file describes the properties of a given virtual device configuration file. |
| 2 | # |
| 3 | # Note: Most top-level properties are boolean that control whether a feature is |
| 4 | # present or not. Sub-features that depend on it are ignored if their |
| 5 | # parent is set to 'false' or 'no' |
| 6 | # |
| 7 | # This file is parsed by 'android/tools/gen-hw-config.py' to generate |
| 8 | # 'android/avd/hw-config-defs.h'. The latter is a special header containing |
| 9 | # macro statements that is used several times: |
| 10 | # |
| 11 | # - once to define the fields of the AndroidHwConfig structure |
| 12 | # (see android/avd/hw-config.h) |
| 13 | # |
| 14 | # - once to implement the hardware configuration loader |
| 15 | # (see android/avd/hw-config.h) |
| 16 | # |
| 17 | # Hopefully, this file should also be read by a virtual device creation |
| 18 | # tool/wizard to provide a nice user interface (hence the presence of |
| 19 | # the 'abstract' and 'description' keys which are not currently used) |
| 20 | # |
| 21 | # |
| 22 | # NOTE: if you remove items from this file, be sure that you do not break |
| 23 | # the emulator build. |
| 24 | # |
| 25 | |
| 26 | # Ram size |
David 'Digit' Turner | 5377c5b | 2011-02-10 16:52:19 +0100 | [diff] [blame] | 27 | # Default value will be computed based on screen pixels |
| 28 | # or skin version |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 29 | name = hw.ramSize |
| 30 | type = integer |
David 'Digit' Turner | 3bbc919 | 2011-01-19 22:18:02 +0100 | [diff] [blame] | 31 | default = 0 |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 32 | abstract = Device ram size |
| 33 | description = The amount of physical RAM on the device, in megabytes. |
| 34 | |
| 35 | # Touch screen support |
| 36 | name = hw.touchScreen |
| 37 | type = boolean |
| 38 | default = yes |
| 39 | abstract = Touch-screen support |
| 40 | description = Whether there is a touch screen or not on the device. |
| 41 | |
| 42 | # Trackball support |
| 43 | name = hw.trackBall |
| 44 | type = boolean |
| 45 | default = yes |
| 46 | abstract = Track-ball support |
| 47 | description = Whether there is a trackball on the device. |
| 48 | |
| 49 | # Keyboard support (qwerty/azerty) |
| 50 | name = hw.keyboard |
| 51 | type = boolean |
| 52 | default = yes |
| 53 | abstract = Keyboard support |
| 54 | description = Whether the device has a QWERTY keyboard. |
| 55 | |
David 'Digit' Turner | 59e8e19 | 2011-02-10 17:40:04 +0100 | [diff] [blame] | 56 | # Keyboard lid support |
| 57 | # (I.e. can the qwerty keyboard be closed/hidden or opened/visible) |
| 58 | # this will be ignored if hw.keyboard is false |
| 59 | # |
| 60 | name = hw.keyboard.lid |
| 61 | type = boolean |
| 62 | default = yes |
| 63 | abstract = Keyboard lid support |
| 64 | description = Whether the QWERTY keyboard can be opened/closed. |
| 65 | |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 66 | # DPad keys |
| 67 | name = hw.dPad |
| 68 | type = boolean |
| 69 | default = yes |
| 70 | abstract = DPad support |
| 71 | description = Whether the device has DPad keys |
| 72 | |
| 73 | # GSM Modem support |
| 74 | name = hw.gsmModem |
| 75 | type = boolean |
| 76 | default = yes |
| 77 | abstract = GSM modem support |
| 78 | description = Whether there is a GSM modem in the device. |
| 79 | |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 80 | # Camera support |
| 81 | name = hw.camera |
| 82 | type = boolean |
| 83 | default = no |
| 84 | abstract = Camera support |
| 85 | description = Whether the device has a camera. |
| 86 | |
| 87 | name = hw.camera.maxHorizontalPixels |
| 88 | type = integer |
| 89 | default = 640 |
| 90 | abstract = Maximum horizontal camera pixels |
| 91 | |
| 92 | name = hw.camera.maxVerticalPixels |
| 93 | type = integer |
| 94 | default = 480 |
| 95 | abstract = Maximum vertical camera pixels |
| 96 | |
| 97 | # GPS support |
| 98 | name = hw.gps |
| 99 | type = boolean |
The Android Open Source Project | b3ee93a | 2009-03-13 13:04:21 -0700 | [diff] [blame] | 100 | default = yes |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 101 | abstract = GPS support |
| 102 | description = Whether there is a GPS in the device. |
| 103 | |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 104 | # Battery |
| 105 | name = hw.battery |
| 106 | type = boolean |
| 107 | default = yes |
| 108 | abstract = Battery support |
| 109 | description = Whether the device can run on a battery. |
| 110 | |
The Android Open Source Project | 9877e2e | 2009-03-18 17:39:44 -0700 | [diff] [blame] | 111 | # Accelerometer (used for auto-rotation) |
| 112 | name = hw.accelerometer |
| 113 | type = boolean |
| 114 | default = yes |
| 115 | abstract = Accelerometer |
| 116 | description = Whether there is an accelerometer in the device. |
| 117 | |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 118 | # Audio input |
| 119 | name = hw.audioInput |
| 120 | type = boolean |
| 121 | default = yes |
| 122 | abstract = Audio recording support |
| 123 | description = Whether the device can record audio |
| 124 | |
| 125 | # Audio output |
| 126 | name = hw.audioOutput |
| 127 | type = boolean |
| 128 | default = yes |
| 129 | abstract = Audio playback support |
| 130 | description = Whether the device can play audio |
| 131 | |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 132 | # SDCard support |
| 133 | name = hw.sdCard |
| 134 | type = boolean |
| 135 | default = yes |
| 136 | abstract = SD Card support |
| 137 | description = Whether the device supports insertion/removal of virtual SD Cards. |
| 138 | |
| 139 | # Cache partition |
| 140 | name = disk.cachePartition |
| 141 | type = boolean |
| 142 | default = yes |
| 143 | abstract = Cache partition support |
| 144 | description = Whether we use a /cache partition on the device. |
| 145 | |
Vladimir Chtchetkine | 83ffd66 | 2011-02-11 12:40:59 -0800 | [diff] [blame] | 146 | name = disk.cachePartition.path |
| 147 | type = string |
| 148 | default = |
| 149 | abstract = Cache partition |
| 150 | description = Cache partition to use on the device. Ignored if disk.cachePartition is not 'yes'. |
| 151 | |
The Android Open Source Project | 8b23a6c | 2009-03-03 19:30:32 -0800 | [diff] [blame] | 152 | name = disk.cachePartition.size |
| 153 | type = diskSize |
| 154 | abstract = Cache partition size |
| 155 | default = 66MB |
David 'Digit' Turner | c5b1270 | 2009-06-19 00:36:12 +0200 | [diff] [blame] | 156 | |
David 'Digit' Turner | 2507cab | 2011-02-10 16:29:17 +0100 | [diff] [blame] | 157 | # LCD width |
| 158 | name = hw.lcd.width |
| 159 | type = integer |
| 160 | default = 320 |
| 161 | abstract = LCD pixel width |
| 162 | |
| 163 | name = hw.lcd.height |
| 164 | type = integer |
| 165 | default = 640 |
| 166 | abstract = LCD pixel height |
| 167 | |
| 168 | name = hw.lcd.depth |
| 169 | type = integer |
| 170 | default = 16 |
| 171 | abstract = LCD color depth |
| 172 | description = Must be 16 or 32. Color bit depth of emulated framebuffer. |
| 173 | |
David 'Digit' Turner | c5b1270 | 2009-06-19 00:36:12 +0200 | [diff] [blame] | 174 | # LCD density |
| 175 | name = hw.lcd.density |
| 176 | type = integer |
| 177 | default = 160 |
| 178 | abstract = Abstracted LCD density |
| 179 | description = Must be one of 120, 160 or 240. A value used to roughly describe the density of the LCD screen for automatic resource/asset selection. |
David 'Digit' Turner | 03e1244 | 2009-10-07 17:21:34 -0700 | [diff] [blame] | 180 | |
| 181 | # Maximum VM heap size |
| 182 | # Higher values are required for high-dpi devices |
David 'Digit' Turner | 5377c5b | 2011-02-10 16:52:19 +0100 | [diff] [blame] | 183 | # Default will depend on RAM size. |
David 'Digit' Turner | 03e1244 | 2009-10-07 17:21:34 -0700 | [diff] [blame] | 184 | name = vm.heapSize |
| 185 | type = integer |
David 'Digit' Turner | 5377c5b | 2011-02-10 16:52:19 +0100 | [diff] [blame] | 186 | default = 0 |
David 'Digit' Turner | 03e1244 | 2009-10-07 17:21:34 -0700 | [diff] [blame] | 187 | abstract = Max VM application heap size |
| 188 | description = The maximum heap size a Dalvik application might allocate before being killed by the system. Value is in megabytes. |
Ola Albertsson | 7c8397a | 2010-12-17 14:53:44 +0100 | [diff] [blame] | 189 | |
| 190 | # Proximity sensor |
| 191 | name = hw.sensors.proximity |
| 192 | type = boolean |
| 193 | default = yes |
| 194 | abstract = Proximity support |
| 195 | description = Whether there is an proximity in the device. |
Vladimir Chtchetkine | 83ffd66 | 2011-02-11 12:40:59 -0800 | [diff] [blame] | 196 | |
David 'Digit' Turner | 0b01949 | 2011-03-01 14:02:42 +0100 | [diff] [blame^] | 197 | # Kernel image. |
| 198 | # |
| 199 | # kernel.path specified the path to the kernel image |
| 200 | # kernel.parameters specifies the string of kernel boot parameters. |
| 201 | # |
| 202 | name = kernel.path |
Vladimir Chtchetkine | 83ffd66 | 2011-02-11 12:40:59 -0800 | [diff] [blame] | 203 | type = string |
| 204 | default = |
| 205 | abstract = Path to the kernel image |
| 206 | description = Path to the kernel image. |
| 207 | |
David 'Digit' Turner | 0b01949 | 2011-03-01 14:02:42 +0100 | [diff] [blame^] | 208 | name = kernel.parameters |
| 209 | type = string |
| 210 | default = |
| 211 | abstract = kernel boot parameters string. |
| 212 | |
Vladimir Chtchetkine | 83ffd66 | 2011-02-11 12:40:59 -0800 | [diff] [blame] | 213 | # Path to the ramdisk image. |
David 'Digit' Turner | 0b01949 | 2011-03-01 14:02:42 +0100 | [diff] [blame^] | 214 | name = disk.ramdisk.path |
Vladimir Chtchetkine | 83ffd66 | 2011-02-11 12:40:59 -0800 | [diff] [blame] | 215 | type = string |
| 216 | default = |
| 217 | abstract = Path to the ramdisk image |
| 218 | description = Path to the ramdisk image. |
| 219 | |
| 220 | # Path to the system partition. |
| 221 | name = disk.systemPartition.path |
| 222 | type = string |
| 223 | default = <init> |
| 224 | abstract = Path to system partition image |
| 225 | description = Path to read/write system partition image during emulation. If special value '<init>' is used, a temporary file will be created, populated with the content of .initPath |
| 226 | |
| 227 | # Initial path to the system partition. |
| 228 | name = disk.systemPartition.initPath |
| 229 | type = string |
| 230 | default = |
| 231 | abstract = Initial system partition image |
| 232 | description = Only used if .path is '<init>', path to an initial system image that will be copied into the temporary system image file before launch. |
| 233 | |
| 234 | # System partition size. |
| 235 | name = disk.systemPartition.size |
| 236 | type = diskSize |
| 237 | default = 0 |
| 238 | abstract = Ideal size of system partition |
| 239 | description = ideal size of system partition. Ignored if smaller than the size of .path (or .initPath). Otherwise, gives the maximum size the partition is allowed to grow dynamically. |
| 240 | |
| 241 | # Path to the data partition. |
| 242 | name = disk.dataPartition.path |
| 243 | type = string |
| 244 | default = <temp> |
| 245 | abstract = Path to data partition file |
| 246 | description = Path to data partition file. Cannot be empty. Special value <temp> means using a temporary file. If disk.dataPartition.initPath is not empty, its content will be copied to the disk.dataPartition.path file at boot-time. |
| 247 | |
| 248 | # Initial path to the data partition. |
| 249 | name = disk.dataPartition.initPath |
| 250 | type = string |
| 251 | default = |
| 252 | abstract = Initial data partition |
| 253 | description = If not empty, its content will be copied to the disk.dataPartition.path file at boot-time. |
| 254 | |
| 255 | # Data partition size. |
| 256 | name = disk.dataPartition.size |
| 257 | type = diskSize |
| 258 | default = 0 |
| 259 | abstract = Ideal size of data partition |
| 260 | description = ideal size of data partition. Ignored if smaller than the size of .path (or .initPath). Otherwise, gives the maximum size the partition is allowed to grow dynamically. |
| 261 | |
| 262 | # Path to the snapshots partition. |
| 263 | name = disk.snapshots.path |
| 264 | type = string |
| 265 | default = |
| 266 | abstract = Path to snapshots |
| 267 | description = Path to a 'snapshot storage' file, where all snapshots are stored, including the default snapshot. |
| 268 | |
| 269 | # Path to SD Card image file. |
| 270 | name = disk.sdCard.path |
| 271 | type = string |
| 272 | default = |
| 273 | abstract = Path to SD Card image file |
| 274 | description = Path to SD Card image file. Ignored if disk.sdCard is not set to 'yes'. |