Merge "API to get hardware variant (SKU)" am: c042e44813 am: edc94080d9 am: ddad10d8bd

Change-Id: I0f5835038a2a1e3b2aeba4708ddc9e8e4953716d
This commit is contained in:
Treehugger Robot
2020-04-29 21:49:37 +00:00
committed by Automerger Merge Worker
2 changed files with 7 additions and 0 deletions

View File

@@ -35808,6 +35808,7 @@ package android.os {
field public static final String PRODUCT;
field @Deprecated public static final String RADIO;
field @Deprecated public static final String SERIAL;
field @NonNull public static final String SKU;
field public static final String[] SUPPORTED_32_BIT_ABIS;
field public static final String[] SUPPORTED_64_BIT_ABIS;
field public static final String[] SUPPORTED_ABIS;

View File

@@ -105,6 +105,12 @@ public class Build {
/** The name of the hardware (from the kernel command line or /proc). */
public static final String HARDWARE = getString("ro.hardware");
/**
* The hardware variant (SKU), if available.
*/
@NonNull
public static final String SKU = getString("ro.boot.product.hardware.sku");
/**
* Whether this build was for an emulator device.
* @hide