From d2a7a674fb52753a791766428de32e0760e0f832 Mon Sep 17 00:00:00 2001 From: Jorge Lucangeli Obes Date: Wed, 14 Dec 2016 16:42:17 -0500 Subject: [PATCH] Remove duplicated code. Maybe the result of a bad merge? The removed section is identical to the section above. Bug: None Test: Marlin builds, boots. Change-Id: I588f60e60eb89adc606bd433e835caea029c8a72 --- .../android/server/pm/PackageManagerService.java | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/services/core/java/com/android/server/pm/PackageManagerService.java b/services/core/java/com/android/server/pm/PackageManagerService.java index f7cccc8f7eea3..c65514b5772ff 100644 --- a/services/core/java/com/android/server/pm/PackageManagerService.java +++ b/services/core/java/com/android/server/pm/PackageManagerService.java @@ -7587,19 +7587,6 @@ public class PackageManagerService extends IPackageManager.Stub { compilerFilter = getNonProfileGuidedCompilerFilter(compilerFilter); } - // If the OTA updates a system app which was previously preopted to a non-preopted state - // the app might end up being verified at runtime. That's because by default the apps - // are verify-profile but for preopted apps there's no profile. - // Do a hacky check to ensure that if we have no profiles (a reasonable indication - // that before the OTA the app was preopted) the app gets compiled with a non-profile - // filter (by default interpret-only). - // Note that at this stage unused apps are already filtered. - if (isSystemApp(pkg) && - DexFile.isProfileGuidedCompilerFilter(compilerFilter) && - !Environment.getReferenceProfile(pkg.packageName).exists()) { - compilerFilter = getNonProfileGuidedCompilerFilter(compilerFilter); - } - // checkProfiles is false to avoid merging profiles during boot which // might interfere with background compilation (b/28612421). // Unfortunately this will also means that "pm.dexopt.boot=speed-profile" will