package com.webh5app.service;

import android.app.Service;
import android.content.Intent;
import android.os.Handler;
import android.os.IBinder;
import com.webh5app.service.KillSelfService;
/* loaded from: classes.dex */
public class KillSelfService extends Service {
    public static long KQgRr5e_0 = 2000;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public Handler f2996KQgRr5e_0 = new Handler();

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public String f2997KQgRr5e_0;

    public /* synthetic */ void KQgRr5e_0() {
        startActivity(getPackageManager().getLaunchIntentForPackage(this.f2997KQgRr5e_0));
        stopSelf();
    }

    @Override // android.app.Service
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override // android.app.Service
    public int onStartCommand(Intent intent, int i, int i2) {
        KQgRr5e_0 = intent.getLongExtra("delayed", 2000L);
        this.f2997KQgRr5e_0 = intent.getStringExtra("packageName");
        this.f2996KQgRr5e_0.postDelayed(new Runnable() { // from class: IMuAHx_6.QxJ9d_1.X6FRs_4.KQgRr5e_0
            @Override // java.lang.Runnable
            public final void run() {
                KillSelfService.this.KQgRr5e_0();
            }
        }, KQgRr5e_0);
        return super.onStartCommand(intent, i, i2);
    }
}
