package com.cvte.dss.ups.mic.mic3308;

import android.os.Build;
import android.util.Log;

/* JADX INFO: loaded from: classes.dex */
public class SystemPropertyUtil {
    public static String getSystemProperty(String str) {
        try {
            return (String) Class.forName("android.os.SystemProperties").getMethod("get", String.class).invoke(null, str);
        } catch (Exception e2) {
            Log.e("SystemPropertyUtil", "getSystemProperty error:", e2);
            return null;
        }
    }

    public static boolean isUseSelinux() {
        return "enforcing".equals(getSystemProperty("ro.boot.selinux"));
    }

    public static boolean isUseVman() {
        boolean z2 = isUseSelinux() && Build.VERSION.SDK_INT > 32;
        Log.i("SystemPropertyUtil", "isUseVmanUpgrade: " + z2);
        return z2;
    }
}
