Skip to content

Commit

Permalink
core: Use real security patch level property
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kdrag0n committed Dec 16, 2020
1 parent b241365 commit 7b298d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/java/android/os/Build.java
Expand Up @@ -267,7 +267,7 @@ public static class VERSION {
* 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 user-visible SDK version of the framework in its raw String
Expand Down

1 comment on commit 7b298d5

@titomj60
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I add it at the end

Please sign in to comment.