public class

Build

extends Object
java.lang.Object
   ↳ lineageos.os.Build

Class Overview

Information about the current LineageOS build, extracted from system properties.

Summary

Nested Classes
class Build.LINEAGE_VERSION Various version strings. 
class Build.LINEAGE_VERSION_CODES Enumeration of the currently known SDK version codes. 
Constants
String UNKNOWN Value used for when a build property is unknown.
Fields
public static final String LINEAGEOS_DISPLAY_VERSION A build ID string meant for displaying to the user
public static final String LINEAGEOS_VERSION A build ID utilized to distinguish lineageos versions
Public Constructors
Build()
Public Methods
static String getNameForSDKInt(int sdkInt)
Retrieve the name for the SDK int
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String UNKNOWN

added in API level 1

Value used for when a build property is unknown.

Constant Value: "unknown"

Fields

public static final String LINEAGEOS_DISPLAY_VERSION

added in API level 8

A build ID string meant for displaying to the user

public static final String LINEAGEOS_VERSION

added in API level 8

A build ID utilized to distinguish lineageos versions

Public Constructors

public Build ()

added in API level 1

Public Methods

public static String getNameForSDKInt (int sdkInt)

added in API level 1

Retrieve the name for the SDK int

Returns
String name of the SDK int, {@link #UNKNOWN) if not known