From 4182ca99bed1bed96178c382a75d4f747f206b1e Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Sat, 7 Nov 2020 23:47:30 -0800 Subject: [PATCH 2/4] core: Use real security patch level property The standard platform security patch level property may not reflect the real patch level due to SafetyNet hacks, so we need to check the custom "real" property to show the correct patch level to the user (and most apps). Change-Id: I18f8b6812335f132a935e0cfc04523cf693d1101 --- core/java/android/os/Build.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/os/Build.java b/core/java/android/os/Build.java index f0fab3f64113..449336dd53ab 100755 --- a/core/java/android/os/Build.java +++ b/core/java/android/os/Build.java @@ -306,7 +306,7 @@ public class Build { * most recently applied a security patch. */ public static final String SECURITY_PATCH = SystemProperties.get( - "ro.build.version.security_patch", ""); + "ro.build.version.real_security_patch", ""); /** * The media performance class of the device or 0 if none. -- 2.36.1