Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Merge "Fix issue #23116383: Include security patch level in Settings"…
Browse files Browse the repository at this point in the history
… into mnc-dev
  • Loading branch information
Dianne Hackborn authored and Android (Google) Code Review committed Aug 13, 2015
2 parents c97509c + c3f7449 commit ff9912d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/current.txt
Expand Up @@ -22674,12 +22674,14 @@ package android.os {

public static class Build.VERSION {
ctor public Build.VERSION();
field public static final java.lang.String BASE_OS;
field public static final java.lang.String CODENAME;
field public static final java.lang.String INCREMENTAL;
field public static final int PREVIEW_SDK_INT;
field public static final java.lang.String RELEASE;
field public static final deprecated java.lang.String SDK;
field public static final int SDK_INT;
field public static final java.lang.String SECURITY_PATCH;
}

public static class Build.VERSION_CODES {
Expand Down
2 changes: 2 additions & 0 deletions api/system-current.txt
Expand Up @@ -24618,12 +24618,14 @@ package android.os {

public static class Build.VERSION {
ctor public Build.VERSION();
field public static final java.lang.String BASE_OS;
field public static final java.lang.String CODENAME;
field public static final java.lang.String INCREMENTAL;
field public static final int PREVIEW_SDK_INT;
field public static final java.lang.String RELEASE;
field public static final deprecated java.lang.String SDK;
field public static final int SDK_INT;
field public static final java.lang.String SECURITY_PATCH;
}

public static class Build.VERSION_CODES {
Expand Down
11 changes: 11 additions & 0 deletions core/java/android/os/Build.java
Expand Up @@ -156,6 +156,17 @@ public static class VERSION {
*/
public static final String RELEASE = getString("ro.build.version.release");

/**
* The base OS build the product is based on.
*/
public static final String BASE_OS = SystemProperties.get("ro.build.version.base_os", "");

/**
* The user-visible security patch level.
*/
public static final String SECURITY_PATCH = SystemProperties.get(
"ro.build.version.security_patch", "");

/**
* The user-visible SDK version of the framework in its raw String
* representation; use {@link #SDK_INT} instead.
Expand Down

0 comments on commit ff9912d

Please sign in to comment.