PermanentService.smali

.class public Lcom/cleanmaster/service/PermanentService;
.super Landroid/app/Service;
.source "PermanentService.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/cleanmaster/service/PermanentService$PermanentWatcher;
    }
.end annotation


# static fields
.field public static a:Lcom/cleanmaster/service/PermanentService;

.field public static b:I

.field public static final c:Ljava/lang/String;


# instance fields
.field private d:Z

.field private e:Lcom/cleanmaster/libsinterface/watcher/IAppListener;

.field private f:Z

.field private g:Z

.field private h:Lcom/cleanmaster/o/a;

.field private i:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

.field private j:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

.field private k:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

.field private l:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

.field private m:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

.field private n:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

.field private o:J

.field private p:J

.field private q:Z

.field private final r:Lcom/cleanmaster/sync/binder/BinderContainer;

.field private s:Landroid/os/HandlerThread;

.field private final t:Landroid/os/Handler$Callback;


# direct methods
.method static constructor <clinit>()V
    .registers 1

    .prologue
    .line 300
    const/4 v0, 0x0

    sput-object v0, Lcom/cleanmaster/service/PermanentService;->a:Lcom/cleanmaster/service/PermanentService;

    .line 914
    const/4 v0, 0x0

    sput v0, Lcom/cleanmaster/service/PermanentService;->b:I

    .line 1092
    const-class v0, Lcom/cleanmaster/service/PermanentService;

    invoke-virtual {v0}, Ljava/lang/Class;->getSimpleName()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/cleanmaster/service/PermanentService;->c:Ljava/lang/String;

    return-void
.end method

.method public constructor <init>()V
    .registers 6

    .prologue
    const/4 v4, 0x0

    .line 133
    invoke-direct {p0}, Landroid/app/Service;-><init>()V

    .line 167
    iput-boolean v4, p0, Lcom/cleanmaster/service/PermanentService;->d:Z

    .line 175
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/cleanmaster/service/PermanentService;->e:Lcom/cleanmaster/libsinterface/watcher/IAppListener;

    .line 176
    iput-boolean v4, p0, Lcom/cleanmaster/service/PermanentService;->f:Z

    .line 177
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/cleanmaster/service/PermanentService;->g:Z

    .line 368
    const-string v0, "section_junk_redpack_notify_show"

    const-string/jumbo v1, "subkey_junk_notify_show_num"

    const/16 v2, 0x1e

    invoke-static {v0, v1, v2}, Lcom/cleanmaster/junkengine/junk/util/JunkCloudConfig;->getIntValue(Ljava/lang/String;Ljava/lang/String;I)I

    move-result v0

    int-to-long v0, v0

    iput-wide v0, p0, Lcom/cleanmaster/service/PermanentService;->o:J

    .line 369
    const-string v0, "section_junk_redpack_notify_show"

    const-string/jumbo v1, "subkey_junk_notify_show_day"

    const-wide/32 v2, 0xf731400

    invoke-static {v0, v1, v2, v3}, Lcom/cleanmaster/junkengine/junk/util/JunkCloudConfig;->getLongValue(Ljava/lang/String;Ljava/lang/String;J)J

    move-result-wide v0

    iput-wide v0, p0, Lcom/cleanmaster/service/PermanentService;->p:J

    .line 913
    iput-boolean v4, p0, Lcom/cleanmaster/service/PermanentService;->q:Z

    .line 1053
    new-instance v0, Lcom/cleanmaster/sync/binder/BinderContainer;

    invoke-direct {v0}, Lcom/cleanmaster/sync/binder/BinderContainer;-><init>()V

    iput-object v0, p0, Lcom/cleanmaster/service/PermanentService;->r:Lcom/cleanmaster/sync/binder/BinderContainer;

    .line 1098
    new-instance v0, Lcom/cleanmaster/service/ab;

    invoke-direct {v0, p0}, Lcom/cleanmaster/service/ab;-><init>(Lcom/cleanmaster/service/PermanentService;)V

    iput-object v0, p0, Lcom/cleanmaster/service/PermanentService;->t:Landroid/os/Handler$Callback;

    return-void
.end method

.method public static a(Landroid/content/Context;)V
    .registers 11
    .annotation build Landroid/annotation/TargetApi;
        value = 0x3
    .end annotation

    .prologue
    const/4 v1, 0x0

    .line 1066
    if-nez p0, :cond_4

    .line 1090
    :goto_3
    return-void

    .line 1068
    :cond_4
    const-string v0, "alarm"

    invoke-virtual {p0, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/AlarmManager;

    .line 1069
    new-instance v2, Landroid/content/Intent;

    const-class v3, Lcom/cleanmaster/service/PermanentService;

    invoke-direct {v2, p0, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 1070
    const-string v3, "cheOnAppUsageChangeExck_type"

    const/16 v4, 0xc

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 1071
    const-string v3, "com.cleanmaster.service.PermanentService.ACTION_UPDATE_FILTER_LIST"

    invoke-virtual {v2, v3}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent;

    .line 1072
    const/high16 v3, 0x8000000

    invoke-static {p0, v1, v2, v3}, Landroid/app/PendingIntent;->getService(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;

    move-result-object v6

    .line 1074
    const-string v2, "junk_scan_eng_bg_setting"

    const-string v3, "junk_scan_bg_repeat_alarm_hour_period"

    const/16 v4, 0xd

    invoke-static {v2, v3, v4}, Lcom/cleanmaster/junkengine/junk/util/JunkCloudConfig;->getIntValue(Ljava/lang/String;Ljava/lang/String;I)I

    move-result v4

    .line 1079
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v2

    .line 1080
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v8

    invoke-virtual {v2, v8, v9}, Ljava/util/Calendar;->setTimeInMillis(J)V

    .line 1081
    const/16 v3, 0xb

    const/4 v5, 0x2

    invoke-virtual {v2, v3, v5}, Ljava/util/Calendar;->set(II)V

    .line 1084
    invoke-virtual {v0, v6}, Landroid/app/AlarmManager;->cancel(Landroid/app/PendingIntent;)V

    .line 1087
    invoke-virtual {v2}, Ljava/util/Calendar;->getTimeInMillis()J

    move-result-wide v2

    int-to-long v4, v4

    const-wide/32 v8, 0x36ee80

    mul-long/2addr v4, v8

    invoke-virtual/range {v0 .. v6}, Landroid/app/AlarmManager;->setRepeating(IJJLandroid/app/PendingIntent;)V

    .line 1088
    sget-object v0, Lcom/cleanmaster/service/PermanentService;->c:Ljava/lang/String;

    const-string/jumbo v1, "updateFilterList : set Repeat Alarm Period : 13"

    invoke-static {v0, v1}, Lcom/cleanmaster/util/CMLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_3
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;I)V
    .registers 6
    .annotation build Landroid/annotation/TargetApi;
        value = 0x1a
    .end annotation

    .prologue
    .line 1164
    new-instance v1, Landroid/app/NotificationChannel;

    invoke-direct {v1, p1, p2, p3}, Landroid/app/NotificationChannel;-><init>(Ljava/lang/String;Ljava/lang/CharSequence;I)V

    .line 1166
    const-string v0, "notification"

    invoke-virtual {p0, v0}, Lcom/cleanmaster/service/PermanentService;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/app/NotificationManager;

    .line 1169
    if-eqz v0, :cond_12

    .line 1170
    invoke-virtual {v0, v1}, Landroid/app/NotificationManager;->createNotificationChannel(Landroid/app/NotificationChannel;)V

    .line 1171
    :cond_12
    return-void
.end method

.method private varargs a([Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;)V
    .registers 6

    .prologue
    .line 833
    array-length v1, p1

    const/4 v0, 0x0

    :goto_2
    if-ge v0, v1, :cond_16

    aget-object v2, p1, v0

    .line 834
    if-eqz v2, :cond_13

    .line 836
    :try_start_8
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    invoke-static {v3}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->getInstance(Landroid/content/Context;)Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;

    move-result-object v3

    invoke-virtual {v3, v2}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->unregisterReceiver(Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;)V
    :try_end_13
    .catch Ljava/lang/Exception; {:try_start_8 .. :try_end_13} :catch_17

    .line 833
    :cond_13
    :goto_13
    add-int/lit8 v0, v0, 0x1

    goto :goto_2

    .line 841
    :cond_16
    return-void

    .line 837
    :catch_17
    move-exception v2

    goto :goto_13
.end method

.method static synthetic a(Lcom/cleanmaster/service/PermanentService;)Z
    .registers 2

    .prologue
    .line 133
    iget-boolean v0, p0, Lcom/cleanmaster/service/PermanentService;->f:Z

    return v0
.end method

.method static synthetic a(Lcom/cleanmaster/service/PermanentService;Z)Z
    .registers 2

    .prologue
    .line 133
    iput-boolean p1, p0, Lcom/cleanmaster/service/PermanentService;->g:Z

    return p1
.end method

.method static synthetic b(Lcom/cleanmaster/service/PermanentService;)V
    .registers 1

    .prologue
    .line 133
    invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->s()V

    return-void
.end method

.method static synthetic b(Lcom/cleanmaster/service/PermanentService;Z)Z
    .registers 2

    .prologue
    .line 133
    iput-boolean p1, p0, Lcom/cleanmaster/service/PermanentService;->f:Z

    return p1
.end method

.method static synthetic c(Lcom/cleanmaster/service/PermanentService;)V
    .registers 1

    .prologue
    .line 133
    invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->o()V

    return-void
.end method

.method static synthetic d(Lcom/cleanmaster/service/PermanentService;)Z
    .registers 2

    .prologue
    .line 133
    iget-boolean v0, p0, Lcom/cleanmaster/service/PermanentService;->g:Z

    return v0
.end method

.method private f()V
    .registers 5

    .prologue
    .line 333
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    new-instance v1, Lcom/cleanmaster/service/ae;

    invoke-direct {v1, p0}, Lcom/cleanmaster/service/ae;-><init>(Lcom/cleanmaster/service/PermanentService;)V

    const-wide/16 v2, 0x7530

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 339
    return-void
.end method

.method private g()V
    .registers 9

    .prologue
    const-wide/16 v6, 0x0

    .line 342
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v0

    .line 343
    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getPermanentServiceStartTime()J

    move-result-wide v2

    .line 344
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v4

    .line 345
    cmp-long v1, v2, v6

    if-eqz v1, :cond_1b

    .line 346
    sub-long v2, v4, v2

    invoke-virtual {v0, v2, v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentServiceElapsedTimeBetweenStart(J)V

    .line 348
    :cond_1b
    invoke-virtual {v0, v4, v5}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentServiceStartTime(J)V

    .line 350
    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getAppActiveTime()J

    move-result-wide v2

    cmp-long v1, v2, v6

    if-nez v1, :cond_29

    .line 351
    invoke-virtual {v0, v4, v5}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setAppActiveTime(J)V

    .line 353
    :cond_29
    return-void
.end method

.method private h()V
    .registers 5

    .prologue
    .line 356
    invoke-static {}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->getHandler()Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/cleanmaster/service/af;

    invoke-direct {v1, p0}, Lcom/cleanmaster/service/af;-><init>(Lcom/cleanmaster/service/PermanentService;)V

    const-wide/32 v2, 0x493e0

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 362
    return-void
.end method

.method private i()V
    .registers 2

    .prologue
    .line 366
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/service/b/j;->a(Landroid/content/Context;)V

    .line 367
    return-void
.end method

.method private j()V
    .registers 3

    .prologue
    .line 372
    invoke-static {}, Lcom/cleanmaster/ui/app/provider/a;->a()Lcom/cleanmaster/ui/app/provider/a;

    move-result-object v0

    new-instance v1, Lcom/cleanmaster/service/ag;

    invoke-direct {v1, p0}, Lcom/cleanmaster/service/ag;-><init>(Lcom/cleanmaster/service/PermanentService;)V

    invoke-virtual {v0, v1}, Lcom/cleanmaster/ui/app/provider/a;->a(Lcom/cm/plugincluster/common/interfaces/downloader/DownLoadListener;)V

    .line 427
    return-void
.end method

.method private k()V
    .registers 4

    .prologue
    .line 431
    new-instance v0, Lcom/cleanmaster/service/ah;

    invoke-direct {v0, p0}, Lcom/cleanmaster/service/ah;-><init>(Lcom/cleanmaster/service/PermanentService;)V

    iput-object v0, p0, Lcom/cleanmaster/service/PermanentService;->l:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

    .line 473
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    .line 474
    const-string v1, "android.net.wifi.WIFI_STATE_CHANGED"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 475
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->getInstance(Landroid/content/Context;)Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;

    move-result-object v1

    iget-object v2, p0, Lcom/cleanmaster/service/PermanentService;->l:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

    invoke-virtual {v1, v2, v0}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->registerReceiver(Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;Landroid/content/IntentFilter;)V

    .line 476
    return-void
.end method

.method private l()V
    .registers 4

    .prologue
    .line 480
    new-instance v0, Lcom/cleanmaster/service/aj;

    invoke-direct {v0, p0}, Lcom/cleanmaster/service/aj;-><init>(Lcom/cleanmaster/service/PermanentService;)V

    iput-object v0, p0, Lcom/cleanmaster/service/PermanentService;->m:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

    .line 486
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    .line 487
    const-string v1, "android.net.conn.CONNECTIVITY_CHANGE"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 488
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->getInstance(Landroid/content/Context;)Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;

    move-result-object v1

    iget-object v2, p0, Lcom/cleanmaster/service/PermanentService;->m:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

    invoke-virtual {v1, v2, v0}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->registerReceiver(Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;Landroid/content/IntentFilter;)V

    .line 489
    return-void
.end method

.method private m()V
    .registers 4

    .prologue
    .line 651
    new-instance v0, Lcom/cleanmaster/service/q;

    invoke-direct {v0, p0}, Lcom/cleanmaster/service/q;-><init>(Lcom/cleanmaster/service/PermanentService;)V

    iput-object v0, p0, Lcom/cleanmaster/service/PermanentService;->n:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

    .line 676
    new-instance v0, Landroid/content/IntentFilter;

    const-string v1, "android.intent.action.CLOSE_SYSTEM_DIALOGS"

    invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    .line 677
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->getInstance(Landroid/content/Context;)Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;

    move-result-object v1

    iget-object v2, p0, Lcom/cleanmaster/service/PermanentService;->n:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

    invoke-virtual {v1, v2, v0}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->registerReceiver(Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;Landroid/content/IntentFilter;)V

    .line 678
    return-void
.end method

.method private n()V
    .registers 4

    .prologue
    .line 684
    new-instance v0, Lcom/cleanmaster/service/r;

    invoke-direct {v0, p0}, Lcom/cleanmaster/service/r;-><init>(Lcom/cleanmaster/service/PermanentService;)V

    iput-object v0, p0, Lcom/cleanmaster/service/PermanentService;->k:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

    .line 811
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    .line 812
    const-string v1, "android.intent.action.SCREEN_OFF"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 813
    const-string v1, "android.intent.action.SCREEN_ON"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 814
    const-string v1, "android.intent.action.ACTION_POWER_CONNECTED"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 815
    const-string v1, "android.intent.action.ACTION_POWER_DISCONNECTED"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 816
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->getInstance(Landroid/content/Context;)Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;

    move-result-object v1

    iget-object v2, p0, Lcom/cleanmaster/service/PermanentService;->k:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

    invoke-virtual {v1, v2, v0}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->registerReceiver(Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;Landroid/content/IntentFilter;)V

    .line 817
    return-void
.end method

.method private o()V
    .registers 7

    .prologue
    .line 820
    invoke-static {}, Lcom/cleanmaster/s/b/a;->a()Lcom/cm/plugincluster/redpacket/interfaces/IRedPacketPluginModule;

    move-result-object v0

    invoke-interface {v0}, Lcom/cm/plugincluster/redpacket/interfaces/IRedPacketPluginModule;->getRedPacDialogShowLastTime()J

    move-result-wide v0

    .line 822
    const-wide/16 v2, 0x0

    cmp-long v2, v0, v2

    if-eqz v2, :cond_1a

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    sub-long v0, v2, v0

    iget-wide v2, p0, Lcom/cleanmaster/service/PermanentService;->p:J

    cmp-long v0, v0, v2

    if-lez v0, :cond_47

    .line 824
    :cond_1a
    invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getRedPackNum()I

    move-result v0

    .line 826
    int-to-long v2, v0

    iget-wide v4, p0, Lcom/cleanmaster/service/PermanentService;->o:J

    cmp-long v1, v2, v4

    if-lez v1, :cond_47

    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v1

    invoke-virtual {v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getWeChatRedPacketInfo()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_47

    .line 827
    new-instance v1, Lcom/cleanmaster/push/a;

    invoke-direct {v1}, Lcom/cleanmaster/push/a;-><init>()V

    invoke-virtual {v1, v0}, Lcom/cleanmaster/push/a;->startRedPack(I)V

    .line 830
    :cond_47
    return-void
.end method

.method private p()V
    .registers 4

    .prologue
    .line 844
    new-instance v0, Lcom/cleanmaster/service/v;

    invoke-direct {v0, p0}, Lcom/cleanmaster/service/v;-><init>(Lcom/cleanmaster/service/PermanentService;)V

    iput-object v0, p0, Lcom/cleanmaster/service/PermanentService;->i:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

    .line 872
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    .line 873
    const-string v1, "android.intent.action.BATTERY_CHANGED"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 874
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->getInstance(Landroid/content/Context;)Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;

    move-result-object v1

    iget-object v2, p0, Lcom/cleanmaster/service/PermanentService;->i:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

    invoke-virtual {v1, v2, v0}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->registerReceiver(Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;Landroid/content/IntentFilter;)V

    .line 875
    return-void
.end method

.method private q()V
    .registers 4

    .prologue
    .line 878
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    .line 879
    const v1, 0x7fffffff

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->setPriority(I)V

    .line 880
    const-string v1, "package"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addDataScheme(Ljava/lang/String;)V

    .line 881
    const-string v1, "android.intent.action.PACKAGE_ADDED"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 882
    const-string v1, "android.intent.action.PACKAGE_REMOVED"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 883
    const-string v1, "com.cleanmaster.receiver.ACTION_REMOVED_SYSTEM_APP"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 884
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->getInstance(Landroid/content/Context;)Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;

    move-result-object v1

    new-instance v2, Lcom/ijinshan/cleaner/receiver/UninstallBroadcastReceiver;

    invoke-direct {v2}, Lcom/ijinshan/cleaner/receiver/UninstallBroadcastReceiver;-><init>()V

    invoke-virtual {v1, v2, v0}, Lcom/cleanmaster/hpcommonlib/utils/CmBroadcastManager;->registerReceiver(Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;Landroid/content/IntentFilter;)V

    .line 886
    return-void
.end method

.method private r()V
    .registers 4
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    .prologue
    .line 890
    new-instance v0, Lcom/cleanmaster/service/x;

    invoke-direct {v0, p0}, Lcom/cleanmaster/service/x;-><init>(Lcom/cleanmaster/service/PermanentService;)V

    iput-object v0, p0, Lcom/cleanmaster/service/PermanentService;->j:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

    .line 897
    :try_start_7
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    .line 898
    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0xe

    if-lt v1, v2, :cond_22

    .line 899
    const-string v1, "android.hardware.action.NEW_PICTURE"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 903
    :goto_17
    const-string v1, "image/*"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addDataType(Ljava/lang/String;)V
    :try_end_1c
    .catch Landroid/content/IntentFilter$MalformedMimeTypeException; {:try_start_7 .. :try_end_1c} :catch_28

    .line 905
    :try_start_1c
    iget-object v1, p0, Lcom/cleanmaster/service/PermanentService;->j:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

    invoke-virtual {p0, v1, v0}, Lcom/cleanmaster/service/PermanentService;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
    :try_end_21
    .catch Ljava/lang/Throwable; {:try_start_1c .. :try_end_21} :catch_2a
    .catch Landroid/content/IntentFilter$MalformedMimeTypeException; {:try_start_1c .. :try_end_21} :catch_28

    .line 911
    :goto_21
    return-void

    .line 901
    :cond_22
    :try_start_22
    const-string v1, "com.android.camera.NEW_PICTURE"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
    :try_end_27
    .catch Landroid/content/IntentFilter$MalformedMimeTypeException; {:try_start_22 .. :try_end_27} :catch_28

    goto :goto_17

    .line 909
    :catch_28
    move-exception v0

    goto :goto_21

    .line 906
    :catch_2a
    move-exception v0

    goto :goto_21
.end method

.method private s()V
    .registers 1

    .prologue
    .line 1143
    return-void
.end method

.method private t()V
    .registers 4
    .annotation build Landroid/annotation/TargetApi;
        value = 0x1a
    .end annotation

    .prologue
    .line 1148
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x1a

    if-lt v0, v1, :cond_18

    .line 1150
    const-string v0, "common"

    .line 1151
    const-string/jumbo v1, "\u63a8\u9001\u6d88\u606f"

    .line 1153
    const/4 v2, 0x4

    .line 1154
    invoke-direct {p0, v0, v1, v2}, Lcom/cleanmaster/service/PermanentService;->a(Ljava/lang/String;Ljava/lang/String;I)V

    .line 1156
    const-string v0, "MIDDLE_LEVEL"

    .line 1157
    const-string/jumbo v1, "\u4e2d\u7ea7\u522b\u6d88\u606f"

    .line 1158
    const/4 v2, 0x2

    .line 1159
    invoke-direct {p0, v0, v1, v2}, Lcom/cleanmaster/service/PermanentService;->a(Ljava/lang/String;Ljava/lang/String;I)V

    .line 1161
    :cond_18
    return-void
.end method

.method private u()V
    .registers 2

    .prologue
    .line 1174
    new-instance v0, Lcom/cleanmaster/service/ad;

    invoke-direct {v0, p0}, Lcom/cleanmaster/service/ad;-><init>(Lcom/cleanmaster/service/PermanentService;)V

    invoke-static {v0}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->post(Ljava/lang/Runnable;)V

    .line 1183
    return-void
.end method

.method private v()V
    .registers 3

    .prologue
    .line 1186
    iget-object v0, p0, Lcom/cleanmaster/service/PermanentService;->h:Lcom/cleanmaster/o/a;

    if-nez v0, :cond_b

    .line 1187
    new-instance v0, Lcom/cleanmaster/o/a;

    invoke-direct {v0}, Lcom/cleanmaster/o/a;-><init>()V

    iput-object v0, p0, Lcom/cleanmaster/service/PermanentService;->h:Lcom/cleanmaster/o/a;

    .line 1190
    :cond_b
    invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->w()Z

    move-result v0

    if-eqz v0, :cond_1b

    .line 1191
    iget-object v0, p0, Lcom/cleanmaster/service/PermanentService;->h:Lcom/cleanmaster/o/a;

    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/cleanmaster/o/a;->a(Landroid/content/Context;)V

    .line 1195
    :goto_1a
    return-void

    .line 1193
    :cond_1b
    iget-object v0, p0, Lcom/cleanmaster/service/PermanentService;->h:Lcom/cleanmaster/o/a;

    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/cleanmaster/o/a;->b(Landroid/content/Context;)V

    goto :goto_1a
.end method

.method private w()Z
    .registers 6

    .prologue
    const/4 v0, 0x0

    .line 1198
    invoke-static {}, Lcom/cleanmaster/hpsharelib/oeam/OEMFeatureManager;->isBaoquGameEntryEnable()Z

    move-result v1

    if-nez v1, :cond_f

    .line 1199
    const-string v1, "mucpla"

    const-string v2, "not init by oem"

    invoke-static {v1, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 1219
    :goto_e
    return v0

    .line 1203
    :cond_f
    const/16 v1, 0x9

    const-string v2, "keep_music"

    const-string v3, "brand"

    const-string v4, "default"

    invoke-static {v1, v2, v3, v4}, Lcom/cleanmaster/pluginscommonlib/f;->a(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 1204
    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_29

    .line 1205
    const-string v1, "mucpla"

    const-string v2, "not init by cube"

    invoke-static {v1, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_e

    .line 1209
    :cond_29
    invoke-static {}, Lcom/cleanmaster/pluginscommonlib/k;->b()Z

    move-result v2

    if-eqz v2, :cond_37

    const-string v2, "oppo"

    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_7f

    .line 1210
    :cond_37
    invoke-static {}, Lcom/cleanmaster/pluginscommonlib/k;->n()Z

    move-result v2

    if-eqz v2, :cond_46

    const-string/jumbo v2, "vivo"

    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_7f

    .line 1211
    :cond_46
    invoke-static {}, Lcom/cleanmaster/pluginscommonlib/k;->a()Z

    move-result v2

    if-eqz v2, :cond_55

    const-string/jumbo v2, "xiaomi"

    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_7f

    .line 1212
    :cond_55
    invoke-static {}, Lcom/cleanmaster/pluginscommonlib/k;->c()Z

    move-result v2

    if-eqz v2, :cond_63

    const-string v2, "huawei"

    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_7f

    .line 1213
    :cond_63
    invoke-static {}, Lcom/cleanmaster/pluginscommonlib/k;->o()Z

    move-result v2

    if-eqz v2, :cond_71

    const-string v2, "meizu"

    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_7f

    :cond_71
    const-string v2, "default"

    .line 1214
    invoke-static {v1, v2}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_88

    invoke-static {}, Lcom/cleanmaster/pluginscommonlib/k;->c()Z

    move-result v1

    if-nez v1, :cond_88

    .line 1215
    :cond_7f
    const-string v0, "mucpla"

    const-string v1, "init"

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 1216
    const/4 v0, 0x1

    goto :goto_e

    .line 1218
    :cond_88
    const-string v1, "mucpla"

    const-string v2, "not init by brand"

    invoke-static {v1, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_e
.end method


# virtual methods
.method public a(ZLandroid/app/Notification;I)V
    .registers 7

    .prologue
    .line 218
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->b()Z

    move-result v0

    .line 219
    if-nez p1, :cond_8

    if-eqz v0, :cond_20

    .line 224
    :cond_8
    if-nez p2, :cond_19

    .line 225
    new-instance v0, Landroid/support/v4/app/NotificationCompat$Builder;

    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/HostHelper;->getAppContext()Landroid/content/Context;

    move-result-object v1

    const-string v2, "common"

    invoke-direct {v0, v1, v2}, Landroid/support/v4/app/NotificationCompat$Builder;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 227
    invoke-virtual {v0}, Landroid/support/v4/app/NotificationCompat$Builder;->build()Landroid/app/Notification;

    move-result-object p2

    .line 230
    :cond_19
    invoke-virtual {p0, p3, p2}, Lcom/cleanmaster/service/PermanentService;->startForeground(ILandroid/app/Notification;)V

    .line 231
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/cleanmaster/service/PermanentService;->d:Z

    .line 233
    :goto_1f
    return-void

    .line 232
    :cond_20
    invoke-static {}, Lcom/cleanmaster/hpsharelib/utils/NotificationToolConfigManager;->isNotificationToolOpen()Z

    move-result v0

    iput-boolean v0, p0, Lcom/cleanmaster/service/PermanentService;->d:Z

    goto :goto_1f
.end method

.method a()Z
    .registers 5

    .prologue
    .line 198
    invoke-static {}, Lcom/cleanmaster/hpsharelib/boost/process/util/ProcessInfoHelper;->getTotalMemoryByte()J

    move-result-wide v0

    const-wide/16 v2, 0x400

    div-long/2addr v0, v2

    .line 199
    const-wide/32 v2, 0x80000

    cmp-long v0, v0, v2

    if-ltz v0, :cond_10

    const/4 v0, 0x1

    :goto_f
    return v0

    :cond_10
    const/4 v0, 0x0

    goto :goto_f
.end method

.method public b()Z
    .registers 5

    .prologue
    const/4 v1, 0x1

    const/4 v0, 0x0

    .line 208
    invoke-static {}, Lcom/cleanmaster/hpsharelib/utils/NotificationToolConfigManager;->isNotificationToolOpen()Z

    move-result v2

    if-nez v2, :cond_1c

    sget v2, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v3, 0x11

    if-gt v2, v3, :cond_1c

    move v2, v1

    .line 209
    :goto_f
    if-nez v2, :cond_1a

    invoke-static {}, Lcom/cleanmaster/notification/ak;->a()Lcom/cleanmaster/notification/ak;

    invoke-static {}, Lcom/cleanmaster/notification/ak;->e()Z

    move-result v2

    if-eqz v2, :cond_1b

    :cond_1a
    move v0, v1

    :cond_1b
    return v0

    :cond_1c
    move v2, v0

    .line 208
    goto :goto_f
.end method

.method public c()V
    .registers 2

    .prologue
    .line 237
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/cleanmaster/service/PermanentService;->d:Z

    .line 238
    return-void
.end method

.method public d()V
    .registers 2

    .prologue
    .line 242
    iget-boolean v0, p0, Lcom/cleanmaster/service/PermanentService;->d:Z

    if-nez v0, :cond_5

    .line 247
    :goto_4
    return-void

    .line 245
    :cond_5
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/cleanmaster/service/PermanentService;->d:Z

    .line 246
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/cleanmaster/service/PermanentService;->stopForeground(Z)V

    goto :goto_4
.end method

.method e()V
    .registers 7

    .prologue
    const/4 v5, 0x0

    const/4 v4, 0x0

    .line 493
    invoke-static {}, Lcom/cleanmaster/service/watcher/aa;->a()Lcom/cleanmaster/service/watcher/aa;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/cleanmaster/service/watcher/aa;->initWatcher(Lcom/cleanmaster/service/PermanentService;)V

    .line 494
    invoke-static {}, Lcom/cleanmaster/service/active_report/CmServiceReportAlarmReceiver;->a()Lcom/cleanmaster/service/active_report/CmServiceReportAlarmReceiver;

    move-result-object v0

    invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/cleanmaster/service/active_report/CmServiceReportAlarmReceiver;->a(Landroid/content/Context;)V

    .line 497
    invoke-static {}, Lcom/cm/root/b;->c()V

    .line 500
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/service/watcher/AppOpenWatcher;->a(Landroid/content/Context;)Lcom/cleanmaster/service/watcher/AppOpenWatcher;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/cleanmaster/service/watcher/AppOpenWatcher;->initWatcher(Lcom/cleanmaster/service/PermanentService;)V

    .line 501
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/service/watcher/AppOpenWatcher;->a(Landroid/content/Context;)Lcom/cleanmaster/service/watcher/AppOpenWatcher;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/service/watcher/AppOpenWatcher;->a()V

    .line 504
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->a()Z

    move-result v0

    if-eqz v0, :cond_38

    .line 505
    const/16 v0, 0x3001

    invoke-virtual {p0, v4, v5, v0}, Lcom/cleanmaster/service/PermanentService;->a(ZLandroid/app/Notification;I)V

    .line 509
    :cond_38
    invoke-static {}, Lcom/cleanmaster/notification/ak;->a()Lcom/cleanmaster/notification/ak;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/cleanmaster/notification/ak;->a(Lcom/cleanmaster/service/PermanentService;)V

    .line 510
    invoke-static {p0}, Lcom/cleanmaster/notification/ak;->a(Landroid/content/Context;)V

    .line 511
    invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->t()V

    .line 512
    invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->u()V

    .line 513
    invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->v()V

    .line 515
    invoke-static {}, Lcom/cleanmaster/ui/notificationtools/a;->a()Lcom/cleanmaster/ui/notificationtools/a;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/cleanmaster/ui/notificationtools/a;->a(Lcom/cleanmaster/service/PermanentService;)V

    .line 524
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->a()Z

    move-result v0

    if-eqz v0, :cond_6b

    .line 525
    const-string v0, "com.cleanmaster.libs.watcher.AppListener"

    invoke-static {p0, v0}, Lcom/cleanmaster/util/DexLoaderUtil;->createInstance(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/cleanmaster/libsinterface/watcher/IAppListener;

    iput-object v0, p0, Lcom/cleanmaster/service/PermanentService;->e:Lcom/cleanmaster/libsinterface/watcher/IAppListener;

    .line 526
    iget-object v0, p0, Lcom/cleanmaster/service/PermanentService;->e:Lcom/cleanmaster/libsinterface/watcher/IAppListener;

    if-eqz v0, :cond_6b

    .line 527
    iget-object v0, p0, Lcom/cleanmaster/service/PermanentService;->e:Lcom/cleanmaster/libsinterface/watcher/IAppListener;

    invoke-interface {v0}, Lcom/cleanmaster/libsinterface/watcher/IAppListener;->start()Z

    .line 530
    :cond_6b
    invoke-static {p0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->isFirstMainUIExited()Z

    move-result v0

    if-nez v0, :cond_7c

    .line 532
    invoke-static {}, Lcom/cleanmaster/hpsharelib/func/cache/LabelNameUtil;->getInstance()Lcom/cleanmaster/hpsharelib/func/cache/LabelNameUtil;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/func/cache/LabelNameUtil;->init()V

    .line 535
    :cond_7c
    invoke-static {}, Lcom/cleanmaster/service/watcher/aq;->a()V

    .line 537
    invoke-static {}, Lcom/cleanmaster/cloudconfig/CloudCfgIntentService;->a()V

    .line 539
    invoke-static {}, Lcom/ijinshan/cleaner/receiver/AlarmReceiver;->b()V

    .line 545
    invoke-static {}, Lcom/cleanmaster/service/watcher/s;->a()Lcom/cleanmaster/service/watcher/s;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/cleanmaster/service/watcher/s;->initWatcher(Lcom/cleanmaster/service/PermanentService;)V

    .line 548
    const-string v0, "junk_report_setting"

    const-string v1, "a_f_mon_switch"

    invoke-static {v0, v1, v4}, Lcom/cleanmaster/junkengine/junk/util/JunkCloudConfig;->getBooleanValue(Ljava/lang/String;Ljava/lang/String;Z)Z

    move-result v0

    .line 551
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->a()Z

    move-result v1

    if-eqz v1, :cond_a3

    if-eqz v0, :cond_a3

    .line 552
    invoke-static {}, Lcom/cleanmaster/service/watcher/g;->a()Lcom/cleanmaster/service/watcher/g;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/cleanmaster/service/watcher/g;->initWatcher(Lcom/cleanmaster/service/PermanentService;)V

    .line 555
    :cond_a3
    invoke-static {p0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->isFloatWindowEnable()Z

    move-result v0

    if-eqz v0, :cond_b4

    .line 556
    invoke-static {}, Lcom/cm/plugincluster/loststars/proxy/LostStarsPluginDelegate;->getPluginModule()Lcom/cm/plugincluster/loststars/interfaces/ILostStarsPluginModule;

    move-result-object v0

    invoke-interface {v0}, Lcom/cm/plugincluster/loststars/interfaces/ILostStarsPluginModule;->jsonToMap()V

    .line 560
    :cond_b4
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/ipc/ServiceManager;->getInstance()Lcom/cleanmaster/hpsharelib/base/ipc/ServiceManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/ipc/ServiceManager;->initServices()V

    .line 562
    invoke-static {}, Lcom/keniu/security/l;->d()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/base/util/system/PackageUtils;->isSelfDebuggable(Landroid/content/Context;)Z

    move-result v0

    sput-boolean v0, Lcom/cleanmaster/hpsharelib/report/BaseTracer;->DEBUG:Z

    .line 569
    invoke-static {}, Lcom/cm/plugincluster/applock/plugin/ApplockPluginDelegate;->getModule()Lcom/cm/plugincluster/applock/plugin/IApplockPluginModule;

    move-result-object v0

    invoke-interface {v0, p0}, Lcom/cm/plugincluster/applock/plugin/IApplockPluginModule;->startAppLockHostServiceIfNecessary(Landroid/content/Context;)V

    .line 571
    invoke-static {}, Lcom/cm/plugincluster/applock/plugin/ApplockPluginDelegate;->getModule()Lcom/cm/plugincluster/applock/plugin/IApplockPluginModule;

    move-result-object v0

    invoke-interface {v0}, Lcom/cm/plugincluster/applock/plugin/IApplockPluginModule;->getAppLockState()Z

    move-result v0

    if-eqz v0, :cond_e4

    .line 572
    invoke-static {}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->getHandler()Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/cleanmaster/service/ak;

    invoke-direct {v1, p0}, Lcom/cleanmaster/service/ak;-><init>(Lcom/cleanmaster/service/PermanentService;)V

    const-wide/16 v2, 0x2710

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 580
    :cond_e4
    invoke-static {}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->getHandler()Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/cleanmaster/service/al;

    invoke-direct {v1, p0}, Lcom/cleanmaster/service/al;-><init>(Lcom/cleanmaster/service/PermanentService;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 590
    const v0, 0x11a01f

    new-array v1, v4, [Ljava/lang/Object;

    invoke-static {v0, v5, v1}, Lcom/cm/plugincluster/spec/CommanderManager;->invokeCommand(ILjava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    .line 596
    const v0, 0x22c07e

    new-array v1, v4, [Ljava/lang/Object;

    invoke-static {v0, v5, v1}, Lcom/cm/plugincluster/spec/CommanderManager;->invokeCommand(ILjava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    .line 598
    invoke-static {}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->getHandler()Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/cleanmaster/service/o;

    invoke-direct {v1, p0}, Lcom/cleanmaster/service/o;-><init>(Lcom/cleanmaster/service/PermanentService;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 612
    invoke-static {}, Lcom/cleanmaster/service/watcher/al;->a()Lcom/cleanmaster/service/watcher/al;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/cleanmaster/service/watcher/al;->initWatcher(Lcom/cleanmaster/service/PermanentService;)V

    .line 613
    return-void
.end method

.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
    .registers 3

    .prologue
    .line 1057
    iget-object v0, p0, Lcom/cleanmaster/service/PermanentService;->r:Lcom/cleanmaster/sync/binder/BinderContainer;

    return-object v0
.end method

.method public onCreate()V
    .registers 4

    .prologue
    .line 303
    invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->g()V

    .line 304
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->e()V

    .line 305
    sput-object p0, Lcom/cleanmaster/service/PermanentService;->a:Lcom/cleanmaster/service/PermanentService;

    .line 307
    :try_start_8
    invoke-static {}, Lcom/plug/a;->a()Lcom/plug/a;

    move-result-object v0

    const/16 v1, 0x9

    new-instance v2, Lcom/cleanmaster/service/ac;

    invoke-direct {v2, p0}, Lcom/cleanmaster/service/ac;-><init>(Lcom/cleanmaster/service/PermanentService;)V

    invoke-virtual {v0, v1, v2}, Lcom/plug/a;->runOnPluginInitComplete(ILcom/cm/plugincluster/pluginmgr/interfaces/IPluginManager$IPluginInitObserver;)V
    :try_end_16
    .catch Ljava/lang/Throwable; {:try_start_8 .. :try_end_16} :catch_38

    .line 316
    :goto_16
    invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->n()V

    .line 317
    invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->p()V

    .line 318
    invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->r()V

    .line 319
    invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->k()V

    .line 321
    invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->l()V

    .line 322
    invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->j()V

    .line 323
    invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->m()V

    .line 324
    invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->q()V

    .line 326
    invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->i()V

    .line 327
    invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->h()V

    .line 328
    invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->f()V

    .line 329
    return-void

    .line 313
    :catch_38
    move-exception v0

    .line 314
    invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V

    goto :goto_16
.end method

.method public onDestroy()V
    .registers 5

    .prologue
    const/4 v3, 0x0

    .line 617
    iget-object v0, p0, Lcom/cleanmaster/service/PermanentService;->s:Landroid/os/HandlerThread;

    if-eqz v0, :cond_a

    .line 618
    iget-object v0, p0, Lcom/cleanmaster/service/PermanentService;->s:Landroid/os/HandlerThread;

    invoke-virtual {v0}, Landroid/os/HandlerThread;->quit()Z

    .line 620
    :cond_a
    const/4 v0, 0x5

    new-array v0, v0, [Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

    iget-object v1, p0, Lcom/cleanmaster/service/PermanentService;->k:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

    aput-object v1, v0, v3

    const/4 v1, 0x1

    iget-object v2, p0, Lcom/cleanmaster/service/PermanentService;->i:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

    aput-object v2, v0, v1

    const/4 v1, 0x2

    iget-object v2, p0, Lcom/cleanmaster/service/PermanentService;->j:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

    aput-object v2, v0, v1

    const/4 v1, 0x3

    iget-object v2, p0, Lcom/cleanmaster/service/PermanentService;->l:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

    aput-object v2, v0, v1

    const/4 v1, 0x4

    iget-object v2, p0, Lcom/cleanmaster/service/PermanentService;->m:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;

    aput-object v2, v0, v1

    invoke-direct {p0, v0}, Lcom/cleanmaster/service/PermanentService;->a([Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;)V

    .line 623
    invoke-static {}, Lcom/cleanmaster/service/watcher/s;->a()Lcom/cleanmaster/service/watcher/s;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/service/watcher/s;->deinitWatcher()V

    .line 625
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/service/watcher/AppOpenWatcher;->a(Landroid/content/Context;)Lcom/cleanmaster/service/watcher/AppOpenWatcher;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/service/watcher/AppOpenWatcher;->b()V

    .line 626
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/service/watcher/AppOpenWatcher;->a(Landroid/content/Context;)Lcom/cleanmaster/service/watcher/AppOpenWatcher;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/service/watcher/AppOpenWatcher;->deinitWatcher()V

    .line 627
    invoke-static {}, Lcom/cleanmaster/service/watcher/g;->a()Lcom/cleanmaster/service/watcher/g;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/service/watcher/g;->deinitWatcher()V

    .line 628
    iget-object v0, p0, Lcom/cleanmaster/service/PermanentService;->e:Lcom/cleanmaster/libsinterface/watcher/IAppListener;

    if-eqz v0, :cond_55

    .line 629
    iget-object v0, p0, Lcom/cleanmaster/service/PermanentService;->e:Lcom/cleanmaster/libsinterface/watcher/IAppListener;

    invoke-interface {v0}, Lcom/cleanmaster/libsinterface/watcher/IAppListener;->stop()Z

    .line 632
    :cond_55
    invoke-static {}, Lcom/plug/a;->a()Lcom/plug/a;

    move-result-object v0

    const/16 v1, 0x9

    new-instance v2, Lcom/cleanmaster/service/p;

    invoke-direct {v2, p0}, Lcom/cleanmaster/service/p;-><init>(Lcom/cleanmaster/service/PermanentService;)V

    invoke-virtual {v0, v1, v2}, Lcom/plug/a;->runOnPluginInitComplete(ILcom/cm/plugincluster/pluginmgr/interfaces/IPluginManager$IPluginInitObserver;)V

    .line 639
    const v0, 0x11a01e

    const/4 v1, 0x0

    new-array v2, v3, [Ljava/lang/Object;

    invoke-static {v0, v1, v2}, Lcom/cm/plugincluster/spec/CommanderManager;->invokeCommand(ILjava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    .line 640
    invoke-static {}, Lcom/cleanmaster/service/watcher/aa;->a()Lcom/cleanmaster/service/watcher/aa;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/service/watcher/aa;->deinitWatcher()V

    .line 641
    invoke-static {}, Lcom/ijinshan/cleaner/receiver/m;->a()Lcom/ijinshan/cleaner/receiver/m;

    move-result-object v0

    invoke-virtual {v0}, Lcom/ijinshan/cleaner/receiver/m;->e()V

    .line 642
    invoke-static {}, Lcom/cm/plugincluster/loststars/proxy/LostStarsPluginDelegate;->getPluginModule()Lcom/cm/plugincluster/loststars/interfaces/ILostStarsPluginModule;

    move-result-object v0

    invoke-interface {v0}, Lcom/cm/plugincluster/loststars/interfaces/ILostStarsPluginModule;->stopFloatService()V

    .line 643
    invoke-static {}, Lcom/cleanmaster/kinfoc/o;->d()Z

    .line 645
    invoke-static {}, Lcom/cleanmaster/service/watcher/al;->a()Lcom/cleanmaster/service/watcher/al;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/service/watcher/al;->deinitWatcher()V

    .line 646
    invoke-static {}, Lcom/cleanmaster/notification/ak;->a()Lcom/cleanmaster/notification/ak;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/notification/ak;->d()V

    .line 647
    invoke-super {p0}, Landroid/app/Service;->onDestroy()V

    .line 648
    return-void
.end method

.method public onStart(Landroid/content/Intent;I)V
    .registers 3

    .prologue
    .line 1050
    invoke-super {p0, p1, p2}, Landroid/app/Service;->onStart(Landroid/content/Intent;I)V

    .line 1051
    return-void
.end method

.method public onStartCommand(Landroid/content/Intent;II)I
    .registers 11

    .prologue
    const/16 v6, 0x3001

    const/4 v5, 0x0

    const/4 v4, 0x0

    const/4 v3, 0x1

    .line 919
    if-eqz p1, :cond_12

    const-string v0, "source"

    invoke-virtual {p1, v0}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_12

    .line 920
    invoke-static {p1}, Lcom/cleanmaster/c/a;->a(Landroid/content/Intent;)V

    .line 923
    :cond_12
    if-nez p1, :cond_15

    .line 1045
    :cond_14
    :goto_14
    return v3

    .line 926
    :cond_15
    invoke-static {}, Lcom/cm/plugincluster/applock/plugin/ApplockPluginDelegate;->getModule()Lcom/cm/plugincluster/applock/plugin/IApplockPluginModule;

    move-result-object v0

    invoke-interface {v0}, Lcom/cm/plugincluster/applock/plugin/IApplockPluginModule;->getAppLockState()Z

    move-result v0

    if-eqz v0, :cond_30

    .line 927
    invoke-static {}, Lcom/cm/plugincluster/applock/plugin/ApplockPluginDelegate;->getModule()Lcom/cm/plugincluster/applock/plugin/IApplockPluginModule;

    move-result-object v0

    invoke-interface {v0, p1}, Lcom/cm/plugincluster/applock/plugin/IApplockPluginModule;->isAppLockServiceIntent(Landroid/content/Intent;)Z

    move-result v0

    if-eqz v0, :cond_30

    .line 928
    invoke-static {}, Lcom/cm/plugincluster/applock/plugin/ApplockPluginDelegate;->getModule()Lcom/cm/plugincluster/applock/plugin/IApplockPluginModule;

    move-result-object v0

    invoke-interface {v0, p1}, Lcom/cm/plugincluster/applock/plugin/IApplockPluginModule;->handleApplockIntentCommand(Landroid/content/Intent;)V

    .line 936
    :cond_30
    :try_start_30
    const-string v0, "cheOnAppUsageChangeExck_type"

    invoke-virtual {p1, v0}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z
    :try_end_35
    .catch Ljava/lang/Exception; {:try_start_30 .. :try_end_35} :catch_180

    move-result v0

    if-eqz v0, :cond_14

    .line 941
    invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    .line 942
    if-eqz v0, :cond_14

    .line 945
    const-string v1, "cheOnAppUsageChangeExck_type"

    invoke-virtual {v0, v1, v4}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result v1

    .line 946
    sget v2, Lcom/cleanmaster/service/PermanentService;->b:I

    if-nez v2, :cond_4a

    .line 947
    sput v1, Lcom/cleanmaster/service/PermanentService;->b:I

    .line 950
    :cond_4a
    new-instance v2, Lcom/cleanmaster/service/y;

    invoke-direct {v2, p0}, Lcom/cleanmaster/service/y;-><init>(Lcom/cleanmaster/service/PermanentService;)V

    invoke-static {v2}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->post(Ljava/lang/Runnable;)V

    .line 959
    const/16 v2, 0xb

    if-ne v1, v2, :cond_5e

    .line 961
    invoke-static {}, Lcom/cleanmaster/funcrecommend/StorageSpaceMonitor;->getInstance()Lcom/cleanmaster/funcrecommend/StorageSpaceMonitor;

    move-result-object v0

    invoke-virtual {v0, v3}, Lcom/cleanmaster/funcrecommend/StorageSpaceMonitor;->startMonitor(I)V

    goto :goto_14

    .line 962
    :cond_5e
    const/16 v2, 0x190

    if-ne v1, v2, :cond_6b

    .line 963
    invoke-static {}, Lcom/cleanmaster/funcrecommend/StorageSpaceMonitor;->getInstance()Lcom/cleanmaster/funcrecommend/StorageSpaceMonitor;

    move-result-object v0

    const/4 v1, 0x3

    invoke-virtual {v0, v1}, Lcom/cleanmaster/funcrecommend/StorageSpaceMonitor;->startMonitor(I)V

    goto :goto_14

    .line 964
    :cond_6b
    const/16 v2, 0x191

    if-ne v1, v2, :cond_78

    .line 965
    invoke-static {}, Lcom/cleanmaster/funcrecommend/StorageSpaceMonitor;->getInstance()Lcom/cleanmaster/funcrecommend/StorageSpaceMonitor;

    move-result-object v0

    const/4 v1, 0x2

    invoke-virtual {v0, v1}, Lcom/cleanmaster/funcrecommend/StorageSpaceMonitor;->startMonitor(I)V

    goto :goto_14

    .line 966
    :cond_78
    const/16 v2, 0xa

    if-ne v1, v2, :cond_84

    .line 967
    invoke-static {}, Lcom/cleanmaster/funcrecommend/StorageSpaceMonitor;->getInstance()Lcom/cleanmaster/funcrecommend/StorageSpaceMonitor;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/funcrecommend/StorageSpaceMonitor;->stopMonitorTimer()V

    goto :goto_14

    .line 968
    :cond_84
    const/16 v2, 0xc

    if-ne v1, v2, :cond_8c

    .line 969
    invoke-static {v3}, Lcom/cleanmaster/service/BgScanService;->a(Z)V

    goto :goto_14

    .line 970
    :cond_8c
    const/16 v2, 0x19a

    if-ne v1, v2, :cond_94

    .line 971
    invoke-static {}, Lcom/atinst/AutoInstallIntentService;->a()V

    goto :goto_14

    .line 972
    :cond_94
    const/16 v2, 0xf

    if-ne v1, v2, :cond_a4

    .line 973
    new-instance v0, Lcom/cleanmaster/service/z;

    const-string v1, "CHECKTYPE_RESTART_FLOAT_SERVICE"

    invoke-direct {v0, p0, v1}, Lcom/cleanmaster/service/z;-><init>(Lcom/cleanmaster/service/PermanentService;Ljava/lang/String;)V

    .line 984
    invoke-virtual {v0}, Lcom/cleanmaster/service/z;->start()V

    goto/16 :goto_14

    .line 985
    :cond_a4
    const/16 v2, 0xc8

    if-ne v1, v2, :cond_b1

    .line 986
    iget-boolean v0, p0, Lcom/cleanmaster/service/PermanentService;->d:Z

    if-nez v0, :cond_14

    .line 989
    invoke-virtual {p0, v4, v5, v6}, Lcom/cleanmaster/service/PermanentService;->a(ZLandroid/app/Notification;I)V

    goto/16 :goto_14

    .line 991
    :cond_b1
    const/16 v2, 0xc9

    if-ne v1, v2, :cond_c0

    .line 992
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->a()Z

    move-result v0

    if-nez v0, :cond_14

    .line 995
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->d()V

    goto/16 :goto_14

    .line 997
    :cond_c0
    const/16 v2, 0x12f

    if-ne v1, v2, :cond_f4

    .line 998
    invoke-static {p0}, Lcom/cleanmaster/ledlight/e;->a(Landroid/content/Context;)Lcom/cleanmaster/ledlight/e;

    move-result-object v1

    invoke-virtual {v1}, Lcom/cleanmaster/ledlight/e;->isOn()Z

    move-result v1

    if-nez v1, :cond_ec

    iget-boolean v1, p0, Lcom/cleanmaster/service/PermanentService;->d:Z

    if-nez v1, :cond_ec

    .line 999
    iget-boolean v1, p0, Lcom/cleanmaster/service/PermanentService;->d:Z

    iput-boolean v1, p0, Lcom/cleanmaster/service/PermanentService;->q:Z

    .line 1000
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->b()Z

    move-result v1

    invoke-virtual {p0, v1, v5, v6}, Lcom/cleanmaster/service/PermanentService;->a(ZLandroid/app/Notification;I)V

    .line 1004
    :cond_dd
    :goto_dd
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    const-string v2, "from"

    invoke-virtual {v0, v2, v3}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result v0

    invoke-static {v1, v0}, Lcom/cleanmaster/notification/a/a;->a(Landroid/content/Context;I)V

    goto/16 :goto_14

    .line 1001
    :cond_ec
    iget-boolean v1, p0, Lcom/cleanmaster/service/PermanentService;->q:Z

    if-nez v1, :cond_dd

    .line 1002
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->d()V

    goto :goto_dd

    .line 1005
    :cond_f4
    const/16 v2, 0x131

    if-ne v1, v2, :cond_101

    .line 1006
    invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1, v0}, Lcom/cleanmaster/notification/a/a;->a(Landroid/content/Context;Landroid/os/Bundle;)V

    goto/16 :goto_14

    .line 1007
    :cond_101
    const/16 v2, 0x132

    if-ne v1, v2, :cond_115

    .line 1008
    invoke-static {}, Lcom/cleanmaster/hpsharelib/func/cache/LabelNameUtil;->getInstance()Lcom/cleanmaster/hpsharelib/func/cache/LabelNameUtil;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/func/cache/LabelNameUtil;->init()V

    .line 1009
    invoke-static {p0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setFirstMainUIExited(Z)V

    goto/16 :goto_14

    .line 1010
    :cond_115
    const/16 v2, 0x19f

    if-eq v1, v2, :cond_14

    .line 1011
    const/16 v2, 0x1a4

    if-ne v1, v2, :cond_133

    .line 1012
    const-string v1, "report_notification_type"

    invoke-virtual {v0, v1, v4}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result v0

    .line 1013
    const v1, 0x11a01b

    new-array v2, v3, [Ljava/lang/Object;

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    aput-object v0, v2, v4

    invoke-static {v1, v5, v2}, Lcom/cm/plugincluster/spec/CommanderManager;->invokeCommand(ILjava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    goto/16 :goto_14

    .line 1014
    :cond_133
    const/16 v2, 0x1a5

    if-ne v1, v2, :cond_141

    .line 1015
    const v0, 0x11a01c

    new-array v1, v4, [Ljava/lang/Object;

    invoke-static {v0, v5, v1}, Lcom/cm/plugincluster/spec/CommanderManager;->invokeCommand(ILjava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    goto/16 :goto_14

    .line 1016
    :cond_141
    const/16 v2, 0x1a6

    if-ne v1, v2, :cond_14f

    .line 1021
    const v0, 0x22c083

    new-array v1, v4, [Ljava/lang/Object;

    invoke-static {v0, v1}, Lcom/cm/plugincluster/spec/CommanderManager;->invokeCommandExpNull(I[Ljava/lang/Object;)Ljava/lang/Object;

    goto/16 :goto_14

    .line 1022
    :cond_14f
    const/16 v2, 0x133

    if-ne v1, v2, :cond_15c

    .line 1023
    invoke-static {}, Lcom/cleanmaster/ui/notificationtools/a;->a()Lcom/cleanmaster/ui/notificationtools/a;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/cleanmaster/ui/notificationtools/a;->a(Landroid/os/Bundle;)V

    goto/16 :goto_14

    .line 1024
    :cond_15c
    const/16 v0, 0x13

    if-ne v1, v0, :cond_169

    .line 1025
    invoke-static {}, Lcom/cleanmaster/service/location/e;->a()Lcom/cleanmaster/service/location/e;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/cleanmaster/service/location/e;->a(Landroid/content/Intent;)V

    goto/16 :goto_14

    .line 1026
    :cond_169
    const/16 v0, 0x1a7

    if-ne v1, v0, :cond_172

    .line 1027
    invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->v()V

    goto/16 :goto_14

    .line 1028
    :cond_172
    if-eq v1, v3, :cond_14

    .line 1030
    new-instance v0, Lcom/cleanmaster/service/aa;

    const-string v2, "CHECKTYPE_FIRST_SCAN_JUNK"

    invoke-direct {v0, p0, v2, v1}, Lcom/cleanmaster/service/aa;-><init>(Lcom/cleanmaster/service/PermanentService;Ljava/lang/String;I)V

    .line 1042
    invoke-virtual {v0}, Lcom/cleanmaster/service/aa;->start()V

    goto/16 :goto_14

    .line 938
    :catch_180
    move-exception v0

    goto/16 :goto_14
.end method