Kenny Root | 15a4d2f | 2010-03-11 18:20:12 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2007 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 17 | package android.content.pm; |
| 18 | |
Jeff Brown | 0733079 | 2010-03-30 19:57:08 -0700 | [diff] [blame] | 19 | import android.content.pm.PackageManager.NameNotFoundException; |
| 20 | import android.content.res.Resources; |
| 21 | import android.graphics.drawable.Drawable; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 22 | import android.os.Parcel; |
| 23 | import android.os.Parcelable; |
| 24 | import android.util.Printer; |
| 25 | |
Jeff Sharkey | 8a4c972 | 2014-06-16 13:48:42 -0700 | [diff] [blame] | 26 | import com.android.internal.util.ArrayUtils; |
| 27 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 28 | import java.text.Collator; |
Jeff Sharkey | 8a4c972 | 2014-06-16 13:48:42 -0700 | [diff] [blame] | 29 | import java.util.Arrays; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 30 | import java.util.Comparator; |
Jeff Sharkey | 8a4c972 | 2014-06-16 13:48:42 -0700 | [diff] [blame] | 31 | import java.util.Objects; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 32 | |
| 33 | /** |
| 34 | * Information you can retrieve about a particular application. This |
| 35 | * corresponds to information collected from the AndroidManifest.xml's |
| 36 | * <application> tag. |
| 37 | */ |
| 38 | public class ApplicationInfo extends PackageItemInfo implements Parcelable { |
| 39 | |
| 40 | /** |
| 41 | * Default task affinity of all activities in this application. See |
| 42 | * {@link ActivityInfo#taskAffinity} for more information. This comes |
| 43 | * from the "taskAffinity" attribute. |
| 44 | */ |
| 45 | public String taskAffinity; |
| 46 | |
| 47 | /** |
| 48 | * Optional name of a permission required to be able to access this |
| 49 | * application's components. From the "permission" attribute. |
| 50 | */ |
| 51 | public String permission; |
| 52 | |
| 53 | /** |
| 54 | * The name of the process this application should run in. From the |
| 55 | * "process" attribute or, if not set, the same as |
| 56 | * <var>packageName</var>. |
| 57 | */ |
| 58 | public String processName; |
| 59 | |
| 60 | /** |
| 61 | * Class implementing the Application object. From the "class" |
| 62 | * attribute. |
| 63 | */ |
| 64 | public String className; |
| 65 | |
| 66 | /** |
| 67 | * A style resource identifier (in the package's resources) of the |
| 68 | * description of an application. From the "description" attribute |
| 69 | * or, if not set, 0. |
| 70 | */ |
| 71 | public int descriptionRes; |
| 72 | |
| 73 | /** |
| 74 | * A style resource identifier (in the package's resources) of the |
| 75 | * default visual theme of the application. From the "theme" attribute |
| 76 | * or, if not set, 0. |
| 77 | */ |
| 78 | public int theme; |
| 79 | |
| 80 | /** |
| 81 | * Class implementing the Application's manage space |
| 82 | * functionality. From the "manageSpaceActivity" |
| 83 | * attribute. This is an optional attribute and will be null if |
Christopher Tate | 181fafa | 2009-05-14 11:12:14 -0700 | [diff] [blame] | 84 | * applications don't specify it in their manifest |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 85 | */ |
| 86 | public String manageSpaceActivityName; |
| 87 | |
| 88 | /** |
Christopher Tate | 181fafa | 2009-05-14 11:12:14 -0700 | [diff] [blame] | 89 | * Class implementing the Application's backup functionality. From |
| 90 | * the "backupAgent" attribute. This is an optional attribute and |
| 91 | * will be null if the application does not specify it in its manifest. |
| 92 | * |
| 93 | * <p>If android:allowBackup is set to false, this attribute is ignored. |
Christopher Tate | 181fafa | 2009-05-14 11:12:14 -0700 | [diff] [blame] | 94 | */ |
| 95 | public String backupAgentName; |
Christopher Tate | 4a627c7 | 2011-04-01 14:43:32 -0700 | [diff] [blame] | 96 | |
| 97 | /** |
Adam Powell | 269248d | 2011-08-02 10:26:54 -0700 | [diff] [blame] | 98 | * The default extra UI options for activities in this application. |
| 99 | * Set from the {@link android.R.attr#uiOptions} attribute in the |
| 100 | * activity's manifest. |
| 101 | */ |
| 102 | public int uiOptions = 0; |
| 103 | |
| 104 | /** |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 105 | * Value for {@link #flags}: if set, this application is installed in the |
| 106 | * device's system image. |
| 107 | */ |
| 108 | public static final int FLAG_SYSTEM = 1<<0; |
| 109 | |
| 110 | /** |
| 111 | * Value for {@link #flags}: set to true if this application would like to |
| 112 | * allow debugging of its |
| 113 | * code, even when installed on a non-development system. Comes |
| 114 | * from {@link android.R.styleable#AndroidManifestApplication_debuggable |
| 115 | * android:debuggable} of the <application> tag. |
| 116 | */ |
| 117 | public static final int FLAG_DEBUGGABLE = 1<<1; |
| 118 | |
| 119 | /** |
| 120 | * Value for {@link #flags}: set to true if this application has code |
| 121 | * associated with it. Comes |
| 122 | * from {@link android.R.styleable#AndroidManifestApplication_hasCode |
| 123 | * android:hasCode} of the <application> tag. |
| 124 | */ |
| 125 | public static final int FLAG_HAS_CODE = 1<<2; |
| 126 | |
| 127 | /** |
| 128 | * Value for {@link #flags}: set to true if this application is persistent. |
| 129 | * Comes from {@link android.R.styleable#AndroidManifestApplication_persistent |
| 130 | * android:persistent} of the <application> tag. |
| 131 | */ |
| 132 | public static final int FLAG_PERSISTENT = 1<<3; |
| 133 | |
| 134 | /** |
Christopher Tate | 181fafa | 2009-05-14 11:12:14 -0700 | [diff] [blame] | 135 | * Value for {@link #flags}: set to true if this application holds the |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 136 | * {@link android.Manifest.permission#FACTORY_TEST} permission and the |
| 137 | * device is running in factory test mode. |
| 138 | */ |
| 139 | public static final int FLAG_FACTORY_TEST = 1<<4; |
| 140 | |
| 141 | /** |
| 142 | * Value for {@link #flags}: default value for the corresponding ActivityInfo flag. |
| 143 | * Comes from {@link android.R.styleable#AndroidManifestApplication_allowTaskReparenting |
| 144 | * android:allowTaskReparenting} of the <application> tag. |
| 145 | */ |
| 146 | public static final int FLAG_ALLOW_TASK_REPARENTING = 1<<5; |
| 147 | |
| 148 | /** |
| 149 | * Value for {@link #flags}: default value for the corresponding ActivityInfo flag. |
| 150 | * Comes from {@link android.R.styleable#AndroidManifestApplication_allowClearUserData |
| 151 | * android:allowClearUserData} of the <application> tag. |
| 152 | */ |
| 153 | public static final int FLAG_ALLOW_CLEAR_USER_DATA = 1<<6; |
| 154 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 155 | /** |
Dianne Hackborn | 851a541 | 2009-05-08 12:06:44 -0700 | [diff] [blame] | 156 | * Value for {@link #flags}: this is set if this application has been |
| 157 | * install as an update to a built-in system application. |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 158 | */ |
| 159 | public static final int FLAG_UPDATED_SYSTEM_APP = 1<<7; |
Dianne Hackborn | 851a541 | 2009-05-08 12:06:44 -0700 | [diff] [blame] | 160 | |
| 161 | /** |
Dianne Hackborn | 7f20543 | 2009-07-28 00:13:47 -0700 | [diff] [blame] | 162 | * Value for {@link #flags}: this is set of the application has specified |
| 163 | * {@link android.R.styleable#AndroidManifestApplication_testOnly |
| 164 | * android:testOnly} to be true. |
Dianne Hackborn | 851a541 | 2009-05-08 12:06:44 -0700 | [diff] [blame] | 165 | */ |
Dianne Hackborn | a96cbb4 | 2009-05-13 15:06:13 -0700 | [diff] [blame] | 166 | public static final int FLAG_TEST_ONLY = 1<<8; |
Dianne Hackborn | ade3eca | 2009-05-11 18:54:45 -0700 | [diff] [blame] | 167 | |
| 168 | /** |
Dianne Hackborn | 5c1e00b | 2009-06-18 17:10:57 -0700 | [diff] [blame] | 169 | * Value for {@link #flags}: true when the application's window can be |
Dianne Hackborn | 723738c | 2009-06-25 19:48:04 -0700 | [diff] [blame] | 170 | * reduced in size for smaller screens. Corresponds to |
| 171 | * {@link android.R.styleable#AndroidManifestSupportsScreens_smallScreens |
| 172 | * android:smallScreens}. |
Dianne Hackborn | 5c1e00b | 2009-06-18 17:10:57 -0700 | [diff] [blame] | 173 | */ |
Dianne Hackborn | 723738c | 2009-06-25 19:48:04 -0700 | [diff] [blame] | 174 | public static final int FLAG_SUPPORTS_SMALL_SCREENS = 1<<9; |
| 175 | |
| 176 | /** |
| 177 | * Value for {@link #flags}: true when the application's window can be |
| 178 | * displayed on normal screens. Corresponds to |
| 179 | * {@link android.R.styleable#AndroidManifestSupportsScreens_normalScreens |
| 180 | * android:normalScreens}. |
| 181 | */ |
| 182 | public static final int FLAG_SUPPORTS_NORMAL_SCREENS = 1<<10; |
| 183 | |
| 184 | /** |
| 185 | * Value for {@link #flags}: true when the application's window can be |
| 186 | * increased in size for larger screens. Corresponds to |
| 187 | * {@link android.R.styleable#AndroidManifestSupportsScreens_largeScreens |
Dianne Hackborn | 22ec9ab | 2010-04-29 17:56:03 -0700 | [diff] [blame] | 188 | * android:largeScreens}. |
Dianne Hackborn | 723738c | 2009-06-25 19:48:04 -0700 | [diff] [blame] | 189 | */ |
| 190 | public static final int FLAG_SUPPORTS_LARGE_SCREENS = 1<<11; |
Dianne Hackborn | 5c1e00b | 2009-06-18 17:10:57 -0700 | [diff] [blame] | 191 | |
| 192 | /** |
Dianne Hackborn | c4db95c | 2009-07-21 17:46:02 -0700 | [diff] [blame] | 193 | * Value for {@link #flags}: true when the application knows how to adjust |
| 194 | * its UI for different screen sizes. Corresponds to |
| 195 | * {@link android.R.styleable#AndroidManifestSupportsScreens_resizeable |
| 196 | * android:resizeable}. |
| 197 | */ |
| 198 | public static final int FLAG_RESIZEABLE_FOR_SCREENS = 1<<12; |
| 199 | |
| 200 | /** |
Dianne Hackborn | 11b822d | 2009-07-21 20:03:02 -0700 | [diff] [blame] | 201 | * Value for {@link #flags}: true when the application knows how to |
| 202 | * accomodate different screen densities. Corresponds to |
| 203 | * {@link android.R.styleable#AndroidManifestSupportsScreens_anyDensity |
| 204 | * android:anyDensity}. |
| 205 | */ |
| 206 | public static final int FLAG_SUPPORTS_SCREEN_DENSITIES = 1<<13; |
| 207 | |
| 208 | /** |
Ben Cheng | 23085b7 | 2010-02-08 16:06:32 -0800 | [diff] [blame] | 209 | * Value for {@link #flags}: set to true if this application would like to |
| 210 | * request the VM to operate under the safe mode. Comes from |
Ben Cheng | ef3f5dd | 2010-03-29 15:47:26 -0700 | [diff] [blame] | 211 | * {@link android.R.styleable#AndroidManifestApplication_vmSafeMode |
| 212 | * android:vmSafeMode} of the <application> tag. |
Ben Cheng | 23085b7 | 2010-02-08 16:06:32 -0800 | [diff] [blame] | 213 | */ |
| 214 | public static final int FLAG_VM_SAFE_MODE = 1<<14; |
| 215 | |
| 216 | /** |
Christopher Tate | 3de55bc | 2010-03-12 17:28:08 -0800 | [diff] [blame] | 217 | * Value for {@link #flags}: set to <code>false</code> if the application does not wish |
| 218 | * to permit any OS-driven backups of its data; <code>true</code> otherwise. |
Christopher Tate | 181fafa | 2009-05-14 11:12:14 -0700 | [diff] [blame] | 219 | * |
Christopher Tate | 3de55bc | 2010-03-12 17:28:08 -0800 | [diff] [blame] | 220 | * <p>Comes from the |
| 221 | * {@link android.R.styleable#AndroidManifestApplication_allowBackup android:allowBackup} |
| 222 | * attribute of the <application> tag. |
Christopher Tate | 181fafa | 2009-05-14 11:12:14 -0700 | [diff] [blame] | 223 | */ |
Ben Cheng | 23085b7 | 2010-02-08 16:06:32 -0800 | [diff] [blame] | 224 | public static final int FLAG_ALLOW_BACKUP = 1<<15; |
Christopher Tate | 5e1ab33 | 2009-09-01 20:32:49 -0700 | [diff] [blame] | 225 | |
| 226 | /** |
Christopher Tate | 3de55bc | 2010-03-12 17:28:08 -0800 | [diff] [blame] | 227 | * Value for {@link #flags}: set to <code>false</code> if the application must be kept |
| 228 | * in memory following a full-system restore operation; <code>true</code> otherwise. |
| 229 | * Ordinarily, during a full system restore operation each application is shut down |
| 230 | * following execution of its agent's onRestore() method. Setting this attribute to |
| 231 | * <code>false</code> prevents this. Most applications will not need to set this attribute. |
Christopher Tate | 5e1ab33 | 2009-09-01 20:32:49 -0700 | [diff] [blame] | 232 | * |
Christopher Tate | 3de55bc | 2010-03-12 17:28:08 -0800 | [diff] [blame] | 233 | * <p>If |
| 234 | * {@link android.R.styleable#AndroidManifestApplication_allowBackup android:allowBackup} |
| 235 | * is set to <code>false</code> or no |
| 236 | * {@link android.R.styleable#AndroidManifestApplication_backupAgent android:backupAgent} |
Christopher Tate | 5e1ab33 | 2009-09-01 20:32:49 -0700 | [diff] [blame] | 237 | * is specified, this flag will be ignored. |
| 238 | * |
Christopher Tate | 3de55bc | 2010-03-12 17:28:08 -0800 | [diff] [blame] | 239 | * <p>Comes from the |
| 240 | * {@link android.R.styleable#AndroidManifestApplication_killAfterRestore android:killAfterRestore} |
| 241 | * attribute of the <application> tag. |
Christopher Tate | 5e1ab33 | 2009-09-01 20:32:49 -0700 | [diff] [blame] | 242 | */ |
Ben Cheng | 23085b7 | 2010-02-08 16:06:32 -0800 | [diff] [blame] | 243 | public static final int FLAG_KILL_AFTER_RESTORE = 1<<16; |
Christopher Tate | 5e1ab33 | 2009-09-01 20:32:49 -0700 | [diff] [blame] | 244 | |
| 245 | /** |
Christopher Tate | 3de55bc | 2010-03-12 17:28:08 -0800 | [diff] [blame] | 246 | * Value for {@link #flags}: Set to <code>true</code> if the application's backup |
| 247 | * agent claims to be able to handle restore data even "from the future," |
| 248 | * i.e. from versions of the application with a versionCode greater than |
| 249 | * the one currently installed on the device. <i>Use with caution!</i> By default |
| 250 | * this attribute is <code>false</code> and the Backup Manager will ensure that data |
| 251 | * from "future" versions of the application are never supplied during a restore operation. |
Christopher Tate | 5e1ab33 | 2009-09-01 20:32:49 -0700 | [diff] [blame] | 252 | * |
Christopher Tate | 3de55bc | 2010-03-12 17:28:08 -0800 | [diff] [blame] | 253 | * <p>If |
| 254 | * {@link android.R.styleable#AndroidManifestApplication_allowBackup android:allowBackup} |
| 255 | * is set to <code>false</code> or no |
| 256 | * {@link android.R.styleable#AndroidManifestApplication_backupAgent android:backupAgent} |
Christopher Tate | 5e1ab33 | 2009-09-01 20:32:49 -0700 | [diff] [blame] | 257 | * is specified, this flag will be ignored. |
| 258 | * |
Christopher Tate | 3de55bc | 2010-03-12 17:28:08 -0800 | [diff] [blame] | 259 | * <p>Comes from the |
| 260 | * {@link android.R.styleable#AndroidManifestApplication_restoreAnyVersion android:restoreAnyVersion} |
| 261 | * attribute of the <application> tag. |
Christopher Tate | 5e1ab33 | 2009-09-01 20:32:49 -0700 | [diff] [blame] | 262 | */ |
Christopher Tate | 3de55bc | 2010-03-12 17:28:08 -0800 | [diff] [blame] | 263 | public static final int FLAG_RESTORE_ANY_VERSION = 1<<17; |
Christopher Tate | 5e1ab33 | 2009-09-01 20:32:49 -0700 | [diff] [blame] | 264 | |
Christopher Tate | 181fafa | 2009-05-14 11:12:14 -0700 | [diff] [blame] | 265 | /** |
Dianne Hackborn | 3202d38 | 2010-04-26 17:51:34 -0700 | [diff] [blame] | 266 | * Value for {@link #flags}: Set to true if the application is |
| 267 | * currently installed on external/removable/unprotected storage. Such |
| 268 | * applications may not be available if their storage is not currently |
| 269 | * mounted. When the storage it is on is not available, it will look like |
| 270 | * the application has been uninstalled (its .apk is no longer available) |
| 271 | * but its persistent data is not removed. |
Suchi Amalapurapu | af8e9f4 | 2010-01-12 10:17:28 -0800 | [diff] [blame] | 272 | */ |
Dianne Hackborn | 94c567e | 2010-04-26 18:13:10 -0700 | [diff] [blame] | 273 | public static final int FLAG_EXTERNAL_STORAGE = 1<<18; |
Suchi Amalapurapu | af8e9f4 | 2010-01-12 10:17:28 -0800 | [diff] [blame] | 274 | |
| 275 | /** |
Dianne Hackborn | 14cee9f | 2010-04-23 17:51:26 -0700 | [diff] [blame] | 276 | * Value for {@link #flags}: true when the application's window can be |
| 277 | * increased in size for extra large screens. Corresponds to |
| 278 | * {@link android.R.styleable#AndroidManifestSupportsScreens_xlargeScreens |
Dianne Hackborn | 22ec9ab | 2010-04-29 17:56:03 -0700 | [diff] [blame] | 279 | * android:xlargeScreens}. |
Dianne Hackborn | 14cee9f | 2010-04-23 17:51:26 -0700 | [diff] [blame] | 280 | */ |
| 281 | public static final int FLAG_SUPPORTS_XLARGE_SCREENS = 1<<19; |
| 282 | |
| 283 | /** |
Dianne Hackborn | 3b81bc1 | 2011-01-15 11:50:52 -0800 | [diff] [blame] | 284 | * Value for {@link #flags}: true when the application has requested a |
| 285 | * large heap for its processes. Corresponds to |
| 286 | * {@link android.R.styleable#AndroidManifestApplication_largeHeap |
| 287 | * android:largeHeap}. |
Jason parks | a3cdaa5 | 2011-01-13 14:15:43 -0600 | [diff] [blame] | 288 | */ |
Dianne Hackborn | 3b81bc1 | 2011-01-15 11:50:52 -0800 | [diff] [blame] | 289 | public static final int FLAG_LARGE_HEAP = 1<<20; |
Jason parks | a3cdaa5 | 2011-01-13 14:15:43 -0600 | [diff] [blame] | 290 | |
| 291 | /** |
Dianne Hackborn | e7f9721 | 2011-02-24 14:40:20 -0800 | [diff] [blame] | 292 | * Value for {@link #flags}: true if this application's package is in |
| 293 | * the stopped state. |
| 294 | */ |
| 295 | public static final int FLAG_STOPPED = 1<<21; |
| 296 | |
| 297 | /** |
Fabrice Di Meglio | 59dfce8 | 2012-04-02 16:17:20 -0700 | [diff] [blame] | 298 | * Value for {@link #flags}: true when the application is willing to support |
| 299 | * RTL (right to left). All activities will inherit this value. |
| 300 | * |
| 301 | * Set from the {@link android.R.attr#supportsRtl} attribute in the |
| 302 | * activity's manifest. |
| 303 | * |
| 304 | * Default value is false (no support for RTL). |
| 305 | */ |
| 306 | public static final int FLAG_SUPPORTS_RTL = 1<<22; |
| 307 | |
| 308 | /** |
Dianne Hackborn | 7767eac | 2012-08-23 18:25:40 -0700 | [diff] [blame] | 309 | * Value for {@link #flags}: true if the application is currently |
| 310 | * installed for the calling user. |
| 311 | */ |
| 312 | public static final int FLAG_INSTALLED = 1<<23; |
| 313 | |
| 314 | /** |
Dianne Hackborn | 5e03e2c | 2012-09-06 14:21:19 -0700 | [diff] [blame] | 315 | * Value for {@link #flags}: true if the application only has its |
| 316 | * data installed; the application package itself does not currently |
| 317 | * exist on the device. |
| 318 | */ |
| 319 | public static final int FLAG_IS_DATA_ONLY = 1<<24; |
| 320 | |
| 321 | /** |
Jose Lima | 12d0b4c | 2014-03-14 16:55:12 -0700 | [diff] [blame] | 322 | * Value for {@link #flags}: true if the application was declared to be a game, or |
| 323 | * false if it is a non-game application. |
| 324 | */ |
| 325 | public static final int FLAG_IS_GAME = 1<<25; |
| 326 | |
| 327 | /** |
Christopher Tate | d1de256 | 2014-06-17 17:12:35 -0700 | [diff] [blame] | 328 | * Value for {@link #flags}: {@code true} if the application asks that only |
| 329 | * full-data streaming backups of its data be performed even though it defines |
| 330 | * a {@link android.app.backup.BackupAgent BackupAgent}, which normally |
| 331 | * indicates that the app will manage its backed-up data via incremental |
| 332 | * key/value updates. |
| 333 | */ |
| 334 | public static final int FLAG_FULL_BACKUP_ONLY = 1<<26; |
| 335 | |
| 336 | /** |
Alex Klyubin | 01a959d | 2015-03-18 10:05:45 -0700 | [diff] [blame] | 337 | * Value for {@link #flags}: {@code true} if the application may use cleartext network traffic |
| 338 | * (e.g., HTTP rather than HTTPS; WebSockets rather than WebSockets Secure; XMPP, IMAP, STMP |
| 339 | * without STARTTLS or TLS). If {@code false}, the app declares that it does not intend to use |
| 340 | * cleartext network traffic, in which case platform components (e.g., HTTP stacks, |
| 341 | * {@code WebView}, {@code MediaPlayer}) will refuse app's requests to use cleartext traffic. |
| 342 | * Third-party libraries are encouraged to honor this flag as well. |
Alex Klyubin | 01a959d | 2015-03-18 10:05:45 -0700 | [diff] [blame] | 343 | */ |
| 344 | public static final int FLAG_USES_CLEARTEXT_TRAFFIC = 1<<27; |
| 345 | |
| 346 | /** |
Dmitriy Ivanov | ff193d6 | 2014-09-30 15:10:48 -0700 | [diff] [blame] | 347 | * When set installer extracts native libs from .apk files. |
| 348 | */ |
| 349 | public static final int FLAG_EXTRACT_NATIVE_LIBS = 1<<28; |
| 350 | |
| 351 | /** |
Narayan Kamath | 589a1bc | 2014-07-03 14:43:26 +0100 | [diff] [blame] | 352 | * Value for {@link #flags}: true if code from this application will need to be |
| 353 | * loaded into other applications' processes. On devices that support multiple |
| 354 | * instruction sets, this implies the code might be loaded into a process that's |
| 355 | * using any of the devices supported instruction sets. |
| 356 | * |
| 357 | * <p> The system might treat such applications specially, for eg., by |
| 358 | * extracting the application's native libraries for all supported instruction |
| 359 | * sets or by compiling the application's dex code for all supported instruction |
| 360 | * sets. |
| 361 | */ |
| 362 | public static final int FLAG_MULTIARCH = 1 << 31; |
Amith Yamasani | 655d0e2 | 2013-06-12 14:19:10 -0700 | [diff] [blame] | 363 | |
| 364 | /** |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 365 | * Flags associated with the application. Any combination of |
| 366 | * {@link #FLAG_SYSTEM}, {@link #FLAG_DEBUGGABLE}, {@link #FLAG_HAS_CODE}, |
| 367 | * {@link #FLAG_PERSISTENT}, {@link #FLAG_FACTORY_TEST}, and |
| 368 | * {@link #FLAG_ALLOW_TASK_REPARENTING} |
Dianne Hackborn | 851a541 | 2009-05-08 12:06:44 -0700 | [diff] [blame] | 369 | * {@link #FLAG_ALLOW_CLEAR_USER_DATA}, {@link #FLAG_UPDATED_SYSTEM_APP}, |
Dianne Hackborn | 723738c | 2009-06-25 19:48:04 -0700 | [diff] [blame] | 370 | * {@link #FLAG_TEST_ONLY}, {@link #FLAG_SUPPORTS_SMALL_SCREENS}, |
| 371 | * {@link #FLAG_SUPPORTS_NORMAL_SCREENS}, |
Dianne Hackborn | 14cee9f | 2010-04-23 17:51:26 -0700 | [diff] [blame] | 372 | * {@link #FLAG_SUPPORTS_LARGE_SCREENS}, {@link #FLAG_SUPPORTS_XLARGE_SCREENS}, |
| 373 | * {@link #FLAG_RESIZEABLE_FOR_SCREENS}, |
Dianne Hackborn | 7767eac | 2012-08-23 18:25:40 -0700 | [diff] [blame] | 374 | * {@link #FLAG_SUPPORTS_SCREEN_DENSITIES}, {@link #FLAG_VM_SAFE_MODE}, |
Alex Klyubin | b9f8a52 | 2015-02-03 11:12:59 -0800 | [diff] [blame] | 375 | * {@link #FLAG_ALLOW_BACKUP}, {@link #FLAG_KILL_AFTER_RESTORE}, |
| 376 | * {@link #FLAG_RESTORE_ANY_VERSION}, {@link #FLAG_EXTERNAL_STORAGE}, |
| 377 | * {@link #FLAG_LARGE_HEAP}, {@link #FLAG_STOPPED}, |
| 378 | * {@link #FLAG_SUPPORTS_RTL}, {@link #FLAG_INSTALLED}, |
| 379 | * {@link #FLAG_IS_DATA_ONLY}, {@link #FLAG_IS_GAME}, |
Alex Klyubin | 7cb000f | 2015-03-26 11:00:04 -0700 | [diff] [blame] | 380 | * {@link #FLAG_FULL_BACKUP_ONLY}, {@link #FLAG_USES_CLEARTEXT_TRAFFIC}, |
| 381 | * {@link #FLAG_MULTIARCH}. |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 382 | */ |
| 383 | public int flags = 0; |
Amith Yamasani | 655d0e2 | 2013-06-12 14:19:10 -0700 | [diff] [blame] | 384 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 385 | /** |
Alex Klyubin | b9f8a52 | 2015-02-03 11:12:59 -0800 | [diff] [blame] | 386 | * Value for {@link #privateFlags}: true if the application is hidden via restrictions and for |
| 387 | * most purposes is considered as not installed. |
| 388 | * {@hide} |
| 389 | */ |
| 390 | public static final int PRIVATE_FLAG_HIDDEN = 1<<0; |
| 391 | |
| 392 | /** |
| 393 | * Value for {@link #privateFlags}: set to <code>true</code> if the application |
| 394 | * has reported that it is heavy-weight, and thus can not participate in |
| 395 | * the normal application lifecycle. |
| 396 | * |
| 397 | * <p>Comes from the |
| 398 | * android.R.styleable#AndroidManifestApplication_cantSaveState |
| 399 | * attribute of the <application> tag. |
| 400 | * |
| 401 | * {@hide} |
| 402 | */ |
| 403 | public static final int PRIVATE_FLAG_CANT_SAVE_STATE = 1<<1; |
| 404 | |
| 405 | /** |
| 406 | * Value for {@link #privateFlags}: Set to true if the application has been |
| 407 | * installed using the forward lock option. |
| 408 | * |
| 409 | * NOTE: DO NOT CHANGE THIS VALUE! It is saved in packages.xml. |
| 410 | * |
| 411 | * {@hide} |
| 412 | */ |
| 413 | public static final int PRIVATE_FLAG_FORWARD_LOCK = 1<<2; |
| 414 | |
| 415 | /** |
| 416 | * Value for {@link #privateFlags}: set to {@code true} if the application |
| 417 | * is permitted to hold privileged permissions. |
| 418 | * |
| 419 | * {@hide} |
| 420 | */ |
| 421 | public static final int PRIVATE_FLAG_PRIVILEGED = 1<<3; |
| 422 | |
| 423 | /** |
Fabrice Di Meglio | d3d8a32 | 2015-04-01 15:58:47 -0700 | [diff] [blame] | 424 | * Value for {@link #flags}: {@code true} if the application has any IntentFiler with some |
| 425 | * data URI using HTTP or HTTPS with an associated VIEW action. |
| 426 | * |
| 427 | * {@hide} |
| 428 | */ |
| 429 | public static final int PRIVATE_FLAG_HAS_DOMAIN_URLS = 1<<4; |
| 430 | |
| 431 | /** |
Alex Klyubin | b9f8a52 | 2015-02-03 11:12:59 -0800 | [diff] [blame] | 432 | * Private/hidden flags. See {@code PRIVATE_FLAG_...} constants. |
| 433 | * {@hide} |
| 434 | */ |
| 435 | public int privateFlags; |
| 436 | |
| 437 | /** |
Dianne Hackborn | df6e980 | 2011-05-26 14:20:23 -0700 | [diff] [blame] | 438 | * The required smallest screen width the application can run on. If 0, |
| 439 | * nothing has been specified. Comes from |
| 440 | * {@link android.R.styleable#AndroidManifestSupportsScreens_requiresSmallestWidthDp |
| 441 | * android:requiresSmallestWidthDp} attribute of the <supports-screens> tag. |
| 442 | */ |
| 443 | public int requiresSmallestWidthDp = 0; |
| 444 | |
| 445 | /** |
| 446 | * The maximum smallest screen width the application is designed for. If 0, |
| 447 | * nothing has been specified. Comes from |
| 448 | * {@link android.R.styleable#AndroidManifestSupportsScreens_compatibleWidthLimitDp |
| 449 | * android:compatibleWidthLimitDp} attribute of the <supports-screens> tag. |
| 450 | */ |
| 451 | public int compatibleWidthLimitDp = 0; |
| 452 | |
| 453 | /** |
Dianne Hackborn | 2762ff3 | 2011-06-01 21:27:05 -0700 | [diff] [blame] | 454 | * The maximum smallest screen width the application will work on. If 0, |
| 455 | * nothing has been specified. Comes from |
| 456 | * {@link android.R.styleable#AndroidManifestSupportsScreens_largestWidthLimitDp |
| 457 | * android:largestWidthLimitDp} attribute of the <supports-screens> tag. |
| 458 | */ |
| 459 | public int largestWidthLimitDp = 0; |
| 460 | |
Jeff Sharkey | d746057 | 2014-07-06 20:44:55 -0700 | [diff] [blame] | 461 | /** {@hide} */ |
Jeff Sharkey | b2b9ab8 | 2015-04-05 21:10:42 -0700 | [diff] [blame^] | 462 | public String volumeUuid; |
| 463 | /** {@hide} */ |
Jeff Sharkey | d746057 | 2014-07-06 20:44:55 -0700 | [diff] [blame] | 464 | public String scanSourceDir; |
| 465 | /** {@hide} */ |
| 466 | public String scanPublicSourceDir; |
| 467 | |
Dianne Hackborn | 2762ff3 | 2011-06-01 21:27:05 -0700 | [diff] [blame] | 468 | /** |
Jeff Sharkey | 8a4c972 | 2014-06-16 13:48:42 -0700 | [diff] [blame] | 469 | * Full path to the base APK for this application. |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 470 | */ |
| 471 | public String sourceDir; |
| 472 | |
| 473 | /** |
Jeff Sharkey | 8a4c972 | 2014-06-16 13:48:42 -0700 | [diff] [blame] | 474 | * Full path to the publicly available parts of {@link #sourceDir}, |
| 475 | * including resources and manifest. This may be different from |
| 476 | * {@link #sourceDir} if an application is forward locked. |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 477 | */ |
| 478 | public String publicSourceDir; |
Jeff Sharkey | 8a4c972 | 2014-06-16 13:48:42 -0700 | [diff] [blame] | 479 | |
| 480 | /** |
| 481 | * Full paths to zero or more split APKs that, when combined with the base |
| 482 | * APK defined in {@link #sourceDir}, form a complete application. |
| 483 | */ |
| 484 | public String[] splitSourceDirs; |
| 485 | |
| 486 | /** |
| 487 | * Full path to the publicly available parts of {@link #splitSourceDirs}, |
| 488 | * including resources and manifest. This may be different from |
| 489 | * {@link #splitSourceDirs} if an application is forward locked. |
| 490 | */ |
| 491 | public String[] splitPublicSourceDirs; |
| 492 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 493 | /** |
Kenny Root | d1ab016 | 2010-01-21 17:27:14 -0800 | [diff] [blame] | 494 | * Full paths to the locations of extra resource packages this application |
| 495 | * uses. This field is only used if there are extra resource packages, |
| 496 | * otherwise it is null. |
Kenny Root | ace5a3f | 2010-02-05 12:59:28 -0800 | [diff] [blame] | 497 | * |
| 498 | * {@hide} |
Kenny Root | d1ab016 | 2010-01-21 17:27:14 -0800 | [diff] [blame] | 499 | */ |
| 500 | public String[] resourceDirs; |
| 501 | |
| 502 | /** |
Robert Craig | 0f40dc9 | 2013-03-25 06:33:03 -0400 | [diff] [blame] | 503 | * String retrieved from the seinfo tag found in selinux policy. This value |
| 504 | * is useful in setting an SELinux security context on the process as well |
| 505 | * as its data directory. |
| 506 | * |
| 507 | * {@hide} |
| 508 | */ |
| 509 | public String seinfo; |
| 510 | |
| 511 | /** |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 512 | * Paths to all shared libraries this application is linked against. This |
| 513 | * field is only set if the {@link PackageManager#GET_SHARED_LIBRARY_FILES |
| 514 | * PackageManager.GET_SHARED_LIBRARY_FILES} flag was used when retrieving |
| 515 | * the structure. |
| 516 | */ |
| 517 | public String[] sharedLibraryFiles; |
| 518 | |
| 519 | /** |
| 520 | * Full path to a directory assigned to the package for its persistent |
| 521 | * data. |
| 522 | */ |
| 523 | public String dataDir; |
Kenny Root | 85387d7 | 2010-08-26 10:13:11 -0700 | [diff] [blame] | 524 | |
| 525 | /** |
| 526 | * Full path to the directory where native JNI libraries are stored. |
Kenny Root | 85387d7 | 2010-08-26 10:13:11 -0700 | [diff] [blame] | 527 | */ |
| 528 | public String nativeLibraryDir; |
| 529 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 530 | /** |
Narayan Kamath | 7dba6eb | 2014-07-16 08:53:30 +0100 | [diff] [blame] | 531 | * Full path where unpacked native libraries for {@link #secondaryCpuAbi} |
| 532 | * are stored, if present. |
| 533 | * |
| 534 | * The main reason this exists is for bundled multi-arch apps, where |
| 535 | * it's not trivial to calculate the location of libs for the secondary abi |
| 536 | * given the location of the primary. |
| 537 | * |
| 538 | * TODO: Change the layout of bundled installs so that we can use |
| 539 | * nativeLibraryRootDir & nativeLibraryRootRequiresIsa there as well. |
| 540 | * (e.g {@code [ "/system/app-lib/Foo/arm", "/system/app-lib/Foo/arm64" ]} |
| 541 | * instead of {@code [ "/system/lib/Foo", "/system/lib64/Foo" ]}. |
| 542 | * |
| 543 | * @hide |
| 544 | */ |
| 545 | public String secondaryNativeLibraryDir; |
| 546 | |
| 547 | /** |
Jeff Sharkey | 84f1294 | 2014-07-10 17:48:11 -0700 | [diff] [blame] | 548 | * The root path where unpacked native libraries are stored. |
| 549 | * <p> |
| 550 | * When {@link #nativeLibraryRootRequiresIsa} is set, the libraries are |
| 551 | * placed in ISA-specific subdirectories under this path, otherwise the |
| 552 | * libraries are placed directly at this path. |
Narayan Kamath | ff110bd | 2014-07-04 18:30:45 +0100 | [diff] [blame] | 553 | * |
Jeff Sharkey | 84f1294 | 2014-07-10 17:48:11 -0700 | [diff] [blame] | 554 | * @hide |
Narayan Kamath | ff110bd | 2014-07-04 18:30:45 +0100 | [diff] [blame] | 555 | */ |
Jeff Sharkey | 84f1294 | 2014-07-10 17:48:11 -0700 | [diff] [blame] | 556 | public String nativeLibraryRootDir; |
| 557 | |
| 558 | /** |
| 559 | * Flag indicating that ISA must be appended to |
| 560 | * {@link #nativeLibraryRootDir} to be useful. |
| 561 | * |
| 562 | * @hide |
| 563 | */ |
| 564 | public boolean nativeLibraryRootRequiresIsa; |
Narayan Kamath | ff110bd | 2014-07-04 18:30:45 +0100 | [diff] [blame] | 565 | |
| 566 | /** |
| 567 | * The primary ABI that this application requires, This is inferred from the ABIs |
Ramin Zaghi | ff0c470 | 2014-04-01 15:02:29 +0100 | [diff] [blame] | 568 | * of the native JNI libraries the application bundles. Will be {@code null} |
| 569 | * if this application does not require any particular ABI. |
| 570 | * |
Narayan Kamath | ff110bd | 2014-07-04 18:30:45 +0100 | [diff] [blame] | 571 | * If non-null, the application will always be launched with this ABI. |
| 572 | * |
Ramin Zaghi | ff0c470 | 2014-04-01 15:02:29 +0100 | [diff] [blame] | 573 | * {@hide} |
| 574 | */ |
Narayan Kamath | ff110bd | 2014-07-04 18:30:45 +0100 | [diff] [blame] | 575 | public String primaryCpuAbi; |
| 576 | |
| 577 | /** |
| 578 | * The secondary ABI for this application. Might be non-null for multi-arch |
| 579 | * installs. The application itself never uses this ABI, but other applications that |
| 580 | * use its code might. |
| 581 | * |
| 582 | * {@hide} |
| 583 | */ |
| 584 | public String secondaryCpuAbi; |
| 585 | |
| 586 | /** |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 587 | * The kernel user-ID that has been assigned to this application; |
| 588 | * currently this is not a unique ID (multiple applications can have |
| 589 | * the same uid). |
| 590 | */ |
| 591 | public int uid; |
| 592 | |
Mitsuru Oshima | 8d11267 | 2009-04-27 12:01:23 -0700 | [diff] [blame] | 593 | /** |
Dianne Hackborn | 3b3e145 | 2009-09-24 19:22:12 -0700 | [diff] [blame] | 594 | * The minimum SDK version this application targets. It may run on earlier |
Dianne Hackborn | a96cbb4 | 2009-05-13 15:06:13 -0700 | [diff] [blame] | 595 | * versions, but it knows how to work with any new behavior added at this |
| 596 | * version. Will be {@link android.os.Build.VERSION_CODES#CUR_DEVELOPMENT} |
| 597 | * if this is a development build and the app is targeting that. You should |
| 598 | * compare that this number is >= the SDK version number at which your |
| 599 | * behavior was introduced. |
| 600 | */ |
| 601 | public int targetSdkVersion; |
Dianne Hackborn | 8472e61 | 2014-01-23 17:57:20 -0800 | [diff] [blame] | 602 | |
| 603 | /** |
| 604 | * The app's declared version code. |
| 605 | * @hide |
| 606 | */ |
| 607 | public int versionCode; |
| 608 | |
Dianne Hackborn | a96cbb4 | 2009-05-13 15:06:13 -0700 | [diff] [blame] | 609 | /** |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 610 | * When false, indicates that all components within this application are |
| 611 | * considered disabled, regardless of their individually set enabled status. |
| 612 | */ |
| 613 | public boolean enabled = true; |
| 614 | |
Dianne Hackborn | 54e570f | 2010-10-04 18:32:32 -0700 | [diff] [blame] | 615 | /** |
Dianne Hackborn | 0ac3031 | 2011-06-17 14:49:23 -0700 | [diff] [blame] | 616 | * For convenient access to the current enabled setting of this app. |
| 617 | * @hide |
| 618 | */ |
| 619 | public int enabledSetting = PackageManager.COMPONENT_ENABLED_STATE_DEFAULT; |
| 620 | |
| 621 | /** |
Dianne Hackborn | 54e570f | 2010-10-04 18:32:32 -0700 | [diff] [blame] | 622 | * For convenient access to package's install location. |
| 623 | * @hide |
| 624 | */ |
| 625 | public int installLocation = PackageInfo.INSTALL_LOCATION_UNSPECIFIED; |
Jose Lima | 12d0b4c | 2014-03-14 16:55:12 -0700 | [diff] [blame] | 626 | |
Alan Viverette | 9b0ab65 | 2015-03-18 14:21:04 -0700 | [diff] [blame] | 627 | /** |
| 628 | * True when the application's rendering should be hardware accelerated. |
| 629 | */ |
| 630 | public boolean hardwareAccelerated; |
| 631 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 632 | public void dump(Printer pw, String prefix) { |
| 633 | super.dumpFront(pw, prefix); |
Dianne Hackborn | 12527f9 | 2009-11-11 17:39:50 -0800 | [diff] [blame] | 634 | if (className != null) { |
| 635 | pw.println(prefix + "className=" + className); |
| 636 | } |
| 637 | if (permission != null) { |
| 638 | pw.println(prefix + "permission=" + permission); |
| 639 | } |
Dianne Hackborn | 39792d2 | 2010-08-19 18:01:52 -0700 | [diff] [blame] | 640 | pw.println(prefix + "processName=" + processName); |
| 641 | pw.println(prefix + "taskAffinity=" + taskAffinity); |
| 642 | pw.println(prefix + "uid=" + uid + " flags=0x" + Integer.toHexString(flags) |
Alex Klyubin | b9f8a52 | 2015-02-03 11:12:59 -0800 | [diff] [blame] | 643 | + " privateFlags=0x" + Integer.toHexString(privateFlags) |
Dianne Hackborn | 39792d2 | 2010-08-19 18:01:52 -0700 | [diff] [blame] | 644 | + " theme=0x" + Integer.toHexString(theme)); |
Dianne Hackborn | df6e980 | 2011-05-26 14:20:23 -0700 | [diff] [blame] | 645 | pw.println(prefix + "requiresSmallestWidthDp=" + requiresSmallestWidthDp |
Dianne Hackborn | 2762ff3 | 2011-06-01 21:27:05 -0700 | [diff] [blame] | 646 | + " compatibleWidthLimitDp=" + compatibleWidthLimitDp |
| 647 | + " largestWidthLimitDp=" + largestWidthLimitDp); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 648 | pw.println(prefix + "sourceDir=" + sourceDir); |
Jeff Sharkey | 8a4c972 | 2014-06-16 13:48:42 -0700 | [diff] [blame] | 649 | if (!Objects.equals(sourceDir, publicSourceDir)) { |
Dianne Hackborn | 39792d2 | 2010-08-19 18:01:52 -0700 | [diff] [blame] | 650 | pw.println(prefix + "publicSourceDir=" + publicSourceDir); |
| 651 | } |
Jeff Sharkey | 8a4c972 | 2014-06-16 13:48:42 -0700 | [diff] [blame] | 652 | if (!ArrayUtils.isEmpty(splitSourceDirs)) { |
| 653 | pw.println(prefix + "splitSourceDirs=" + Arrays.toString(splitSourceDirs)); |
| 654 | } |
| 655 | if (!ArrayUtils.isEmpty(splitPublicSourceDirs) |
| 656 | && !Arrays.equals(splitSourceDirs, splitPublicSourceDirs)) { |
| 657 | pw.println(prefix + "splitPublicSourceDirs=" + Arrays.toString(splitPublicSourceDirs)); |
| 658 | } |
Dianne Hackborn | 39792d2 | 2010-08-19 18:01:52 -0700 | [diff] [blame] | 659 | if (resourceDirs != null) { |
| 660 | pw.println(prefix + "resourceDirs=" + resourceDirs); |
| 661 | } |
Robert Craig | 0f40dc9 | 2013-03-25 06:33:03 -0400 | [diff] [blame] | 662 | if (seinfo != null) { |
| 663 | pw.println(prefix + "seinfo=" + seinfo); |
| 664 | } |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 665 | pw.println(prefix + "dataDir=" + dataDir); |
Dianne Hackborn | 12527f9 | 2009-11-11 17:39:50 -0800 | [diff] [blame] | 666 | if (sharedLibraryFiles != null) { |
Flavio Lerda | dcc36bf | 2015-03-25 10:22:05 +0000 | [diff] [blame] | 667 | pw.println(prefix + "sharedLibraryFiles=" + Arrays.toString(sharedLibraryFiles)); |
Dianne Hackborn | 12527f9 | 2009-11-11 17:39:50 -0800 | [diff] [blame] | 668 | } |
Dianne Hackborn | 8472e61 | 2014-01-23 17:57:20 -0800 | [diff] [blame] | 669 | pw.println(prefix + "enabled=" + enabled + " targetSdkVersion=" + targetSdkVersion |
| 670 | + " versionCode=" + versionCode); |
Alan Viverette | 9b0ab65 | 2015-03-18 14:21:04 -0700 | [diff] [blame] | 671 | pw.println(prefix + "hardwareAccelerated=" + hardwareAccelerated); |
Dianne Hackborn | 12527f9 | 2009-11-11 17:39:50 -0800 | [diff] [blame] | 672 | if (manageSpaceActivityName != null) { |
| 673 | pw.println(prefix + "manageSpaceActivityName="+manageSpaceActivityName); |
| 674 | } |
| 675 | if (descriptionRes != 0) { |
| 676 | pw.println(prefix + "description=0x"+Integer.toHexString(descriptionRes)); |
| 677 | } |
Adam Powell | 269248d | 2011-08-02 10:26:54 -0700 | [diff] [blame] | 678 | if (uiOptions != 0) { |
| 679 | pw.println(prefix + "uiOptions=0x" + Integer.toHexString(uiOptions)); |
| 680 | } |
Fabrice Di Meglio | 59dfce8 | 2012-04-02 16:17:20 -0700 | [diff] [blame] | 681 | pw.println(prefix + "supportsRtl=" + (hasRtlSupport() ? "true" : "false")); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 682 | super.dumpBack(pw, prefix); |
| 683 | } |
Fabrice Di Meglio | 59dfce8 | 2012-04-02 16:17:20 -0700 | [diff] [blame] | 684 | |
| 685 | /** |
| 686 | * @return true if "supportsRtl" has been set to true in the AndroidManifest |
| 687 | * @hide |
| 688 | */ |
| 689 | public boolean hasRtlSupport() { |
| 690 | return (flags & FLAG_SUPPORTS_RTL) == FLAG_SUPPORTS_RTL; |
| 691 | } |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 692 | |
| 693 | public static class DisplayNameComparator |
| 694 | implements Comparator<ApplicationInfo> { |
| 695 | public DisplayNameComparator(PackageManager pm) { |
| 696 | mPM = pm; |
| 697 | } |
| 698 | |
| 699 | public final int compare(ApplicationInfo aa, ApplicationInfo ab) { |
| 700 | CharSequence sa = mPM.getApplicationLabel(aa); |
| 701 | if (sa == null) { |
| 702 | sa = aa.packageName; |
| 703 | } |
| 704 | CharSequence sb = mPM.getApplicationLabel(ab); |
| 705 | if (sb == null) { |
| 706 | sb = ab.packageName; |
| 707 | } |
| 708 | |
| 709 | return sCollator.compare(sa.toString(), sb.toString()); |
| 710 | } |
| 711 | |
| 712 | private final Collator sCollator = Collator.getInstance(); |
| 713 | private PackageManager mPM; |
| 714 | } |
| 715 | |
| 716 | public ApplicationInfo() { |
| 717 | } |
| 718 | |
| 719 | public ApplicationInfo(ApplicationInfo orig) { |
| 720 | super(orig); |
| 721 | taskAffinity = orig.taskAffinity; |
| 722 | permission = orig.permission; |
| 723 | processName = orig.processName; |
| 724 | className = orig.className; |
| 725 | theme = orig.theme; |
| 726 | flags = orig.flags; |
Alex Klyubin | b9f8a52 | 2015-02-03 11:12:59 -0800 | [diff] [blame] | 727 | privateFlags = orig.privateFlags; |
Dianne Hackborn | df6e980 | 2011-05-26 14:20:23 -0700 | [diff] [blame] | 728 | requiresSmallestWidthDp = orig.requiresSmallestWidthDp; |
| 729 | compatibleWidthLimitDp = orig.compatibleWidthLimitDp; |
Dianne Hackborn | 2762ff3 | 2011-06-01 21:27:05 -0700 | [diff] [blame] | 730 | largestWidthLimitDp = orig.largestWidthLimitDp; |
Jeff Sharkey | b2b9ab8 | 2015-04-05 21:10:42 -0700 | [diff] [blame^] | 731 | volumeUuid = orig.volumeUuid; |
Jeff Sharkey | 7f1a57a | 2014-10-08 10:14:53 -0700 | [diff] [blame] | 732 | scanSourceDir = orig.scanSourceDir; |
| 733 | scanPublicSourceDir = orig.scanPublicSourceDir; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 734 | sourceDir = orig.sourceDir; |
| 735 | publicSourceDir = orig.publicSourceDir; |
Jeff Sharkey | 8a4c972 | 2014-06-16 13:48:42 -0700 | [diff] [blame] | 736 | splitSourceDirs = orig.splitSourceDirs; |
| 737 | splitPublicSourceDirs = orig.splitPublicSourceDirs; |
Kenny Root | 85387d7 | 2010-08-26 10:13:11 -0700 | [diff] [blame] | 738 | nativeLibraryDir = orig.nativeLibraryDir; |
Narayan Kamath | 7dba6eb | 2014-07-16 08:53:30 +0100 | [diff] [blame] | 739 | secondaryNativeLibraryDir = orig.secondaryNativeLibraryDir; |
Jeff Sharkey | 84f1294 | 2014-07-10 17:48:11 -0700 | [diff] [blame] | 740 | nativeLibraryRootDir = orig.nativeLibraryRootDir; |
| 741 | nativeLibraryRootRequiresIsa = orig.nativeLibraryRootRequiresIsa; |
Narayan Kamath | ff110bd | 2014-07-04 18:30:45 +0100 | [diff] [blame] | 742 | primaryCpuAbi = orig.primaryCpuAbi; |
| 743 | secondaryCpuAbi = orig.secondaryCpuAbi; |
Kenny Root | d1ab016 | 2010-01-21 17:27:14 -0800 | [diff] [blame] | 744 | resourceDirs = orig.resourceDirs; |
Robert Craig | 0f40dc9 | 2013-03-25 06:33:03 -0400 | [diff] [blame] | 745 | seinfo = orig.seinfo; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 746 | sharedLibraryFiles = orig.sharedLibraryFiles; |
| 747 | dataDir = orig.dataDir; |
| 748 | uid = orig.uid; |
Dianne Hackborn | a96cbb4 | 2009-05-13 15:06:13 -0700 | [diff] [blame] | 749 | targetSdkVersion = orig.targetSdkVersion; |
Dianne Hackborn | 8472e61 | 2014-01-23 17:57:20 -0800 | [diff] [blame] | 750 | versionCode = orig.versionCode; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 751 | enabled = orig.enabled; |
Dianne Hackborn | 0ac3031 | 2011-06-17 14:49:23 -0700 | [diff] [blame] | 752 | enabledSetting = orig.enabledSetting; |
Dianne Hackborn | 54e570f | 2010-10-04 18:32:32 -0700 | [diff] [blame] | 753 | installLocation = orig.installLocation; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 754 | manageSpaceActivityName = orig.manageSpaceActivityName; |
| 755 | descriptionRes = orig.descriptionRes; |
Adam Powell | 269248d | 2011-08-02 10:26:54 -0700 | [diff] [blame] | 756 | uiOptions = orig.uiOptions; |
Christopher Tate | bcb0255 | 2012-10-16 17:14:34 -0700 | [diff] [blame] | 757 | backupAgentName = orig.backupAgentName; |
Alan Viverette | 9b0ab65 | 2015-03-18 14:21:04 -0700 | [diff] [blame] | 758 | hardwareAccelerated = orig.hardwareAccelerated; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 759 | } |
| 760 | |
| 761 | |
| 762 | public String toString() { |
| 763 | return "ApplicationInfo{" |
| 764 | + Integer.toHexString(System.identityHashCode(this)) |
| 765 | + " " + packageName + "}"; |
| 766 | } |
| 767 | |
| 768 | public int describeContents() { |
| 769 | return 0; |
| 770 | } |
| 771 | |
| 772 | public void writeToParcel(Parcel dest, int parcelableFlags) { |
| 773 | super.writeToParcel(dest, parcelableFlags); |
| 774 | dest.writeString(taskAffinity); |
| 775 | dest.writeString(permission); |
| 776 | dest.writeString(processName); |
| 777 | dest.writeString(className); |
| 778 | dest.writeInt(theme); |
| 779 | dest.writeInt(flags); |
Alex Klyubin | b9f8a52 | 2015-02-03 11:12:59 -0800 | [diff] [blame] | 780 | dest.writeInt(privateFlags); |
Dianne Hackborn | df6e980 | 2011-05-26 14:20:23 -0700 | [diff] [blame] | 781 | dest.writeInt(requiresSmallestWidthDp); |
| 782 | dest.writeInt(compatibleWidthLimitDp); |
Dianne Hackborn | 2762ff3 | 2011-06-01 21:27:05 -0700 | [diff] [blame] | 783 | dest.writeInt(largestWidthLimitDp); |
Jeff Sharkey | b2b9ab8 | 2015-04-05 21:10:42 -0700 | [diff] [blame^] | 784 | dest.writeString(volumeUuid); |
Jeff Sharkey | 7f1a57a | 2014-10-08 10:14:53 -0700 | [diff] [blame] | 785 | dest.writeString(scanSourceDir); |
| 786 | dest.writeString(scanPublicSourceDir); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 787 | dest.writeString(sourceDir); |
| 788 | dest.writeString(publicSourceDir); |
Jeff Sharkey | 8a4c972 | 2014-06-16 13:48:42 -0700 | [diff] [blame] | 789 | dest.writeStringArray(splitSourceDirs); |
| 790 | dest.writeStringArray(splitPublicSourceDirs); |
Kenny Root | 85387d7 | 2010-08-26 10:13:11 -0700 | [diff] [blame] | 791 | dest.writeString(nativeLibraryDir); |
Narayan Kamath | 7dba6eb | 2014-07-16 08:53:30 +0100 | [diff] [blame] | 792 | dest.writeString(secondaryNativeLibraryDir); |
Jeff Sharkey | 84f1294 | 2014-07-10 17:48:11 -0700 | [diff] [blame] | 793 | dest.writeString(nativeLibraryRootDir); |
| 794 | dest.writeInt(nativeLibraryRootRequiresIsa ? 1 : 0); |
Narayan Kamath | ff110bd | 2014-07-04 18:30:45 +0100 | [diff] [blame] | 795 | dest.writeString(primaryCpuAbi); |
| 796 | dest.writeString(secondaryCpuAbi); |
Kenny Root | d1ab016 | 2010-01-21 17:27:14 -0800 | [diff] [blame] | 797 | dest.writeStringArray(resourceDirs); |
Robert Craig | 0f40dc9 | 2013-03-25 06:33:03 -0400 | [diff] [blame] | 798 | dest.writeString(seinfo); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 799 | dest.writeStringArray(sharedLibraryFiles); |
| 800 | dest.writeString(dataDir); |
| 801 | dest.writeInt(uid); |
Dianne Hackborn | a96cbb4 | 2009-05-13 15:06:13 -0700 | [diff] [blame] | 802 | dest.writeInt(targetSdkVersion); |
Dianne Hackborn | 8472e61 | 2014-01-23 17:57:20 -0800 | [diff] [blame] | 803 | dest.writeInt(versionCode); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 804 | dest.writeInt(enabled ? 1 : 0); |
Dianne Hackborn | 0ac3031 | 2011-06-17 14:49:23 -0700 | [diff] [blame] | 805 | dest.writeInt(enabledSetting); |
Dianne Hackborn | 54e570f | 2010-10-04 18:32:32 -0700 | [diff] [blame] | 806 | dest.writeInt(installLocation); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 807 | dest.writeString(manageSpaceActivityName); |
Christopher Tate | 181fafa | 2009-05-14 11:12:14 -0700 | [diff] [blame] | 808 | dest.writeString(backupAgentName); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 809 | dest.writeInt(descriptionRes); |
Adam Powell | 269248d | 2011-08-02 10:26:54 -0700 | [diff] [blame] | 810 | dest.writeInt(uiOptions); |
Alan Viverette | 9b0ab65 | 2015-03-18 14:21:04 -0700 | [diff] [blame] | 811 | dest.writeInt(hardwareAccelerated ? 1 : 0); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 812 | } |
| 813 | |
| 814 | public static final Parcelable.Creator<ApplicationInfo> CREATOR |
| 815 | = new Parcelable.Creator<ApplicationInfo>() { |
| 816 | public ApplicationInfo createFromParcel(Parcel source) { |
| 817 | return new ApplicationInfo(source); |
| 818 | } |
| 819 | public ApplicationInfo[] newArray(int size) { |
| 820 | return new ApplicationInfo[size]; |
| 821 | } |
| 822 | }; |
| 823 | |
| 824 | private ApplicationInfo(Parcel source) { |
| 825 | super(source); |
| 826 | taskAffinity = source.readString(); |
| 827 | permission = source.readString(); |
| 828 | processName = source.readString(); |
| 829 | className = source.readString(); |
| 830 | theme = source.readInt(); |
| 831 | flags = source.readInt(); |
Alex Klyubin | b9f8a52 | 2015-02-03 11:12:59 -0800 | [diff] [blame] | 832 | privateFlags = source.readInt(); |
Dianne Hackborn | df6e980 | 2011-05-26 14:20:23 -0700 | [diff] [blame] | 833 | requiresSmallestWidthDp = source.readInt(); |
| 834 | compatibleWidthLimitDp = source.readInt(); |
Dianne Hackborn | 2762ff3 | 2011-06-01 21:27:05 -0700 | [diff] [blame] | 835 | largestWidthLimitDp = source.readInt(); |
Jeff Sharkey | b2b9ab8 | 2015-04-05 21:10:42 -0700 | [diff] [blame^] | 836 | volumeUuid = source.readString(); |
Jeff Sharkey | 7f1a57a | 2014-10-08 10:14:53 -0700 | [diff] [blame] | 837 | scanSourceDir = source.readString(); |
| 838 | scanPublicSourceDir = source.readString(); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 839 | sourceDir = source.readString(); |
| 840 | publicSourceDir = source.readString(); |
Jeff Sharkey | 8a4c972 | 2014-06-16 13:48:42 -0700 | [diff] [blame] | 841 | splitSourceDirs = source.readStringArray(); |
| 842 | splitPublicSourceDirs = source.readStringArray(); |
Kenny Root | 85387d7 | 2010-08-26 10:13:11 -0700 | [diff] [blame] | 843 | nativeLibraryDir = source.readString(); |
Narayan Kamath | 7dba6eb | 2014-07-16 08:53:30 +0100 | [diff] [blame] | 844 | secondaryNativeLibraryDir = source.readString(); |
Jeff Sharkey | 84f1294 | 2014-07-10 17:48:11 -0700 | [diff] [blame] | 845 | nativeLibraryRootDir = source.readString(); |
| 846 | nativeLibraryRootRequiresIsa = source.readInt() != 0; |
Narayan Kamath | ff110bd | 2014-07-04 18:30:45 +0100 | [diff] [blame] | 847 | primaryCpuAbi = source.readString(); |
| 848 | secondaryCpuAbi = source.readString(); |
Kenny Root | d1ab016 | 2010-01-21 17:27:14 -0800 | [diff] [blame] | 849 | resourceDirs = source.readStringArray(); |
Robert Craig | 0f40dc9 | 2013-03-25 06:33:03 -0400 | [diff] [blame] | 850 | seinfo = source.readString(); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 851 | sharedLibraryFiles = source.readStringArray(); |
| 852 | dataDir = source.readString(); |
| 853 | uid = source.readInt(); |
Dianne Hackborn | a96cbb4 | 2009-05-13 15:06:13 -0700 | [diff] [blame] | 854 | targetSdkVersion = source.readInt(); |
Dianne Hackborn | 8472e61 | 2014-01-23 17:57:20 -0800 | [diff] [blame] | 855 | versionCode = source.readInt(); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 856 | enabled = source.readInt() != 0; |
Dianne Hackborn | 0ac3031 | 2011-06-17 14:49:23 -0700 | [diff] [blame] | 857 | enabledSetting = source.readInt(); |
Dianne Hackborn | 54e570f | 2010-10-04 18:32:32 -0700 | [diff] [blame] | 858 | installLocation = source.readInt(); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 859 | manageSpaceActivityName = source.readString(); |
Christopher Tate | 181fafa | 2009-05-14 11:12:14 -0700 | [diff] [blame] | 860 | backupAgentName = source.readString(); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 861 | descriptionRes = source.readInt(); |
Adam Powell | 269248d | 2011-08-02 10:26:54 -0700 | [diff] [blame] | 862 | uiOptions = source.readInt(); |
Alan Viverette | 9b0ab65 | 2015-03-18 14:21:04 -0700 | [diff] [blame] | 863 | hardwareAccelerated = source.readInt() != 0; |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 864 | } |
Mitsuru Oshima | 8d11267 | 2009-04-27 12:01:23 -0700 | [diff] [blame] | 865 | |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 866 | /** |
| 867 | * Retrieve the textual description of the application. This |
| 868 | * will call back on the given PackageManager to load the description from |
| 869 | * the application. |
| 870 | * |
| 871 | * @param pm A PackageManager from which the label can be loaded; usually |
| 872 | * the PackageManager from which you originally retrieved this item. |
| 873 | * |
| 874 | * @return Returns a CharSequence containing the application's description. |
| 875 | * If there is no description, null is returned. |
| 876 | */ |
| 877 | public CharSequence loadDescription(PackageManager pm) { |
| 878 | if (descriptionRes != 0) { |
Jeff Brown | 0733079 | 2010-03-30 19:57:08 -0700 | [diff] [blame] | 879 | CharSequence label = pm.getText(packageName, descriptionRes, this); |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 880 | if (label != null) { |
| 881 | return label; |
| 882 | } |
| 883 | } |
| 884 | return null; |
| 885 | } |
Mitsuru Oshima | e5fb328 | 2009-06-09 21:16:08 -0700 | [diff] [blame] | 886 | |
| 887 | /** |
| 888 | * Disable compatibility mode |
| 889 | * |
| 890 | * @hide |
| 891 | */ |
| 892 | public void disableCompatibilityMode() { |
Mitsuru Oshima | 69fff4a | 2009-07-21 09:51:05 -0700 | [diff] [blame] | 893 | flags |= (FLAG_SUPPORTS_LARGE_SCREENS | FLAG_SUPPORTS_NORMAL_SCREENS | |
Dianne Hackborn | 11b822d | 2009-07-21 20:03:02 -0700 | [diff] [blame] | 894 | FLAG_SUPPORTS_SMALL_SCREENS | FLAG_RESIZEABLE_FOR_SCREENS | |
Dianne Hackborn | 14cee9f | 2010-04-23 17:51:26 -0700 | [diff] [blame] | 895 | FLAG_SUPPORTS_SCREEN_DENSITIES | FLAG_SUPPORTS_XLARGE_SCREENS); |
Mitsuru Oshima | e5fb328 | 2009-06-09 21:16:08 -0700 | [diff] [blame] | 896 | } |
Jeff Brown | 0733079 | 2010-03-30 19:57:08 -0700 | [diff] [blame] | 897 | |
| 898 | /** |
| 899 | * @hide |
| 900 | */ |
Alexandra Gherghina | a709314 | 2014-07-30 13:43:39 +0100 | [diff] [blame] | 901 | @Override |
| 902 | public Drawable loadDefaultIcon(PackageManager pm) { |
Jeff Brown | 0733079 | 2010-03-30 19:57:08 -0700 | [diff] [blame] | 903 | if ((flags & FLAG_EXTERNAL_STORAGE) != 0 |
| 904 | && isPackageUnavailable(pm)) { |
| 905 | return Resources.getSystem().getDrawable( |
| 906 | com.android.internal.R.drawable.sym_app_on_sd_unavailable_icon); |
| 907 | } |
| 908 | return pm.getDefaultActivityIcon(); |
| 909 | } |
| 910 | |
| 911 | private boolean isPackageUnavailable(PackageManager pm) { |
| 912 | try { |
| 913 | return pm.getPackageInfo(packageName, 0) == null; |
| 914 | } catch (NameNotFoundException ex) { |
| 915 | return true; |
| 916 | } |
| 917 | } |
Jeff Sharkey | d746057 | 2014-07-06 20:44:55 -0700 | [diff] [blame] | 918 | |
Jeff Brown | 0733079 | 2010-03-30 19:57:08 -0700 | [diff] [blame] | 919 | /** |
| 920 | * @hide |
| 921 | */ |
Fyodor Kupolov | eeea67b | 2015-02-23 17:14:45 -0800 | [diff] [blame] | 922 | public boolean isForwardLocked() { |
| 923 | return (privateFlags & ApplicationInfo.PRIVATE_FLAG_FORWARD_LOCK) != 0; |
| 924 | } |
| 925 | |
| 926 | /** |
| 927 | * @hide |
| 928 | */ |
Fyodor Kupolov | b94c165 | 2015-03-03 12:25:30 -0800 | [diff] [blame] | 929 | public boolean isSystemApp() { |
| 930 | return (flags & ApplicationInfo.FLAG_SYSTEM) != 0; |
| 931 | } |
| 932 | |
| 933 | /** |
| 934 | * @hide |
| 935 | */ |
| 936 | public boolean isUpdatedSystemApp() { |
| 937 | return (flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0; |
| 938 | } |
| 939 | |
| 940 | /** |
| 941 | * @hide |
| 942 | */ |
Jeff Brown | 0733079 | 2010-03-30 19:57:08 -0700 | [diff] [blame] | 943 | @Override protected ApplicationInfo getApplicationInfo() { |
| 944 | return this; |
| 945 | } |
Jeff Sharkey | d746057 | 2014-07-06 20:44:55 -0700 | [diff] [blame] | 946 | |
| 947 | /** {@hide} */ public void setCodePath(String codePath) { scanSourceDir = codePath; } |
| 948 | /** {@hide} */ public void setBaseCodePath(String baseCodePath) { sourceDir = baseCodePath; } |
| 949 | /** {@hide} */ public void setSplitCodePaths(String[] splitCodePaths) { splitSourceDirs = splitCodePaths; } |
| 950 | /** {@hide} */ public void setResourcePath(String resourcePath) { scanPublicSourceDir = resourcePath; } |
| 951 | /** {@hide} */ public void setBaseResourcePath(String baseResourcePath) { publicSourceDir = baseResourcePath; } |
| 952 | /** {@hide} */ public void setSplitResourcePaths(String[] splitResourcePaths) { splitPublicSourceDirs = splitResourcePaths; } |
| 953 | |
| 954 | /** {@hide} */ public String getCodePath() { return scanSourceDir; } |
| 955 | /** {@hide} */ public String getBaseCodePath() { return sourceDir; } |
| 956 | /** {@hide} */ public String[] getSplitCodePaths() { return splitSourceDirs; } |
| 957 | /** {@hide} */ public String getResourcePath() { return scanPublicSourceDir; } |
| 958 | /** {@hide} */ public String getBaseResourcePath() { return publicSourceDir; } |
| 959 | /** {@hide} */ public String[] getSplitResourcePaths() { return splitSourceDirs; } |
The Android Open Source Project | 9066cfe | 2009-03-03 19:31:44 -0800 | [diff] [blame] | 960 | } |