导航菜单

页面标题

页面副标题

管控平台 v5.2.3.0. - LaunchReceiver.java 源代码

正在查看: 管控平台 v5.2.3.0. 应用的 LaunchReceiver.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.iflytek.mdmservice.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import com.iflytek.mdmcommon.LogUtil;
import com.iflytek.mdmlibrary.MdmSdk;
import com.iflytek.mdmservice.MDMApp;
import com.iflytek.mdmservice.service.BackgroundService;

public class LaunchReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        LogUtil.i("LaunchReceiver", "onReceive");
        if (MdmSdk.getControlMode() != 1) {
            return;
        }
        MDMApp j = MDMApp.j();
        Intent intent2 = new Intent(j, (Class<?>) BackgroundService.class);
        intent2.putExtra("startApp", true);
        if (Build.VERSION.SDK_INT >= 26) {
            j.startForegroundService(intent2);
        } else {
            j.startService(intent2);
        }
    }
}