summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorFyodor Kupolov <fkupolov@google.com>2015-09-16 19:37:47 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-09-16 19:37:47 +0000
commitbfc584df683a84dffd8e04b7b13f619606a0a42a (patch)
tree1b39a0ce3749939de9a5166b6bdaffca5c4772a9 /core
parent870a9e6a783c7755b059d8533ae0232873bff9ba (diff)
parentebcac16cb1405bf7d0b570e11a287df078edfc1c (diff)
downloadframeworks_base-bfc584df683a84dffd8e04b7b13f619606a0a42a.zip
frameworks_base-bfc584df683a84dffd8e04b7b13f619606a0a42a.tar.gz
frameworks_base-bfc584df683a84dffd8e04b7b13f619606a0a42a.tar.bz2
Merge "Use app directory as apkPath for cluster installs" into mnc-dr-dev
Diffstat (limited to 'core')
-rw-r--r--core/java/android/content/pm/PackageParser.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/core/java/android/content/pm/PackageParser.java b/core/java/android/content/pm/PackageParser.java
index ed7a2a3..7032c9a 100644
--- a/core/java/android/content/pm/PackageParser.java
+++ b/core/java/android/content/pm/PackageParser.java
@@ -4520,6 +4520,17 @@ public class PackageParser {
return applicationInfo.isUpdatedSystemApp();
}
+ /**
+ * @hide
+ */
+ public boolean canHaveOatDir() {
+ // The following app types CANNOT have oat directory
+ // - non-updated system apps
+ // - forward-locked apps or apps installed in ASEC containers
+ return (!isSystemApp() || isUpdatedSystemApp())
+ && !isForwardLocked() && !applicationInfo.isExternalAsec();
+ }
+
public String toString() {
return "Package{"
+ Integer.toHexString(System.identityHashCode(this))