package com.seewo.sdk.util;

import android.os.SystemProperties;
import com.seewo.vcommons.constants.SeewoIntent;

/* JADX INFO: loaded from: classes.dex */
public class ConfigUtils {
    private static final String PROP_CAPTURE_FROM_VDS = "persist.sys.capture_from_vds";
    private static final String PROP_SCREENSHOT_METHOD = "persist.sys.screenshot_method";

    public enum ScreenshotMethod {
        NATIVE,
        VIRTUAL_DISPLAY,
        CUSTOM
    }

    public static boolean isCaptureFromVds() {
        return "1".equals(SystemProperties.get(PROP_CAPTURE_FROM_VDS, "0"));
    }

    public static ScreenshotMethod getScreenshotMethod() {
        String lowerCase = SystemProperties.get(PROP_SCREENSHOT_METHOD, "custom").toLowerCase();
        lowerCase.hashCode();
        if (lowerCase.equals("native")) {
            return ScreenshotMethod.NATIVE;
        }
        if (lowerCase.equals(SeewoIntent.VALUE_REMOTE_KEY_VIRTUAL_TYPE)) {
            return ScreenshotMethod.VIRTUAL_DISPLAY;
        }
        return ScreenshotMethod.CUSTOM;
    }
}
