huangcm
2025-04-09 02d4ce54b909bd733f12e9f3fa4c1b03cf2d6f45
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.DeviceTest.helper;
 
import android.os.SystemProperties;
import android.text.TextUtils;
 
public class ConfigUtil {
    public static int ANDROID_SDK_VERSION_P = 28;
    public static int ANDROID_SDK_VERSION_R = 30;
    public static int ANDROID_SDK_VERSION_S = 31;
 
    private static String mProductModel;
 
    public static boolean isSpecialEvb() {
        String platform = SystemProperties.get("ro.board.platform");
        if ("rk356x".equals(platform)) {
            if (TextUtils.isEmpty(mProductModel)) {
                mProductModel = SystemUtil.execShellCmd(
                        "cat /sys/firmware/devicetree/base/model");
            }
            if (null != mProductModel) {
                return mProductModel.contains("EVB");
            }
        }
        return false;
    }
}