Skip to content

Commit 840e4d6

Browse files
maxweneldainosor
authored andcommitted
base: remove useless pm cache hack
we anyway made sure cache gets invalidated correctly does not matter if userdebug eng or whatevber Change-Id: Idfe319b38d36d56df687a01fb62c468e643a8b60
1 parent f8842ae commit 840e4d6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

services/core/java/com/android/server/pm/PackageManagerServiceUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ public static void enforceSystemOrRoot(String message) {
13501350
// NOTE: When no BUILD_NUMBER is set by the build system, it defaults to a build
13511351
// that starts with "eng." to signify that this is an engineering build and not
13521352
// destined for release.
1353-
if (isUserDebugBuild && incrementalVersion.startsWith("eng.")) {
1353+
/*if (isUserDebugBuild && incrementalVersion.startsWith("eng.")) {
13541354
// Heuristic: If the /system directory has been modified recently due to an "adb sync"
13551355
// or a regular make, then blow away the cache. Note that mtimes are *NOT* reliable
13561356
// in general and should not be used for production changes. In this specific case,
@@ -1362,7 +1362,7 @@ public static void enforceSystemOrRoot(String message) {
13621362
FileUtils.deleteContents(cacheBaseDir);
13631363
cacheDir = FileUtils.createDir(cacheBaseDir, cacheName);
13641364
}
1365-
}
1365+
}*/
13661366

13671367
return cacheDir;
13681368
}

0 commit comments

Comments
 (0)