导航菜单

页面标题

页面副标题

安讯通-企业级安全协同工具 v1.0.50 - HideForegroundService.java 源代码

正在查看: 安讯通-企业级安全协同工具 v1.0.50 应用的 HideForegroundService.java JAVA 源代码文件

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


package com.gyf.xtfcactus.service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import com.gyf.xtfcactus.entity.Constant;
import com.gyf.xtfcactus.entity.NotificationConfig;
import com.gyf.xtfcactus.ext.CactusExtKt;
import com.gyf.xtfcactus.ext.NotificationExtKt;
import com.huawei.hms.support.api.entity.core.CommonCode;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;

@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\u0012\u0010\u0003\u001a\u0004\u0018\u00010\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0016J\"\u0010\u0007\u001a\u00020\b2\b\u0010\u0005\u001a\u0004\u0018\u00010\u00062\u0006\u0010\t\u001a\u00020\b2\u0006\u0010\n\u001a\u00020\bH\u0016¨\u0006\u000b"}, d2 = {"Lcom/gyf/xtfcactus/service/HideForegroundService;", "Landroid/app/Service;", "()V", "onBind", "Landroid/os/IBinder;", CommonCode.Resolution.HAS_RESOLUTION_FROM_APK, "Landroid/content/Intent;", "onStartCommand", "", "flags", "startId", "cactus_release"}, k = 1, mv = {1, 6, 0}, xi = 48)
public final class HideForegroundService extends Service {
    @Override
    public IBinder onBind(Intent intent) {
        Intrinsics.checkNotNullParameter(intent, CommonCode.Resolution.HAS_RESOLUTION_FROM_APK);
        return null;
    }

    @Override
    public int onStartCommand(Intent intent, int flags, int startId) {
        NotificationConfig notificationConfig;
        if (intent != null && (notificationConfig = (NotificationConfig) intent.getParcelableExtra(Constant.CACTUS_NOTIFICATION_CONFIG)) != null) {
            NotificationExtKt.setNotification(this, notificationConfig, true);
        }
        CactusExtKt.getSMainHandler().postDelayed(new Runnable() {
            @Override
            public final void run() {
                HideForegroundService.m280onStartCommand$lambda1(HideForegroundService.this);
            }
        }, 2000L);
        return 1;
    }

    public static final void m280onStartCommand$lambda1(HideForegroundService hideForegroundService) {
        Intrinsics.checkNotNullParameter(hideForegroundService, "this$0");
        hideForegroundService.stopForeground(true);
        hideForegroundService.stopSelf();
    }
}