summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorJeff Hao <jeffhao@google.com>2014-11-06 20:45:00 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-11-06 20:45:01 +0000
commit2a83226c7585895d08d3320a4bb881f3659ad0d9 (patch)
tree47ba025ea034216bff9bd257ffd08e22fb55ad6d /services
parentd47ab00cc4f15287c8b48ed5805c4e9766facb58 (diff)
parent2e594cfe9848b56ad71a6f7bc4de13df7a36511c (diff)
downloadframeworks_base-2a83226c7585895d08d3320a4bb881f3659ad0d9.zip
frameworks_base-2a83226c7585895d08d3320a4bb881f3659ad0d9.tar.gz
frameworks_base-2a83226c7585895d08d3320a4bb881f3659ad0d9.tar.bz2
Merge "Change boot screen title to "Android is starting" when not upgrading." into lmp-sprout-dev
Diffstat (limited to 'services')
-rw-r--r--services/core/java/com/android/server/pm/PackageManagerService.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java
index b79e157..7aba607 100644
--- a/services/core/java/com/android/server/pm/PackageManagerService.java
+++ b/services/core/java/com/android/server/pm/PackageManagerService.java
@@ -332,6 +332,7 @@ public class PackageManagerService extends IPackageManager.Stub {
final DisplayMetrics mMetrics;
final int mDefParseFlags;
final String[] mSeparateProcesses;
+ final boolean mIsUpgrade;
// This is where all application persistent data goes.
final File mAppDataDir;
@@ -1750,7 +1751,8 @@ public class PackageManagerService extends IPackageManager.Stub {
// If this is first boot after an OTA, and a normal boot, then
// we need to clear code cache directories.
- if (!Build.FINGERPRINT.equals(mSettings.mFingerprint) && !onlyCore) {
+ mIsUpgrade = !Build.FINGERPRINT.equals(mSettings.mFingerprint);
+ if (mIsUpgrade && !onlyCore) {
Slog.i(TAG, "Build fingerprint changed; clearing code caches");
for (String pkgName : mSettings.mPackages.keySet()) {
deleteCodeCacheDirsLI(pkgName);
@@ -1790,6 +1792,11 @@ public class PackageManagerService extends IPackageManager.Stub {
return mOnlyCore;
}
+ @Override
+ public boolean isUpgrade() {
+ return mIsUpgrade;
+ }
+
private String getRequiredVerifierLPr() {
final Intent verification = new Intent(Intent.ACTION_PACKAGE_NEEDS_VERIFICATION);
final List<ResolveInfo> receivers = queryIntentReceivers(verification, PACKAGE_MIME_TYPE,