From a1e35fbfccec9547c32cafc391ff687ecf9a7c70 Mon Sep 17 00:00:00 2001 From: Stefano Cianciulli Date: Wed, 3 Aug 2022 13:25:44 +0000 Subject: Correct mapping for "boot-after-ota" compilation reason The "boot" compilation reason is now deprecated (since Android S), but the mapping between PackageManagerService.REASON_BOOT_AFTER_OTA and the corresponding value in ART_COMPILATION_FILTER has not been updated (or it has been incorrect all along). Note that this will require a change in APC/Pitot to make sure that both the previous and the new value for this ID are treated in the same way (so we don't lose data logged ahead of this change, which is still valid, just associated with an unexpected ID). Bug: 239548426 Test: atest ArtStatsLogUtilsTest Change-Id: I38b4a16768f32f8ed2ecfe5d5c389ad4ec3b6b6e --- services/core/java/com/android/server/pm/dex/ArtStatsLogUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/pm/dex/ArtStatsLogUtils.java b/services/core/java/com/android/server/pm/dex/ArtStatsLogUtils.java index b26b6940a1af..f00068c074a1 100644 --- a/services/core/java/com/android/server/pm/dex/ArtStatsLogUtils.java +++ b/services/core/java/com/android/server/pm/dex/ArtStatsLogUtils.java @@ -62,7 +62,7 @@ public class ArtStatsLogUtils { COMPILATION_REASON_MAP.put(PackageManagerService.REASON_FIRST_BOOT, ArtStatsLog. ART_DATUM_REPORTED__COMPILATION_REASON__ART_COMPILATION_REASON_FIRST_BOOT); COMPILATION_REASON_MAP.put(PackageManagerService.REASON_BOOT_AFTER_OTA, ArtStatsLog. - ART_DATUM_REPORTED__COMPILATION_REASON__ART_COMPILATION_REASON_BOOT); + ART_DATUM_REPORTED__COMPILATION_REASON__ART_COMPILATION_REASON_BOOT_AFTER_OTA); COMPILATION_REASON_MAP.put(PackageManagerService.REASON_POST_BOOT, ArtStatsLog. ART_DATUM_REPORTED__COMPILATION_REASON__ART_COMPILATION_REASON_POST_BOOT); COMPILATION_REASON_MAP.put(PackageManagerService.REASON_INSTALL, ArtStatsLog. -- cgit v1.2.3-59-g8ed1b