summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorFelix <google@ix5.org>2019-10-20 02:04:04 +0200
committerFelix <google@ix5.org>2019-10-20 15:44:04 +0200
commit88c1bf0737f1209c62a7e70a49263834d2104d47 (patch)
tree094d58c2465248b231d94951107a5dee428a7faf /tools/aapt2/java/JavaClassGenerator.cpp
parent30b3905091ea29e9baaa98e43b2eceb7bd42bced (diff)
core/Build: ro.system when comparing fingerprint
ro.build.fingerprint is dynamically generated by deriveFingerprint(), but its output does not match ro.{system,vendor}.build.fingerprint. Fixes: ====== E Build : Mismatched fingerprints; system reported \ Sony/aosp_f8331/kagura:10/QP1A.191005.007/eng.builde.20191020.005112:user/test-keys \ but vendor reported Sony/aosp_f8331/kagura:10/QP1A.191005.007/builder10200050:user/test-keys Example: ======== ro.system.build.fingerprint = Sony/aosp_f8331/kagura:10/QP1A.191005.007/builder10200050:user/test-keys ro.build.fingerprint = Sony/aosp_f8331/kagura:10/QP1A.191005.007/eng.builde.20191020.005112:user/test-keys The critical difference is that deriveFingerprint() inserts the value of "ro.build.version.incremental", while the actual fingerprint produced by build/make/core/Makefile is: BUILD_FINGERPRINT := $(PRODUCT_BRAND)/$(TARGET_PRODUCT)/$(TARGET_DEVICE):\ $(PLATFORM_VERSION)/$(BUILD_ID)/$(BF_BUILD_NUMBER):$(TARGET_BUILD_VARIANT)/$(BUILD_VERSION_TAGS) Where: BF_BUILD_NUMBER := $(BUILD_USERNAME)$$($(DATE_FROM_FILE) +%m%d%H%M) Fix: ==== Use ro.system.build.fingerprint instead, which will match ro.vendor.build.fingerprint. Test: ===== make otapackage, flash, boot, verify no warning message is shown in UI. Change-Id: Ie5e972047d7983b411004a3f0d67c4636a205162 Signed-off-by: Felix <google@ix5.org>
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions