package com.seewo.vcommons.data;

import android.os.SystemProperties;
import android.util.Log;
import okhttp3.HttpUrl;

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

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public static final boolean f3652a = f("persist.sys.umengfunction", true);

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    private static final String f3653b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    private static final String f3654c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    private static final String f3655d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    private static final String f3656e;

    /* JADX INFO: renamed from: f, reason: collision with root package name */
    private static final String f3657f;

    /* JADX INFO: renamed from: g, reason: collision with root package name */
    private static final String f3658g;

    /* JADX INFO: renamed from: h, reason: collision with root package name */
    private static final String f3659h;

    /* JADX INFO: renamed from: i, reason: collision with root package name */
    private static final String f3660i;

    /* JADX INFO: renamed from: j, reason: collision with root package name */
    private static final String f3661j;

    /* JADX INFO: renamed from: k, reason: collision with root package name */
    private static final String f3662k;

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    private static final String f3663l;

    /* JADX INFO: renamed from: m, reason: collision with root package name */
    private static final String f3664m;

    /* JADX INFO: renamed from: n, reason: collision with root package name */
    private static final String f3665n;

    /* JADX INFO: renamed from: o, reason: collision with root package name */
    private static final String f3666o;

    /* JADX INFO: renamed from: p, reason: collision with root package name */
    private static final String f3667p;

    static {
        f3653b = Y0.b.m() ? "persist.ctm.ir_lock_white_list" : "persist.sys.ir_lock_white_list";
        f3654c = Y0.b.m() ? "persist.ctm.no_signal_type" : "persist.sys.no_signal_type";
        f3655d = Y0.b.m() ? "persist.ctm.double_screen.display_mode" : "persist.sys.double_screen.display_mode";
        f3656e = Y0.b.m() ? "persist.ctm.dual_touch_mode" : "persist.sys.dual_touch_mode";
        f3657f = Y0.b.m() ? "persist.ctm.is_factory_mode" : "persist.sys.is_factory_mode";
        f3658g = Y0.b.m() ? "persist.ctm.note.tmp_fd_abs" : "persist.sys.note.tmp_fd_abs";
        f3659h = Y0.b.m() ? "persist.ctm.long_touch_screen" : "persist.sys.long_touch_screen";
        f3660i = Y0.b.m() ? "persist.ctm.long_touch_ui" : "persist.sys.long_touch_ui";
        f3661j = Y0.b.m() ? "persist.ctm.long_touch_status" : "persist.sys.long_touch_status";
        f3662k = Y0.b.m() ? "persist.ctm.long_touch_counts" : "persist.sys.long_touch_counts";
        f3663l = Y0.b.m() ? "persist.ctm.long_touch_operation" : "persist.sys.long_touch_operation";
        f3664m = Y0.b.m() ? "persist.ctm.netlog.on" : "persist.sys.netlog.on";
        f3665n = Y0.b.m() ? "persist.ctm.netlog.state" : "persist.sys.netlog.state";
        f3666o = Y0.b.m() ? "persist.ctm.sharp.security_mode" : "persist.sys.sharp.security_mode";
        f3667p = Y0.b.m() ? "ctm.freeform.top_task_id" : "sys.freeform.top_task_id";
    }

    public static int a() {
        return c("persist.sys.auto.switch.channel", 1);
    }

    public static String b() {
        return e("ro.build.version.incremental", "develop");
    }

    public static int c(String str, int i2) {
        try {
            return SystemProperties.getInt(str, i2);
        } catch (Exception e2) {
            Log.w("PropertiesUtils", "getProperty int: ", e2);
            return i2;
        }
    }

    public static String d(String str) {
        try {
            return SystemProperties.get(str);
        } catch (Exception e2) {
            Log.w("PropertiesUtils", "getProperty String: ", e2);
            return HttpUrl.FRAGMENT_ENCODE_SET;
        }
    }

    public static String e(String str, String str2) {
        try {
            return SystemProperties.get(str, str2);
        } catch (Exception e2) {
            Log.w("PropertiesUtils", "getProperty String: ", e2);
            return str2;
        }
    }

    public static boolean f(String str, boolean z2) {
        try {
            return SystemProperties.getBoolean(str, z2);
        } catch (Exception e2) {
            Log.w("PropertiesUtils", "getProperty bool: ", e2);
            return z2;
        }
    }

    public static int g() {
        return c("persist.sys.working.writer", 0);
    }

    public static boolean h() {
        return f("persist.sys.toumenu.call", true);
    }

    public static boolean i() {
        return c(T0.b.f1679n, 0) == 0;
    }

    public static boolean j() {
        return f("persist.sys.log.enable", false);
    }

    public static boolean k() {
        return f(T0.b.f1684s, false);
    }

    public static boolean l() {
        return c("persist.sys.usbscsi", 1) == 1;
    }

    public static boolean m() {
        return "1".equals(d("persist.sys.accelerator_lock"));
    }

    public static boolean n() {
        return !m();
    }

    public static void o(boolean z2) {
        q("persist.sys.toumenu.call", Boolean.toString(z2));
    }

    public static void p(int i2) {
        q("persist.sys.auto.switch.channel", Integer.toString(i2));
    }

    public static boolean q(String str, String str2) {
        try {
            SystemProperties.set(str, str2);
            return true;
        } catch (Exception e2) {
            Log.w("PropertiesUtils", "setProperty: ", e2);
            return false;
        }
    }

    public static void r(boolean z2) {
        q("persist.sys.usbscsi", z2 ? "1" : "0");
    }
}
