package Y0;

import android.os.Build;
import android.text.TextUtils;
import okhttp3.HttpUrl;

/* JADX INFO: loaded from: classes.dex */
public abstract class b {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    private static a f1894a;

    public enum a {
        MSD608,
        MSD6369,
        MSD638,
        MSD8386,
        MTK5508,
        RK3288,
        HISI_V510,
        HISI_V620,
        HISI_V551,
        HISI_V811,
        V972,
        RK3399,
        MTK9950,
        V982,
        A1516,
        RK3588,
        MT8195,
        MT9666,
        V100,
        RK3576,
        MT9679,
        MT9681,
        G720,
        HISI_MP620,
        Other
    }

    public static a a() {
        a aVar = f1894a;
        if (aVar != null) {
            return aVar;
        }
        String strB = b();
        if (strB.equals("MSD638")) {
            f1894a = a.MSD638;
        } else if (strB.equals("MSD608")) {
            f1894a = a.MSD608;
        } else if (strB.equals("MSD6369")) {
            f1894a = a.MSD6369;
        } else if (strB.equals("MTK5508")) {
            f1894a = a.MTK5508;
        } else if (strB.equals("3288")) {
            f1894a = a.RK3288;
        } else if (strB.equals("510")) {
            f1894a = a.HISI_V510;
        } else if (strB.equals("3399")) {
            f1894a = a.RK3399;
        } else if (strB.equals("620")) {
            f1894a = a.HISI_V620;
        } else if (strB.equals("551")) {
            f1894a = a.HISI_V551;
        } else if (strB.equals("811")) {
            f1894a = a.HISI_V811;
        } else if (strB.equals("MSD8386")) {
            f1894a = a.MSD8386;
        } else if (strB.equals("972")) {
            f1894a = a.V972;
        } else if (strB.equals("9950")) {
            f1894a = a.MTK9950;
        } else if (strB.endsWith("982")) {
            f1894a = a.V982;
        } else if (strB.endsWith("1516")) {
            f1894a = a.A1516;
        } else if (strB.endsWith("3588")) {
            f1894a = a.RK3588;
        } else if (strB.endsWith("8195")) {
            f1894a = a.MT8195;
        } else if (strB.endsWith("9666")) {
            f1894a = a.MT9666;
        } else if (strB.endsWith("v100")) {
            f1894a = a.V100;
        } else if (strB.endsWith("3576")) {
            f1894a = a.RK3576;
        } else if (strB.endsWith("9679")) {
            f1894a = a.MT9679;
        } else if (strB.endsWith("9681")) {
            f1894a = a.MT9681;
        } else if (strB.endsWith("720")) {
            f1894a = a.G720;
        } else if (strB.endsWith("mp620")) {
            f1894a = a.HISI_MP620;
        } else {
            f1894a = a.Other;
        }
        return f1894a;
    }

    public static String b() {
        String strE = com.seewo.vcommons.data.d.e("ro.cvte.ic", HttpUrl.FRAGMENT_ENCODE_SET);
        return TextUtils.isEmpty(strE) ? com.seewo.vcommons.data.d.e("ro.customer.ic", HttpUrl.FRAGMENT_ENCODE_SET) : strE;
    }

    public static boolean c() {
        return a.RK3288 == a();
    }

    public static boolean d() {
        return a.RK3399 == a();
    }

    public static boolean e() {
        return a.HISI_V510 == a();
    }

    public static boolean f() {
        return a.HISI_V551 == a();
    }

    public static boolean g() {
        return a.HISI_V811 == a();
    }

    public static boolean h() {
        return a.MSD8386 == a();
    }

    public static boolean i() {
        return a.V982 == a();
    }

    public static boolean j() {
        return a.MTK9950 == a();
    }

    public static boolean k() {
        return j() && Build.VERSION.SDK_INT == 30;
    }

    public static boolean l() {
        return c() || d();
    }

    public static boolean m() {
        return T0.a.f1662a <= 9 && !k() && Build.VERSION.SDK_INT < 33;
    }

    public static boolean n() {
        return e() || f() || g();
    }

    public static boolean o() {
        return com.seewo.vcommons.data.d.c("ro.ctm.support.selinux", 0) == 1;
    }

    public static boolean p() {
        return o() && m();
    }
}
