patches/frameworks/base/0002-core-Use-real-security-patch-level-property.patch
2021-10-20 20:51:07 -04:00

32 lines
1.1 KiB
Diff

From 214f184c91b39047046f5cc14af7541e5fb1b458 Mon Sep 17 00:00:00 2001
From: Danny Lin <danny@kdrag0n.dev>
Date: Sat, 7 Nov 2020 23:47:30 -0800
Subject: [PATCH 2/2] 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 95bcdf42f739..49ced75734d0 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.33.1