package com.seewo.vcommons.data;

import android.os.SystemProperties;
import android.text.TextUtils;
import android.util.Log;
import com.seewo.libmyousdk.model.DubboResponseInfo;

/* JADX INFO: compiled from: PropertiesUtils.java */
/* JADX INFO: loaded from: classes.dex */
public class d {
    static {
        m("persist.sys.umengfunction", true);
        d.e.h.e.b.i();
        d.e.h.e.b.i();
        d.e.h.e.b.i();
        d.e.h.e.b.i();
        d.e.h.e.b.i();
        d.e.h.e.b.i();
        d.e.h.e.b.i();
        d.e.h.e.b.i();
        d.e.h.e.b.i();
        d.e.h.e.b.i();
        d.e.h.e.b.i();
        d.e.h.e.b.i();
        d.e.h.e.b.i();
        d.e.h.e.b.i();
        d.e.h.e.b.i();
    }

    public static String a() {
        return l("ro.cvte.ic", "") + "_" + l("ro.product.device", "") + "_" + b() + "_" + l("persist.sys.ota.default_key", "00");
    }

    public static String b() {
        return l("ro.build.version.release", "unknown");
    }

    public static String c() {
        return k("ro.cvte.buildTime");
    }

    public static String d() {
        return l("ro.cvte.flavor.name", "");
    }

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

    public static String f() {
        return l("ro.cvte.ota.special", "0");
    }

    public static String g() {
        String strK = k(d.e.h.a.b.f3585b);
        return TextUtils.isEmpty(strK) ? k("ro.cvte.panelname") : strK;
    }

    public static String h() {
        return l("ro.product.version", "203700000000");
    }

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

    public static long j(String str, long j2) {
        try {
            return SystemProperties.getLong(str, j2);
        } catch (Exception e2) {
            Log.w("PropertiesUtils", "getProperty long: ", e2);
            return j2;
        }
    }

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

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

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

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

    public static boolean o() {
        return i(d.e.h.a.b.f3587d, 0) == 0;
    }

    public static boolean p() {
        return m("persist.sys.ota.auto", true);
    }

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

    public static boolean r() {
        return m(d.e.h.a.b.f3589f, false);
    }

    public static boolean s() {
        return DubboResponseInfo.STATUS_OK.equals(k("persist.sys.accelerator_lock"));
    }

    public static boolean t() {
        return !s();
    }

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