1 /*
2  * Copyright (C) 2017 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package com.android.tradefed.device;
17 
18 /**
19  * Common constant definitions for device side property names
20  */
21 public class DeviceProperties {
22 
23     /** property name for device board */
24     public static final String BOARD = "ro.product.board";
25     /** property name for device hardware */
26     public static final String HARDWARE = "ro.hardware";
27     /** proprty name to indicate device variant (e.g. flo vs dev) */
28     public static final String VARIANT = "ro.product.vendor.device";
29     /** Legacy O-MR1 property name to indicate device variant (e.g. flo vs dev) */
30     public static final String VARIANT_LEGACY_O_MR1 = "ro.vendor.product.device";
31     /** Legacy property name to indicate device variant (e.g. flo vs dev) */
32     public static final String VARIANT_LEGACY_LESS_EQUAL_O = "ro.product.device";
33     /** proprty name to indicate SDK version */
34     public static final String SDK_VERSION = "ro.build.version.sdk";
35     /** property name for device brand */
36     public static final String BRAND = "ro.product.brand";
37     /** property name for device product name */
38     public static final String PRODUCT = "ro.product.name";
39     /** property name for device release version, e.g. version 9 for Android Pie */
40     public static final String RELEASE_VERSION = "ro.build.version.release";
41     /** property name for device boot reason history */
42     public static final String BOOT_REASON_HISTORY = "persist.sys.boot.reason.history";
43     /** property name for the type of build */
44     public static final String BUILD_TYPE = "ro.build.type";
45     /** property name for the alias of the build name */
46     public static final String BUILD_ALIAS = "ro.build.id";
47     /** property name for the flavor of the device build */
48     public static final String BUILD_FLAVOR = "ro.build.flavor";
49     /** property name for whether or not the device is headless */
50     public static final String BUILD_HEADLESS = "ro.build.headless";
51     /** property name for the build id of the device */
52     public static final String BUILD_ID = "ro.build.version.incremental";
53     /** property name for the build codename of the device. Example: Q */
54     public static final String BUILD_CODENAME = "ro.build.version.codename";
55     /** property name for the build tags of the device */
56     public static final String BUILD_TAGS = "ro.build.tags";
57     /** property name for the SDK version that initially shipped on the device. */
58     public static final String FIRST_API_LEVEL = "ro.product.first_api_level";
59 }
60