From b519c716199315a5a25d91cb32033bd808e413ca Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 13 Oct 2020 12:38:48 -0700 Subject: [PATCH] Use ro.build.version.release_or_codename to reconstruct fingerprint The ro.build.version.release property was changed from being the codename or final name of the current release to be the final name of the most recent release. Use ro.build.version.release_or_codename to reconstruct the fingerprint to match what the build system does. Bug: 158483506 Test: adb shell getprop | grep fingerprint Change-Id: I3bd992b6f06ff90bb6024253339a2654afa069ee --- init/property_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/property_service.cpp b/init/property_service.cpp index a1e0969ed..57e82fae8 100644 --- a/init/property_service.cpp +++ b/init/property_service.cpp @@ -860,7 +860,7 @@ static void property_derive_build_fingerprint() { build_fingerprint += '/'; build_fingerprint += GetProperty("ro.product.device", UNKNOWN); build_fingerprint += ':'; - build_fingerprint += GetProperty("ro.build.version.release", UNKNOWN); + build_fingerprint += GetProperty("ro.build.version.release_or_codename", UNKNOWN); build_fingerprint += '/'; build_fingerprint += GetProperty("ro.build.id", UNKNOWN); build_fingerprint += '/';