From ddbe3e08ac9962bbd39f5d7fccb30c8c78e45702 Mon Sep 17 00:00:00 2001 From: Robin Lee Date: Tue, 30 Mar 2021 17:06:56 +0000 Subject: [PATCH] Address API feedback on SKU/ODM_SKU Change-Id: Iec5fe90dd172c9d45442731485da27c71039ac2f Test: atest android.os.cts.BuildTest Bug: 180419023 --- core/java/android/os/Build.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/core/java/android/os/Build.java b/core/java/android/os/Build.java index 189a8ac55a109..03caafda2b136 100755 --- a/core/java/android/os/Build.java +++ b/core/java/android/os/Build.java @@ -115,15 +115,20 @@ public class Build { public static final String HARDWARE = getString("ro.hardware"); /** - * The SKU of the hardware (from the kernel command line). The SKU is reported by the bootloader - * to configure system software features. + * The SKU of the hardware (from the kernel command line). + * + *

The SKU is reported by the bootloader to configure system software features. + * If no value is supplied by the bootloader, this is reported as {@link #UNKNOWN}. + */ @NonNull public static final String SKU = getString("ro.boot.hardware.sku"); /** - * The SKU of the device as set by the original design manufacturer (ODM). This is a - * runtime-initialized property set during startup to configure device services. + * The SKU of the device as set by the original design manufacturer (ODM). + * + *

This is a runtime-initialized property set during startup to configure device + * services. If no value is set, this is reported as {@link #UNKNOWN}. * *

The ODM SKU may have multiple variants for the same system SKU in case a manufacturer * produces variants of the same design. For example, the same build may be released with