package com.secspace.lib.common.env;

/**
 * Created by cyw_m on 2018/3/27.
 */

public class SharedPreferences {
    public static final class Pwd {
        public static final String SP_FILE_SECSPACE_PWD = "SP_SECSPACE_PWD";

        public static final String SP_CURRENT_PWD_TYPE = "current_pwd_type";
        public static final String SP_PWD_TYPE_NORMAL = "1";
        public static final String SP_PWD_TYPE_PIN = "2";
        public static final String SP_PWD_TYPE_GESTURE = "3";
        public static final String SP_PWD_TYPE_FINGER = "4";

        public static final String SP_PWD_NORMAL = "pwd_normal";
        public static final String SP_PWD_PIN = "pwd_pin";

        public static final String SP_DEAD_LOCK_COUNT = "deadLockCount";//死锁次数，第一次3分钟，第二次10分钟，三次及以上1小时
        public static final String SP_DEAD_LOCK_TIME = "deadLockTime";//输入多次错误进行锁死
        public static final String SEC_SPACE_LOCKED = "sec_space_locked";//锁屏保存状态
    }

    public static final class CallLogCache {
        public static final String SP_FILE_CALL_LOG_CACHE = "SP_CALL_LOG_CACHE";
    }

    public class Default {
        public static final String SP_FILE_SECSPACE_COMMON = "SP_SECSPACE_COMMON";
        public static final String SP_SEC_SPACE_CREATED = "sec_space_created";
        public static final String SP_IS_IN_SPACE = "inSecSpace";
        public static final String SP_IF_CLEAR_CACHE = "clearCache";
        public static final String SP_SEC_SPACE_INTRODUCE_READ = "sec_space_introduce_read";
        public static final String SP_SECSPACE_UPDATE = "secspaceUpdate";//安全域刚刚更新
        public static final String SECONDARY_STORAGE_RW = "tfRWPermission";
        public static final String SP_SECSPACE_IS_UPDATING = "isSecspaceUpdating";//安全域是否正在更新
        public static final String SP_SECSPACE_DOWNLOAD_STATUS = "secspaceDownloadStatus";//安全域下载的状态
        public static final String SP_SECSPACE_DOWNLOAD_STATUS_INNER = "secspaceDownloadStatusInner";//安全域下载的状态(域内)
        public static final String SP_SECSPACE_OPEN_OUT_UPDATE = "isSecspaceOpenOutUpdate";//是否开启安全域域外检测更新
        public static final String SP_SECSPACE_OPEN_CLONE_MODE = "openCloneMode";//安装插件时是否开启克隆模式
        public static final String SP_SECSPACE_WATERMARK_STATE = "watermarkState";//水印开关
        public static final String SP_SECSPACE_CHECK_ROOT_STATE = "checkRootState";//检查root开关
        public static final String SP_SECSPACE_APN_BIND_MODE = "apnBindMode";//apn绑卡模式
        public static final String SP_SECSPACE_INTERNET_DISABLED = "internetDisabled";//外网禁用
        public static final String SP_SECSPACE_SYSTEM_DISPLAY = "systemDisplay";//系统版本
        public static final String SP_SECSPACE_SECSPACE_CODE = "secspaceCode";//双域安全平台版本
        public static final String SP_SECSPACE_HIDE_LAUNCHER_PACKAGES = "hideLauncherPackages";//进入双域后被禁用的桌面包名
        public static final String SP_SECSPACE_DISABLED_APPS = "disabledApps";//进入双域后被禁用的包名
        public static final String SP_SECSPACE_PWD_RESET_CODE = "pwdResetCode";//密码重置时记录版本
        public static final String SP_SECSPACE_SYSMANAGER_ENABLE = "sysManagerEnable";//手机管家是否启用
        public static final String SP_SECSPACE_SYS_RESET = "sysManagerEnable";//是否重启过
        public static final String SP_SECSPACE_VA_PRIVATIZE_CODE = "vaPrivatizeVersion";//VA私有化版本
        public static final String SP_SECSPACE_PRESET_APP_INFOS = "presetAppInfos";//预植的插件信息


        //读取管控配置
        public static final String READ_CONFIG_AND_SET = "read_config_and_set";
        public static final int MDM_CONFIG_NORMAL = 0;
        public static final int MDM_CONFIG_ERROR_MAX = 3;
        //华为推送token
        public static final String HUAWEI_PUSH_TOKEN = "hw_push_token";

        // 是否优化图标
        public static final String OPTIMIZE_ICON = "optimizeIcon";
        // 是否提示优化失败
        public static final String OPTIMIZE_FAILED = "optimizeFailed";

        //刚刚覆盖安装更新完
        public static final String JUST_UPDATE = "justUpdate";

        public static final String UPDATE_INFO = "update_info";
        //刚刚覆盖安装更新完
        public static final String SWITCH_STATE = "switchState";
        //进入域内时是否已经初始化管控一次
        public static final String INIT_MDM_WHEN_ENTER = "initMdmWhenEnter";
        // 加固桌面开关
        public static final String REINFORCE = "reinforce";
    }

    //mdm 白名单相关
    public class SpInnerMDM {
        public static final String SP_FILE_SECSPACE_INNER_MDM = "SP_INNER_MDM";
        public static final String LIST_WHITE_UNINSTALL_PACKAGES_MDM = "disallowedUninstallApps";
        public static final String LIST_WHITE_INSTALL_PACKAGES_MDM = "whiteInstallPkgsMdm";
        public static final String LIST_WHITE_RUNNING_PACKAGES_MDM = "whiteRunningPkgsMdm";
        public static final String SP_INNER_DISABLE_SWITCH = "disable_switch";
        public static final String SP_INNER_DISABLE_CAMERA = "disable_camera";
        public static final String SP_INNER_DISABLE_THIRD_INSTALL_SOURCE = "disable_third_install_source";
        public static final String SP_WHITE_WATER_MARK_PACKAGES = "white_water_mark_packages";
        public static final String SP_WHITE_WATER_MARK_NAMES = "white_water_mark_names";

        public static final String SP_INNER_PREF_APN = "innerPrefApn";

        public static final String SP_SECSPACE_MDM_APN = "mdmApn";

        public static final String SP_MDM_FAILE_PASSWORD_NUM = "max_password_failed_number";

        public static final String SP_IS_NFC_IN = "isNfcIn";

        public static final String SP_WHITE_WATER_MARK_TEXT = "water_mark_text";

        // 用户录入卡的id
        public static final String SP_CARD_ID = "cardId";
        // 是否是退出状态
        public static final String SP_IS_EXIT = "isExit";
        // 通话白名单
        public static final String LIST_WHITE_CALL_NUMBER = "whiteCallNumber";
        // 通话黑名单
        public static final String LIST_BLACK_CALL_NUMBER = "blackCallNumber";
        // 短信白名单
        public static final String LIST_WHITE_SMS_NUMBER = "whiteSmsNumber";
        // 短信黑名单
        public static final String LIST_BLACK_SMS_NUMBER = "blackSmsNumber";
    }

    //APN相关
    public class SpApn {
        public static final String SP_FILE_APN = "SP_APN";
        public static final String SP_OPERATOR_APN = "operatorApn";
        public static final String SP_OPERATOR_APNS = "operatorApns";
    }
}
