ApplicationInfo.java revision d746057f2414cba2bdc69257cc5be8cb681bb592
115a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root/*
215a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * Copyright (C) 2007 The Android Open Source Project
315a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root *
415a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * Licensed under the Apache License, Version 2.0 (the "License");
515a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * you may not use this file except in compliance with the License.
615a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * You may obtain a copy of the License at
715a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root *
815a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root *      http://www.apache.org/licenses/LICENSE-2.0
915a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root *
1015a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * Unless required by applicable law or agreed to in writing, software
1115a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * distributed under the License is distributed on an "AS IS" BASIS,
1215a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1315a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * See the License for the specific language governing permissions and
1415a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root * limitations under the License.
1515a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root */
1615a4d2ffd04dc6c70f2cd17dae12ac6bc14c69abKenny Root
179066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectpackage android.content.pm;
189066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
1907330791116513710d879c45b2f095cd314cbfd0Jeff Brownimport android.content.pm.PackageManager.NameNotFoundException;
2007330791116513710d879c45b2f095cd314cbfd0Jeff Brownimport android.content.res.Resources;
2107330791116513710d879c45b2f095cd314cbfd0Jeff Brownimport android.graphics.drawable.Drawable;
229066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectimport android.os.Parcel;
239066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectimport android.os.Parcelable;
249066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectimport android.util.Printer;
259066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
268a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkeyimport com.android.internal.util.ArrayUtils;
278a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey
289066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectimport java.text.Collator;
298a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkeyimport java.util.Arrays;
309066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectimport java.util.Comparator;
318a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkeyimport java.util.Objects;
329066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
339066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project/**
349066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Information you can retrieve about a particular application.  This
359066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * corresponds to information collected from the AndroidManifest.xml's
369066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * <application> tag.
379066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */
389066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectpublic class ApplicationInfo extends PackageItemInfo implements Parcelable {
399066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
409066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    /**
419066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * Default task affinity of all activities in this application. See
429066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * {@link ActivityInfo#taskAffinity} for more information.  This comes
439066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * from the "taskAffinity" attribute.
449066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
459066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public String taskAffinity;
469066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
479066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    /**
489066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * Optional name of a permission required to be able to access this
499066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * application's components.  From the "permission" attribute.
509066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
519066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public String permission;
529066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
539066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    /**
549066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * The name of the process this application should run in.  From the
559066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * "process" attribute or, if not set, the same as
569066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * <var>packageName</var>.
579066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
589066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public String processName;
599066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
609066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    /**
619066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * Class implementing the Application object.  From the "class"
629066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * attribute.
639066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
649066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public String className;
659066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
669066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    /**
679066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * A style resource identifier (in the package's resources) of the
689066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * description of an application.  From the "description" attribute
699066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * or, if not set, 0.
709066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
719066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public int descriptionRes;
729066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
739066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    /**
749066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * A style resource identifier (in the package's resources) of the
759066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * default visual theme of the application.  From the "theme" attribute
769066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * or, if not set, 0.
779066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
789066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public int theme;
799066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
809066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    /**
819066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * Class implementing the Application's manage space
829066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * functionality.  From the "manageSpaceActivity"
839066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * attribute. This is an optional attribute and will be null if
84181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate     * applications don't specify it in their manifest
859066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
869066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public String manageSpaceActivityName;
879066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
889066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    /**
89181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate     * Class implementing the Application's backup functionality.  From
90181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate     * the "backupAgent" attribute.  This is an optional attribute and
91181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate     * will be null if the application does not specify it in its manifest.
92181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate     *
93181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate     * <p>If android:allowBackup is set to false, this attribute is ignored.
94181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate     */
95181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate    public String backupAgentName;
964a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate
974a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate    /**
98269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell     * The default extra UI options for activities in this application.
99269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell     * Set from the {@link android.R.attr#uiOptions} attribute in the
100269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell     * activity's manifest.
101269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell     */
102269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell    public int uiOptions = 0;
103269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell
104269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell    /**
1059066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * Value for {@link #flags}: if set, this application is installed in the
1069066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * device's system image.
1079066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
1089066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public static final int FLAG_SYSTEM = 1<<0;
1099066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
1109066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    /**
1119066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * Value for {@link #flags}: set to true if this application would like to
1129066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * allow debugging of its
1139066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * code, even when installed on a non-development system.  Comes
1149066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * from {@link android.R.styleable#AndroidManifestApplication_debuggable
1159066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * android:debuggable} of the &lt;application&gt; tag.
1169066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
1179066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public static final int FLAG_DEBUGGABLE = 1<<1;
1189066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
1199066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    /**
1209066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * Value for {@link #flags}: set to true if this application has code
1219066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * associated with it.  Comes
1229066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * from {@link android.R.styleable#AndroidManifestApplication_hasCode
1239066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * android:hasCode} of the &lt;application&gt; tag.
1249066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
1259066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public static final int FLAG_HAS_CODE = 1<<2;
1269066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
1279066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    /**
1289066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * Value for {@link #flags}: set to true if this application is persistent.
1299066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * Comes from {@link android.R.styleable#AndroidManifestApplication_persistent
1309066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * android:persistent} of the &lt;application&gt; tag.
1319066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
1329066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public static final int FLAG_PERSISTENT = 1<<3;
1339066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
1349066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    /**
135181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate     * Value for {@link #flags}: set to true if this application holds the
1369066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * {@link android.Manifest.permission#FACTORY_TEST} permission and the
1379066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * device is running in factory test mode.
1389066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
1399066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public static final int FLAG_FACTORY_TEST = 1<<4;
1409066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
1419066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    /**
1429066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * Value for {@link #flags}: default value for the corresponding ActivityInfo flag.
1439066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * Comes from {@link android.R.styleable#AndroidManifestApplication_allowTaskReparenting
1449066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * android:allowTaskReparenting} of the &lt;application&gt; tag.
1459066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
1469066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public static final int FLAG_ALLOW_TASK_REPARENTING = 1<<5;
1479066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
1489066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    /**
1499066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * Value for {@link #flags}: default value for the corresponding ActivityInfo flag.
1509066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * Comes from {@link android.R.styleable#AndroidManifestApplication_allowClearUserData
1519066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * android:allowClearUserData} of the &lt;application&gt; tag.
1529066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
1539066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public static final int FLAG_ALLOW_CLEAR_USER_DATA = 1<<6;
1549066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
1559066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    /**
156851a54143c15a1c33361efae2db3f7f45059b472Dianne Hackborn     * Value for {@link #flags}: this is set if this application has been
157851a54143c15a1c33361efae2db3f7f45059b472Dianne Hackborn     * install as an update to a built-in system application.
1589066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
1599066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public static final int FLAG_UPDATED_SYSTEM_APP = 1<<7;
160851a54143c15a1c33361efae2db3f7f45059b472Dianne Hackborn
161851a54143c15a1c33361efae2db3f7f45059b472Dianne Hackborn    /**
1627f2054392e9957d3ba8579ef08c29cfb27df564eDianne Hackborn     * Value for {@link #flags}: this is set of the application has specified
1637f2054392e9957d3ba8579ef08c29cfb27df564eDianne Hackborn     * {@link android.R.styleable#AndroidManifestApplication_testOnly
1647f2054392e9957d3ba8579ef08c29cfb27df564eDianne Hackborn     * android:testOnly} to be true.
165851a54143c15a1c33361efae2db3f7f45059b472Dianne Hackborn     */
166a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn    public static final int FLAG_TEST_ONLY = 1<<8;
167ade3ecad94d1f4431576f53bae26c35efbf7a2c9Dianne Hackborn
168ade3ecad94d1f4431576f53bae26c35efbf7a2c9Dianne Hackborn    /**
1695c1e00b14d2ef10ec76abf3e951fa8003a67f558Dianne Hackborn     * Value for {@link #flags}: true when the application's window can be
170723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn     * reduced in size for smaller screens.  Corresponds to
171723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn     * {@link android.R.styleable#AndroidManifestSupportsScreens_smallScreens
172723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn     * android:smallScreens}.
1735c1e00b14d2ef10ec76abf3e951fa8003a67f558Dianne Hackborn     */
174723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn    public static final int FLAG_SUPPORTS_SMALL_SCREENS = 1<<9;
175723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn
176723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn    /**
177723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn     * Value for {@link #flags}: true when the application's window can be
178723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn     * displayed on normal screens.  Corresponds to
179723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn     * {@link android.R.styleable#AndroidManifestSupportsScreens_normalScreens
180723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn     * android:normalScreens}.
181723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn     */
182723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn    public static final int FLAG_SUPPORTS_NORMAL_SCREENS = 1<<10;
183723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn
184723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn    /**
185723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn     * Value for {@link #flags}: true when the application's window can be
186723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn     * increased in size for larger screens.  Corresponds to
187723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn     * {@link android.R.styleable#AndroidManifestSupportsScreens_largeScreens
18822ec9ab3b881d71866279ba9363c644a9e4e7164Dianne Hackborn     * android:largeScreens}.
189723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn     */
190723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn    public static final int FLAG_SUPPORTS_LARGE_SCREENS = 1<<11;
1915c1e00b14d2ef10ec76abf3e951fa8003a67f558Dianne Hackborn
1925c1e00b14d2ef10ec76abf3e951fa8003a67f558Dianne Hackborn    /**
193c4db95c077f826585d20be2f3db4043c53d30cf5Dianne Hackborn     * Value for {@link #flags}: true when the application knows how to adjust
194c4db95c077f826585d20be2f3db4043c53d30cf5Dianne Hackborn     * its UI for different screen sizes.  Corresponds to
195c4db95c077f826585d20be2f3db4043c53d30cf5Dianne Hackborn     * {@link android.R.styleable#AndroidManifestSupportsScreens_resizeable
196c4db95c077f826585d20be2f3db4043c53d30cf5Dianne Hackborn     * android:resizeable}.
197c4db95c077f826585d20be2f3db4043c53d30cf5Dianne Hackborn     */
198c4db95c077f826585d20be2f3db4043c53d30cf5Dianne Hackborn    public static final int FLAG_RESIZEABLE_FOR_SCREENS = 1<<12;
199c4db95c077f826585d20be2f3db4043c53d30cf5Dianne Hackborn
200c4db95c077f826585d20be2f3db4043c53d30cf5Dianne Hackborn    /**
20111b822d2a91ea17c34c0cb1c11e80a9a30d72864Dianne Hackborn     * Value for {@link #flags}: true when the application knows how to
20211b822d2a91ea17c34c0cb1c11e80a9a30d72864Dianne Hackborn     * accomodate different screen densities.  Corresponds to
20311b822d2a91ea17c34c0cb1c11e80a9a30d72864Dianne Hackborn     * {@link android.R.styleable#AndroidManifestSupportsScreens_anyDensity
20411b822d2a91ea17c34c0cb1c11e80a9a30d72864Dianne Hackborn     * android:anyDensity}.
20511b822d2a91ea17c34c0cb1c11e80a9a30d72864Dianne Hackborn     */
20611b822d2a91ea17c34c0cb1c11e80a9a30d72864Dianne Hackborn    public static final int FLAG_SUPPORTS_SCREEN_DENSITIES = 1<<13;
20711b822d2a91ea17c34c0cb1c11e80a9a30d72864Dianne Hackborn
20811b822d2a91ea17c34c0cb1c11e80a9a30d72864Dianne Hackborn    /**
20923085b781e145ed684e7270af1d5ced6800b8effBen Cheng     * Value for {@link #flags}: set to true if this application would like to
21023085b781e145ed684e7270af1d5ced6800b8effBen Cheng     * request the VM to operate under the safe mode. Comes from
211ef3f5ddc2137ed99e41f00441b688fb56b855179Ben Cheng     * {@link android.R.styleable#AndroidManifestApplication_vmSafeMode
212ef3f5ddc2137ed99e41f00441b688fb56b855179Ben Cheng     * android:vmSafeMode} of the &lt;application&gt; tag.
21323085b781e145ed684e7270af1d5ced6800b8effBen Cheng     */
21423085b781e145ed684e7270af1d5ced6800b8effBen Cheng    public static final int FLAG_VM_SAFE_MODE = 1<<14;
21523085b781e145ed684e7270af1d5ced6800b8effBen Cheng
21623085b781e145ed684e7270af1d5ced6800b8effBen Cheng    /**
2173de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * Value for {@link #flags}: set to <code>false</code> if the application does not wish
2183de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * to permit any OS-driven backups of its data; <code>true</code> otherwise.
219181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate     *
2203de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * <p>Comes from the
2213de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * {@link android.R.styleable#AndroidManifestApplication_allowBackup android:allowBackup}
2223de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * attribute of the &lt;application&gt; tag.
223181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate     */
22423085b781e145ed684e7270af1d5ced6800b8effBen Cheng    public static final int FLAG_ALLOW_BACKUP = 1<<15;
2255e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate
2265e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate    /**
2273de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * Value for {@link #flags}: set to <code>false</code> if the application must be kept
2283de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * in memory following a full-system restore operation; <code>true</code> otherwise.
2293de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * Ordinarily, during a full system restore operation each application is shut down
2303de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * following execution of its agent's onRestore() method.  Setting this attribute to
2313de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * <code>false</code> prevents this.  Most applications will not need to set this attribute.
2325e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate     *
2333de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * <p>If
2343de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * {@link android.R.styleable#AndroidManifestApplication_allowBackup android:allowBackup}
2353de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * is set to <code>false</code> or no
2363de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * {@link android.R.styleable#AndroidManifestApplication_backupAgent android:backupAgent}
2375e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate     * is specified, this flag will be ignored.
2385e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate     *
2393de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * <p>Comes from the
2403de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * {@link android.R.styleable#AndroidManifestApplication_killAfterRestore android:killAfterRestore}
2413de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * attribute of the &lt;application&gt; tag.
2425e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate     */
24323085b781e145ed684e7270af1d5ced6800b8effBen Cheng    public static final int FLAG_KILL_AFTER_RESTORE = 1<<16;
2445e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate
2455e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate    /**
2463de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * Value for {@link #flags}: Set to <code>true</code> if the application's backup
2473de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * agent claims to be able to handle restore data even "from the future,"
2483de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * i.e. from versions of the application with a versionCode greater than
2493de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * the one currently installed on the device.  <i>Use with caution!</i>  By default
2503de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * this attribute is <code>false</code> and the Backup Manager will ensure that data
2513de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * from "future" versions of the application are never supplied during a restore operation.
2525e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate     *
2533de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * <p>If
2543de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * {@link android.R.styleable#AndroidManifestApplication_allowBackup android:allowBackup}
2553de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * is set to <code>false</code> or no
2563de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * {@link android.R.styleable#AndroidManifestApplication_backupAgent android:backupAgent}
2575e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate     * is specified, this flag will be ignored.
2585e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate     *
2593de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * <p>Comes from the
2603de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * {@link android.R.styleable#AndroidManifestApplication_restoreAnyVersion android:restoreAnyVersion}
2613de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate     * attribute of the &lt;application&gt; tag.
2625e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate     */
2633de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate    public static final int FLAG_RESTORE_ANY_VERSION = 1<<17;
2645e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate
265181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate    /**
2663202d380226043fa665df3c92252f791f8c52d55Dianne Hackborn     * Value for {@link #flags}: Set to true if the application is
2673202d380226043fa665df3c92252f791f8c52d55Dianne Hackborn     * currently installed on external/removable/unprotected storage.  Such
2683202d380226043fa665df3c92252f791f8c52d55Dianne Hackborn     * applications may not be available if their storage is not currently
2693202d380226043fa665df3c92252f791f8c52d55Dianne Hackborn     * mounted.  When the storage it is on is not available, it will look like
2703202d380226043fa665df3c92252f791f8c52d55Dianne Hackborn     * the application has been uninstalled (its .apk is no longer available)
2713202d380226043fa665df3c92252f791f8c52d55Dianne Hackborn     * but its persistent data is not removed.
272af8e9f4805643f90a9dc0ecfa119e0a860c12f8aSuchi Amalapurapu     */
27394c567e1e344d49168603f5a0560215a4ce735e6Dianne Hackborn    public static final int FLAG_EXTERNAL_STORAGE = 1<<18;
274af8e9f4805643f90a9dc0ecfa119e0a860c12f8aSuchi Amalapurapu
275af8e9f4805643f90a9dc0ecfa119e0a860c12f8aSuchi Amalapurapu    /**
27614cee9f688c32d63d8521188e7422811629bb7c2Dianne Hackborn     * Value for {@link #flags}: true when the application's window can be
27714cee9f688c32d63d8521188e7422811629bb7c2Dianne Hackborn     * increased in size for extra large screens.  Corresponds to
27814cee9f688c32d63d8521188e7422811629bb7c2Dianne Hackborn     * {@link android.R.styleable#AndroidManifestSupportsScreens_xlargeScreens
27922ec9ab3b881d71866279ba9363c644a9e4e7164Dianne Hackborn     * android:xlargeScreens}.
28014cee9f688c32d63d8521188e7422811629bb7c2Dianne Hackborn     */
28114cee9f688c32d63d8521188e7422811629bb7c2Dianne Hackborn    public static final int FLAG_SUPPORTS_XLARGE_SCREENS = 1<<19;
28214cee9f688c32d63d8521188e7422811629bb7c2Dianne Hackborn
28314cee9f688c32d63d8521188e7422811629bb7c2Dianne Hackborn    /**
2843b81bc18bb661c02ad8074c39dab16644c1e65d0Dianne Hackborn     * Value for {@link #flags}: true when the application has requested a
2853b81bc18bb661c02ad8074c39dab16644c1e65d0Dianne Hackborn     * large heap for its processes.  Corresponds to
2863b81bc18bb661c02ad8074c39dab16644c1e65d0Dianne Hackborn     * {@link android.R.styleable#AndroidManifestApplication_largeHeap
2873b81bc18bb661c02ad8074c39dab16644c1e65d0Dianne Hackborn     * android:largeHeap}.
288a3cdaa5337fa573c4c61770195d6232c2e587090Jason parks     */
2893b81bc18bb661c02ad8074c39dab16644c1e65d0Dianne Hackborn    public static final int FLAG_LARGE_HEAP = 1<<20;
290a3cdaa5337fa573c4c61770195d6232c2e587090Jason parks
291a3cdaa5337fa573c4c61770195d6232c2e587090Jason parks    /**
292e7f972122db87dc54e41ed1a6e417534d43bca3aDianne Hackborn     * Value for {@link #flags}: true if this application's package is in
293e7f972122db87dc54e41ed1a6e417534d43bca3aDianne Hackborn     * the stopped state.
294e7f972122db87dc54e41ed1a6e417534d43bca3aDianne Hackborn     */
295e7f972122db87dc54e41ed1a6e417534d43bca3aDianne Hackborn    public static final int FLAG_STOPPED = 1<<21;
296e7f972122db87dc54e41ed1a6e417534d43bca3aDianne Hackborn
297e7f972122db87dc54e41ed1a6e417534d43bca3aDianne Hackborn    /**
29859dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio     * Value for {@link #flags}: true  when the application is willing to support
29959dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio     * RTL (right to left). All activities will inherit this value.
30059dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio     *
30159dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio     * Set from the {@link android.R.attr#supportsRtl} attribute in the
30259dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio     * activity's manifest.
30359dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio     *
30459dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio     * Default value is false (no support for RTL).
30559dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio     */
30659dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio    public static final int FLAG_SUPPORTS_RTL = 1<<22;
30759dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio
30859dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio    /**
3097767eac3232ba2fb9828766813cdb481d6a97584Dianne Hackborn     * Value for {@link #flags}: true if the application is currently
3107767eac3232ba2fb9828766813cdb481d6a97584Dianne Hackborn     * installed for the calling user.
3117767eac3232ba2fb9828766813cdb481d6a97584Dianne Hackborn     */
3127767eac3232ba2fb9828766813cdb481d6a97584Dianne Hackborn    public static final int FLAG_INSTALLED = 1<<23;
3137767eac3232ba2fb9828766813cdb481d6a97584Dianne Hackborn
3147767eac3232ba2fb9828766813cdb481d6a97584Dianne Hackborn    /**
3155e03e2ca7d25b899b129baad2dd5eca6bf99d88aDianne Hackborn     * Value for {@link #flags}: true if the application only has its
3165e03e2ca7d25b899b129baad2dd5eca6bf99d88aDianne Hackborn     * data installed; the application package itself does not currently
3175e03e2ca7d25b899b129baad2dd5eca6bf99d88aDianne Hackborn     * exist on the device.
3185e03e2ca7d25b899b129baad2dd5eca6bf99d88aDianne Hackborn     */
3195e03e2ca7d25b899b129baad2dd5eca6bf99d88aDianne Hackborn    public static final int FLAG_IS_DATA_ONLY = 1<<24;
3205e03e2ca7d25b899b129baad2dd5eca6bf99d88aDianne Hackborn
3215e03e2ca7d25b899b129baad2dd5eca6bf99d88aDianne Hackborn    /**
32212d0b4cd960e18493b1dc237adbfabed432c9df5Jose Lima     * Value for {@link #flags}: true if the application was declared to be a game, or
32312d0b4cd960e18493b1dc237adbfabed432c9df5Jose Lima     * false if it is a non-game application.
32412d0b4cd960e18493b1dc237adbfabed432c9df5Jose Lima     */
32512d0b4cd960e18493b1dc237adbfabed432c9df5Jose Lima    public static final int FLAG_IS_GAME = 1<<25;
32612d0b4cd960e18493b1dc237adbfabed432c9df5Jose Lima
32712d0b4cd960e18493b1dc237adbfabed432c9df5Jose Lima    /**
328d1de2567c6758e81a87c0f5eff9ff53ffebab134Christopher Tate     * Value for {@link #flags}: {@code true} if the application asks that only
329d1de2567c6758e81a87c0f5eff9ff53ffebab134Christopher Tate     * full-data streaming backups of its data be performed even though it defines
330d1de2567c6758e81a87c0f5eff9ff53ffebab134Christopher Tate     * a {@link android.app.backup.BackupAgent BackupAgent}, which normally
331d1de2567c6758e81a87c0f5eff9ff53ffebab134Christopher Tate     * indicates that the app will manage its backed-up data via incremental
332d1de2567c6758e81a87c0f5eff9ff53ffebab134Christopher Tate     * key/value updates.
333d1de2567c6758e81a87c0f5eff9ff53ffebab134Christopher Tate     */
334d1de2567c6758e81a87c0f5eff9ff53ffebab134Christopher Tate    public static final int FLAG_FULL_BACKUP_ONLY = 1<<26;
335d1de2567c6758e81a87c0f5eff9ff53ffebab134Christopher Tate
336d1de2567c6758e81a87c0f5eff9ff53ffebab134Christopher Tate    /**
3374ce55a3987c14b939cd416e24116c6ab3c760b82Christopher Tate     * Value for {@link #flags}: set to {@code true} if the application
3384ce55a3987c14b939cd416e24116c6ab3c760b82Christopher Tate     * is permitted to hold privileged permissions.
3394ce55a3987c14b939cd416e24116c6ab3c760b82Christopher Tate     *
3404ce55a3987c14b939cd416e24116c6ab3c760b82Christopher Tate     * {@hide}
3414ce55a3987c14b939cd416e24116c6ab3c760b82Christopher Tate     */
3424ce55a3987c14b939cd416e24116c6ab3c760b82Christopher Tate    public static final int FLAG_PRIVILEGED = 1<<30;
3434ce55a3987c14b939cd416e24116c6ab3c760b82Christopher Tate
3444ce55a3987c14b939cd416e24116c6ab3c760b82Christopher Tate    /**
3453202d380226043fa665df3c92252f791f8c52d55Dianne Hackborn     * Value for {@link #flags}: Set to true if the application has been
3463202d380226043fa665df3c92252f791f8c52d55Dianne Hackborn     * installed using the forward lock option.
347af8e9f4805643f90a9dc0ecfa119e0a860c12f8aSuchi Amalapurapu     *
34875e616e8203a540c860888ccff73ffaa87498c5eDianne Hackborn     * NOTE: DO NOT CHANGE THIS VALUE!  It is saved in packages.xml.
34975e616e8203a540c860888ccff73ffaa87498c5eDianne Hackborn     *
350af8e9f4805643f90a9dc0ecfa119e0a860c12f8aSuchi Amalapurapu     * {@hide}
351af8e9f4805643f90a9dc0ecfa119e0a860c12f8aSuchi Amalapurapu     */
35275e616e8203a540c860888ccff73ffaa87498c5eDianne Hackborn    public static final int FLAG_FORWARD_LOCK = 1<<29;
353af8e9f4805643f90a9dc0ecfa119e0a860c12f8aSuchi Amalapurapu
354af8e9f4805643f90a9dc0ecfa119e0a860c12f8aSuchi Amalapurapu    /**
35502486b1327e3007c62d253dd89ba9db1852b87f8Dianne Hackborn     * Value for {@link #flags}: set to <code>true</code> if the application
35602486b1327e3007c62d253dd89ba9db1852b87f8Dianne Hackborn     * has reported that it is heavy-weight, and thus can not participate in
35702486b1327e3007c62d253dd89ba9db1852b87f8Dianne Hackborn     * the normal application lifecycle.
35802486b1327e3007c62d253dd89ba9db1852b87f8Dianne Hackborn     *
35902486b1327e3007c62d253dd89ba9db1852b87f8Dianne Hackborn     * <p>Comes from the
3608472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn     * android.R.styleable#AndroidManifestApplication_cantSaveState
36102486b1327e3007c62d253dd89ba9db1852b87f8Dianne Hackborn     * attribute of the &lt;application&gt; tag.
36202486b1327e3007c62d253dd89ba9db1852b87f8Dianne Hackborn     *
36302486b1327e3007c62d253dd89ba9db1852b87f8Dianne Hackborn     * {@hide}
36402486b1327e3007c62d253dd89ba9db1852b87f8Dianne Hackborn     */
36575e616e8203a540c860888ccff73ffaa87498c5eDianne Hackborn    public static final int FLAG_CANT_SAVE_STATE = 1<<28;
36602486b1327e3007c62d253dd89ba9db1852b87f8Dianne Hackborn
36702486b1327e3007c62d253dd89ba9db1852b87f8Dianne Hackborn    /**
368655d0e2029e6ae77a47e922dce4c4989818b8dd1Amith Yamasani     * Value for {@link #flags}: true if the application is blocked via restrictions and for
369655d0e2029e6ae77a47e922dce4c4989818b8dd1Amith Yamasani     * most purposes is considered as not installed.
370655d0e2029e6ae77a47e922dce4c4989818b8dd1Amith Yamasani     * {@hide}
371655d0e2029e6ae77a47e922dce4c4989818b8dd1Amith Yamasani     */
372655d0e2029e6ae77a47e922dce4c4989818b8dd1Amith Yamasani    public static final int FLAG_BLOCKED = 1<<27;
373655d0e2029e6ae77a47e922dce4c4989818b8dd1Amith Yamasani
374655d0e2029e6ae77a47e922dce4c4989818b8dd1Amith Yamasani    /**
3759066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * Flags associated with the application.  Any combination of
3769066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * {@link #FLAG_SYSTEM}, {@link #FLAG_DEBUGGABLE}, {@link #FLAG_HAS_CODE},
3779066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * {@link #FLAG_PERSISTENT}, {@link #FLAG_FACTORY_TEST}, and
3789066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * {@link #FLAG_ALLOW_TASK_REPARENTING}
379851a54143c15a1c33361efae2db3f7f45059b472Dianne Hackborn     * {@link #FLAG_ALLOW_CLEAR_USER_DATA}, {@link #FLAG_UPDATED_SYSTEM_APP},
380723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn     * {@link #FLAG_TEST_ONLY}, {@link #FLAG_SUPPORTS_SMALL_SCREENS},
381723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn     * {@link #FLAG_SUPPORTS_NORMAL_SCREENS},
38214cee9f688c32d63d8521188e7422811629bb7c2Dianne Hackborn     * {@link #FLAG_SUPPORTS_LARGE_SCREENS}, {@link #FLAG_SUPPORTS_XLARGE_SCREENS},
38314cee9f688c32d63d8521188e7422811629bb7c2Dianne Hackborn     * {@link #FLAG_RESIZEABLE_FOR_SCREENS},
3847767eac3232ba2fb9828766813cdb481d6a97584Dianne Hackborn     * {@link #FLAG_SUPPORTS_SCREEN_DENSITIES}, {@link #FLAG_VM_SAFE_MODE},
38512d0b4cd960e18493b1dc237adbfabed432c9df5Jose Lima     * {@link #FLAG_INSTALLED}, {@link #FLAG_IS_GAME}.
3869066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
3879066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public int flags = 0;
388655d0e2029e6ae77a47e922dce4c4989818b8dd1Amith Yamasani
3899066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    /**
390df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn     * The required smallest screen width the application can run on.  If 0,
391df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn     * nothing has been specified.  Comes from
392df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn     * {@link android.R.styleable#AndroidManifestSupportsScreens_requiresSmallestWidthDp
393df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn     * android:requiresSmallestWidthDp} attribute of the &lt;supports-screens&gt; tag.
394df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn     */
395df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn    public int requiresSmallestWidthDp = 0;
396df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn
397df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn    /**
398df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn     * The maximum smallest screen width the application is designed for.  If 0,
399df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn     * nothing has been specified.  Comes from
400df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn     * {@link android.R.styleable#AndroidManifestSupportsScreens_compatibleWidthLimitDp
401df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn     * android:compatibleWidthLimitDp} attribute of the &lt;supports-screens&gt; tag.
402df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn     */
403df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn    public int compatibleWidthLimitDp = 0;
404df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn
405df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn    /**
4062762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn     * The maximum smallest screen width the application will work on.  If 0,
4072762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn     * nothing has been specified.  Comes from
4082762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn     * {@link android.R.styleable#AndroidManifestSupportsScreens_largestWidthLimitDp
4092762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn     * android:largestWidthLimitDp} attribute of the &lt;supports-screens&gt; tag.
4102762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn     */
4112762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn    public int largestWidthLimitDp = 0;
4122762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn
413d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey    /** {@hide} */
414d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey    public String scanSourceDir;
415d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey    /** {@hide} */
416d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey    public String scanPublicSourceDir;
417d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey
4182762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn    /**
4198a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey     * Full path to the base APK for this application.
4209066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
4219066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public String sourceDir;
4229066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
4239066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    /**
4248a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey     * Full path to the publicly available parts of {@link #sourceDir},
4258a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey     * including resources and manifest. This may be different from
4268a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey     * {@link #sourceDir} if an application is forward locked.
4279066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
4289066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public String publicSourceDir;
4298a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey
4308a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey    /**
4318a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey     * Full paths to zero or more split APKs that, when combined with the base
4328a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey     * APK defined in {@link #sourceDir}, form a complete application.
4338a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey     */
4348a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey    public String[] splitSourceDirs;
4358a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey
4368a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey    /**
4378a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey     * Full path to the publicly available parts of {@link #splitSourceDirs},
4388a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey     * including resources and manifest. This may be different from
4398a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey     * {@link #splitSourceDirs} if an application is forward locked.
4408a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey     */
4418a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey    public String[] splitPublicSourceDirs;
4428a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey
4439066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    /**
444d1ab01682b136b586aac94334f976f03c762b3c7Kenny Root     * Full paths to the locations of extra resource packages this application
445d1ab01682b136b586aac94334f976f03c762b3c7Kenny Root     * uses. This field is only used if there are extra resource packages,
446d1ab01682b136b586aac94334f976f03c762b3c7Kenny Root     * otherwise it is null.
447ace5a3fbfbf1b41905410925f1ea007040a7a675Kenny Root     *
448ace5a3fbfbf1b41905410925f1ea007040a7a675Kenny Root     * {@hide}
449d1ab01682b136b586aac94334f976f03c762b3c7Kenny Root     */
450d1ab01682b136b586aac94334f976f03c762b3c7Kenny Root    public String[] resourceDirs;
451d1ab01682b136b586aac94334f976f03c762b3c7Kenny Root
452d1ab01682b136b586aac94334f976f03c762b3c7Kenny Root    /**
4530f40dc923c67e8822f9157aec4f786f73848af07Robert Craig     * String retrieved from the seinfo tag found in selinux policy. This value
4540f40dc923c67e8822f9157aec4f786f73848af07Robert Craig     * is useful in setting an SELinux security context on the process as well
4550f40dc923c67e8822f9157aec4f786f73848af07Robert Craig     * as its data directory.
4560f40dc923c67e8822f9157aec4f786f73848af07Robert Craig     *
4570f40dc923c67e8822f9157aec4f786f73848af07Robert Craig     * {@hide}
4580f40dc923c67e8822f9157aec4f786f73848af07Robert Craig     */
4590f40dc923c67e8822f9157aec4f786f73848af07Robert Craig    public String seinfo;
4600f40dc923c67e8822f9157aec4f786f73848af07Robert Craig
4610f40dc923c67e8822f9157aec4f786f73848af07Robert Craig    /**
4629066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * Paths to all shared libraries this application is linked against.  This
4639066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * field is only set if the {@link PackageManager#GET_SHARED_LIBRARY_FILES
4649066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * PackageManager.GET_SHARED_LIBRARY_FILES} flag was used when retrieving
4659066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * the structure.
4669066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
4679066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public String[] sharedLibraryFiles;
4689066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
4699066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    /**
4709066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * Full path to a directory assigned to the package for its persistent
4719066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * data.
4729066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
4739066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public String dataDir;
47485387d7ba36e56b291cbde87acb5a5b2200fe01cKenny Root
47585387d7ba36e56b291cbde87acb5a5b2200fe01cKenny Root    /**
47685387d7ba36e56b291cbde87acb5a5b2200fe01cKenny Root     * Full path to the directory where native JNI libraries are stored.
47785387d7ba36e56b291cbde87acb5a5b2200fe01cKenny Root     */
47885387d7ba36e56b291cbde87acb5a5b2200fe01cKenny Root    public String nativeLibraryDir;
47985387d7ba36e56b291cbde87acb5a5b2200fe01cKenny Root
4809066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    /**
481ff0c470833b2cb4130a30895093630242d5f238dRamin Zaghi     * The ABI that this application requires, This is inferred from the ABIs
482ff0c470833b2cb4130a30895093630242d5f238dRamin Zaghi     * of the native JNI libraries the application bundles. Will be {@code null}
483ff0c470833b2cb4130a30895093630242d5f238dRamin Zaghi     * if this application does not require any particular ABI.
484ff0c470833b2cb4130a30895093630242d5f238dRamin Zaghi     *
485ff0c470833b2cb4130a30895093630242d5f238dRamin Zaghi     * {@hide}
486ff0c470833b2cb4130a30895093630242d5f238dRamin Zaghi     */
48734f6084bc21b07ae9112be6e7a8f50c49828ac9cNarayan Kamath    public String cpuAbi;
488ff0c470833b2cb4130a30895093630242d5f238dRamin Zaghi
489ff0c470833b2cb4130a30895093630242d5f238dRamin Zaghi    /**
4909066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * The kernel user-ID that has been assigned to this application;
4919066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * currently this is not a unique ID (multiple applications can have
4929066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * the same uid).
4939066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
4949066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public int uid;
4959066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
4968d112675879a2b83197d3b4ae4fb623abd1a1ec3Mitsuru Oshima    /**
4973b3e145d3c41fd68974e08f799b1fd1f8f060cf0Dianne Hackborn     * The minimum SDK version this application targets.  It may run on earlier
498a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn     * versions, but it knows how to work with any new behavior added at this
499a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn     * version.  Will be {@link android.os.Build.VERSION_CODES#CUR_DEVELOPMENT}
500a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn     * if this is a development build and the app is targeting that.  You should
501a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn     * compare that this number is >= the SDK version number at which your
502a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn     * behavior was introduced.
503a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn     */
504a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn    public int targetSdkVersion;
5058472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn
5068472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn    /**
5078472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn     * The app's declared version code.
5088472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn     * @hide
5098472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn     */
5108472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn    public int versionCode;
5118472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn
512a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn    /**
5139066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * When false, indicates that all components within this application are
5149066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * considered disabled, regardless of their individually set enabled status.
5159066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
5169066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public boolean enabled = true;
5179066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
51854e570f78b45d6c47578a4a2513097b590b6d43fDianne Hackborn    /**
5190ac3031c159a0904e73eb4439cdc724d8df4a6e6Dianne Hackborn     * For convenient access to the current enabled setting of this app.
5200ac3031c159a0904e73eb4439cdc724d8df4a6e6Dianne Hackborn     * @hide
5210ac3031c159a0904e73eb4439cdc724d8df4a6e6Dianne Hackborn     */
5220ac3031c159a0904e73eb4439cdc724d8df4a6e6Dianne Hackborn    public int enabledSetting = PackageManager.COMPONENT_ENABLED_STATE_DEFAULT;
5230ac3031c159a0904e73eb4439cdc724d8df4a6e6Dianne Hackborn
5240ac3031c159a0904e73eb4439cdc724d8df4a6e6Dianne Hackborn    /**
52554e570f78b45d6c47578a4a2513097b590b6d43fDianne Hackborn     * For convenient access to package's install location.
52654e570f78b45d6c47578a4a2513097b590b6d43fDianne Hackborn     * @hide
52754e570f78b45d6c47578a4a2513097b590b6d43fDianne Hackborn     */
52854e570f78b45d6c47578a4a2513097b590b6d43fDianne Hackborn    public int installLocation = PackageInfo.INSTALL_LOCATION_UNSPECIFIED;
52912d0b4cd960e18493b1dc237adbfabed432c9df5Jose Lima
5309066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public void dump(Printer pw, String prefix) {
5319066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        super.dumpFront(pw, prefix);
53212527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6Dianne Hackborn        if (className != null) {
53312527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6Dianne Hackborn            pw.println(prefix + "className=" + className);
53412527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6Dianne Hackborn        }
53512527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6Dianne Hackborn        if (permission != null) {
53612527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6Dianne Hackborn            pw.println(prefix + "permission=" + permission);
53712527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6Dianne Hackborn        }
53839792d2262352ae775091876d5488d2412a2ff92Dianne Hackborn        pw.println(prefix + "processName=" + processName);
53939792d2262352ae775091876d5488d2412a2ff92Dianne Hackborn        pw.println(prefix + "taskAffinity=" + taskAffinity);
54039792d2262352ae775091876d5488d2412a2ff92Dianne Hackborn        pw.println(prefix + "uid=" + uid + " flags=0x" + Integer.toHexString(flags)
54139792d2262352ae775091876d5488d2412a2ff92Dianne Hackborn                + " theme=0x" + Integer.toHexString(theme));
542df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn        pw.println(prefix + "requiresSmallestWidthDp=" + requiresSmallestWidthDp
5432762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn                + " compatibleWidthLimitDp=" + compatibleWidthLimitDp
5442762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn                + " largestWidthLimitDp=" + largestWidthLimitDp);
5459066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        pw.println(prefix + "sourceDir=" + sourceDir);
5468a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey        if (!Objects.equals(sourceDir, publicSourceDir)) {
54739792d2262352ae775091876d5488d2412a2ff92Dianne Hackborn            pw.println(prefix + "publicSourceDir=" + publicSourceDir);
54839792d2262352ae775091876d5488d2412a2ff92Dianne Hackborn        }
5498a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey        if (!ArrayUtils.isEmpty(splitSourceDirs)) {
5508a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey            pw.println(prefix + "splitSourceDirs=" + Arrays.toString(splitSourceDirs));
5518a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey        }
5528a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey        if (!ArrayUtils.isEmpty(splitPublicSourceDirs)
5538a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey                && !Arrays.equals(splitSourceDirs, splitPublicSourceDirs)) {
5548a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey            pw.println(prefix + "splitPublicSourceDirs=" + Arrays.toString(splitPublicSourceDirs));
5558a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey        }
55639792d2262352ae775091876d5488d2412a2ff92Dianne Hackborn        if (resourceDirs != null) {
55739792d2262352ae775091876d5488d2412a2ff92Dianne Hackborn            pw.println(prefix + "resourceDirs=" + resourceDirs);
55839792d2262352ae775091876d5488d2412a2ff92Dianne Hackborn        }
5590f40dc923c67e8822f9157aec4f786f73848af07Robert Craig        if (seinfo != null) {
5600f40dc923c67e8822f9157aec4f786f73848af07Robert Craig            pw.println(prefix + "seinfo=" + seinfo);
5610f40dc923c67e8822f9157aec4f786f73848af07Robert Craig        }
5629066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        pw.println(prefix + "dataDir=" + dataDir);
56312527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6Dianne Hackborn        if (sharedLibraryFiles != null) {
56412527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6Dianne Hackborn            pw.println(prefix + "sharedLibraryFiles=" + sharedLibraryFiles);
56512527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6Dianne Hackborn        }
5668472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn        pw.println(prefix + "enabled=" + enabled + " targetSdkVersion=" + targetSdkVersion
5678472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn                + " versionCode=" + versionCode);
56812527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6Dianne Hackborn        if (manageSpaceActivityName != null) {
56912527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6Dianne Hackborn            pw.println(prefix + "manageSpaceActivityName="+manageSpaceActivityName);
57012527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6Dianne Hackborn        }
57112527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6Dianne Hackborn        if (descriptionRes != 0) {
57212527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6Dianne Hackborn            pw.println(prefix + "description=0x"+Integer.toHexString(descriptionRes));
57312527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6Dianne Hackborn        }
574269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell        if (uiOptions != 0) {
575269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell            pw.println(prefix + "uiOptions=0x" + Integer.toHexString(uiOptions));
576269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell        }
57759dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio        pw.println(prefix + "supportsRtl=" + (hasRtlSupport() ? "true" : "false"));
5789066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        super.dumpBack(pw, prefix);
5799066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    }
58059dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio
58159dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio    /**
58259dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio     * @return true if "supportsRtl" has been set to true in the AndroidManifest
58359dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio     * @hide
58459dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio     */
58559dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio    public boolean hasRtlSupport() {
58659dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio        return (flags & FLAG_SUPPORTS_RTL) == FLAG_SUPPORTS_RTL;
58759dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio    }
5889066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
5899066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public static class DisplayNameComparator
5909066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project            implements Comparator<ApplicationInfo> {
5919066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        public DisplayNameComparator(PackageManager pm) {
5929066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project            mPM = pm;
5939066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        }
5949066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
5959066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        public final int compare(ApplicationInfo aa, ApplicationInfo ab) {
5969066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project            CharSequence  sa = mPM.getApplicationLabel(aa);
5979066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project            if (sa == null) {
5989066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project                sa = aa.packageName;
5999066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project            }
6009066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project            CharSequence  sb = mPM.getApplicationLabel(ab);
6019066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project            if (sb == null) {
6029066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project                sb = ab.packageName;
6039066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project            }
6049066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
6059066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project            return sCollator.compare(sa.toString(), sb.toString());
6069066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        }
6079066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
6089066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        private final Collator   sCollator = Collator.getInstance();
6099066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        private PackageManager   mPM;
6109066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    }
6119066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
6129066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public ApplicationInfo() {
6139066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    }
6149066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
6159066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public ApplicationInfo(ApplicationInfo orig) {
6169066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        super(orig);
6179066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        taskAffinity = orig.taskAffinity;
6189066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        permission = orig.permission;
6199066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        processName = orig.processName;
6209066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        className = orig.className;
6219066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        theme = orig.theme;
6229066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        flags = orig.flags;
623df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn        requiresSmallestWidthDp = orig.requiresSmallestWidthDp;
624df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn        compatibleWidthLimitDp = orig.compatibleWidthLimitDp;
6252762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn        largestWidthLimitDp = orig.largestWidthLimitDp;
6269066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        sourceDir = orig.sourceDir;
6279066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        publicSourceDir = orig.publicSourceDir;
6288a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey        splitSourceDirs = orig.splitSourceDirs;
6298a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey        splitPublicSourceDirs = orig.splitPublicSourceDirs;
63085387d7ba36e56b291cbde87acb5a5b2200fe01cKenny Root        nativeLibraryDir = orig.nativeLibraryDir;
63134f6084bc21b07ae9112be6e7a8f50c49828ac9cNarayan Kamath        cpuAbi = orig.cpuAbi;
632d1ab01682b136b586aac94334f976f03c762b3c7Kenny Root        resourceDirs = orig.resourceDirs;
6330f40dc923c67e8822f9157aec4f786f73848af07Robert Craig        seinfo = orig.seinfo;
6349066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        sharedLibraryFiles = orig.sharedLibraryFiles;
6359066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        dataDir = orig.dataDir;
6369066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        uid = orig.uid;
637a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn        targetSdkVersion = orig.targetSdkVersion;
6388472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn        versionCode = orig.versionCode;
6399066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        enabled = orig.enabled;
6400ac3031c159a0904e73eb4439cdc724d8df4a6e6Dianne Hackborn        enabledSetting = orig.enabledSetting;
64154e570f78b45d6c47578a4a2513097b590b6d43fDianne Hackborn        installLocation = orig.installLocation;
6429066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        manageSpaceActivityName = orig.manageSpaceActivityName;
6439066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        descriptionRes = orig.descriptionRes;
644269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell        uiOptions = orig.uiOptions;
645bcb0255770caa6b053da100de13beb840da71b21Christopher Tate        backupAgentName = orig.backupAgentName;
6469066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    }
6479066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
6489066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
6499066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public String toString() {
6509066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        return "ApplicationInfo{"
6519066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project            + Integer.toHexString(System.identityHashCode(this))
6529066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project            + " " + packageName + "}";
6539066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    }
6549066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
6559066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public int describeContents() {
6569066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        return 0;
6579066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    }
6589066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
6599066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public void writeToParcel(Parcel dest, int parcelableFlags) {
6609066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        super.writeToParcel(dest, parcelableFlags);
6619066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        dest.writeString(taskAffinity);
6629066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        dest.writeString(permission);
6639066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        dest.writeString(processName);
6649066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        dest.writeString(className);
6659066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        dest.writeInt(theme);
6669066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        dest.writeInt(flags);
667df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn        dest.writeInt(requiresSmallestWidthDp);
668df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn        dest.writeInt(compatibleWidthLimitDp);
6692762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn        dest.writeInt(largestWidthLimitDp);
6709066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        dest.writeString(sourceDir);
6719066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        dest.writeString(publicSourceDir);
6728a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey        dest.writeStringArray(splitSourceDirs);
6738a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey        dest.writeStringArray(splitPublicSourceDirs);
67485387d7ba36e56b291cbde87acb5a5b2200fe01cKenny Root        dest.writeString(nativeLibraryDir);
67534f6084bc21b07ae9112be6e7a8f50c49828ac9cNarayan Kamath        dest.writeString(cpuAbi);
676d1ab01682b136b586aac94334f976f03c762b3c7Kenny Root        dest.writeStringArray(resourceDirs);
6770f40dc923c67e8822f9157aec4f786f73848af07Robert Craig        dest.writeString(seinfo);
6789066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        dest.writeStringArray(sharedLibraryFiles);
6799066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        dest.writeString(dataDir);
6809066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        dest.writeInt(uid);
681a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn        dest.writeInt(targetSdkVersion);
6828472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn        dest.writeInt(versionCode);
6839066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        dest.writeInt(enabled ? 1 : 0);
6840ac3031c159a0904e73eb4439cdc724d8df4a6e6Dianne Hackborn        dest.writeInt(enabledSetting);
68554e570f78b45d6c47578a4a2513097b590b6d43fDianne Hackborn        dest.writeInt(installLocation);
6869066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        dest.writeString(manageSpaceActivityName);
687181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate        dest.writeString(backupAgentName);
6889066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        dest.writeInt(descriptionRes);
689269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell        dest.writeInt(uiOptions);
6909066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    }
6919066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
6929066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public static final Parcelable.Creator<ApplicationInfo> CREATOR
6939066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project            = new Parcelable.Creator<ApplicationInfo>() {
6949066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        public ApplicationInfo createFromParcel(Parcel source) {
6959066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project            return new ApplicationInfo(source);
6969066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        }
6979066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        public ApplicationInfo[] newArray(int size) {
6989066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project            return new ApplicationInfo[size];
6999066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        }
7009066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    };
7019066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project
7029066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    private ApplicationInfo(Parcel source) {
7039066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        super(source);
7049066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        taskAffinity = source.readString();
7059066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        permission = source.readString();
7069066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        processName = source.readString();
7079066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        className = source.readString();
7089066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        theme = source.readInt();
7099066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        flags = source.readInt();
710df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn        requiresSmallestWidthDp = source.readInt();
711df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn        compatibleWidthLimitDp = source.readInt();
7122762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn        largestWidthLimitDp = source.readInt();
7139066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        sourceDir = source.readString();
7149066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        publicSourceDir = source.readString();
7158a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey        splitSourceDirs = source.readStringArray();
7168a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey        splitPublicSourceDirs = source.readStringArray();
71785387d7ba36e56b291cbde87acb5a5b2200fe01cKenny Root        nativeLibraryDir = source.readString();
71834f6084bc21b07ae9112be6e7a8f50c49828ac9cNarayan Kamath        cpuAbi = source.readString();
719d1ab01682b136b586aac94334f976f03c762b3c7Kenny Root        resourceDirs = source.readStringArray();
7200f40dc923c67e8822f9157aec4f786f73848af07Robert Craig        seinfo = source.readString();
7219066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        sharedLibraryFiles = source.readStringArray();
7229066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        dataDir = source.readString();
7239066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        uid = source.readInt();
724a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn        targetSdkVersion = source.readInt();
7258472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn        versionCode = source.readInt();
7269066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        enabled = source.readInt() != 0;
7270ac3031c159a0904e73eb4439cdc724d8df4a6e6Dianne Hackborn        enabledSetting = source.readInt();
72854e570f78b45d6c47578a4a2513097b590b6d43fDianne Hackborn        installLocation = source.readInt();
7299066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        manageSpaceActivityName = source.readString();
730181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate        backupAgentName = source.readString();
7319066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        descriptionRes = source.readInt();
732269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell        uiOptions = source.readInt();
7339066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    }
7348d112675879a2b83197d3b4ae4fb623abd1a1ec3Mitsuru Oshima
7359066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    /**
7369066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * Retrieve the textual description of the application.  This
7379066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * will call back on the given PackageManager to load the description from
7389066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * the application.
7399066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     *
7409066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * @param pm A PackageManager from which the label can be loaded; usually
7419066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * the PackageManager from which you originally retrieved this item.
7429066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     *
7439066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * @return Returns a CharSequence containing the application's description.
7449066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     * If there is no description, null is returned.
7459066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project     */
7469066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    public CharSequence loadDescription(PackageManager pm) {
7479066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        if (descriptionRes != 0) {
74807330791116513710d879c45b2f095cd314cbfd0Jeff Brown            CharSequence label = pm.getText(packageName, descriptionRes, this);
7499066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project            if (label != null) {
7509066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project                return label;
7519066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project            }
7529066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        }
7539066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project        return null;
7549066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project    }
755e5fb328825995aa33b5b7ecf8b5bee2b17f81715Mitsuru Oshima
756e5fb328825995aa33b5b7ecf8b5bee2b17f81715Mitsuru Oshima    /**
757e5fb328825995aa33b5b7ecf8b5bee2b17f81715Mitsuru Oshima     * Disable compatibility mode
758e5fb328825995aa33b5b7ecf8b5bee2b17f81715Mitsuru Oshima     *
759e5fb328825995aa33b5b7ecf8b5bee2b17f81715Mitsuru Oshima     * @hide
760e5fb328825995aa33b5b7ecf8b5bee2b17f81715Mitsuru Oshima     */
761e5fb328825995aa33b5b7ecf8b5bee2b17f81715Mitsuru Oshima    public void disableCompatibilityMode() {
76269fff4a72d4dfc9208db79d773ef3ca23350287eMitsuru Oshima        flags |= (FLAG_SUPPORTS_LARGE_SCREENS | FLAG_SUPPORTS_NORMAL_SCREENS |
76311b822d2a91ea17c34c0cb1c11e80a9a30d72864Dianne Hackborn                FLAG_SUPPORTS_SMALL_SCREENS | FLAG_RESIZEABLE_FOR_SCREENS |
76414cee9f688c32d63d8521188e7422811629bb7c2Dianne Hackborn                FLAG_SUPPORTS_SCREEN_DENSITIES | FLAG_SUPPORTS_XLARGE_SCREENS);
765e5fb328825995aa33b5b7ecf8b5bee2b17f81715Mitsuru Oshima    }
76607330791116513710d879c45b2f095cd314cbfd0Jeff Brown
76707330791116513710d879c45b2f095cd314cbfd0Jeff Brown    /**
76807330791116513710d879c45b2f095cd314cbfd0Jeff Brown     * @hide
76907330791116513710d879c45b2f095cd314cbfd0Jeff Brown     */
77007330791116513710d879c45b2f095cd314cbfd0Jeff Brown    @Override protected Drawable loadDefaultIcon(PackageManager pm) {
77107330791116513710d879c45b2f095cd314cbfd0Jeff Brown        if ((flags & FLAG_EXTERNAL_STORAGE) != 0
77207330791116513710d879c45b2f095cd314cbfd0Jeff Brown                && isPackageUnavailable(pm)) {
77307330791116513710d879c45b2f095cd314cbfd0Jeff Brown            return Resources.getSystem().getDrawable(
77407330791116513710d879c45b2f095cd314cbfd0Jeff Brown                    com.android.internal.R.drawable.sym_app_on_sd_unavailable_icon);
77507330791116513710d879c45b2f095cd314cbfd0Jeff Brown        }
77607330791116513710d879c45b2f095cd314cbfd0Jeff Brown        return pm.getDefaultActivityIcon();
77707330791116513710d879c45b2f095cd314cbfd0Jeff Brown    }
77807330791116513710d879c45b2f095cd314cbfd0Jeff Brown
77907330791116513710d879c45b2f095cd314cbfd0Jeff Brown    private boolean isPackageUnavailable(PackageManager pm) {
78007330791116513710d879c45b2f095cd314cbfd0Jeff Brown        try {
78107330791116513710d879c45b2f095cd314cbfd0Jeff Brown            return pm.getPackageInfo(packageName, 0) == null;
78207330791116513710d879c45b2f095cd314cbfd0Jeff Brown        } catch (NameNotFoundException ex) {
78307330791116513710d879c45b2f095cd314cbfd0Jeff Brown            return true;
78407330791116513710d879c45b2f095cd314cbfd0Jeff Brown        }
78507330791116513710d879c45b2f095cd314cbfd0Jeff Brown    }
786d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey
78707330791116513710d879c45b2f095cd314cbfd0Jeff Brown    /**
78807330791116513710d879c45b2f095cd314cbfd0Jeff Brown     * @hide
78907330791116513710d879c45b2f095cd314cbfd0Jeff Brown     */
79007330791116513710d879c45b2f095cd314cbfd0Jeff Brown    @Override protected ApplicationInfo getApplicationInfo() {
79107330791116513710d879c45b2f095cd314cbfd0Jeff Brown        return this;
79207330791116513710d879c45b2f095cd314cbfd0Jeff Brown    }
793d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey
794d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey    /** {@hide} */ public void setCodePath(String codePath) { scanSourceDir = codePath; }
795d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey    /** {@hide} */ public void setBaseCodePath(String baseCodePath) { sourceDir = baseCodePath; }
796d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey    /** {@hide} */ public void setSplitCodePaths(String[] splitCodePaths) { splitSourceDirs = splitCodePaths; }
797d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey    /** {@hide} */ public void setResourcePath(String resourcePath) { scanPublicSourceDir = resourcePath; }
798d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey    /** {@hide} */ public void setBaseResourcePath(String baseResourcePath) { publicSourceDir = baseResourcePath; }
799d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey    /** {@hide} */ public void setSplitResourcePaths(String[] splitResourcePaths) { splitPublicSourceDirs = splitResourcePaths; }
800d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey
801d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey    /** {@hide} */ public String getCodePath() { return scanSourceDir; }
802d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey    /** {@hide} */ public String getBaseCodePath() { return sourceDir; }
803d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey    /** {@hide} */ public String[] getSplitCodePaths() { return splitSourceDirs; }
804d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey    /** {@hide} */ public String getResourcePath() { return scanPublicSourceDir; }
805d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey    /** {@hide} */ public String getBaseResourcePath() { return publicSourceDir; }
806d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey    /** {@hide} */ public String[] getSplitResourcePaths() { return splitSourceDirs; }
8079066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project}
808