package com.ifpdos.factorytest;

import android.content.Context;
import android.os.Build;
import android.util.AttributeSet;
import android.util.Log;
import com.cvte.vman.VmanMiddleWare;
import com.cvte.vman.types.EnumMultiScreenType;
import com.ifpdos.factorytest.util.UdiTestConfigParser;
import com.seewo.vcommons.constants.SeewoConstants;
import com.seewo.vcommons.cutomer.CustomerUtils;
import com.seewo.vcommons.data.PropertiesUtils;
import com.seewo.vcommons.utils.BoardTypeUtils;
import java.util.ArrayList;

/* JADX INFO: loaded from: classes.dex */
public class ConfigParser {
    static final int ASSEMBLE_TEST_MODE = 2;
    static final int AUTOMATIC_TEST_MODE = 3;
    static final int FULL_TEST_MODE = 0;
    private static final String KEY_BOARD_TYPE = "ro.cvte.ic";
    private static final String KEY_EN_RKP_UPLOAD = "persist.sys.rkp.enable";
    private static final String KEY_FLAVOR_NAME = "ro.cvte.flavor.name";
    private static final String KEY_PERSIST_PRODUCT_MODEL = "persist.sys.product.model";
    private static final String KEY_PRODUCT_BRAND = "ro.product.brand";
    private static final String KEY_PRODUCT_MODEL = "ro.customer.product.model";
    static final int PARSE_PARAMETER_ONLY = -1;
    static final int PCBA_TEST_MODE = 1;
    static final String PROP_NFC_EXIST = "persist.sys.nfc.exist";
    static final String PROP_TFCARD_EXIST = "persist.ctm.devicelist.second";
    static final String TAG = "ConfigParser";
    public static boolean mHasReceiver = false;

    public enum IDS {
        CAMERA_0,
        VOL_UP_KEY,
        VOL_DOWN_KEY,
        BACK_KEY,
        SPEAKER,
        RECEIVER,
        EAR_PHONE,
        WIFI,
        BLUETOOTH,
        SERIAL_NUMB,
        PART_NUMBER,
        BL,
        AUTO_TEST,
        FACTORY_PRECOPY,
        IR_SENSOR,
        NFC,
        HIDE,
        USB,
        MACHINE_SHOCK,
        MICROPHONE_ARRAY,
        EXIT,
        AUTO_LIGHT,
        WIRED_NETWORK,
        MULTI_SCREEN_LEFT,
        MULTI_SCREEN_RIGHT,
        AP,
        NA,
        TFCARD,
        WIRELESS_MIC,
        PEN_DETECT,
        QRCODE,
        TOUCH_TEST,
        TENCENT_CERTIFICATION_TEST,
        SOUND_PRESSURE,
        USB_SPEED_NUM_TEST,
        AUDIO_IN_TEST,
        ALGORITHM_BOX_TEST,
        COLOR_TEMP_SENSOR,
        MIC_AIR_TEST,
        RS232_TEST,
        TXB_TEST,
        TXB_RECOGNITION_TEST,
        EDLA_RKP_TEST,
        ANION_TEST,
        MULTI_FUN_SENSOR_TEST,
        RECORD_MIN_IN_TEST,
        PANEL_TEST,
        B_PARTITION_TEST,
        TXB_OQC_TEST,
        RSA_TEST,
        LANGUAGE_TEST,
        DRAW_LINE_TEST,
        CAPACITIVE_SCREEN_TEST,
        HDMI_IN_CAMERA_TEST,
        TYPE_B_TEST
    }

    static class TestItemDescribete {
        Class<?> mClass;
        IDS mId;
        String mName;
        int mTitleId;

        public TestItemDescribete(String str, IDS ids, Class<?> cls, int i) {
            this.mName = str;
            this.mId = ids;
            this.mClass = cls;
            this.mTitleId = i;
        }
    }

    static ArrayList<TestItem> parseConfig(Context context, int i) {
        ArrayList<TestItem> arrayList = new ArrayList<>();
        ArrayList<TestItemDescribete> arrayListInitDefaultItems = initDefaultItems(context);
        for (int i2 = 0; i2 < arrayListInitDefaultItems.size(); i2++) {
            arrayList.add(newItemFromDescribete(context, arrayListInitDefaultItems.get(i2)));
        }
        return arrayList;
    }

    static TestItem newItemFromDescribete(Context context, TestItemDescribete testItemDescribete) {
        try {
            TestItem testItem = (TestItem) testItemDescribete.mClass.getDeclaredConstructor(Context.class, AttributeSet.class).newInstance(context, null);
            if (testItemDescribete.mId == IDS.NA) {
                testItem.setNoTest();
            } else {
                testItem.setTitle(context.getResources().getString(testItemDescribete.mTitleId));
                testItem.mId = testItemDescribete.mId;
                if (testItemDescribete.mId == IDS.AUTO_TEST) {
                    testItem.mResultText.setText(testItem.getTitle());
                    testItem.setShowResultOnly();
                } else if (testItemDescribete.mId == IDS.RECEIVER) {
                    mHasReceiver = true;
                } else if (testItemDescribete.mId == IDS.EXIT) {
                    testItem.mResultText.setText(testItem.getTitle());
                    testItem.setShowResultOnly();
                }
            }
            if (testItemDescribete.mId == IDS.HIDE) {
                Log.e("cvte_zxl", testItemDescribete.mName + " -- Hide");
                testItem.mNeedHide = true;
            }
            return testItem;
        } catch (Exception e) {
            Log.e("Roger", "e=" + e);
            e.printStackTrace();
            TestItem testItem2 = new TestItem(context, null);
            testItem2.setNoTest();
            return testItem2;
        }
    }

    static ArrayList<TestItemDescribete> initDefaultItems(Context context) {
        ArrayList<TestItemDescribete> arrayList = new ArrayList<>();
        if (BuildConfig.FLAVOR.equals("seewo")) {
            arrayList.add(new TestItemDescribete("test_sn", IDS.SERIAL_NUMB, SnTest.class, R.string.test_sn));
            arrayList.add(new TestItemDescribete("test_usb", IDS.USB, UsbTest.class, R.string.test_usb));
            if (hasMic()) {
                arrayList.add(new TestItemDescribete("test_microphone_array", IDS.MICROPHONE_ARRAY, MicrophoneArrayTest.class, R.string.test_microphone_array));
            }
            if (hasCamera()) {
                arrayList.add(new TestItemDescribete("test_camera_0", IDS.CAMERA_0, CameraTest.class, R.string.test_cam0));
            }
            if (PropertiesUtils.getProperty("ro.cvte.support_wifi", 1) == 1) {
                arrayList.add(new TestItemDescribete("test_wifi", IDS.WIFI, WifiTest.class, R.string.test_wifi));
            }
            if (hasAudioIn()) {
                arrayList.add(new TestItemDescribete("test_audio_in", IDS.AUDIO_IN_TEST, AudioInTest.class, R.string.test_audio_in));
            }
            if (hasAlgorithmBox()) {
                arrayList.add(new TestItemDescribete("test_algorithm_box", IDS.ALGORITHM_BOX_TEST, AlgorithmBox.class, R.string.test_algorithm_box));
            }
            if (isMultiScreenModel()) {
                arrayList.add(new TestItemDescribete("test_multi_screen", IDS.MULTI_SCREEN_LEFT, MultiScreenLeft.class, R.string.test_multi_screen_left));
            }
            if (isMultiScreenModel()) {
                arrayList.add(new TestItemDescribete("test_multi_screen", IDS.MULTI_SCREEN_RIGHT, MultiScreenRight.class, R.string.test_multi_screen_right));
            }
            if (isSecondaryScreenModel()) {
                arrayList.add(new TestItemDescribete("panel_test", IDS.PANEL_TEST, PanelTest.class, R.string.panel_test));
            }
            arrayList.add(new TestItemDescribete("test_factory_precopy", IDS.FACTORY_PRECOPY, FactoryPrecopyTest.class, R.string.factory_reset));
            return arrayList;
        }
        if (hasSnBurn()) {
            arrayList.add(new TestItemDescribete("test_sn", IDS.SERIAL_NUMB, SnTest.class, R.string.test_sn));
        }
        if (needDetectBPartitionB()) {
            arrayList.add(new TestItemDescribete("b_partition_test", IDS.B_PARTITION_TEST, PreloaderBDetect.class, R.string.b_partition_test));
        }
        if (isSmartBox()) {
            arrayList.add(new TestItemDescribete("test_pn", IDS.PART_NUMBER, PnTest.class, R.string.test_pn));
        }
        if (hasTouchDevice()) {
            arrayList.add(new TestItemDescribete("test_touch", IDS.TOUCH_TEST, TouchTest.class, R.string.test_touch));
        }
        if (hasUsb2() && !hasUsb3()) {
            arrayList.add(new TestItemDescribete("test_usb", IDS.USB, UsbTest.class, R.string.test_usb));
        }
        if (hasTfCard()) {
            arrayList.add(new TestItemDescribete("test_tfcard", IDS.TFCARD, TFCardTest.class, R.string.test_tf_card));
        }
        if (hasBackLight()) {
            arrayList.add(new TestItemDescribete("test_backlight", IDS.BL, BackLightTest.class, R.string.test_backlight));
        }
        if (PropertiesUtils.getProperty(SeewoConstants.SYSTEM_PROPERTY_LIGHT_SENSOR, 1) == 1) {
            arrayList.add(new TestItemDescribete("test_auto_light", IDS.AUTO_LIGHT, AutoLightTest.class, R.string.test_auto_light));
        }
        if (hasEth()) {
            arrayList.add(new TestItemDescribete("test_wired_network", IDS.WIRED_NETWORK, WiredNetworkTest.class, R.string.test_wired_network));
        }
        if (hasSpeaker()) {
            arrayList.add(new TestItemDescribete("test_machine_shock", IDS.MACHINE_SHOCK, MachineShockTest.class, R.string.test_machine_shock));
        }
        if (hasSpeaker()) {
            arrayList.add(new TestItemDescribete("test_speaker", IDS.SPEAKER, SpeakerTest.class, R.string.test_speaker));
        }
        if (hasAudioOut()) {
            arrayList.add(new TestItemDescribete("test_ear_phone", IDS.EAR_PHONE, EarPhoneTest.class, R.string.test_ear_phone));
        }
        if (needShowWirelessMic()) {
            arrayList.add(new TestItemDescribete("test_wireless_mic", IDS.WIRELESS_MIC, WirelessMicTest.class, R.string.test_wireless_mic));
        }
        if (showAirMic()) {
            arrayList.add(new TestItemDescribete("test_microphone_air", IDS.MIC_AIR_TEST, MicAirTest.class, R.string.test_microphone_air));
        }
        if (hasMic()) {
            arrayList.add(new TestItemDescribete("test_microphone_array", IDS.MICROPHONE_ARRAY, MicrophoneArrayTest.class, R.string.test_microphone_array));
        }
        if (hasCamera()) {
            arrayList.add(new TestItemDescribete("test_camera_0", IDS.CAMERA_0, CameraTest.class, R.string.test_cam0));
        }
        if (hasHotspotModule()) {
            arrayList.add(new TestItemDescribete("test_ap", IDS.AP, HotSpotTest.class, R.string.test_ap));
        }
        if (hasWifi()) {
            arrayList.add(new TestItemDescribete("test_wifi", IDS.WIFI, WifiTest.class, R.string.test_wifi));
        }
        if (hasBluetooth()) {
            if (UdiTestConfigParser.isBlueAutoTest()) {
                arrayList.add(new TestItemDescribete("test_blue_tooth", IDS.BLUETOOTH, BluetoothAutoTest.class, R.string.test_bt));
            } else {
                arrayList.add(new TestItemDescribete("test_blue_tooth", IDS.BLUETOOTH, BluetoothTest.class, R.string.test_bt));
            }
        }
        if (hasPenDetect()) {
            arrayList.add(new TestItemDescribete("test_pen_detect", IDS.PEN_DETECT, PenDetectTest.class, R.string.test_pen_detect));
        }
        if (needShowNfcTest()) {
            arrayList.add(new TestItemDescribete("test_nfc", IDS.NFC, NFCTest.class, R.string.test_nfc));
        }
        if (hasHumanDetector()) {
            arrayList.add(new TestItemDescribete("test_ir_sensor", IDS.IR_SENSOR, IrSensorTest.class, R.string.test_ir_sensor));
        }
        if (hasScreenshotTag()) {
            arrayList.add(new TestItemDescribete("QRCode_show", IDS.QRCODE, QRCodeTest.class, R.string.str_qr_code_show));
        }
        if (hasSpeaker()) {
            arrayList.add(new TestItemDescribete("test_sound_pressure", IDS.SOUND_PRESSURE, SoundPressureTest.class, R.string.test_sound_pressure));
        }
        if (PropertiesUtils.getProperty("ro.product.tencent.certification", false)) {
            arrayList.add(new TestItemDescribete("tencent_certification_test", IDS.TENCENT_CERTIFICATION_TEST, TencentCertificationTest.class, R.string.tencent_certification_test));
        }
        if (hasColorTemperatureSensor()) {
            arrayList.add(new TestItemDescribete("test_color_temp_sensor", IDS.COLOR_TEMP_SENSOR, ColorTempSensorTest.class, R.string.test_color_temp_sensor));
        }
        if (hasUsb3()) {
            arrayList.add(new TestItemDescribete("test_usb_speed_and_num_test", IDS.USB_SPEED_NUM_TEST, UsbspeedTest.class, R.string.test_usb_speed_num_test));
        }
        if (hasAudioIn()) {
            arrayList.add(new TestItemDescribete("test_audio_in", IDS.AUDIO_IN_TEST, AudioInTest.class, R.string.test_audio_in));
        }
        if (hasRs232()) {
            arrayList.add(new TestItemDescribete("test_rs232", IDS.RS232_TEST, Rs232Test.class, R.string.test_rs232));
        }
        if (hasTxb()) {
            arrayList.add(new TestItemDescribete("test_txb_connect", IDS.TXB_TEST, TxbConnectivityTest.class, R.string.test_txb));
        }
        if (hasTxb()) {
            arrayList.add(new TestItemDescribete("txb_oqc_test", IDS.TXB_OQC_TEST, TxbOqcTest.class, R.string.txb_oqc_test));
        }
        if (hasRKPTest()) {
            arrayList.add(new TestItemDescribete("test_edla_rkp", IDS.EDLA_RKP_TEST, EdlaRkpTest.class, R.string.test_edla_rkp));
        }
        if (hasAnion()) {
            arrayList.add(new TestItemDescribete("test_anion_test", IDS.ANION_TEST, AnionTest.class, R.string.anion_test));
        }
        if (hasSensor()) {
            arrayList.add(new TestItemDescribete("multi_fun_sensor_test", IDS.MULTI_FUN_SENSOR_TEST, MultifunSensorTest.class, R.string.multi_fun_sensor_test));
        }
        if (hasMicIn()) {
            arrayList.add(new TestItemDescribete("record_mic_in_test", IDS.RECORD_MIN_IN_TEST, MicInTest.class, R.string.mic_in_test));
        }
        if (showPanelTest()) {
            arrayList.add(new TestItemDescribete("panel_test", IDS.PANEL_TEST, PanelTest.class, R.string.panel_test));
        }
        if (hasRsa()) {
            arrayList.add(new TestItemDescribete("rsa_test", IDS.RSA_TEST, RsaTest.class, R.string.rsa_test));
        }
        if (UdiTestConfigParser.hasDrawLineTest()) {
            arrayList.add(new TestItemDescribete("test_draw_line", IDS.DRAW_LINE_TEST, DrawLineTest.class, R.string.str_draw_line_test));
        }
        if (UdiTestConfigParser.hasCapacitiveScreenTest()) {
            arrayList.add(new TestItemDescribete("capacitive_screen_test", IDS.CAPACITIVE_SCREEN_TEST, CapacitiveScreenTest.class, R.string.str_capacitive_screen_sign_test));
        }
        if (UdiTestConfigParser.hasHdmiInCameraTest()) {
            arrayList.add(new TestItemDescribete("hdmi_in_camera_test", IDS.HDMI_IN_CAMERA_TEST, HdmiInTest.class, R.string.hdmi_in_camera_test));
        }
        if (UdiTestConfigParser.hasTypeBTest()) {
            arrayList.add(new TestItemDescribete("TYPE_B_TEST", IDS.TYPE_B_TEST, TypeBTest.class, R.string.type_b_test_title));
        }
        arrayList.add(new TestItemDescribete("test_factory_precopy", IDS.FACTORY_PRECOPY, FactoryPrecopyTest.class, R.string.factory_reset));
        arrayList.add(new TestItemDescribete("test_language_switch", IDS.LANGUAGE_TEST, LanguageSwitchTest.class, R.string.test_language_switch));
        return arrayList;
    }

    private static boolean hasRsa() {
        return "sber_bytello".equals(PropertiesUtils.getProperty("ro.cvte.flavor.name", "")) && "3588".equals(getBoardType());
    }

    private static boolean isLanguageSwitchEnabled() {
        return PropertiesUtils.getProperty("persist.sys.dft.language.switch", false);
    }

    public static boolean hasDualPir() {
        return hasDeviceThird(17);
    }

    private static boolean hasTxb() {
        return hasDeviceSecond(26);
    }

    private static boolean hasRs232() {
        return hasDeviceThird(10);
    }

    private static boolean hasMicIn() {
        return hasDeviceThird(13);
    }

    private static boolean hasColorTemperatureSensor() {
        return hasDeviceSecond(18);
    }

    private static boolean needShowNfcTest() {
        if (isBoardType("8195")) {
            return false;
        }
        return PropertiesUtils.getProperty(PROP_NFC_EXIST, 0) == 1 || hasSensorBox() || hasNfcIn();
    }

    private static boolean needShowWirelessMic() {
        if (isBoardType("8195")) {
            return false;
        }
        return hasWirelessMic();
    }

    private static boolean hasDevice(int i) {
        String str = BoardTypeUtils.isSupportSELinux() ? "persist.ctm.devicelist" : "persist.sys.devicelist";
        long property = PropertiesUtils.getProperty(str, -1L);
        if (property == -1) {
            try {
                Log.d(TAG, str.concat(" null,try get from vman"));
                property = VmanMiddleWare.getInstance().getDevcieCtrl().getDeviceList();
            } catch (Throwable th) {
                Log.e(TAG, "get deviceList from vman error", th);
                property = -1;
            }
        }
        Log.d(TAG, "deviceList: " + property);
        return property != -1 && ((property >> i) & 1) == 1;
    }

    private static boolean hasDeviceSecond(int i) {
        String str = BoardTypeUtils.isSupportSELinux() ? PROP_TFCARD_EXIST : "persist.sys.devicelist.second";
        long property = PropertiesUtils.getProperty(str, -1L);
        if (property == -1) {
            try {
                Log.d(TAG, str.concat(" null,try get from vman"));
                property = VmanMiddleWare.getInstance().getDevcieCtrl().getSecondDeviceList();
            } catch (Throwable th) {
                Log.e(TAG, "get deviceListSecond from vman error", th);
                property = -1;
            }
        }
        Log.d(TAG, "deviceListSecond: " + property);
        return property != -1 && ((property >> i) & 1) == 1;
    }

    private static boolean hasDeviceThird(int i) {
        long property = PropertiesUtils.getProperty("persist.sys.devicelist.third", -1L);
        if (property == -1) {
            try {
                Log.d(TAG, "persist.sys.devicelist.third null,try get from vman");
                property = VmanMiddleWare.getInstance().getDevcieCtrl().getThirdDeviceList();
            } catch (Throwable th) {
                Log.e(TAG, "get deviceListThird from vman error", th);
                property = -1;
            }
        }
        Log.d(TAG, "deviceListThird: " + property);
        return property != -1 && ((property >> i) & 1) == 1;
    }

    public static boolean hasHumanDetector() {
        return hasSensorBox() || hasDevice(20) || hasDevice(30);
    }

    public static boolean hasMic() {
        return hasDevice(4);
    }

    public static boolean hasCamera() {
        return hasDevice(18);
    }

    public static boolean hasBluetooth() {
        return hasDevice(2);
    }

    public static boolean hasPenDetect() {
        return hasDeviceSecond(6);
    }

    public static boolean hasSensorBox() {
        return hasDeviceSecond(11);
    }

    public static boolean hasTfCard() {
        return hasDeviceSecond(17);
    }

    public static boolean hasTouchDevice() {
        return hasDeviceSecond(28);
    }

    public static boolean hasSpeaker() {
        return hasDeviceSecond(29);
    }

    public static boolean hasWirelessMic() {
        return hasDeviceSecond(30);
    }

    public static boolean hasHotspotModule() {
        return hasDevice(7);
    }

    public static boolean hasScreenshotTag() {
        return hasDeviceThird(0);
    }

    public static boolean hasAudioIn() {
        return hasDeviceThird(1);
    }

    public static boolean hasAlgorithmBox() {
        try {
            return VmanMiddleWare.getInstance().getDF15Ctrl().getSupportState();
        } catch (Exception e) {
            Log.e(TAG, "hasAlgorithmBox: error", e);
            return false;
        }
    }

    public static boolean hasBackLight() {
        return hasDeviceThird(2);
    }

    public static boolean hasSnBurn() {
        return hasDeviceThird(3);
    }

    public static boolean isSmartBox() {
        return "SA12".equals(PropertiesUtils.getProperty("ro.customer.product.model", "")) && PropertiesUtils.getProperty("ro.cvte.flavor.name", "").contains("smart");
    }

    public static boolean isMultiScreenModel() {
        return "BG86EG-BO11D2A-E".equals(PropertiesUtils.getProperty("persist.sys.product.model", ""));
    }

    public static boolean isSecondaryScreenModel() {
        try {
            EnumMultiScreenType screenType = VmanMiddleWare.getInstance().getMultiScreenCtrl().getScreenType();
            Log.d(TAG, "isSecondaryScreenModel: " + screenType.name());
            return screenType.equals(EnumMultiScreenType.TYPE_SLAVE);
        } catch (Exception e) {
            Log.e(TAG, "isSecondaryScreenModel: getScreenType error", e);
            return false;
        }
    }

    public static boolean hasWifi() {
        return hasDevice(5);
    }

    public static boolean hasEth() {
        return hasDeviceThird(4);
    }

    public static boolean hasUsb3() {
        return hasDeviceThird(5);
    }

    public static boolean hasAudioOut() {
        return hasDeviceThird(6);
    }

    public static boolean hasUsb2() {
        return hasDeviceThird(7);
    }

    private static boolean showAirMic() {
        if (hasMic() && isSelinuxClose()) {
            return PropertiesUtils.getProperty("ro.mic.test.prop.support", false) || "e_commerce_smart_mind".equals(CustomerUtils.getFlavorName()) || "maxhub_cd_oversea".equals(CustomerUtils.getFlavorName());
        }
        return false;
    }

    private static boolean showPanelTest() {
        String property = PropertiesUtils.getProperty("ro.cvte.ic", "");
        return "9666".equals(property) || "3562".equals(property);
    }

    public static boolean hasAnion() {
        return hasDeviceThird(9);
    }

    public static boolean hasNfcIn() {
        return hasDeviceThird(12);
    }

    public static boolean hasRKPTest() {
        Log.d(TAG, "hasRKPTest: " + PropertiesUtils.getProperty(KEY_EN_RKP_UPLOAD, ""));
        return Build.VERSION.SDK_INT >= 33 && "TRUE".equalsIgnoreCase(PropertiesUtils.getProperty(KEY_EN_RKP_UPLOAD, "TRUE"));
    }

    public static boolean hasCo2Sensor() {
        return hasDevice(27);
    }

    public static boolean hasVocSensor() {
        return hasDeviceSecond(20);
    }

    public static boolean hasPM25Sensor() {
        return hasDeviceSecond(19);
    }

    public static boolean hasPm10Sensor() {
        return hasDeviceThird(23);
    }

    public static boolean hasFormaldehydeSensor() {
        return hasDeviceThird(11);
    }

    public static boolean hasTemperatureSensor() {
        return hasSensorBox() || hasDevice(28);
    }

    public static boolean hasHumiditySensor() {
        return hasSensorBox() || hasDevice(28);
    }

    public static boolean hasSensor() {
        return Build.VERSION.SDK_INT >= 33 && (hasHumiditySensor() || hasTemperatureSensor() || hasFormaldehydeSensor() || hasPM25Sensor() || hasVocSensor() || hasCo2Sensor() || hasPm10Sensor());
    }

    public static boolean isBoardType(String str) {
        return PropertiesUtils.getProperty("ro.cvte.ic", "").equals(str);
    }

    public static String getBoardType() {
        return PropertiesUtils.getProperty("ro.cvte.ic", "");
    }

    public static boolean is9666Machine() {
        return isBoardType("9666");
    }

    public static boolean isSelinuxClose() {
        return PropertiesUtils.getProperty("ro.boot.selinux").equals("permissive");
    }

    public static boolean isSmartCustomer() {
        return "SMART".equals(PropertiesUtils.getProperty("ro.product.brand", ""));
    }

    public static boolean needDetectBPartitionB() {
        return isBoardType("8195");
    }
}
