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 198a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkeyimport android.annotation.SystemApi; 20a73b8fd1f4faaad00d8a49d6e496aaf249fa7003Jeff Sharkeyimport android.annotation.TestApi; 218a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkeyimport android.content.Context; 2207330791116513710d879c45b2f095cd314cbfd0Jeff Brownimport android.content.pm.PackageManager.NameNotFoundException; 2307330791116513710d879c45b2f095cd314cbfd0Jeff Brownimport android.content.res.Resources; 2407330791116513710d879c45b2f095cd314cbfd0Jeff Brownimport android.graphics.drawable.Drawable; 2515447798a38d2b5acb1998731340255f4203f294Jeff Sharkeyimport android.os.Environment; 269066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectimport android.os.Parcel; 279066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectimport android.os.Parcelable; 2815447798a38d2b5acb1998731340255f4203f294Jeff Sharkeyimport android.os.UserHandle; 29e2d45be4dae116307f8edd85eaa61134221cb8f9Jeff Sharkeyimport android.text.TextUtils; 309066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectimport android.util.Printer; 319066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 328a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkeyimport com.android.internal.util.ArrayUtils; 338a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey 349066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectimport java.text.Collator; 358a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkeyimport java.util.Arrays; 369066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectimport java.util.Comparator; 378a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkeyimport java.util.Objects; 389066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 399066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project/** 409066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Information you can retrieve about a particular application. This 419066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * corresponds to information collected from the AndroidManifest.xml's 429066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * <application> tag. 439066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 449066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Projectpublic class ApplicationInfo extends PackageItemInfo implements Parcelable { 459066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 469066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 479066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Default task affinity of all activities in this application. See 489066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * {@link ActivityInfo#taskAffinity} for more information. This comes 499066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * from the "taskAffinity" attribute. 509066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 519066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public String taskAffinity; 529066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 539066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 549066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Optional name of a permission required to be able to access this 559066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * application's components. From the "permission" attribute. 569066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 579066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public String permission; 589066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 599066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 609066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * The name of the process this application should run in. From the 619066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * "process" attribute or, if not set, the same as 629066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * <var>packageName</var>. 639066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 649066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public String processName; 659066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 669066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 679066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Class implementing the Application object. From the "class" 689066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * attribute. 699066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 709066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public String className; 719066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 729066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 739066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * A style resource identifier (in the package's resources) of the 749066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * description of an application. From the "description" attribute 759066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * or, if not set, 0. 769066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 779066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public int descriptionRes; 789066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 799066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 809066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * A style resource identifier (in the package's resources) of the 819066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * default visual theme of the application. From the "theme" attribute 829066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * or, if not set, 0. 839066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 849066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public int theme; 859066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 869066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 879066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Class implementing the Application's manage space 889066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * functionality. From the "manageSpaceActivity" 899066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * attribute. This is an optional attribute and will be null if 90181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate * applications don't specify it in their manifest 919066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 929066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public String manageSpaceActivityName; 939066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 949066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 95181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate * Class implementing the Application's backup functionality. From 96181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate * the "backupAgent" attribute. This is an optional attribute and 97181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate * will be null if the application does not specify it in its manifest. 98181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate * 99181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate * <p>If android:allowBackup is set to false, this attribute is ignored. 100181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate */ 101181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate public String backupAgentName; 1024a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate 1034a627c71ff53a4fca1f961f4b1dcc0461df18a06Christopher Tate /** 104303650c9cdb7cec88e7ec20747b161d9fff10719Matthew Williams * An optional attribute that indicates the app supports automatic backup of app data. 105303650c9cdb7cec88e7ec20747b161d9fff10719Matthew Williams * <p>0 is the default and means the app's entire data folder + managed external storage will 106303650c9cdb7cec88e7ec20747b161d9fff10719Matthew Williams * be backed up; 107303650c9cdb7cec88e7ec20747b161d9fff10719Matthew Williams * Any negative value indicates the app does not support full-data backup, though it may still 108303650c9cdb7cec88e7ec20747b161d9fff10719Matthew Williams * want to participate via the traditional key/value backup API; 109303650c9cdb7cec88e7ec20747b161d9fff10719Matthew Williams * A positive number specifies an xml resource in which the application has defined its backup 110303650c9cdb7cec88e7ec20747b161d9fff10719Matthew Williams * include/exclude criteria. 111303650c9cdb7cec88e7ec20747b161d9fff10719Matthew Williams * <p>If android:allowBackup is set to false, this attribute is ignored. 112303650c9cdb7cec88e7ec20747b161d9fff10719Matthew Williams * 1138a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey * @see android.content.Context#getNoBackupFilesDir() 1148a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey * @see #FLAG_ALLOW_BACKUP 11598fa656f1636525c27a6d91ad4d7a3385292b99aChristopher Tate * 11698fa656f1636525c27a6d91ad4d7a3385292b99aChristopher Tate * @hide 117303650c9cdb7cec88e7ec20747b161d9fff10719Matthew Williams */ 118303650c9cdb7cec88e7ec20747b161d9fff10719Matthew Williams public int fullBackupContent = 0; 119303650c9cdb7cec88e7ec20747b161d9fff10719Matthew Williams 120303650c9cdb7cec88e7ec20747b161d9fff10719Matthew Williams /** 121269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell * The default extra UI options for activities in this application. 122269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell * Set from the {@link android.R.attr#uiOptions} attribute in the 123269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell * activity's manifest. 124269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell */ 125269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell public int uiOptions = 0; 126269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell 127269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell /** 1289066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Value for {@link #flags}: if set, this application is installed in the 1299066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * device's system image. 1309066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 1319066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public static final int FLAG_SYSTEM = 1<<0; 1329066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 1339066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 1349066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Value for {@link #flags}: set to true if this application would like to 1359066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * allow debugging of its 1369066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * code, even when installed on a non-development system. Comes 1379066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * from {@link android.R.styleable#AndroidManifestApplication_debuggable 1389066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * android:debuggable} of the <application> tag. 1399066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 1409066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public static final int FLAG_DEBUGGABLE = 1<<1; 1419066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 1429066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 1439066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Value for {@link #flags}: set to true if this application has code 1449066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * associated with it. Comes 1459066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * from {@link android.R.styleable#AndroidManifestApplication_hasCode 1469066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * android:hasCode} of the <application> tag. 1479066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 1489066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public static final int FLAG_HAS_CODE = 1<<2; 1499066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 1509066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 1519066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Value for {@link #flags}: set to true if this application is persistent. 1529066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Comes from {@link android.R.styleable#AndroidManifestApplication_persistent 1539066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * android:persistent} of the <application> tag. 1549066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 1559066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public static final int FLAG_PERSISTENT = 1<<3; 1569066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 1579066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 158181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate * Value for {@link #flags}: set to true if this application holds the 1599066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * {@link android.Manifest.permission#FACTORY_TEST} permission and the 1609066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * device is running in factory test mode. 1619066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 1629066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public static final int FLAG_FACTORY_TEST = 1<<4; 1639066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 1649066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 1659066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Value for {@link #flags}: default value for the corresponding ActivityInfo flag. 1669066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Comes from {@link android.R.styleable#AndroidManifestApplication_allowTaskReparenting 1679066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * android:allowTaskReparenting} of the <application> tag. 1689066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 1699066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public static final int FLAG_ALLOW_TASK_REPARENTING = 1<<5; 1709066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 1719066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 1729066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Value for {@link #flags}: default value for the corresponding ActivityInfo flag. 1739066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Comes from {@link android.R.styleable#AndroidManifestApplication_allowClearUserData 1749066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * android:allowClearUserData} of the <application> tag. 1759066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 1769066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public static final int FLAG_ALLOW_CLEAR_USER_DATA = 1<<6; 1779066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 1789066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 179851a54143c15a1c33361efae2db3f7f45059b472Dianne Hackborn * Value for {@link #flags}: this is set if this application has been 1808de29ca4f3ce2be808eb17cd8739bb533d968a37Kweku Adams * installed as an update to a built-in system application. 1819066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 1829066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public static final int FLAG_UPDATED_SYSTEM_APP = 1<<7; 183851a54143c15a1c33361efae2db3f7f45059b472Dianne Hackborn 184851a54143c15a1c33361efae2db3f7f45059b472Dianne Hackborn /** 185354cd3ce2213a1032d9138ea6fa1420f055ab08cSvet Ganov * Value for {@link #flags}: this is set if the application has specified 1867f2054392e9957d3ba8579ef08c29cfb27df564eDianne Hackborn * {@link android.R.styleable#AndroidManifestApplication_testOnly 1877f2054392e9957d3ba8579ef08c29cfb27df564eDianne Hackborn * android:testOnly} to be true. 188851a54143c15a1c33361efae2db3f7f45059b472Dianne Hackborn */ 189a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn public static final int FLAG_TEST_ONLY = 1<<8; 190ade3ecad94d1f4431576f53bae26c35efbf7a2c9Dianne Hackborn 191ade3ecad94d1f4431576f53bae26c35efbf7a2c9Dianne Hackborn /** 1925c1e00b14d2ef10ec76abf3e951fa8003a67f558Dianne Hackborn * Value for {@link #flags}: true when the application's window can be 193723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn * reduced in size for smaller screens. Corresponds to 194723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn * {@link android.R.styleable#AndroidManifestSupportsScreens_smallScreens 195723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn * android:smallScreens}. 1965c1e00b14d2ef10ec76abf3e951fa8003a67f558Dianne Hackborn */ 197723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn public static final int FLAG_SUPPORTS_SMALL_SCREENS = 1<<9; 198723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn 199723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn /** 200723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn * Value for {@link #flags}: true when the application's window can be 201723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn * displayed on normal screens. Corresponds to 202723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn * {@link android.R.styleable#AndroidManifestSupportsScreens_normalScreens 203723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn * android:normalScreens}. 204723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn */ 205723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn public static final int FLAG_SUPPORTS_NORMAL_SCREENS = 1<<10; 206723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn 207723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn /** 208723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn * Value for {@link #flags}: true when the application's window can be 209723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn * increased in size for larger screens. Corresponds to 210723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn * {@link android.R.styleable#AndroidManifestSupportsScreens_largeScreens 21122ec9ab3b881d71866279ba9363c644a9e4e7164Dianne Hackborn * android:largeScreens}. 212723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn */ 213723738cfaec3dd7b0fe152c872c41bebf94074c4Dianne Hackborn public static final int FLAG_SUPPORTS_LARGE_SCREENS = 1<<11; 2145c1e00b14d2ef10ec76abf3e951fa8003a67f558Dianne Hackborn 2155c1e00b14d2ef10ec76abf3e951fa8003a67f558Dianne Hackborn /** 216c4db95c077f826585d20be2f3db4043c53d30cf5Dianne Hackborn * Value for {@link #flags}: true when the application knows how to adjust 217c4db95c077f826585d20be2f3db4043c53d30cf5Dianne Hackborn * its UI for different screen sizes. Corresponds to 218c4db95c077f826585d20be2f3db4043c53d30cf5Dianne Hackborn * {@link android.R.styleable#AndroidManifestSupportsScreens_resizeable 219c4db95c077f826585d20be2f3db4043c53d30cf5Dianne Hackborn * android:resizeable}. 220c4db95c077f826585d20be2f3db4043c53d30cf5Dianne Hackborn */ 221c4db95c077f826585d20be2f3db4043c53d30cf5Dianne Hackborn public static final int FLAG_RESIZEABLE_FOR_SCREENS = 1<<12; 222c4db95c077f826585d20be2f3db4043c53d30cf5Dianne Hackborn 223c4db95c077f826585d20be2f3db4043c53d30cf5Dianne Hackborn /** 22411b822d2a91ea17c34c0cb1c11e80a9a30d72864Dianne Hackborn * Value for {@link #flags}: true when the application knows how to 22511b822d2a91ea17c34c0cb1c11e80a9a30d72864Dianne Hackborn * accomodate different screen densities. Corresponds to 22611b822d2a91ea17c34c0cb1c11e80a9a30d72864Dianne Hackborn * {@link android.R.styleable#AndroidManifestSupportsScreens_anyDensity 22711b822d2a91ea17c34c0cb1c11e80a9a30d72864Dianne Hackborn * android:anyDensity}. 22811b822d2a91ea17c34c0cb1c11e80a9a30d72864Dianne Hackborn */ 22911b822d2a91ea17c34c0cb1c11e80a9a30d72864Dianne Hackborn public static final int FLAG_SUPPORTS_SCREEN_DENSITIES = 1<<13; 23011b822d2a91ea17c34c0cb1c11e80a9a30d72864Dianne Hackborn 23111b822d2a91ea17c34c0cb1c11e80a9a30d72864Dianne Hackborn /** 23223085b781e145ed684e7270af1d5ced6800b8effBen Cheng * Value for {@link #flags}: set to true if this application would like to 23323085b781e145ed684e7270af1d5ced6800b8effBen Cheng * request the VM to operate under the safe mode. Comes from 234ef3f5ddc2137ed99e41f00441b688fb56b855179Ben Cheng * {@link android.R.styleable#AndroidManifestApplication_vmSafeMode 235ef3f5ddc2137ed99e41f00441b688fb56b855179Ben Cheng * android:vmSafeMode} of the <application> tag. 23623085b781e145ed684e7270af1d5ced6800b8effBen Cheng */ 23723085b781e145ed684e7270af1d5ced6800b8effBen Cheng public static final int FLAG_VM_SAFE_MODE = 1<<14; 23823085b781e145ed684e7270af1d5ced6800b8effBen Cheng 23923085b781e145ed684e7270af1d5ced6800b8effBen Cheng /** 2403de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * Value for {@link #flags}: set to <code>false</code> if the application does not wish 2413de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * to permit any OS-driven backups of its data; <code>true</code> otherwise. 242181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate * 2433de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * <p>Comes from the 2443de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * {@link android.R.styleable#AndroidManifestApplication_allowBackup android:allowBackup} 2453de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * attribute of the <application> tag. 246181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate */ 24723085b781e145ed684e7270af1d5ced6800b8effBen Cheng public static final int FLAG_ALLOW_BACKUP = 1<<15; 2485e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate 2495e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate /** 2503de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * Value for {@link #flags}: set to <code>false</code> if the application must be kept 2513de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * in memory following a full-system restore operation; <code>true</code> otherwise. 2523de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * Ordinarily, during a full system restore operation each application is shut down 2533de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * following execution of its agent's onRestore() method. Setting this attribute to 2543de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * <code>false</code> prevents this. Most applications will not need to set this attribute. 2555e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate * 2563de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * <p>If 2573de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * {@link android.R.styleable#AndroidManifestApplication_allowBackup android:allowBackup} 2583de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * is set to <code>false</code> or no 2593de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * {@link android.R.styleable#AndroidManifestApplication_backupAgent android:backupAgent} 2605e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate * is specified, this flag will be ignored. 2615e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate * 2623de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * <p>Comes from the 2633de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * {@link android.R.styleable#AndroidManifestApplication_killAfterRestore android:killAfterRestore} 2643de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * attribute of the <application> tag. 2655e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate */ 26623085b781e145ed684e7270af1d5ced6800b8effBen Cheng public static final int FLAG_KILL_AFTER_RESTORE = 1<<16; 2675e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate 2685e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate /** 2693de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * Value for {@link #flags}: Set to <code>true</code> if the application's backup 2703de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * agent claims to be able to handle restore data even "from the future," 2713de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * i.e. from versions of the application with a versionCode greater than 2723de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * the one currently installed on the device. <i>Use with caution!</i> By default 2733de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * this attribute is <code>false</code> and the Backup Manager will ensure that data 2743de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * from "future" versions of the application are never supplied during a restore operation. 2755e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate * 2763de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * <p>If 2773de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * {@link android.R.styleable#AndroidManifestApplication_allowBackup android:allowBackup} 2783de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * is set to <code>false</code> or no 2793de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * {@link android.R.styleable#AndroidManifestApplication_backupAgent android:backupAgent} 2805e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate * is specified, this flag will be ignored. 2815e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate * 2823de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * <p>Comes from the 2833de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * {@link android.R.styleable#AndroidManifestApplication_restoreAnyVersion android:restoreAnyVersion} 2843de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate * attribute of the <application> tag. 2855e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate */ 2863de55bcd34afd5871816526294f9514d1adf3fe5Christopher Tate public static final int FLAG_RESTORE_ANY_VERSION = 1<<17; 2875e1ab335e6e8fbfa19c64d53880a22f472010953Christopher Tate 288181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate /** 2893202d380226043fa665df3c92252f791f8c52d55Dianne Hackborn * Value for {@link #flags}: Set to true if the application is 2903202d380226043fa665df3c92252f791f8c52d55Dianne Hackborn * currently installed on external/removable/unprotected storage. Such 2913202d380226043fa665df3c92252f791f8c52d55Dianne Hackborn * applications may not be available if their storage is not currently 2923202d380226043fa665df3c92252f791f8c52d55Dianne Hackborn * mounted. When the storage it is on is not available, it will look like 2933202d380226043fa665df3c92252f791f8c52d55Dianne Hackborn * the application has been uninstalled (its .apk is no longer available) 2943202d380226043fa665df3c92252f791f8c52d55Dianne Hackborn * but its persistent data is not removed. 295af8e9f4805643f90a9dc0ecfa119e0a860c12f8aSuchi Amalapurapu */ 29694c567e1e344d49168603f5a0560215a4ce735e6Dianne Hackborn public static final int FLAG_EXTERNAL_STORAGE = 1<<18; 297af8e9f4805643f90a9dc0ecfa119e0a860c12f8aSuchi Amalapurapu 298af8e9f4805643f90a9dc0ecfa119e0a860c12f8aSuchi Amalapurapu /** 29914cee9f688c32d63d8521188e7422811629bb7c2Dianne Hackborn * Value for {@link #flags}: true when the application's window can be 30014cee9f688c32d63d8521188e7422811629bb7c2Dianne Hackborn * increased in size for extra large screens. Corresponds to 30114cee9f688c32d63d8521188e7422811629bb7c2Dianne Hackborn * {@link android.R.styleable#AndroidManifestSupportsScreens_xlargeScreens 30222ec9ab3b881d71866279ba9363c644a9e4e7164Dianne Hackborn * android:xlargeScreens}. 30314cee9f688c32d63d8521188e7422811629bb7c2Dianne Hackborn */ 30414cee9f688c32d63d8521188e7422811629bb7c2Dianne Hackborn public static final int FLAG_SUPPORTS_XLARGE_SCREENS = 1<<19; 30514cee9f688c32d63d8521188e7422811629bb7c2Dianne Hackborn 30614cee9f688c32d63d8521188e7422811629bb7c2Dianne Hackborn /** 3073b81bc18bb661c02ad8074c39dab16644c1e65d0Dianne Hackborn * Value for {@link #flags}: true when the application has requested a 3083b81bc18bb661c02ad8074c39dab16644c1e65d0Dianne Hackborn * large heap for its processes. Corresponds to 3093b81bc18bb661c02ad8074c39dab16644c1e65d0Dianne Hackborn * {@link android.R.styleable#AndroidManifestApplication_largeHeap 3103b81bc18bb661c02ad8074c39dab16644c1e65d0Dianne Hackborn * android:largeHeap}. 311a3cdaa5337fa573c4c61770195d6232c2e587090Jason parks */ 3123b81bc18bb661c02ad8074c39dab16644c1e65d0Dianne Hackborn public static final int FLAG_LARGE_HEAP = 1<<20; 313a3cdaa5337fa573c4c61770195d6232c2e587090Jason parks 314a3cdaa5337fa573c4c61770195d6232c2e587090Jason parks /** 315e7f972122db87dc54e41ed1a6e417534d43bca3aDianne Hackborn * Value for {@link #flags}: true if this application's package is in 316e7f972122db87dc54e41ed1a6e417534d43bca3aDianne Hackborn * the stopped state. 317e7f972122db87dc54e41ed1a6e417534d43bca3aDianne Hackborn */ 318e7f972122db87dc54e41ed1a6e417534d43bca3aDianne Hackborn public static final int FLAG_STOPPED = 1<<21; 319e7f972122db87dc54e41ed1a6e417534d43bca3aDianne Hackborn 320e7f972122db87dc54e41ed1a6e417534d43bca3aDianne Hackborn /** 32159dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio * Value for {@link #flags}: true when the application is willing to support 32259dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio * RTL (right to left). All activities will inherit this value. 32359dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio * 32459dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio * Set from the {@link android.R.attr#supportsRtl} attribute in the 32559dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio * activity's manifest. 32659dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio * 32759dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio * Default value is false (no support for RTL). 32859dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio */ 32959dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio public static final int FLAG_SUPPORTS_RTL = 1<<22; 33059dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio 33159dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio /** 3327767eac3232ba2fb9828766813cdb481d6a97584Dianne Hackborn * Value for {@link #flags}: true if the application is currently 3337767eac3232ba2fb9828766813cdb481d6a97584Dianne Hackborn * installed for the calling user. 3347767eac3232ba2fb9828766813cdb481d6a97584Dianne Hackborn */ 3357767eac3232ba2fb9828766813cdb481d6a97584Dianne Hackborn public static final int FLAG_INSTALLED = 1<<23; 3367767eac3232ba2fb9828766813cdb481d6a97584Dianne Hackborn 3377767eac3232ba2fb9828766813cdb481d6a97584Dianne Hackborn /** 3385e03e2ca7d25b899b129baad2dd5eca6bf99d88aDianne Hackborn * Value for {@link #flags}: true if the application only has its 3395e03e2ca7d25b899b129baad2dd5eca6bf99d88aDianne Hackborn * data installed; the application package itself does not currently 3405e03e2ca7d25b899b129baad2dd5eca6bf99d88aDianne Hackborn * exist on the device. 3415e03e2ca7d25b899b129baad2dd5eca6bf99d88aDianne Hackborn */ 3425e03e2ca7d25b899b129baad2dd5eca6bf99d88aDianne Hackborn public static final int FLAG_IS_DATA_ONLY = 1<<24; 3435e03e2ca7d25b899b129baad2dd5eca6bf99d88aDianne Hackborn 3445e03e2ca7d25b899b129baad2dd5eca6bf99d88aDianne Hackborn /** 34512d0b4cd960e18493b1dc237adbfabed432c9df5Jose Lima * Value for {@link #flags}: true if the application was declared to be a game, or 34612d0b4cd960e18493b1dc237adbfabed432c9df5Jose Lima * false if it is a non-game application. 34712d0b4cd960e18493b1dc237adbfabed432c9df5Jose Lima */ 34812d0b4cd960e18493b1dc237adbfabed432c9df5Jose Lima public static final int FLAG_IS_GAME = 1<<25; 34912d0b4cd960e18493b1dc237adbfabed432c9df5Jose Lima 35012d0b4cd960e18493b1dc237adbfabed432c9df5Jose Lima /** 351d1de2567c6758e81a87c0f5eff9ff53ffebab134Christopher Tate * Value for {@link #flags}: {@code true} if the application asks that only 352d1de2567c6758e81a87c0f5eff9ff53ffebab134Christopher Tate * full-data streaming backups of its data be performed even though it defines 353d1de2567c6758e81a87c0f5eff9ff53ffebab134Christopher Tate * a {@link android.app.backup.BackupAgent BackupAgent}, which normally 354d1de2567c6758e81a87c0f5eff9ff53ffebab134Christopher Tate * indicates that the app will manage its backed-up data via incremental 355d1de2567c6758e81a87c0f5eff9ff53ffebab134Christopher Tate * key/value updates. 356d1de2567c6758e81a87c0f5eff9ff53ffebab134Christopher Tate */ 357d1de2567c6758e81a87c0f5eff9ff53ffebab134Christopher Tate public static final int FLAG_FULL_BACKUP_ONLY = 1<<26; 358d1de2567c6758e81a87c0f5eff9ff53ffebab134Christopher Tate 359d1de2567c6758e81a87c0f5eff9ff53ffebab134Christopher Tate /** 36001a959d60a2c5f04ab240513a853d7845b3a309eAlex Klyubin * Value for {@link #flags}: {@code true} if the application may use cleartext network traffic 36101a959d60a2c5f04ab240513a853d7845b3a309eAlex Klyubin * (e.g., HTTP rather than HTTPS; WebSockets rather than WebSockets Secure; XMPP, IMAP, STMP 36201a959d60a2c5f04ab240513a853d7845b3a309eAlex Klyubin * without STARTTLS or TLS). If {@code false}, the app declares that it does not intend to use 36301a959d60a2c5f04ab240513a853d7845b3a309eAlex Klyubin * cleartext network traffic, in which case platform components (e.g., HTTP stacks, 364fbf4599a8edfc31585f207c434d35200a03657b4Alex Klyubin * {@code DownloadManager}, {@code MediaPlayer}) will refuse app's requests to use cleartext 365fbf4599a8edfc31585f207c434d35200a03657b4Alex Klyubin * traffic. Third-party libraries are encouraged to honor this flag as well. 366fbf4599a8edfc31585f207c434d35200a03657b4Alex Klyubin * 367fbf4599a8edfc31585f207c434d35200a03657b4Alex Klyubin * <p>NOTE: {@code WebView} does not honor this flag. 368fbf4599a8edfc31585f207c434d35200a03657b4Alex Klyubin * 3692df5ba777a6ad271b1af6d9ef18d79e2aca5f105Chad Brubaker * <p>This flag is ignored on Android N and above if an Android Network Security Config is 3702df5ba777a6ad271b1af6d9ef18d79e2aca5f105Chad Brubaker * present. 3712df5ba777a6ad271b1af6d9ef18d79e2aca5f105Chad Brubaker * 372fbf4599a8edfc31585f207c434d35200a03657b4Alex Klyubin * <p>This flag comes from 373fbf4599a8edfc31585f207c434d35200a03657b4Alex Klyubin * {@link android.R.styleable#AndroidManifestApplication_usesCleartextTraffic 374fbf4599a8edfc31585f207c434d35200a03657b4Alex Klyubin * android:usesCleartextTraffic} of the <application> tag. 37501a959d60a2c5f04ab240513a853d7845b3a309eAlex Klyubin */ 37601a959d60a2c5f04ab240513a853d7845b3a309eAlex Klyubin public static final int FLAG_USES_CLEARTEXT_TRAFFIC = 1<<27; 37701a959d60a2c5f04ab240513a853d7845b3a309eAlex Klyubin 37801a959d60a2c5f04ab240513a853d7845b3a309eAlex Klyubin /** 379ff193d642eea7128faad837d19e347cd25212c27Dmitriy Ivanov * When set installer extracts native libs from .apk files. 380ff193d642eea7128faad837d19e347cd25212c27Dmitriy Ivanov */ 381ff193d642eea7128faad837d19e347cd25212c27Dmitriy Ivanov public static final int FLAG_EXTRACT_NATIVE_LIBS = 1<<28; 382ff193d642eea7128faad837d19e347cd25212c27Dmitriy Ivanov 383ff193d642eea7128faad837d19e347cd25212c27Dmitriy Ivanov /** 384d70b9e7aea9c7b0691f3ac1326752f91d5049458Alan Viverette * Value for {@link #flags}: {@code true} when the application's rendering 385d70b9e7aea9c7b0691f3ac1326752f91d5049458Alan Viverette * should be hardware accelerated. 386d70b9e7aea9c7b0691f3ac1326752f91d5049458Alan Viverette */ 387d70b9e7aea9c7b0691f3ac1326752f91d5049458Alan Viverette public static final int FLAG_HARDWARE_ACCELERATED = 1<<29; 388d70b9e7aea9c7b0691f3ac1326752f91d5049458Alan Viverette 389d70b9e7aea9c7b0691f3ac1326752f91d5049458Alan Viverette /** 3901e2839188fb49575b86646d3aadb355c81ef9cc5Andrei Stingaceanu * Value for {@link #flags}: true if this application's package is in 3911e2839188fb49575b86646d3aadb355c81ef9cc5Andrei Stingaceanu * the suspended state. 3921e2839188fb49575b86646d3aadb355c81ef9cc5Andrei Stingaceanu */ 3931e2839188fb49575b86646d3aadb355c81ef9cc5Andrei Stingaceanu public static final int FLAG_SUSPENDED = 1<<30; 3941e2839188fb49575b86646d3aadb355c81ef9cc5Andrei Stingaceanu 3951e2839188fb49575b86646d3aadb355c81ef9cc5Andrei Stingaceanu /** 396b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * Value for {@link #flags}: true if code from this application will need to be 397b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * loaded into other applications' processes. On devices that support multiple 398b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * instruction sets, this implies the code might be loaded into a process that's 399b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * using any of the devices supported instruction sets. 400b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * 401b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * <p> The system might treat such applications specially, for eg., by 402b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * extracting the application's native libraries for all supported instruction 403b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * sets or by compiling the application's dex code for all supported instruction 404b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * sets. 405b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin */ 406b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin public static final int FLAG_MULTIARCH = 1 << 31; 407b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin 408b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin /** 409b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * Flags associated with the application. Any combination of 410b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * {@link #FLAG_SYSTEM}, {@link #FLAG_DEBUGGABLE}, {@link #FLAG_HAS_CODE}, 411b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * {@link #FLAG_PERSISTENT}, {@link #FLAG_FACTORY_TEST}, and 412b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * {@link #FLAG_ALLOW_TASK_REPARENTING} 413b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * {@link #FLAG_ALLOW_CLEAR_USER_DATA}, {@link #FLAG_UPDATED_SYSTEM_APP}, 414b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * {@link #FLAG_TEST_ONLY}, {@link #FLAG_SUPPORTS_SMALL_SCREENS}, 415b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * {@link #FLAG_SUPPORTS_NORMAL_SCREENS}, 416b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * {@link #FLAG_SUPPORTS_LARGE_SCREENS}, {@link #FLAG_SUPPORTS_XLARGE_SCREENS}, 417b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * {@link #FLAG_RESIZEABLE_FOR_SCREENS}, 418b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * {@link #FLAG_SUPPORTS_SCREEN_DENSITIES}, {@link #FLAG_VM_SAFE_MODE}, 419b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * {@link #FLAG_ALLOW_BACKUP}, {@link #FLAG_KILL_AFTER_RESTORE}, 420b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * {@link #FLAG_RESTORE_ANY_VERSION}, {@link #FLAG_EXTERNAL_STORAGE}, 421b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * {@link #FLAG_LARGE_HEAP}, {@link #FLAG_STOPPED}, 422b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * {@link #FLAG_SUPPORTS_RTL}, {@link #FLAG_INSTALLED}, 423b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * {@link #FLAG_IS_DATA_ONLY}, {@link #FLAG_IS_GAME}, 4247cb000ff56babf18d39ab0aa31dfc5dcac0bf11eAlex Klyubin * {@link #FLAG_FULL_BACKUP_ONLY}, {@link #FLAG_USES_CLEARTEXT_TRAFFIC}, 4257cb000ff56babf18d39ab0aa31dfc5dcac0bf11eAlex Klyubin * {@link #FLAG_MULTIARCH}. 426b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin */ 427b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin public int flags = 0; 428b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin 429b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin /** 430b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * Value for {@link #privateFlags}: true if the application is hidden via restrictions and for 431589a1bc0b00e570db079b4b157f60229ad8ef8f9Narayan Kamath * most purposes is considered as not installed. 432589a1bc0b00e570db079b4b157f60229ad8ef8f9Narayan Kamath * {@hide} 433589a1bc0b00e570db079b4b157f60229ad8ef8f9Narayan Kamath */ 434b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin public static final int PRIVATE_FLAG_HIDDEN = 1<<0; 435589a1bc0b00e570db079b4b157f60229ad8ef8f9Narayan Kamath 436589a1bc0b00e570db079b4b157f60229ad8ef8f9Narayan Kamath /** 437b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * Value for {@link #privateFlags}: set to <code>true</code> if the application 438589a1bc0b00e570db079b4b157f60229ad8ef8f9Narayan Kamath * has reported that it is heavy-weight, and thus can not participate in 439589a1bc0b00e570db079b4b157f60229ad8ef8f9Narayan Kamath * the normal application lifecycle. 440589a1bc0b00e570db079b4b157f60229ad8ef8f9Narayan Kamath * 441589a1bc0b00e570db079b4b157f60229ad8ef8f9Narayan Kamath * <p>Comes from the 442589a1bc0b00e570db079b4b157f60229ad8ef8f9Narayan Kamath * android.R.styleable#AndroidManifestApplication_cantSaveState 443589a1bc0b00e570db079b4b157f60229ad8ef8f9Narayan Kamath * attribute of the <application> tag. 4444ce55a3987c14b939cd416e24116c6ab3c760b82Christopher Tate * 4454ce55a3987c14b939cd416e24116c6ab3c760b82Christopher Tate * {@hide} 4464ce55a3987c14b939cd416e24116c6ab3c760b82Christopher Tate */ 447b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin public static final int PRIVATE_FLAG_CANT_SAVE_STATE = 1<<1; 4484ce55a3987c14b939cd416e24116c6ab3c760b82Christopher Tate 4494ce55a3987c14b939cd416e24116c6ab3c760b82Christopher Tate /** 450b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * Value for {@link #privateFlags}: Set to true if the application has been 4513202d380226043fa665df3c92252f791f8c52d55Dianne Hackborn * installed using the forward lock option. 452af8e9f4805643f90a9dc0ecfa119e0a860c12f8aSuchi Amalapurapu * 45375e616e8203a540c860888ccff73ffaa87498c5eDianne Hackborn * NOTE: DO NOT CHANGE THIS VALUE! It is saved in packages.xml. 454b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * 455af8e9f4805643f90a9dc0ecfa119e0a860c12f8aSuchi Amalapurapu * {@hide} 456af8e9f4805643f90a9dc0ecfa119e0a860c12f8aSuchi Amalapurapu */ 457b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin public static final int PRIVATE_FLAG_FORWARD_LOCK = 1<<2; 458af8e9f4805643f90a9dc0ecfa119e0a860c12f8aSuchi Amalapurapu 459af8e9f4805643f90a9dc0ecfa119e0a860c12f8aSuchi Amalapurapu /** 460b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * Value for {@link #privateFlags}: set to {@code true} if the application 461589a1bc0b00e570db079b4b157f60229ad8ef8f9Narayan Kamath * is permitted to hold privileged permissions. 46202486b1327e3007c62d253dd89ba9db1852b87f8Dianne Hackborn * 46302486b1327e3007c62d253dd89ba9db1852b87f8Dianne Hackborn * {@hide} 46402486b1327e3007c62d253dd89ba9db1852b87f8Dianne Hackborn */ 465b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin public static final int PRIVATE_FLAG_PRIVILEGED = 1<<3; 46602486b1327e3007c62d253dd89ba9db1852b87f8Dianne Hackborn 46702486b1327e3007c62d253dd89ba9db1852b87f8Dianne Hackborn /** 4682acf063da08dfff69f184c9a6a90a7a5fe60d818Svet Ganov * Value for {@link #privateFlags}: {@code true} if the application has any IntentFiler 4692acf063da08dfff69f184c9a6a90a7a5fe60d818Svet Ganov * with some data URI using HTTP or HTTPS with an associated VIEW action. 470d3d8a32217d5a2d895917cfe7e1645935d228494Fabrice Di Meglio * 471d3d8a32217d5a2d895917cfe7e1645935d228494Fabrice Di Meglio * {@hide} 472d3d8a32217d5a2d895917cfe7e1645935d228494Fabrice Di Meglio */ 473d3d8a32217d5a2d895917cfe7e1645935d228494Fabrice Di Meglio public static final int PRIVATE_FLAG_HAS_DOMAIN_URLS = 1<<4; 474d3d8a32217d5a2d895917cfe7e1645935d228494Fabrice Di Meglio 475d3d8a32217d5a2d895917cfe7e1645935d228494Fabrice Di Meglio /** 4768a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey * When set, the default data storage directory for this app is pointed at 4778a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey * the device-protected location. 47815447798a38d2b5acb1998731340255f4203f294Jeff Sharkey * 47915447798a38d2b5acb1998731340255f4203f294Jeff Sharkey * @hide 48015447798a38d2b5acb1998731340255f4203f294Jeff Sharkey */ 4818a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey public static final int PRIVATE_FLAG_DEFAULT_TO_DEVICE_PROTECTED_STORAGE = 1 << 5; 48215447798a38d2b5acb1998731340255f4203f294Jeff Sharkey 48315447798a38d2b5acb1998731340255f4203f294Jeff Sharkey /** 4848a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey * When set, assume that all components under the given app are direct boot 485f9fc6d6cc05595241bc7ced6d4cab97b45f9b901Jeff Sharkey * aware, unless otherwise specified. 486f9fc6d6cc05595241bc7ced6d4cab97b45f9b901Jeff Sharkey * 487f9fc6d6cc05595241bc7ced6d4cab97b45f9b901Jeff Sharkey * @hide 488f9fc6d6cc05595241bc7ced6d4cab97b45f9b901Jeff Sharkey */ 4898a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey public static final int PRIVATE_FLAG_DIRECT_BOOT_AWARE = 1 << 6; 490f9fc6d6cc05595241bc7ced6d4cab97b45f9b901Jeff Sharkey 491f9fc6d6cc05595241bc7ced6d4cab97b45f9b901Jeff Sharkey /** 492a4407bfceef1bdb7eb4d83990722a61082d926c9Jeff Vander Stoep * Value for {@link #privateFlags}: set to {@code true} if the application 493a4407bfceef1bdb7eb4d83990722a61082d926c9Jeff Vander Stoep * is AutoPlay. 494a4407bfceef1bdb7eb4d83990722a61082d926c9Jeff Vander Stoep * 495a4407bfceef1bdb7eb4d83990722a61082d926c9Jeff Vander Stoep * {@hide} 496a4407bfceef1bdb7eb4d83990722a61082d926c9Jeff Vander Stoep */ 4979edb7bf4c6f9c59d0c469798d5936019e8199043Jeff Vander Stoep public static final int PRIVATE_FLAG_AUTOPLAY = 1 << 7; 498a4407bfceef1bdb7eb4d83990722a61082d926c9Jeff Vander Stoep 499a4407bfceef1bdb7eb4d83990722a61082d926c9Jeff Vander Stoep /** 5008a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey * When set, at least one component inside this application is direct boot 5018a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey * aware. 5028924e8759f9a8cffb5ad538ca40a7826793aac07Jeff Sharkey * 5038924e8759f9a8cffb5ad538ca40a7826793aac07Jeff Sharkey * @hide 5048924e8759f9a8cffb5ad538ca40a7826793aac07Jeff Sharkey */ 5058a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey public static final int PRIVATE_FLAG_PARTIALLY_DIRECT_BOOT_AWARE = 1 << 8; 5068924e8759f9a8cffb5ad538ca40a7826793aac07Jeff Sharkey 5078924e8759f9a8cffb5ad538ca40a7826793aac07Jeff Sharkey /** 508f99104dadddb8d7587aaa607821d284e214eb997Fyodor Kupolov * Value for {@link #flags}: {@code true} if the application is blocked via restrictions 509f99104dadddb8d7587aaa607821d284e214eb997Fyodor Kupolov * and for most purposes is considered as not installed. 510f99104dadddb8d7587aaa607821d284e214eb997Fyodor Kupolov * {@hide} 511f99104dadddb8d7587aaa607821d284e214eb997Fyodor Kupolov */ 512f99104dadddb8d7587aaa607821d284e214eb997Fyodor Kupolov public static final int PRIVATE_FLAG_EPHEMERAL = 1 << 9; 513f99104dadddb8d7587aaa607821d284e214eb997Fyodor Kupolov 514f99104dadddb8d7587aaa607821d284e214eb997Fyodor Kupolov /** 515bdbc9692c7cb365d9d3f239baa2377724a6f7bc8Fyodor Kupolov * When set, signals that the application is required for the system user and should not be 516bdbc9692c7cb365d9d3f239baa2377724a6f7bc8Fyodor Kupolov * uninstalled. 517bdbc9692c7cb365d9d3f239baa2377724a6f7bc8Fyodor Kupolov * 518bdbc9692c7cb365d9d3f239baa2377724a6f7bc8Fyodor Kupolov * @hide 519bdbc9692c7cb365d9d3f239baa2377724a6f7bc8Fyodor Kupolov */ 520bdbc9692c7cb365d9d3f239baa2377724a6f7bc8Fyodor Kupolov public static final int PRIVATE_FLAG_REQUIRED_FOR_SYSTEM_USER = 1 << 10; 521bdbc9692c7cb365d9d3f239baa2377724a6f7bc8Fyodor Kupolov 522bdbc9692c7cb365d9d3f239baa2377724a6f7bc8Fyodor Kupolov /** 5236afdf91b179afd4e4ae9aa0e520961e57638d637Wale Ogunwale * When set, the activities associated with this application are resizeable by default. 5246afdf91b179afd4e4ae9aa0e520961e57638d637Wale Ogunwale * @see android.R.styleable#AndroidManifestActivity_resizeableActivity 5256afdf91b179afd4e4ae9aa0e520961e57638d637Wale Ogunwale * 5266afdf91b179afd4e4ae9aa0e520961e57638d637Wale Ogunwale * @hide 5276afdf91b179afd4e4ae9aa0e520961e57638d637Wale Ogunwale */ 5286afdf91b179afd4e4ae9aa0e520961e57638d637Wale Ogunwale public static final int PRIVATE_FLAG_RESIZEABLE_ACTIVITIES = 1 << 11; 5296afdf91b179afd4e4ae9aa0e520961e57638d637Wale Ogunwale 5306afdf91b179afd4e4ae9aa0e520961e57638d637Wale Ogunwale /** 53143fbc5f898a488dcfa9ecf3030f05f27ce5428f9Christopher Tate * Value for {@link #privateFlags}: {@code true} means the OS should go ahead and 53243fbc5f898a488dcfa9ecf3030f05f27ce5428f9Christopher Tate * run full-data backup operations for the app even when it is in a 53343fbc5f898a488dcfa9ecf3030f05f27ce5428f9Christopher Tate * foreground-equivalent run state. Defaults to {@code false} if unspecified. 53443fbc5f898a488dcfa9ecf3030f05f27ce5428f9Christopher Tate * @hide 53543fbc5f898a488dcfa9ecf3030f05f27ce5428f9Christopher Tate */ 53643fbc5f898a488dcfa9ecf3030f05f27ce5428f9Christopher Tate public static final int PRIVATE_FLAG_BACKUP_IN_FOREGROUND = 1 << 12; 53743fbc5f898a488dcfa9ecf3030f05f27ce5428f9Christopher Tate 53843fbc5f898a488dcfa9ecf3030f05f27ce5428f9Christopher Tate /** 539b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * Private/hidden flags. See {@code PRIVATE_FLAG_...} constants. 540b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin * {@hide} 5419066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 542b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin public int privateFlags; 543655d0e2029e6ae77a47e922dce4c4989818b8dd1Amith Yamasani 5449066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 545df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn * The required smallest screen width the application can run on. If 0, 546df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn * nothing has been specified. Comes from 547df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn * {@link android.R.styleable#AndroidManifestSupportsScreens_requiresSmallestWidthDp 548df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn * android:requiresSmallestWidthDp} attribute of the <supports-screens> tag. 549df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn */ 550df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn public int requiresSmallestWidthDp = 0; 551df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn 552df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn /** 553df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn * The maximum smallest screen width the application is designed for. If 0, 554df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn * nothing has been specified. Comes from 555df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn * {@link android.R.styleable#AndroidManifestSupportsScreens_compatibleWidthLimitDp 556df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn * android:compatibleWidthLimitDp} attribute of the <supports-screens> tag. 557df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn */ 558df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn public int compatibleWidthLimitDp = 0; 559df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn 560df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn /** 5612762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn * The maximum smallest screen width the application will work on. If 0, 5622762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn * nothing has been specified. Comes from 5632762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn * {@link android.R.styleable#AndroidManifestSupportsScreens_largestWidthLimitDp 5642762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn * android:largestWidthLimitDp} attribute of the <supports-screens> tag. 5652762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn */ 5662762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn public int largestWidthLimitDp = 0; 5672762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn 568d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey /** {@hide} */ 569b2b9ab8354da1485178cd8d8e9d89ac915b3f269Jeff Sharkey public String volumeUuid; 570b2b9ab8354da1485178cd8d8e9d89ac915b3f269Jeff Sharkey /** {@hide} */ 571d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey public String scanSourceDir; 572d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey /** {@hide} */ 573d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey public String scanPublicSourceDir; 574d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey 5752762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn /** 5768a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey * Full path to the base APK for this application. 5779066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 5789066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public String sourceDir; 5799066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 5809066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 5818a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey * Full path to the publicly available parts of {@link #sourceDir}, 5828a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey * including resources and manifest. This may be different from 5838a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey * {@link #sourceDir} if an application is forward locked. 5849066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 5859066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public String publicSourceDir; 5868a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey 5878a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey /** 5888a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey * Full paths to zero or more split APKs that, when combined with the base 5898a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey * APK defined in {@link #sourceDir}, form a complete application. 5908a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey */ 5918a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey public String[] splitSourceDirs; 5928a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey 5938a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey /** 5948a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey * Full path to the publicly available parts of {@link #splitSourceDirs}, 5958a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey * including resources and manifest. This may be different from 5968a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey * {@link #splitSourceDirs} if an application is forward locked. 5978a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey */ 5988a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey public String[] splitPublicSourceDirs; 5998a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey 6009066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 601d1ab01682b136b586aac94334f976f03c762b3c7Kenny Root * Full paths to the locations of extra resource packages this application 602d1ab01682b136b586aac94334f976f03c762b3c7Kenny Root * uses. This field is only used if there are extra resource packages, 603d1ab01682b136b586aac94334f976f03c762b3c7Kenny Root * otherwise it is null. 604ace5a3fbfbf1b41905410925f1ea007040a7a675Kenny Root * 605ace5a3fbfbf1b41905410925f1ea007040a7a675Kenny Root * {@hide} 606d1ab01682b136b586aac94334f976f03c762b3c7Kenny Root */ 607d1ab01682b136b586aac94334f976f03c762b3c7Kenny Root public String[] resourceDirs; 608d1ab01682b136b586aac94334f976f03c762b3c7Kenny Root 609d1ab01682b136b586aac94334f976f03c762b3c7Kenny Root /** 6100f40dc923c67e8822f9157aec4f786f73848af07Robert Craig * String retrieved from the seinfo tag found in selinux policy. This value 6115e16bc5a143b46bbe9a4873adceed85a6241d1d0Robert Craig * can be overridden with a value set through the mac_permissions.xml policy 6125e16bc5a143b46bbe9a4873adceed85a6241d1d0Robert Craig * construct. This value is useful in setting an SELinux security context on 6135e16bc5a143b46bbe9a4873adceed85a6241d1d0Robert Craig * the process as well as its data directory. The String default is being used 6145e16bc5a143b46bbe9a4873adceed85a6241d1d0Robert Craig * here to represent a catchall label when no policy matches. 6150f40dc923c67e8822f9157aec4f786f73848af07Robert Craig * 6160f40dc923c67e8822f9157aec4f786f73848af07Robert Craig * {@hide} 6170f40dc923c67e8822f9157aec4f786f73848af07Robert Craig */ 6185e16bc5a143b46bbe9a4873adceed85a6241d1d0Robert Craig public String seinfo = "default"; 6190f40dc923c67e8822f9157aec4f786f73848af07Robert Craig 6200f40dc923c67e8822f9157aec4f786f73848af07Robert Craig /** 6219066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Paths to all shared libraries this application is linked against. This 6229066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * field is only set if the {@link PackageManager#GET_SHARED_LIBRARY_FILES 6239066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * PackageManager.GET_SHARED_LIBRARY_FILES} flag was used when retrieving 6249066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * the structure. 6259066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 6269066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public String[] sharedLibraryFiles; 6279066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 6289066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 6297a30a30ebece75f4a73fa604d4c7721d28eecc16Jeff Sharkey * Full path to the default directory assigned to the package for its 6307a30a30ebece75f4a73fa604d4c7721d28eecc16Jeff Sharkey * persistent data. 6319066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 6329066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public String dataDir; 63385387d7ba36e56b291cbde87acb5a5b2200fe01cKenny Root 6347a30a30ebece75f4a73fa604d4c7721d28eecc16Jeff Sharkey /** 6358a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey * Full path to the device-protected directory assigned to the package for 6367a30a30ebece75f4a73fa604d4c7721d28eecc16Jeff Sharkey * its persistent data. 6378a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey * 6388a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey * @see Context#createDeviceProtectedStorageContext() 6397a30a30ebece75f4a73fa604d4c7721d28eecc16Jeff Sharkey */ 6408a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey public String deviceProtectedDataDir; 6418a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey 6428a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey /** @removed */ 6438a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey @Deprecated 64415447798a38d2b5acb1998731340255f4203f294Jeff Sharkey public String deviceEncryptedDataDir; 6457a30a30ebece75f4a73fa604d4c7721d28eecc16Jeff Sharkey 6467a30a30ebece75f4a73fa604d4c7721d28eecc16Jeff Sharkey /** 6478a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey * Full path to the credential-protected directory assigned to the package 6487a30a30ebece75f4a73fa604d4c7721d28eecc16Jeff Sharkey * for its persistent data. 6498a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey * 6508a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey * @hide 6517a30a30ebece75f4a73fa604d4c7721d28eecc16Jeff Sharkey */ 6528a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey @SystemApi 6538a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey public String credentialProtectedDataDir; 6548a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey 6558a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey /** @removed */ 6568a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey @Deprecated 65715447798a38d2b5acb1998731340255f4203f294Jeff Sharkey public String credentialEncryptedDataDir; 65815447798a38d2b5acb1998731340255f4203f294Jeff Sharkey 65985387d7ba36e56b291cbde87acb5a5b2200fe01cKenny Root /** 66085387d7ba36e56b291cbde87acb5a5b2200fe01cKenny Root * Full path to the directory where native JNI libraries are stored. 66185387d7ba36e56b291cbde87acb5a5b2200fe01cKenny Root */ 66285387d7ba36e56b291cbde87acb5a5b2200fe01cKenny Root public String nativeLibraryDir; 66385387d7ba36e56b291cbde87acb5a5b2200fe01cKenny Root 6649066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 6657dba6eb3ac4fd6c8195cb0d0425866de50a9e114Narayan Kamath * Full path where unpacked native libraries for {@link #secondaryCpuAbi} 6667dba6eb3ac4fd6c8195cb0d0425866de50a9e114Narayan Kamath * are stored, if present. 6677dba6eb3ac4fd6c8195cb0d0425866de50a9e114Narayan Kamath * 6687dba6eb3ac4fd6c8195cb0d0425866de50a9e114Narayan Kamath * The main reason this exists is for bundled multi-arch apps, where 6697dba6eb3ac4fd6c8195cb0d0425866de50a9e114Narayan Kamath * it's not trivial to calculate the location of libs for the secondary abi 6707dba6eb3ac4fd6c8195cb0d0425866de50a9e114Narayan Kamath * given the location of the primary. 6717dba6eb3ac4fd6c8195cb0d0425866de50a9e114Narayan Kamath * 6727dba6eb3ac4fd6c8195cb0d0425866de50a9e114Narayan Kamath * TODO: Change the layout of bundled installs so that we can use 6737dba6eb3ac4fd6c8195cb0d0425866de50a9e114Narayan Kamath * nativeLibraryRootDir & nativeLibraryRootRequiresIsa there as well. 6747dba6eb3ac4fd6c8195cb0d0425866de50a9e114Narayan Kamath * (e.g {@code [ "/system/app-lib/Foo/arm", "/system/app-lib/Foo/arm64" ]} 6757dba6eb3ac4fd6c8195cb0d0425866de50a9e114Narayan Kamath * instead of {@code [ "/system/lib/Foo", "/system/lib64/Foo" ]}. 6767dba6eb3ac4fd6c8195cb0d0425866de50a9e114Narayan Kamath * 6777dba6eb3ac4fd6c8195cb0d0425866de50a9e114Narayan Kamath * @hide 6787dba6eb3ac4fd6c8195cb0d0425866de50a9e114Narayan Kamath */ 6797dba6eb3ac4fd6c8195cb0d0425866de50a9e114Narayan Kamath public String secondaryNativeLibraryDir; 6807dba6eb3ac4fd6c8195cb0d0425866de50a9e114Narayan Kamath 6817dba6eb3ac4fd6c8195cb0d0425866de50a9e114Narayan Kamath /** 68284f1294a958b42000755dc6570e3eda72ab42140Jeff Sharkey * The root path where unpacked native libraries are stored. 68384f1294a958b42000755dc6570e3eda72ab42140Jeff Sharkey * <p> 68484f1294a958b42000755dc6570e3eda72ab42140Jeff Sharkey * When {@link #nativeLibraryRootRequiresIsa} is set, the libraries are 68584f1294a958b42000755dc6570e3eda72ab42140Jeff Sharkey * placed in ISA-specific subdirectories under this path, otherwise the 68684f1294a958b42000755dc6570e3eda72ab42140Jeff Sharkey * libraries are placed directly at this path. 687ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath * 68884f1294a958b42000755dc6570e3eda72ab42140Jeff Sharkey * @hide 68984f1294a958b42000755dc6570e3eda72ab42140Jeff Sharkey */ 69084f1294a958b42000755dc6570e3eda72ab42140Jeff Sharkey public String nativeLibraryRootDir; 69184f1294a958b42000755dc6570e3eda72ab42140Jeff Sharkey 69284f1294a958b42000755dc6570e3eda72ab42140Jeff Sharkey /** 69384f1294a958b42000755dc6570e3eda72ab42140Jeff Sharkey * Flag indicating that ISA must be appended to 69484f1294a958b42000755dc6570e3eda72ab42140Jeff Sharkey * {@link #nativeLibraryRootDir} to be useful. 695ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath * 69684f1294a958b42000755dc6570e3eda72ab42140Jeff Sharkey * @hide 697ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath */ 69884f1294a958b42000755dc6570e3eda72ab42140Jeff Sharkey public boolean nativeLibraryRootRequiresIsa; 699ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath 700ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath /** 701ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath * The primary ABI that this application requires, This is inferred from the ABIs 702ff0c470833b2cb4130a30895093630242d5f238dRamin Zaghi * of the native JNI libraries the application bundles. Will be {@code null} 703ff0c470833b2cb4130a30895093630242d5f238dRamin Zaghi * if this application does not require any particular ABI. 704ff0c470833b2cb4130a30895093630242d5f238dRamin Zaghi * 705ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath * If non-null, the application will always be launched with this ABI. 706ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath * 707ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath * {@hide} 708ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath */ 709ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath public String primaryCpuAbi; 710ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath 711ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath /** 712ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath * The secondary ABI for this application. Might be non-null for multi-arch 713ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath * installs. The application itself never uses this ABI, but other applications that 714ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath * use its code might. 715ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath * 716ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath * {@hide} 717ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath */ 718ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath public String secondaryCpuAbi; 719ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath 720ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath /** 7219066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * The kernel user-ID that has been assigned to this application; 7229066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * currently this is not a unique ID (multiple applications can have 7239066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * the same uid). 7249066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 7259066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public int uid; 7269066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 7278d112675879a2b83197d3b4ae4fb623abd1a1ec3Mitsuru Oshima /** 72889d60189cd53a7f0e20c23bb42d4cd4c3dbc20b4Todd Kennedy * The minimum SDK version this application can run on. It will not run 72989d60189cd53a7f0e20c23bb42d4cd4c3dbc20b4Todd Kennedy * on earlier versions. 73089d60189cd53a7f0e20c23bb42d4cd4c3dbc20b4Todd Kennedy */ 7316e2e7f585ba74213fde92bd23150949f76335fbaTodd Kennedy public int minSdkVersion; 73289d60189cd53a7f0e20c23bb42d4cd4c3dbc20b4Todd Kennedy 73389d60189cd53a7f0e20c23bb42d4cd4c3dbc20b4Todd Kennedy /** 7343b3e145d3c41fd68974e08f799b1fd1f8f060cf0Dianne Hackborn * The minimum SDK version this application targets. It may run on earlier 735a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn * versions, but it knows how to work with any new behavior added at this 736a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn * version. Will be {@link android.os.Build.VERSION_CODES#CUR_DEVELOPMENT} 737a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn * if this is a development build and the app is targeting that. You should 738a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn * compare that this number is >= the SDK version number at which your 739a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn * behavior was introduced. 740a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn */ 741a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn public int targetSdkVersion; 7428472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn 7438472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn /** 7448472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn * The app's declared version code. 7458472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn * @hide 7468472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn */ 7478472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn public int versionCode; 7488472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn 749a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn /** 7509066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * When false, indicates that all components within this application are 7519066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * considered disabled, regardless of their individually set enabled status. 7529066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 7539066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public boolean enabled = true; 7549066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 75554e570f78b45d6c47578a4a2513097b590b6d43fDianne Hackborn /** 7560ac3031c159a0904e73eb4439cdc724d8df4a6e6Dianne Hackborn * For convenient access to the current enabled setting of this app. 7570ac3031c159a0904e73eb4439cdc724d8df4a6e6Dianne Hackborn * @hide 7580ac3031c159a0904e73eb4439cdc724d8df4a6e6Dianne Hackborn */ 7590ac3031c159a0904e73eb4439cdc724d8df4a6e6Dianne Hackborn public int enabledSetting = PackageManager.COMPONENT_ENABLED_STATE_DEFAULT; 7600ac3031c159a0904e73eb4439cdc724d8df4a6e6Dianne Hackborn 7610ac3031c159a0904e73eb4439cdc724d8df4a6e6Dianne Hackborn /** 76254e570f78b45d6c47578a4a2513097b590b6d43fDianne Hackborn * For convenient access to package's install location. 76354e570f78b45d6c47578a4a2513097b590b6d43fDianne Hackborn * @hide 76454e570f78b45d6c47578a4a2513097b590b6d43fDianne Hackborn */ 76554e570f78b45d6c47578a4a2513097b590b6d43fDianne Hackborn public int installLocation = PackageInfo.INSTALL_LOCATION_UNSPECIFIED; 76612d0b4cd960e18493b1dc237adbfabed432c9df5Jose Lima 767c845b2a21cedda4dd221fcf01aae74706ecade94Chad Brubaker /** 768c845b2a21cedda4dd221fcf01aae74706ecade94Chad Brubaker * Resource file providing the application's Network Security Config. 769c845b2a21cedda4dd221fcf01aae74706ecade94Chad Brubaker * @hide 770c845b2a21cedda4dd221fcf01aae74706ecade94Chad Brubaker */ 771c845b2a21cedda4dd221fcf01aae74706ecade94Chad Brubaker public int networkSecurityConfigRes; 772c845b2a21cedda4dd221fcf01aae74706ecade94Chad Brubaker 7739066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public void dump(Printer pw, String prefix) { 7746ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn dump(pw, prefix, DUMP_FLAG_ALL); 7756ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn } 7766ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn 7776ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn /** @hide */ 7786ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn public void dump(Printer pw, String prefix, int flags) { 7799066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project super.dumpFront(pw, prefix); 7806ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn if ((flags&DUMP_FLAG_DETAILS) != 0 && className != null) { 78112527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6Dianne Hackborn pw.println(prefix + "className=" + className); 78212527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6Dianne Hackborn } 78312527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6Dianne Hackborn if (permission != null) { 78412527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6Dianne Hackborn pw.println(prefix + "permission=" + permission); 78512527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6Dianne Hackborn } 78639792d2262352ae775091876d5488d2412a2ff92Dianne Hackborn pw.println(prefix + "processName=" + processName); 7876ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn if ((flags&DUMP_FLAG_DETAILS) != 0) { 7886ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn pw.println(prefix + "taskAffinity=" + taskAffinity); 7896ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn } 79039792d2262352ae775091876d5488d2412a2ff92Dianne Hackborn pw.println(prefix + "uid=" + uid + " flags=0x" + Integer.toHexString(flags) 791b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin + " privateFlags=0x" + Integer.toHexString(privateFlags) 79239792d2262352ae775091876d5488d2412a2ff92Dianne Hackborn + " theme=0x" + Integer.toHexString(theme)); 7936ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn if ((flags&DUMP_FLAG_DETAILS) != 0) { 7946ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn pw.println(prefix + "requiresSmallestWidthDp=" + requiresSmallestWidthDp 7956ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn + " compatibleWidthLimitDp=" + compatibleWidthLimitDp 7966ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn + " largestWidthLimitDp=" + largestWidthLimitDp); 7976ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn } 7989066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project pw.println(prefix + "sourceDir=" + sourceDir); 7998a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey if (!Objects.equals(sourceDir, publicSourceDir)) { 80039792d2262352ae775091876d5488d2412a2ff92Dianne Hackborn pw.println(prefix + "publicSourceDir=" + publicSourceDir); 80139792d2262352ae775091876d5488d2412a2ff92Dianne Hackborn } 8028a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey if (!ArrayUtils.isEmpty(splitSourceDirs)) { 8038a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey pw.println(prefix + "splitSourceDirs=" + Arrays.toString(splitSourceDirs)); 8048a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey } 8058a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey if (!ArrayUtils.isEmpty(splitPublicSourceDirs) 8068a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey && !Arrays.equals(splitSourceDirs, splitPublicSourceDirs)) { 8078a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey pw.println(prefix + "splitPublicSourceDirs=" + Arrays.toString(splitPublicSourceDirs)); 8088a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey } 80939792d2262352ae775091876d5488d2412a2ff92Dianne Hackborn if (resourceDirs != null) { 810e6748ce31f18782b7a47a5b2eb251efd83e7b609Andreas Gampe pw.println(prefix + "resourceDirs=" + Arrays.toString(resourceDirs)); 81139792d2262352ae775091876d5488d2412a2ff92Dianne Hackborn } 8126ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn if ((flags&DUMP_FLAG_DETAILS) != 0 && seinfo != null) { 8130f40dc923c67e8822f9157aec4f786f73848af07Robert Craig pw.println(prefix + "seinfo=" + seinfo); 8140f40dc923c67e8822f9157aec4f786f73848af07Robert Craig } 8159066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project pw.println(prefix + "dataDir=" + dataDir); 8166ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn if ((flags&DUMP_FLAG_DETAILS) != 0) { 8178a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey pw.println(prefix + "deviceProtectedDataDir=" + deviceProtectedDataDir); 8188a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey pw.println(prefix + "credentialProtectedDataDir=" + credentialProtectedDataDir); 8196ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn if (sharedLibraryFiles != null) { 8206ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn pw.println(prefix + "sharedLibraryFiles=" + Arrays.toString(sharedLibraryFiles)); 8216ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn } 82212527f9fb1cb0a1ad3be8149c1c88a0e731cb4d6Dianne Hackborn } 82389d60189cd53a7f0e20c23bb42d4cd4c3dbc20b4Todd Kennedy pw.println(prefix + "enabled=" + enabled 82489d60189cd53a7f0e20c23bb42d4cd4c3dbc20b4Todd Kennedy + " minSdkVersion=" + minSdkVersion 82589d60189cd53a7f0e20c23bb42d4cd4c3dbc20b4Todd Kennedy + " targetSdkVersion=" + targetSdkVersion 8268472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn + " versionCode=" + versionCode); 8276ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn if ((flags&DUMP_FLAG_DETAILS) != 0) { 8286ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn if (manageSpaceActivityName != null) { 8296ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn pw.println(prefix + "manageSpaceActivityName=" + manageSpaceActivityName); 8306ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn } 8316ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn if (descriptionRes != 0) { 8326ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn pw.println(prefix + "description=0x" + Integer.toHexString(descriptionRes)); 8336ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn } 8346ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn if (uiOptions != 0) { 8356ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn pw.println(prefix + "uiOptions=0x" + Integer.toHexString(uiOptions)); 8366ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn } 8376ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn pw.println(prefix + "supportsRtl=" + (hasRtlSupport() ? "true" : "false")); 8386ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn if (fullBackupContent > 0) { 8396ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn pw.println(prefix + "fullBackupContent=@xml/" + fullBackupContent); 8406ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn } else { 8416ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn pw.println(prefix + "fullBackupContent=" 8426ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn + (fullBackupContent < 0 ? "false" : "true")); 8436ac42aeed905181b484f97a53db57a17134ef7a8Dianne Hackborn } 844c845b2a21cedda4dd221fcf01aae74706ecade94Chad Brubaker if (networkSecurityConfigRes != 0) { 845c845b2a21cedda4dd221fcf01aae74706ecade94Chad Brubaker pw.println(prefix + "networkSecurityConfigRes=0x" 846c845b2a21cedda4dd221fcf01aae74706ecade94Chad Brubaker + Integer.toHexString(networkSecurityConfigRes)); 847c845b2a21cedda4dd221fcf01aae74706ecade94Chad Brubaker } 848303650c9cdb7cec88e7ec20747b161d9fff10719Matthew Williams } 8499066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project super.dumpBack(pw, prefix); 8509066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project } 85159dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio 85259dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio /** 85359dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio * @return true if "supportsRtl" has been set to true in the AndroidManifest 85459dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio * @hide 85559dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio */ 85659dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio public boolean hasRtlSupport() { 85759dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio return (flags & FLAG_SUPPORTS_RTL) == FLAG_SUPPORTS_RTL; 85859dfce8bdaf011337530a0dbec7f7280871f9bc9Fabrice Di Meglio } 859ba75a9b6bab16114a8206015a4d2c7ce3bd70f2aJeff Sharkey 860ba75a9b6bab16114a8206015a4d2c7ce3bd70f2aJeff Sharkey /** {@hide} */ 861ba75a9b6bab16114a8206015a4d2c7ce3bd70f2aJeff Sharkey public boolean hasCode() { 862ba75a9b6bab16114a8206015a4d2c7ce3bd70f2aJeff Sharkey return (flags & FLAG_HAS_CODE) != 0; 863ba75a9b6bab16114a8206015a4d2c7ce3bd70f2aJeff Sharkey } 864ba75a9b6bab16114a8206015a4d2c7ce3bd70f2aJeff Sharkey 8659066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public static class DisplayNameComparator 8669066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project implements Comparator<ApplicationInfo> { 8679066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public DisplayNameComparator(PackageManager pm) { 8689066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project mPM = pm; 8699066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project } 8709066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 8719066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public final int compare(ApplicationInfo aa, ApplicationInfo ab) { 8729066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project CharSequence sa = mPM.getApplicationLabel(aa); 8739066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project if (sa == null) { 8749066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project sa = aa.packageName; 8759066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project } 8769066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project CharSequence sb = mPM.getApplicationLabel(ab); 8779066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project if (sb == null) { 8789066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project sb = ab.packageName; 8799066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project } 8809066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 8819066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project return sCollator.compare(sa.toString(), sb.toString()); 8829066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project } 8839066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 8849066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project private final Collator sCollator = Collator.getInstance(); 8859066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project private PackageManager mPM; 8869066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project } 8879066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 8889066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public ApplicationInfo() { 8899066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project } 8909066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 8919066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public ApplicationInfo(ApplicationInfo orig) { 8929066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project super(orig); 8939066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project taskAffinity = orig.taskAffinity; 8949066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project permission = orig.permission; 8959066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project processName = orig.processName; 8969066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project className = orig.className; 8979066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project theme = orig.theme; 8989066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project flags = orig.flags; 899b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin privateFlags = orig.privateFlags; 900df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn requiresSmallestWidthDp = orig.requiresSmallestWidthDp; 901df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn compatibleWidthLimitDp = orig.compatibleWidthLimitDp; 9022762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn largestWidthLimitDp = orig.largestWidthLimitDp; 903b2b9ab8354da1485178cd8d8e9d89ac915b3f269Jeff Sharkey volumeUuid = orig.volumeUuid; 9047f1a57a3e709b9e1fdb03a7a8af5f13859f7f1adJeff Sharkey scanSourceDir = orig.scanSourceDir; 9057f1a57a3e709b9e1fdb03a7a8af5f13859f7f1adJeff Sharkey scanPublicSourceDir = orig.scanPublicSourceDir; 9069066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project sourceDir = orig.sourceDir; 9079066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project publicSourceDir = orig.publicSourceDir; 9088a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey splitSourceDirs = orig.splitSourceDirs; 9098a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey splitPublicSourceDirs = orig.splitPublicSourceDirs; 91085387d7ba36e56b291cbde87acb5a5b2200fe01cKenny Root nativeLibraryDir = orig.nativeLibraryDir; 9117dba6eb3ac4fd6c8195cb0d0425866de50a9e114Narayan Kamath secondaryNativeLibraryDir = orig.secondaryNativeLibraryDir; 91284f1294a958b42000755dc6570e3eda72ab42140Jeff Sharkey nativeLibraryRootDir = orig.nativeLibraryRootDir; 91384f1294a958b42000755dc6570e3eda72ab42140Jeff Sharkey nativeLibraryRootRequiresIsa = orig.nativeLibraryRootRequiresIsa; 914ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath primaryCpuAbi = orig.primaryCpuAbi; 915ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath secondaryCpuAbi = orig.secondaryCpuAbi; 916d1ab01682b136b586aac94334f976f03c762b3c7Kenny Root resourceDirs = orig.resourceDirs; 9170f40dc923c67e8822f9157aec4f786f73848af07Robert Craig seinfo = orig.seinfo; 9189066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project sharedLibraryFiles = orig.sharedLibraryFiles; 9199066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project dataDir = orig.dataDir; 9208a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey deviceEncryptedDataDir = deviceProtectedDataDir = orig.deviceProtectedDataDir; 9218a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey credentialEncryptedDataDir = credentialProtectedDataDir = orig.credentialProtectedDataDir; 9229066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project uid = orig.uid; 92389d60189cd53a7f0e20c23bb42d4cd4c3dbc20b4Todd Kennedy minSdkVersion = orig.minSdkVersion; 924a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn targetSdkVersion = orig.targetSdkVersion; 9258472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn versionCode = orig.versionCode; 9269066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project enabled = orig.enabled; 9270ac3031c159a0904e73eb4439cdc724d8df4a6e6Dianne Hackborn enabledSetting = orig.enabledSetting; 92854e570f78b45d6c47578a4a2513097b590b6d43fDianne Hackborn installLocation = orig.installLocation; 9299066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project manageSpaceActivityName = orig.manageSpaceActivityName; 9309066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project descriptionRes = orig.descriptionRes; 931269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell uiOptions = orig.uiOptions; 932bcb0255770caa6b053da100de13beb840da71b21Christopher Tate backupAgentName = orig.backupAgentName; 933303650c9cdb7cec88e7ec20747b161d9fff10719Matthew Williams fullBackupContent = orig.fullBackupContent; 934c845b2a21cedda4dd221fcf01aae74706ecade94Chad Brubaker networkSecurityConfigRes = orig.networkSecurityConfigRes; 9359066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project } 9369066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 9379066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public String toString() { 9389066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project return "ApplicationInfo{" 9399066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project + Integer.toHexString(System.identityHashCode(this)) 9409066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project + " " + packageName + "}"; 9419066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project } 9429066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 9439066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public int describeContents() { 9449066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project return 0; 9459066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project } 9469066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 9479066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public void writeToParcel(Parcel dest, int parcelableFlags) { 9489066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project super.writeToParcel(dest, parcelableFlags); 9499066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project dest.writeString(taskAffinity); 9509066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project dest.writeString(permission); 9519066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project dest.writeString(processName); 9529066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project dest.writeString(className); 9539066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project dest.writeInt(theme); 9549066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project dest.writeInt(flags); 955b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin dest.writeInt(privateFlags); 956df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn dest.writeInt(requiresSmallestWidthDp); 957df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn dest.writeInt(compatibleWidthLimitDp); 9582762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn dest.writeInt(largestWidthLimitDp); 959b2b9ab8354da1485178cd8d8e9d89ac915b3f269Jeff Sharkey dest.writeString(volumeUuid); 9607f1a57a3e709b9e1fdb03a7a8af5f13859f7f1adJeff Sharkey dest.writeString(scanSourceDir); 9617f1a57a3e709b9e1fdb03a7a8af5f13859f7f1adJeff Sharkey dest.writeString(scanPublicSourceDir); 9629066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project dest.writeString(sourceDir); 9639066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project dest.writeString(publicSourceDir); 9648a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey dest.writeStringArray(splitSourceDirs); 9658a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey dest.writeStringArray(splitPublicSourceDirs); 96685387d7ba36e56b291cbde87acb5a5b2200fe01cKenny Root dest.writeString(nativeLibraryDir); 9677dba6eb3ac4fd6c8195cb0d0425866de50a9e114Narayan Kamath dest.writeString(secondaryNativeLibraryDir); 96884f1294a958b42000755dc6570e3eda72ab42140Jeff Sharkey dest.writeString(nativeLibraryRootDir); 96984f1294a958b42000755dc6570e3eda72ab42140Jeff Sharkey dest.writeInt(nativeLibraryRootRequiresIsa ? 1 : 0); 970ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath dest.writeString(primaryCpuAbi); 971ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath dest.writeString(secondaryCpuAbi); 972d1ab01682b136b586aac94334f976f03c762b3c7Kenny Root dest.writeStringArray(resourceDirs); 9730f40dc923c67e8822f9157aec4f786f73848af07Robert Craig dest.writeString(seinfo); 9749066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project dest.writeStringArray(sharedLibraryFiles); 9759066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project dest.writeString(dataDir); 9768a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey dest.writeString(deviceProtectedDataDir); 9778a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey dest.writeString(credentialProtectedDataDir); 9789066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project dest.writeInt(uid); 9796e2e7f585ba74213fde92bd23150949f76335fbaTodd Kennedy dest.writeInt(minSdkVersion); 980a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn dest.writeInt(targetSdkVersion); 9818472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn dest.writeInt(versionCode); 9829066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project dest.writeInt(enabled ? 1 : 0); 9830ac3031c159a0904e73eb4439cdc724d8df4a6e6Dianne Hackborn dest.writeInt(enabledSetting); 98454e570f78b45d6c47578a4a2513097b590b6d43fDianne Hackborn dest.writeInt(installLocation); 9859066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project dest.writeString(manageSpaceActivityName); 986181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate dest.writeString(backupAgentName); 9879066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project dest.writeInt(descriptionRes); 988269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell dest.writeInt(uiOptions); 989303650c9cdb7cec88e7ec20747b161d9fff10719Matthew Williams dest.writeInt(fullBackupContent); 990c845b2a21cedda4dd221fcf01aae74706ecade94Chad Brubaker dest.writeInt(networkSecurityConfigRes); 9919066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project } 9929066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 9939066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public static final Parcelable.Creator<ApplicationInfo> CREATOR 9949066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project = new Parcelable.Creator<ApplicationInfo>() { 9959066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public ApplicationInfo createFromParcel(Parcel source) { 9969066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project return new ApplicationInfo(source); 9979066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project } 9989066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public ApplicationInfo[] newArray(int size) { 9999066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project return new ApplicationInfo[size]; 10009066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project } 10019066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project }; 10029066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project 10039066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project private ApplicationInfo(Parcel source) { 10049066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project super(source); 10059066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project taskAffinity = source.readString(); 10069066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project permission = source.readString(); 10079066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project processName = source.readString(); 10089066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project className = source.readString(); 10099066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project theme = source.readInt(); 10109066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project flags = source.readInt(); 1011b9f8a5204a1b0b3919fa921e858d04124c582828Alex Klyubin privateFlags = source.readInt(); 1012df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn requiresSmallestWidthDp = source.readInt(); 1013df6e980e3f63eb0f6f9eb437fa925d5009cd9c44Dianne Hackborn compatibleWidthLimitDp = source.readInt(); 10142762ff3dc864018352362f6d103de471f9529ba6Dianne Hackborn largestWidthLimitDp = source.readInt(); 1015b2b9ab8354da1485178cd8d8e9d89ac915b3f269Jeff Sharkey volumeUuid = source.readString(); 10167f1a57a3e709b9e1fdb03a7a8af5f13859f7f1adJeff Sharkey scanSourceDir = source.readString(); 10177f1a57a3e709b9e1fdb03a7a8af5f13859f7f1adJeff Sharkey scanPublicSourceDir = source.readString(); 10189066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project sourceDir = source.readString(); 10199066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project publicSourceDir = source.readString(); 10208a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey splitSourceDirs = source.readStringArray(); 10218a4c9721a9e09d20c63381c13fa29bd9f7cbc3e3Jeff Sharkey splitPublicSourceDirs = source.readStringArray(); 102285387d7ba36e56b291cbde87acb5a5b2200fe01cKenny Root nativeLibraryDir = source.readString(); 10237dba6eb3ac4fd6c8195cb0d0425866de50a9e114Narayan Kamath secondaryNativeLibraryDir = source.readString(); 102484f1294a958b42000755dc6570e3eda72ab42140Jeff Sharkey nativeLibraryRootDir = source.readString(); 102584f1294a958b42000755dc6570e3eda72ab42140Jeff Sharkey nativeLibraryRootRequiresIsa = source.readInt() != 0; 1026ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath primaryCpuAbi = source.readString(); 1027ff110bd61a69f7ed8602ae14b27f7befec76b2e7Narayan Kamath secondaryCpuAbi = source.readString(); 1028d1ab01682b136b586aac94334f976f03c762b3c7Kenny Root resourceDirs = source.readStringArray(); 10290f40dc923c67e8822f9157aec4f786f73848af07Robert Craig seinfo = source.readString(); 10309066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project sharedLibraryFiles = source.readStringArray(); 10319066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project dataDir = source.readString(); 10328a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey deviceEncryptedDataDir = deviceProtectedDataDir = source.readString(); 10338a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey credentialEncryptedDataDir = credentialProtectedDataDir = source.readString(); 10349066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project uid = source.readInt(); 10356e2e7f585ba74213fde92bd23150949f76335fbaTodd Kennedy minSdkVersion = source.readInt(); 1036a96cbb435d7b2197ab2b61fd98d14cbd6e0c5c3dDianne Hackborn targetSdkVersion = source.readInt(); 10378472e6189cd4e0520c047bdb28457abc728b373fDianne Hackborn versionCode = source.readInt(); 10389066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project enabled = source.readInt() != 0; 10390ac3031c159a0904e73eb4439cdc724d8df4a6e6Dianne Hackborn enabledSetting = source.readInt(); 104054e570f78b45d6c47578a4a2513097b590b6d43fDianne Hackborn installLocation = source.readInt(); 10419066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project manageSpaceActivityName = source.readString(); 1042181fafaf48208978b8ba2022683ffa78aaeddde1Christopher Tate backupAgentName = source.readString(); 10439066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project descriptionRes = source.readInt(); 1044269248d112e35fe8e9f0d5d11c96dcb2ac1118b0Adam Powell uiOptions = source.readInt(); 1045303650c9cdb7cec88e7ec20747b161d9fff10719Matthew Williams fullBackupContent = source.readInt(); 1046c845b2a21cedda4dd221fcf01aae74706ecade94Chad Brubaker networkSecurityConfigRes = source.readInt(); 10479066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project } 10488d112675879a2b83197d3b4ae4fb623abd1a1ec3Mitsuru Oshima 10499066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project /** 10509066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * Retrieve the textual description of the application. This 10519066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * will call back on the given PackageManager to load the description from 10529066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * the application. 10539066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 10549066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @param pm A PackageManager from which the label can be loaded; usually 10559066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * the PackageManager from which you originally retrieved this item. 10569066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * 10579066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * @return Returns a CharSequence containing the application's description. 10589066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project * If there is no description, null is returned. 10599066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project */ 10609066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project public CharSequence loadDescription(PackageManager pm) { 10619066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project if (descriptionRes != 0) { 106207330791116513710d879c45b2f095cd314cbfd0Jeff Brown CharSequence label = pm.getText(packageName, descriptionRes, this); 10639066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project if (label != null) { 10649066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project return label; 10659066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project } 10669066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project } 10679066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project return null; 10689066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project } 1069e5fb328825995aa33b5b7ecf8b5bee2b17f81715Mitsuru Oshima 1070e5fb328825995aa33b5b7ecf8b5bee2b17f81715Mitsuru Oshima /** 1071e5fb328825995aa33b5b7ecf8b5bee2b17f81715Mitsuru Oshima * Disable compatibility mode 1072e5fb328825995aa33b5b7ecf8b5bee2b17f81715Mitsuru Oshima * 1073e5fb328825995aa33b5b7ecf8b5bee2b17f81715Mitsuru Oshima * @hide 1074e5fb328825995aa33b5b7ecf8b5bee2b17f81715Mitsuru Oshima */ 1075e5fb328825995aa33b5b7ecf8b5bee2b17f81715Mitsuru Oshima public void disableCompatibilityMode() { 107669fff4a72d4dfc9208db79d773ef3ca23350287eMitsuru Oshima flags |= (FLAG_SUPPORTS_LARGE_SCREENS | FLAG_SUPPORTS_NORMAL_SCREENS | 107711b822d2a91ea17c34c0cb1c11e80a9a30d72864Dianne Hackborn FLAG_SUPPORTS_SMALL_SCREENS | FLAG_RESIZEABLE_FOR_SCREENS | 107814cee9f688c32d63d8521188e7422811629bb7c2Dianne Hackborn FLAG_SUPPORTS_SCREEN_DENSITIES | FLAG_SUPPORTS_XLARGE_SCREENS); 1079e5fb328825995aa33b5b7ecf8b5bee2b17f81715Mitsuru Oshima } 108015447798a38d2b5acb1998731340255f4203f294Jeff Sharkey 108115447798a38d2b5acb1998731340255f4203f294Jeff Sharkey /** {@hide} */ 108215447798a38d2b5acb1998731340255f4203f294Jeff Sharkey public void initForUser(int userId) { 108315447798a38d2b5acb1998731340255f4203f294Jeff Sharkey uid = UserHandle.getUid(userId, UserHandle.getAppId(uid)); 108415447798a38d2b5acb1998731340255f4203f294Jeff Sharkey 108515447798a38d2b5acb1998731340255f4203f294Jeff Sharkey if ("android".equals(packageName)) { 108615447798a38d2b5acb1998731340255f4203f294Jeff Sharkey dataDir = Environment.getDataSystemDirectory().getAbsolutePath(); 108715447798a38d2b5acb1998731340255f4203f294Jeff Sharkey return; 108815447798a38d2b5acb1998731340255f4203f294Jeff Sharkey } 108915447798a38d2b5acb1998731340255f4203f294Jeff Sharkey 10908a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey deviceEncryptedDataDir = deviceProtectedDataDir = Environment 10918212ae0aee1700b9c287ebadf15af8dacdc8eae6Jeff Sharkey .getDataUserDePackageDirectory(volumeUuid, userId, packageName) 109215447798a38d2b5acb1998731340255f4203f294Jeff Sharkey .getAbsolutePath(); 10938a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey credentialEncryptedDataDir = credentialProtectedDataDir = Environment 10948212ae0aee1700b9c287ebadf15af8dacdc8eae6Jeff Sharkey .getDataUserCePackageDirectory(volumeUuid, userId, packageName) 109515447798a38d2b5acb1998731340255f4203f294Jeff Sharkey .getAbsolutePath(); 109615447798a38d2b5acb1998731340255f4203f294Jeff Sharkey 10978a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey if ((privateFlags & PRIVATE_FLAG_DEFAULT_TO_DEVICE_PROTECTED_STORAGE) != 0 10988a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey && PackageManager.APPLY_DEFAULT_TO_DEVICE_PROTECTED_STORAGE) { 10998a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey dataDir = deviceProtectedDataDir; 110015447798a38d2b5acb1998731340255f4203f294Jeff Sharkey } else { 11018a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey dataDir = credentialProtectedDataDir; 110215447798a38d2b5acb1998731340255f4203f294Jeff Sharkey } 110315447798a38d2b5acb1998731340255f4203f294Jeff Sharkey } 110415447798a38d2b5acb1998731340255f4203f294Jeff Sharkey 110507330791116513710d879c45b2f095cd314cbfd0Jeff Brown /** 110607330791116513710d879c45b2f095cd314cbfd0Jeff Brown * @hide 110707330791116513710d879c45b2f095cd314cbfd0Jeff Brown */ 1108a709314537164d959a18ee78768c69c4a9cb33c7Alexandra Gherghina @Override 1109a709314537164d959a18ee78768c69c4a9cb33c7Alexandra Gherghina public Drawable loadDefaultIcon(PackageManager pm) { 111007330791116513710d879c45b2f095cd314cbfd0Jeff Brown if ((flags & FLAG_EXTERNAL_STORAGE) != 0 111107330791116513710d879c45b2f095cd314cbfd0Jeff Brown && isPackageUnavailable(pm)) { 111207330791116513710d879c45b2f095cd314cbfd0Jeff Brown return Resources.getSystem().getDrawable( 111307330791116513710d879c45b2f095cd314cbfd0Jeff Brown com.android.internal.R.drawable.sym_app_on_sd_unavailable_icon); 111407330791116513710d879c45b2f095cd314cbfd0Jeff Brown } 111507330791116513710d879c45b2f095cd314cbfd0Jeff Brown return pm.getDefaultActivityIcon(); 111607330791116513710d879c45b2f095cd314cbfd0Jeff Brown } 111707330791116513710d879c45b2f095cd314cbfd0Jeff Brown 111807330791116513710d879c45b2f095cd314cbfd0Jeff Brown private boolean isPackageUnavailable(PackageManager pm) { 111907330791116513710d879c45b2f095cd314cbfd0Jeff Brown try { 112007330791116513710d879c45b2f095cd314cbfd0Jeff Brown return pm.getPackageInfo(packageName, 0) == null; 112107330791116513710d879c45b2f095cd314cbfd0Jeff Brown } catch (NameNotFoundException ex) { 112207330791116513710d879c45b2f095cd314cbfd0Jeff Brown return true; 112307330791116513710d879c45b2f095cd314cbfd0Jeff Brown } 112407330791116513710d879c45b2f095cd314cbfd0Jeff Brown } 1125d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey 112607330791116513710d879c45b2f095cd314cbfd0Jeff Brown /** 112707330791116513710d879c45b2f095cd314cbfd0Jeff Brown * @hide 112807330791116513710d879c45b2f095cd314cbfd0Jeff Brown */ 1129eeea67b8c3678d882d3774edc41242c63daa60faFyodor Kupolov public boolean isForwardLocked() { 1130eeea67b8c3678d882d3774edc41242c63daa60faFyodor Kupolov return (privateFlags & ApplicationInfo.PRIVATE_FLAG_FORWARD_LOCK) != 0; 1131eeea67b8c3678d882d3774edc41242c63daa60faFyodor Kupolov } 1132eeea67b8c3678d882d3774edc41242c63daa60faFyodor Kupolov 1133eeea67b8c3678d882d3774edc41242c63daa60faFyodor Kupolov /** 1134eeea67b8c3678d882d3774edc41242c63daa60faFyodor Kupolov * @hide 1135eeea67b8c3678d882d3774edc41242c63daa60faFyodor Kupolov */ 1136a73b8fd1f4faaad00d8a49d6e496aaf249fa7003Jeff Sharkey @TestApi 1137b94c1657eb0140f7b91f5372a9f76de5a3d87e36Fyodor Kupolov public boolean isSystemApp() { 1138b94c1657eb0140f7b91f5372a9f76de5a3d87e36Fyodor Kupolov return (flags & ApplicationInfo.FLAG_SYSTEM) != 0; 1139b94c1657eb0140f7b91f5372a9f76de5a3d87e36Fyodor Kupolov } 1140b94c1657eb0140f7b91f5372a9f76de5a3d87e36Fyodor Kupolov 1141b94c1657eb0140f7b91f5372a9f76de5a3d87e36Fyodor Kupolov /** 1142b94c1657eb0140f7b91f5372a9f76de5a3d87e36Fyodor Kupolov * @hide 1143b94c1657eb0140f7b91f5372a9f76de5a3d87e36Fyodor Kupolov */ 1144a73b8fd1f4faaad00d8a49d6e496aaf249fa7003Jeff Sharkey @TestApi 1145adc1cf46045ae756d3a9ccbccf6b0f894e4c1eddSvet Ganov public boolean isPrivilegedApp() { 1146adc1cf46045ae756d3a9ccbccf6b0f894e4c1eddSvet Ganov return (privateFlags & ApplicationInfo.PRIVATE_FLAG_PRIVILEGED) != 0; 1147adc1cf46045ae756d3a9ccbccf6b0f894e4c1eddSvet Ganov } 1148adc1cf46045ae756d3a9ccbccf6b0f894e4c1eddSvet Ganov 1149adc1cf46045ae756d3a9ccbccf6b0f894e4c1eddSvet Ganov /** 1150adc1cf46045ae756d3a9ccbccf6b0f894e4c1eddSvet Ganov * @hide 1151adc1cf46045ae756d3a9ccbccf6b0f894e4c1eddSvet Ganov */ 1152b94c1657eb0140f7b91f5372a9f76de5a3d87e36Fyodor Kupolov public boolean isUpdatedSystemApp() { 1153b94c1657eb0140f7b91f5372a9f76de5a3d87e36Fyodor Kupolov return (flags & ApplicationInfo.FLAG_UPDATED_SYSTEM_APP) != 0; 1154b94c1657eb0140f7b91f5372a9f76de5a3d87e36Fyodor Kupolov } 1155b94c1657eb0140f7b91f5372a9f76de5a3d87e36Fyodor Kupolov 1156e2d45be4dae116307f8edd85eaa61134221cb8f9Jeff Sharkey /** @hide */ 1157e2d45be4dae116307f8edd85eaa61134221cb8f9Jeff Sharkey public boolean isInternal() { 1158e2d45be4dae116307f8edd85eaa61134221cb8f9Jeff Sharkey return (flags & ApplicationInfo.FLAG_EXTERNAL_STORAGE) == 0; 1159e2d45be4dae116307f8edd85eaa61134221cb8f9Jeff Sharkey } 1160e2d45be4dae116307f8edd85eaa61134221cb8f9Jeff Sharkey 1161e2d45be4dae116307f8edd85eaa61134221cb8f9Jeff Sharkey /** @hide */ 1162e2d45be4dae116307f8edd85eaa61134221cb8f9Jeff Sharkey public boolean isExternalAsec() { 1163e2d45be4dae116307f8edd85eaa61134221cb8f9Jeff Sharkey return TextUtils.isEmpty(volumeUuid) 1164e2d45be4dae116307f8edd85eaa61134221cb8f9Jeff Sharkey && (flags & ApplicationInfo.FLAG_EXTERNAL_STORAGE) != 0; 1165e2d45be4dae116307f8edd85eaa61134221cb8f9Jeff Sharkey } 1166e2d45be4dae116307f8edd85eaa61134221cb8f9Jeff Sharkey 1167f9fc6d6cc05595241bc7ced6d4cab97b45f9b901Jeff Sharkey /** @hide */ 11688a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey public boolean isDefaultToDeviceProtectedStorage() { 11698a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey return (privateFlags 11708a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey & ApplicationInfo.PRIVATE_FLAG_DEFAULT_TO_DEVICE_PROTECTED_STORAGE) != 0; 1171e4697136ed8d3e2486738b5798b22f2226b7de75Jeff Sharkey } 1172e4697136ed8d3e2486738b5798b22f2226b7de75Jeff Sharkey 1173e4697136ed8d3e2486738b5798b22f2226b7de75Jeff Sharkey /** @hide */ 11748a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey public boolean isDirectBootAware() { 11758a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey return (privateFlags & ApplicationInfo.PRIVATE_FLAG_DIRECT_BOOT_AWARE) != 0; 1176f9fc6d6cc05595241bc7ced6d4cab97b45f9b901Jeff Sharkey } 1177f9fc6d6cc05595241bc7ced6d4cab97b45f9b901Jeff Sharkey 11788924e8759f9a8cffb5ad538ca40a7826793aac07Jeff Sharkey /** @hide */ 11798a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey public boolean isPartiallyDirectBootAware() { 11808a372a0a280127743ce9a7ce4b6198c7a02d2a4fJeff Sharkey return (privateFlags & ApplicationInfo.PRIVATE_FLAG_PARTIALLY_DIRECT_BOOT_AWARE) != 0; 11818924e8759f9a8cffb5ad538ca40a7826793aac07Jeff Sharkey } 11828924e8759f9a8cffb5ad538ca40a7826793aac07Jeff Sharkey 1183b94c1657eb0140f7b91f5372a9f76de5a3d87e36Fyodor Kupolov /** 1184b94c1657eb0140f7b91f5372a9f76de5a3d87e36Fyodor Kupolov * @hide 1185b94c1657eb0140f7b91f5372a9f76de5a3d87e36Fyodor Kupolov */ 1186a4407bfceef1bdb7eb4d83990722a61082d926c9Jeff Vander Stoep public boolean isAutoPlayApp() { 1187a4407bfceef1bdb7eb4d83990722a61082d926c9Jeff Vander Stoep return (privateFlags & ApplicationInfo.PRIVATE_FLAG_AUTOPLAY) != 0; 1188a4407bfceef1bdb7eb4d83990722a61082d926c9Jeff Vander Stoep } 1189a4407bfceef1bdb7eb4d83990722a61082d926c9Jeff Vander Stoep 1190a4407bfceef1bdb7eb4d83990722a61082d926c9Jeff Vander Stoep /** 1191a4407bfceef1bdb7eb4d83990722a61082d926c9Jeff Vander Stoep * @hide 1192a4407bfceef1bdb7eb4d83990722a61082d926c9Jeff Vander Stoep */ 11932acf063da08dfff69f184c9a6a90a7a5fe60d818Svet Ganov public boolean isEphemeralApp() { 11942acf063da08dfff69f184c9a6a90a7a5fe60d818Svet Ganov return (privateFlags & ApplicationInfo.PRIVATE_FLAG_EPHEMERAL) != 0; 11952acf063da08dfff69f184c9a6a90a7a5fe60d818Svet Ganov } 11962acf063da08dfff69f184c9a6a90a7a5fe60d818Svet Ganov 11972acf063da08dfff69f184c9a6a90a7a5fe60d818Svet Ganov /** 11982acf063da08dfff69f184c9a6a90a7a5fe60d818Svet Ganov * @hide 11992acf063da08dfff69f184c9a6a90a7a5fe60d818Svet Ganov */ 1200bdbc9692c7cb365d9d3f239baa2377724a6f7bc8Fyodor Kupolov public boolean isRequiredForSystemUser() { 1201bdbc9692c7cb365d9d3f239baa2377724a6f7bc8Fyodor Kupolov return (privateFlags & ApplicationInfo.PRIVATE_FLAG_REQUIRED_FOR_SYSTEM_USER) != 0; 1202bdbc9692c7cb365d9d3f239baa2377724a6f7bc8Fyodor Kupolov } 1203bdbc9692c7cb365d9d3f239baa2377724a6f7bc8Fyodor Kupolov 1204bdbc9692c7cb365d9d3f239baa2377724a6f7bc8Fyodor Kupolov /** 1205bdbc9692c7cb365d9d3f239baa2377724a6f7bc8Fyodor Kupolov * @hide 1206bdbc9692c7cb365d9d3f239baa2377724a6f7bc8Fyodor Kupolov */ 120707330791116513710d879c45b2f095cd314cbfd0Jeff Brown @Override protected ApplicationInfo getApplicationInfo() { 120807330791116513710d879c45b2f095cd314cbfd0Jeff Brown return this; 120907330791116513710d879c45b2f095cd314cbfd0Jeff Brown } 1210d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey 1211d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey /** {@hide} */ public void setCodePath(String codePath) { scanSourceDir = codePath; } 1212d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey /** {@hide} */ public void setBaseCodePath(String baseCodePath) { sourceDir = baseCodePath; } 1213d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey /** {@hide} */ public void setSplitCodePaths(String[] splitCodePaths) { splitSourceDirs = splitCodePaths; } 1214d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey /** {@hide} */ public void setResourcePath(String resourcePath) { scanPublicSourceDir = resourcePath; } 1215d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey /** {@hide} */ public void setBaseResourcePath(String baseResourcePath) { publicSourceDir = baseResourcePath; } 1216d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey /** {@hide} */ public void setSplitResourcePaths(String[] splitResourcePaths) { splitPublicSourceDirs = splitResourcePaths; } 1217d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey 1218d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey /** {@hide} */ public String getCodePath() { return scanSourceDir; } 1219d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey /** {@hide} */ public String getBaseCodePath() { return sourceDir; } 1220d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey /** {@hide} */ public String[] getSplitCodePaths() { return splitSourceDirs; } 1221d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey /** {@hide} */ public String getResourcePath() { return scanPublicSourceDir; } 1222d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey /** {@hide} */ public String getBaseResourcePath() { return publicSourceDir; } 1223d746057f2414cba2bdc69257cc5be8cb681bb592Jeff Sharkey /** {@hide} */ public String[] getSplitResourcePaths() { return splitSourceDirs; } 12249066cfe9886ac131c34d59ed0e2d287b0e3c0087The Android Open Source Project} 1225