ThDaemonService$KernelService.smali
.class public Lcom/baidu/techain/keep/ThDaemonService$KernelService;
.super Landroid/app/Service;
.source "ThDaemonService.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/baidu/techain/keep/ThDaemonService;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "KernelService"
.end annotation
# direct methods
.method public constructor <init>()V
.registers 1
.prologue
.line 34
invoke-direct {p0}, Landroid/app/Service;-><init>()V
return-void
.end method
# virtual methods
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
.registers 3
.prologue
.line 38
const/4 v0, 0x0
return-object v0
.end method
.method public onStartCommand(Landroid/content/Intent;II)I
.registers 7
.prologue
.line 43
if-eqz p1, :cond_22
sget-object v0, Lcom/baidu/techain/keep/ThDaemonService;->b:Lcom/baidu/techain/keep/ThDaemonService;
if-eqz v0, :cond_22
.line 45
:try_start_6
sget-object v0, Lcom/baidu/techain/keep/ThDaemonService;->b:Lcom/baidu/techain/keep/ThDaemonService;
sget v1, Lcom/baidu/techain/keep/ThDaemonService;->a:I
new-instance v2, Landroid/app/Notification;
invoke-direct {v2}, Landroid/app/Notification;-><init>()V
invoke-virtual {v0, v1, v2}, Lcom/baidu/techain/keep/ThDaemonService;->startForeground(ILandroid/app/Notification;)V
.line 47
sget v0, Lcom/baidu/techain/keep/ThDaemonService;->a:I
new-instance v1, Landroid/app/Notification;
invoke-direct {v1}, Landroid/app/Notification;-><init>()V
invoke-super {p0, v0, v1}, Landroid/app/Service;->startForeground(ILandroid/app/Notification;)V
.line 48
sget-object v0, Lcom/baidu/techain/keep/ThDaemonService;->b:Lcom/baidu/techain/keep/ThDaemonService;
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lcom/baidu/techain/keep/ThDaemonService;->stopForeground(Z)V
:try_end_22
.catch Ljava/lang/Throwable; {:try_start_6 .. :try_end_22} :catch_24
.line 53
:cond_22
:goto_22
const/4 v0, 0x2
return v0
.line 50
:catch_24
move-exception v0
invoke-static {}, Lcom/baidu/techain/l/d;->a()V
goto :goto_22
.end method