package com.secspace.lib.common.env;

import android.content.ComponentName;

import static com.secspace.lib.common.env.Packages.PkgHuaWei.PACKAGENAME_HW_FILE_MANAGER;
import static com.secspace.lib.common.env.Packages.PkgHuaWei.PACKAGENAME_HW_LAUNCHER;
import static com.secspace.lib.common.env.Packages.PkgHuaWei.PACKAGENAME_HW_MOTION;
import static com.secspace.lib.common.env.Packages.PkgHuaWei.PACKAGENAME_HW_SECIME;
import static com.secspace.lib.common.env.Packages.PkgHuaWei.PACKAGENAME_HW_SMARTSHOT;
import static com.secspace.lib.common.env.Packages.PkgHuaWei.PACKAGENAME_HW_SYSTEM_MANAGER;
import static com.secspace.lib.common.env.Packages.PkgSecSpace.PACKAGENAME_EXPLORER;
import static com.secspace.lib.common.env.Packages.PkgSystem.PACKAGENAME_SYSTEM_SETTINGS;

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

public class Packages {
    /**
     * 安全域内的插件包名以及一些工具的包名
     */
    public static final class PkgSecSpace {

        //工具应用
        public static final String PACKAGENAME_MDMENHANCE = "com.android.mdmenhance";
        public static final String PACKAGENAME_MIDDLEWARE = "com.android.mdmservice";
        public static final String PACKAGENAME_SYSTEM_AGENT = "com.secspace.system.agent";
        public static final String PACKAGENAME_SMS_AGENT = "com.secspace.sms.agent";

        public static final String PACKAGENAME_UPDATE_TOOL = "com.secspace.updatetool";
        public static final String PACKAGENAME_BACKUP_TOOL = "com.secspace.backuptool";
        public static final String PACKAGENAME_SECSPACE_TEST_TOOL = "com.secspace.testtool";
        public static final String PACKAGENAME_MDMTEST = "com.mdm.test";
        public static final String PACKAGENAME_TK_LOG = "com.tk.logtool";
        public static final String PACKAGENAME_UNINSTALL_TOOL = "com.skr.uninstall";
        public static final String PACKAGENAME_EXPLORER_DEVELOPER = "com.secspace.app.explorer.test";



        //预植应用
        public static final String PACKAGENAME_OUT = "com.secspace.app.out";
        public static final String PACKAGENAME_SETTINGS = "com.secspace.app.settings";
        public static final String PACKAGENAME_EXPLORER = "com.secspace.app.explorer";
        public static final String PACKAGENAME_DIALER = "com.android.dialer";
        public static final String PACKAGENAME_STORE = "com.skr.appstore";
        public static final String PACKAGENAME_BROWSER = "mark.via";
        public static final String PACKAGENAME_CONTACTS = "com.secspace.contacts";
        public static final String PACKAGENAME_SMS = "com.secspace.sms";
        public static final String PACKAGENAME_MMS_PROVIDER = "com.skr.mms.provider";
        public static final String PACKAGENAME_GALLERY = "com.android.gallery3d";
        public static final String PACKAGENAME_VIDEO = "com.mxtech.videoplayer.ad";
        public static final String PACKAGENAME_MUSIC = "com.mxtech.videoplayer.ad";
        public static final String PACKAGENAME_MDM_ONLINE = "com.android.online.devmdm";
        public static final String PACKAGENAME_CALCULATOR = "com.android.calculator2";
        public static final String PACKAGENAME_NOTE = "com.secspace.app.note";
        public static final String PACKAGENAME_CAMERA = "com.baby518.camera2";
        public static final String PACKAGENAME_CONTACTS_PROVIDER = "com.secspace.providers.contacts";
        public static final String PACKAGENAME_MEDIA_PROVIDER = "com.android.providers.media";
        public static final String PACKAGENAME_SECCONFIG = "com.secspace.config";

        //江西检务通
        public static final String PACKAGENAME_JIANGXI = "com.hfjiguang.ppplatform.jiangxi";

    }

    /**
     * 原生系统的包名
     */
    public static final class PkgSystem {
        public static final String PACKAGENAME_SYSTEM_TELECOM_SERVER = "com.android.server.telecom";
        public static final String PACKAGENAME_SYSTEM_SMS = "com.android.mms";
        public static final String PACKAGENAME_SYSTEM_DIALER = "com.android.contacts";
        public static final String PACKAGENAME_SYSTEM_SETTINGS = "com.android.settings";//系统设置
        public static final String PACKAGENAME_SYSTEM_UI = "com.android.systemui";
        public static final String PACKAGENAME_DESKTOP_SYSTEM_UI = "com.huawei.desktop.systemui";
        public static final String PACKAGENAME_SYSTEM_PHONE = "com.android.phone";
        public static final String PACKAGENAME_SYSTEM_NFC = "com.android.nfc";
    }

    /**
     * 第三方应用包名
     */
    public static final class PkgThird {
        public static final String PACKAGENAME_WPS = "cn.wps.moffice_eng";
        public static final ComponentName COMPONENTNAME_WPS = new ComponentName(PACKAGENAME_WPS, "cn.wps.moffice.documentmanager.PreStartActivity2");
        public static final String PACKAGENAME_WECHAT = "com.tencent.mm";
        public static final String PACKAGENAME_QQ = "com.tencent.mobileqq";
        public static final String PACKAGENAME_DINGDING = "com.alibaba.android.rimet";
        //信大捷安
        public static final String PACKAGENAME_XDJA_EMM = "com.xdja.emm";//信大捷安管控
        public static final String PACKAGENAME_XDJA_MDM_SERVICE = "com.xdja.mdmservice";//信大捷安管控插件
        public static final String PACKAGENAME_XDJA_SAFECLIENT = "com.xdja.safeclient";
        public static final String PACKAGENAME_XDJA_AQYJ = "com.xdja.HDSafeEMailClient";
        public static final String PACKAGENAME_XDJA_MP = "com.xdja.safebox";
        public static final String PACKAGENAME_XDJA_AT = "com.xdja.actoma";
        public static final String PACKAGENAME_XDJA_XPGJ = "com.xdja.safekeyservice";

        public static final String PACKAGENAME_TF1 = "com.iiecas.wechat";

        public static final String PACKAGENAME_DISPATCH = "com.xigu.uct.ui";
        public static final String PACKAGENAME_EMM = "com.uusafe.emm.android";

    }

    /**
     * 华为的包名
     */
    public static final class PkgHuaWei {
        public static final String PACKAGENAME_HW_FILE_MANAGER = "com.huawei.hidisk";//华为文件管理器
        public static final String PACKAGENAME_HW_POWER_GENIE = "com.huawei.powergenie";//华为省电精灵
        public static final String PACKAGENAME_HW_VASSISTANT = "com.huawei.vassistant";//华为语音助手
        public static final String PACKAGENAME_HW_LAUNCHER = "com.huawei.android.launcher";//华为桌面
        public static final String PACKAGENAME_HW_INPUT = "com.baidu.input_huawei";//华为输入法
        public static final String PACKAGENAME_HW_VDRIVE = "com.huawei.vdrive";//驾驶模式
        public static final String PACKAGENAME_HW_SCREEN_RECORDER = "com.huawei.screenrecorder";//屏幕录制
        public static final String PACKAGENAME_HW_SYSTEM_MANAGER = "com.huawei.systemmanager";//手机管家
        public static final String PACKAGENAME_HUAWEI_MOBILE_SERVICE = "com.huawei.hwid";//华为移动服务
        public static final String PACKAGENAME_HW_MOTION = "com.huawei.motionservice"; // 华为字母手势
        public static final String PACKAGENAME_HW_SMARTSHOT = "com.qeexo.smartshot"; // 华为手势截屏
        public static final String PACKAGENAME_HW_SECIME = "com.huawei.secime"; // 华为手势截屏
        public static final String PACKAGENAME_HW_WALLET = "com.huawei.wallet"; // 华为钱包
    }

    /**
     * Oppo的包名
     */
    public static final class PkgOppo {

    }

    /**
     * 安全域/插件的组件
     */
    public static final class CompSecSpace {
        public static final String CLASSNAME_DPM_ADMIN = "com.sec.middleware.receiver.DpmReceiver";
        public static final String CLASSNAME_SECSPACE_LAUNCHER = "com.secspace.launcher.Launcher";
        public static final ComponentName COMPONENTNAME_EXPLORER_MAIN = new ComponentName(PACKAGENAME_EXPLORER, "com.secspace.app.explorer.DocumentsActivity");

    }

    /**
     * 第三方应用的组件名
     */
    public static final class CompThird {
        public static final String CLASSNAME_GOOGLE_AD = "com.google.android.gms.ads.AdActivity";

    }

    /**
     * 原生系统的组件
     */
    public static final class CompSystem {
        public static final ComponentName COMPONENTNAME_SYSTEM_SETTINGS_IGNORE_BATTERY = new ComponentName(PACKAGENAME_SYSTEM_SETTINGS, "com.android.settings.Settings$HighPowerApplicationsActivity");//设置忽略电池优化界面
    }

    /**
     * 华为的组件
     */
    public static final class CompHuaWei {
        public static final ComponentName COMPONENTNAME_HW_SYSTEM_MANAGER_START = new ComponentName(PACKAGENAME_HW_SYSTEM_MANAGER, "com.huawei.systemmanager.appcontrol.activity.StartupAppControlActivity");//手机管家自启动页面
        public static final ComponentName COMPONENTNAME_HW_FILE_MANAGER_MAIN = new ComponentName(PACKAGENAME_HW_FILE_MANAGER, "com.huawei.hidisk.filemanager.FileManager");//华为文件管理器提供者
        public static final ComponentName COMPONENTNAME_HW_SYSTEM_MANAGER_MAIN = new ComponentName(PACKAGENAME_HW_SYSTEM_MANAGER, "com.huawei.systemmanager.mainscreen.MainScreenActivity");
        public static final ComponentName COMPONENTNAME_HW_RECENTSACTIVITY = new ComponentName(PACKAGENAME_HW_LAUNCHER, "com.huawei.android.launcher.quickstep.RecentsActivity");//手机管家自启动页面
        public static final ComponentName COMPONENTNAME_HW_SPLITSCREENAPPACTIVITY = new ComponentName(PACKAGENAME_HW_LAUNCHER, "com.huawei.android.launcher.splitscreen.SplitScreenAppActivity");
        public static final ComponentName COMPONENT_NAME_HW_PASSWORD = new ComponentName(PACKAGENAME_HW_SECIME,"android.inputmethodservice.SoftInputWindow");//更改锁屏密码页面
        // 发送短信提示
        public static final ComponentName COMPONENTNAME_HW_SYSTEM_MANAGER_REQUEST_AUTH = new ComponentName("com.huawei.systemmanager", "com.huawei.permission.monitor.sms.ui.RequestAuthActivity");
        public static final ComponentName COMPONENTNAME_HW_SECURITY_MGR = new ComponentName("com.huawei.securitymgr", "com.huawei.permissionmgr.PermissionVerificationBaseActivity");
        public static final ComponentName COMPONENTNAME_HW_MOTION_SERVICE = new ComponentName(PACKAGENAME_HW_MOTION, "com.huawei.motionsettings.tutorial.MotionScenesSettings");
        public static final ComponentName COMPONENTNAME_HW_SMARTSHOT_SERVICE = new ComponentName(PACKAGENAME_HW_SMARTSHOT,"com.qeexo.smartshot.CropActivity");
        public static final ComponentName COMPONENTNAME_HW_MULTISCREENSHOT_SERVICE = new ComponentName("com.huawei.HwMultiScreenShot","com.huawei.HwMultiScreenShot.MultiScreenShotService");

        public static final ComponentName COMPONENTNAME_HW_WIFI_SETTING = new ComponentName("com.android.settings","com.android.settings.Settings$WifiSettingsActivity");
    }

    /**
     * Oppo的组件
     */
    public static final class CompOppo {

    }

    /**
     * 信大捷安系列
     */
    public static final class PkgXDJA {
        public static final String PACKAGENAME_SECSPACE_AQYJ = "com.xdja.HDSafeEMailClient";
        public static final String PACKAGENAME_SECSPACE_YDBG = "com.xdja.eoa";
        public static final String PACKAGENAME_SECSPACE_MP = "com.xdja.safebox";
        public static final String PACKAGENAME_SECSPACE_AT = "com.xdja.actoma";
        public static final String PACKAGENAME_SECSPACE_XPGJ = "com.xdja.safekeyservice";

        //VPN
        public static final String PACKAGENAME_FAKE_1 = "com.xdja.safekeyservice";
        public static final String PACKAGENAME_FAKE_2 = "com.xdja.actoma";
        public static final String VERSIONNAME_FAKE_XDJA = "1.0";

        //占坑apk(安通+)
        public static final String AT_SSL_FILE_NAME = "outer/At.apk";
        public static final String HUAWEI_MOBILE_SERVICE_FILE_NAME = "outer/HwMobileService.apk";
        public static final String HUAWEI_MOBILE_SERVICE_VERSION = "2.6.5.306";
        public static final String HW_WALLET_FILE_NAME = "outer/HwWallet.apk";
        public static final String HW_WALLET_VERSION = "9.0.1.304";
    }
}
