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
# instance fields
.field private c:Z
.field private d:Lcom/cleanmaster/libsinterface/watcher/IAppListener;
.field private e:Z
.field private f:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
.field private g:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
.field private h:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
.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:J
.field private m:J
.field private n:Z
.field private final o:Lcom/cleanmaster/sync/binder/BinderContainer;
.field private p:Landroid/os/HandlerThread;
.field private q:Landroid/os/Handler;
.field private final r:Landroid/os/Handler$Callback;
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 299
const/4 v0, 0x0
sput-object v0, Lcom/cleanmaster/service/PermanentService;->a:Lcom/cleanmaster/service/PermanentService;
.line 860
const/4 v0, 0x0
sput v0, Lcom/cleanmaster/service/PermanentService;->b:I
return-void
.end method
.method public constructor <init>()V
.registers 6
.prologue
const/4 v4, 0x0
.line 138
invoke-direct {p0}, Landroid/app/Service;-><init>()V
.line 171
iput-boolean v4, p0, Lcom/cleanmaster/service/PermanentService;->c:Z
.line 179
const/4 v0, 0x0
iput-object v0, p0, Lcom/cleanmaster/service/PermanentService;->d:Lcom/cleanmaster/libsinterface/watcher/IAppListener;
.line 180
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/cleanmaster/service/PermanentService;->e:Z
.line 373
const-string/jumbo 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;->l:J
.line 374
const-string/jumbo 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;->m:J
.line 859
iput-boolean v4, p0, Lcom/cleanmaster/service/PermanentService;->n:Z
.line 989
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;->o:Lcom/cleanmaster/sync/binder/BinderContainer;
.line 1031
new-instance v0, Lcom/cleanmaster/service/al;
invoke-direct {v0, p0}, Lcom/cleanmaster/service/al;-><init>(Lcom/cleanmaster/service/PermanentService;)V
iput-object v0, p0, Lcom/cleanmaster/service/PermanentService;->r:Landroid/os/Handler$Callback;
return-void
.end method
.method private A()Z
.registers 10
.prologue
const-wide/16 v6, 0x0
const/4 v0, 0x1
.line 1103
invoke-static {}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance()Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;
move-result-object v1
const-string v2, "bg_scan_battery_last_scan_time"
invoke-virtual {v1, v2, v6, v7}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getLongValue(Ljava/lang/String;J)J
move-result-wide v2
.line 1104
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string/jumbo v4, "\u7535\u91cf\u89e6\u53d1 lastScanTime = "
invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {p0, v1}, Lcom/cleanmaster/service/PermanentService;->a(Ljava/lang/String;)V
.line 1105
cmp-long v1, v2, v6
if-nez v1, :cond_29
.line 1114
:cond_28
:goto_28
return v0
.line 1108
:cond_29
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v4
.line 1109
invoke-static {}, Lcom/cleanmaster/service/c/a;->d()J
move-result-wide v6
.line 1110
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string/jumbo v8, "\u7535\u91cf\u89e6\u53d1 nowTime = "
invoke-virtual {v1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-result-object v1
const-string v8, " | intervalTime = "
invoke-virtual {v1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, v6, v7}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {p0, v1}, Lcom/cleanmaster/service/PermanentService;->a(Ljava/lang/String;)V
.line 1111
sub-long v2, v4, v2
cmp-long v1, v2, v6
if-gez v1, :cond_28
.line 1114
const/4 v0, 0x0
goto :goto_28
.end method
.method private B()I
.registers 4
.annotation build Landroid/annotation/TargetApi;
value = 0x15
.end annotation
.prologue
.line 1119
const/4 v0, 0x0
.line 1120
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0x15
if-lt v1, v2, :cond_14
.line 1121
const-string v0, "batterymanager"
invoke-virtual {p0, v0}, Lcom/cleanmaster/service/PermanentService;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/os/BatteryManager;
.line 1122
const/4 v1, 0x4
invoke-virtual {v0, v1}, Landroid/os/BatteryManager;->getIntProperty(I)I
move-result v0
.line 1124
:cond_14
return v0
.end method
.method public static a(Landroid/content/Context;)V
.registers 11
.prologue
const/4 v1, 0x0
.line 1001
if-nez p0, :cond_4
.line 1023
:goto_3
return-void
.line 1003
: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 1004
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 1005
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 1006
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 1007
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 1009
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 1014
invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;
move-result-object v2
.line 1015
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v8
invoke-virtual {v2, v8, v9}, Ljava/util/Calendar;->setTimeInMillis(J)V
.line 1016
const/16 v3, 0xb
const/4 v5, 0x2
invoke-virtual {v2, v3, v5}, Ljava/util/Calendar;->set(II)V
.line 1019
invoke-virtual {v0, v6}, Landroid/app/AlarmManager;->cancel(Landroid/app/PendingIntent;)V
.line 1022
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
goto :goto_3
.end method
.method static synthetic a(Lcom/cleanmaster/service/PermanentService;)V
.registers 1
.prologue
.line 138
invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->h()V
return-void
.end method
.method private a(Ljava/lang/String;)V
.registers 5
.prologue
.line 1128
const-string v0, "PermanentService"
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "Lynkun : "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Lcom/cleanmaster/util/CMLogUtils;->d(Ljava/lang/String;Ljava/lang/String;)V
.line 1129
return-void
.end method
.method private varargs a([Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;)V
.registers 6
.prologue
.line 785
array-length v1, p1
const/4 v0, 0x0
:goto_2
if-ge v0, v1, :cond_16
aget-object v2, p1, v0
.line 786
if-eqz v2, :cond_13
.line 788
: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 785
:cond_13
:goto_13
add-int/lit8 v0, v0, 0x1
goto :goto_2
.line 793
:cond_16
return-void
.line 789
:catch_17
move-exception v2
goto :goto_13
.end method
.method static synthetic a(Lcom/cleanmaster/service/PermanentService;Z)Z
.registers 2
.prologue
.line 138
iput-boolean p1, p0, Lcom/cleanmaster/service/PermanentService;->e:Z
return p1
.end method
.method static synthetic b(Lcom/cleanmaster/service/PermanentService;)Landroid/os/Handler;
.registers 2
.prologue
.line 138
iget-object v0, p0, Lcom/cleanmaster/service/PermanentService;->q:Landroid/os/Handler;
return-object v0
.end method
.method static synthetic c(Lcom/cleanmaster/service/PermanentService;)Z
.registers 2
.prologue
.line 138
invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->z()Z
move-result v0
return v0
.end method
.method static synthetic d(Lcom/cleanmaster/service/PermanentService;)V
.registers 1
.prologue
.line 138
invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->x()V
return-void
.end method
.method static synthetic e(Lcom/cleanmaster/service/PermanentService;)V
.registers 1
.prologue
.line 138
invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->t()V
return-void
.end method
.method static synthetic f(Lcom/cleanmaster/service/PermanentService;)Z
.registers 2
.prologue
.line 138
invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->y()Z
move-result v0
return v0
.end method
.method static synthetic g(Lcom/cleanmaster/service/PermanentService;)Z
.registers 2
.prologue
.line 138
iget-boolean v0, p0, Lcom/cleanmaster/service/PermanentService;->e:Z
return v0
.end method
.method private h()V
.registers 3
.prologue
.line 294
invoke-static {}, Lcom/cm/plugincluster/loststars/proxy/LostStarsPluginDelegate;->getPluginModule()Lcom/cm/plugincluster/loststars/interfaces/ILostStarsPluginModule;
move-result-object v0
.line 295
invoke-interface {v0}, Lcom/cm/plugincluster/loststars/interfaces/ILostStarsPluginModule;->stopFloatService()V
.line 296
const/16 v1, 0xa
invoke-interface {v0, v1}, Lcom/cm/plugincluster/loststars/interfaces/ILostStarsPluginModule;->startFloatService(I)V
.line 297
return-void
.end method
.method static synthetic h(Lcom/cleanmaster/service/PermanentService;)V
.registers 1
.prologue
.line 138
invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->s()V
return-void
.end method
.method private i()V
.registers 2
.prologue
.line 332
new-instance v0, Lcom/cleanmaster/base/b/c;
invoke-direct {v0}, Lcom/cleanmaster/base/b/c;-><init>()V
invoke-virtual {v0}, Lcom/cleanmaster/base/b/c;->report()V
.line 333
return-void
.end method
.method private j()V
.registers 5
.prologue
.line 337
new-instance v0, Landroid/os/Handler;
invoke-direct {v0}, Landroid/os/Handler;-><init>()V
new-instance v1, Lcom/cleanmaster/service/an;
invoke-direct {v1, p0}, Lcom/cleanmaster/service/an;-><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 343
return-void
.end method
.method private k()V
.registers 9
.prologue
const-wide/16 v6, 0x0
.line 346
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 347
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getPermanentServiceStartTime()J
move-result-wide v2
.line 348
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v4
.line 349
cmp-long v1, v2, v6
if-eqz v1, :cond_1b
.line 350
sub-long v2, v4, v2
invoke-virtual {v0, v2, v3}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentServiceElapsedTimeBetweenStart(J)V
.line 352
:cond_1b
invoke-virtual {v0, v4, v5}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setPermanentServiceStartTime(J)V
.line 354
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 355
invoke-virtual {v0, v4, v5}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setAppActiveTime(J)V
.line 357
:cond_29
return-void
.end method
.method private l()V
.registers 5
.prologue
.line 360
invoke-static {}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->getHandler()Landroid/os/Handler;
move-result-object v0
new-instance v1, Lcom/cleanmaster/service/ao;
invoke-direct {v1, p0}, Lcom/cleanmaster/service/ao;-><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 366
return-void
.end method
.method private m()V
.registers 2
.prologue
.line 370
invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->getApplicationContext()Landroid/content/Context;
move-result-object v0
invoke-static {v0}, Lcom/cleanmaster/service/b/l;->a(Landroid/content/Context;)V
.line 371
return-void
.end method
.method private n()V
.registers 3
.prologue
.line 377
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/ap;
invoke-direct {v1, p0}, Lcom/cleanmaster/service/ap;-><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 434
return-void
.end method
.method private o()V
.registers 4
.prologue
.line 438
new-instance v0, Lcom/cleanmaster/service/aq;
invoke-direct {v0, p0}, Lcom/cleanmaster/service/aq;-><init>(Lcom/cleanmaster/service/PermanentService;)V
iput-object v0, p0, Lcom/cleanmaster/service/PermanentService;->i:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
.line 479
new-instance v0, Landroid/content/IntentFilter;
invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V
.line 480
const-string v1, "android.net.wifi.WIFI_STATE_CHANGED"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 481
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 482
return-void
.end method
.method private p()V
.registers 4
.prologue
.line 486
new-instance v0, Lcom/cleanmaster/service/as;
invoke-direct {v0, p0}, Lcom/cleanmaster/service/as;-><init>(Lcom/cleanmaster/service/PermanentService;)V
iput-object v0, p0, Lcom/cleanmaster/service/PermanentService;->j:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
.line 492
new-instance v0, Landroid/content/IntentFilter;
invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V
.line 493
const-string v1, "android.net.conn.CONNECTIVITY_CHANGE"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 494
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;->j: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 495
return-void
.end method
.method private q()V
.registers 4
.prologue
.line 639
new-instance v0, Lcom/cleanmaster/service/z;
invoke-direct {v0, p0}, Lcom/cleanmaster/service/z;-><init>(Lcom/cleanmaster/service/PermanentService;)V
iput-object v0, p0, Lcom/cleanmaster/service/PermanentService;->k:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
.line 664
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 665
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 666
return-void
.end method
.method private r()V
.registers 4
.prologue
.line 673
new-instance v0, Lcom/cleanmaster/service/aa;
invoke-direct {v0, p0}, Lcom/cleanmaster/service/aa;-><init>(Lcom/cleanmaster/service/PermanentService;)V
iput-object v0, p0, Lcom/cleanmaster/service/PermanentService;->h:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
.line 757
new-instance v0, Landroid/content/IntentFilter;
invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V
.line 758
const-string v1, "android.intent.action.SCREEN_OFF"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 759
const-string v1, "android.intent.action.SCREEN_ON"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 760
const-string v1, "android.intent.action.ACTION_POWER_CONNECTED"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 761
const-string v1, "android.intent.action.ACTION_POWER_DISCONNECTED"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 762
const-string v1, "android.intent.action.USER_PRESENT"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 763
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;->h: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 764
return-void
.end method
.method private s()V
.registers 2
.prologue
.line 767
invoke-static {}, Lcom/ijinshan/cleaner/model/a/a;->a()Lcom/ijinshan/cleaner/model/a/a;
move-result-object v0
.line 768
invoke-virtual {v0}, Lcom/ijinshan/cleaner/model/a/a;->b()V
.line 769
return-void
.end method
.method private t()V
.registers 7
.prologue
.line 772
invoke-static {}, Lcom/cleanmaster/q/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 774
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;->m:J
cmp-long v0, v0, v2
if-lez v0, :cond_47
.line 776
:cond_1a
invoke-static {}, Lcom/keniu/security/m;->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 778
int-to-long v2, v0
iget-wide v4, p0, Lcom/cleanmaster/service/PermanentService;->l: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 779
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 782
:cond_47
return-void
.end method
.method private u()V
.registers 4
.prologue
.line 796
new-instance v0, Lcom/cleanmaster/service/ad;
invoke-direct {v0, p0}, Lcom/cleanmaster/service/ad;-><init>(Lcom/cleanmaster/service/PermanentService;)V
iput-object v0, p0, Lcom/cleanmaster/service/PermanentService;->f:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
.line 819
new-instance v0, Landroid/content/IntentFilter;
invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V
.line 820
const-string v1, "android.intent.action.BATTERY_CHANGED"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 821
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;->f: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 822
return-void
.end method
.method private v()V
.registers 4
.prologue
.line 825
new-instance v0, Landroid/content/IntentFilter;
invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V
.line 826
const v1, 0x7fffffff
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->setPriority(I)V
.line 827
const-string/jumbo v1, "package"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addDataScheme(Ljava/lang/String;)V
.line 828
const-string v1, "android.intent.action.PACKAGE_ADDED"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 829
const-string v1, "android.intent.action.PACKAGE_REMOVED"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 830
const-string v1, "com.cleanmaster.receiver.ACTION_REMOVED_SYSTEM_APP"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 831
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 833
return-void
.end method
.method private w()V
.registers 4
.prologue
.line 836
new-instance v0, Lcom/cleanmaster/service/af;
invoke-direct {v0, p0}, Lcom/cleanmaster/service/af;-><init>(Lcom/cleanmaster/service/PermanentService;)V
iput-object v0, p0, Lcom/cleanmaster/service/PermanentService;->g:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
.line 843
:try_start_7
new-instance v0, Landroid/content/IntentFilter;
invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V
.line 844
sget v1, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v2, 0xe
if-lt v1, v2, :cond_22
.line 845
const-string v1, "android.hardware.action.NEW_PICTURE"
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V
.line 849
: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 851
:try_start_1c
iget-object v1, p0, Lcom/cleanmaster/service/PermanentService;->g: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 857
:goto_21
return-void
.line 847
: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 855
:catch_28
move-exception v0
goto :goto_21
.line 852
:catch_2a
move-exception v0
goto :goto_21
.end method
.method private x()V
.registers 7
.prologue
const/4 v5, 0x1
.line 1062
invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;
move-result-object v0
.line 1063
invoke-static {v0}, Lcom/cleanmaster/configmanager/a;->a(Landroid/content/Context;)Lcom/cleanmaster/configmanager/a;
move-result-object v1
invoke-virtual {v1}, Lcom/cleanmaster/configmanager/a;->as()Z
move-result v1
.line 1064
invoke-static {v0}, Lcom/cleanmaster/configmanager/a;->a(Landroid/content/Context;)Lcom/cleanmaster/configmanager/a;
move-result-object v2
invoke-virtual {v2}, Lcom/cleanmaster/configmanager/a;->at()Ljava/lang/String;
move-result-object v2
.line 1065
if-eqz v1, :cond_1d
invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_1e
.line 1076
:cond_1d
:goto_1d
return-void
.line 1068
:cond_1e
invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v1
.line 1069
if-eqz v1, :cond_1d
.line 1070
new-instance v3, Landroid/content/ComponentName;
const-string v4, "com.keniu.security.main.MainActivity"
invoke-direct {v3, v0, v4}, Landroid/content/ComponentName;-><init>(Landroid/content/Context;Ljava/lang/String;)V
const/4 v4, 0x2
invoke-virtual {v1, v3, v4, v5}, Landroid/content/pm/PackageManager;->setComponentEnabledSetting(Landroid/content/ComponentName;II)V
.line 1072
new-instance v3, Landroid/content/ComponentName;
invoke-direct {v3, v0, v2}, Landroid/content/ComponentName;-><init>(Landroid/content/Context;Ljava/lang/String;)V
invoke-virtual {v1, v3, v5, v5}, Landroid/content/pm/PackageManager;->setComponentEnabledSetting(Landroid/content/ComponentName;II)V
.line 1074
new-instance v0, Lcom/keniu/security/main/b/d;
invoke-direct {v0}, Lcom/keniu/security/main/b/d;-><init>()V
invoke-virtual {v0, v2}, Lcom/keniu/security/main/b/d;->a(Ljava/lang/String;)Lcom/keniu/security/main/b/d;
move-result-object v0
invoke-virtual {v0}, Lcom/keniu/security/main/b/d;->report()V
goto :goto_1d
.end method
.method private y()Z
.registers 2
.prologue
.line 1081
:try_start_0
const-string/jumbo v0, "power"
invoke-virtual {p0, v0}, Lcom/cleanmaster/service/PermanentService;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/os/PowerManager;
:try_end_9
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_9} :catch_e
.line 1085
invoke-virtual {v0}, Landroid/os/PowerManager;->isScreenOn()Z
move-result v0
:goto_d
return v0
.line 1082
:catch_e
move-exception v0
.line 1083
const/4 v0, 0x0
goto :goto_d
.end method
.method private z()Z
.registers 5
.prologue
const/4 v0, 0x0
.line 1089
invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->A()Z
move-result v1
.line 1090
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string/jumbo v3, "\u7535\u91cf\u89e6\u53d1 \u662f\u5426\u7b26\u5408\u65f6\u95f4\u95f4\u9694 = "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-direct {p0, v2}, Lcom/cleanmaster/service/PermanentService;->a(Ljava/lang/String;)V
.line 1091
if-nez v1, :cond_1f
.line 1099
:cond_1e
:goto_1e
return v0
.line 1094
:cond_1f
invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->B()I
move-result v1
.line 1095
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
const-string/jumbo v3, "\u7535\u91cf\u89e6\u53d1 \u5f53\u524d\u7535\u91cf = "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v2
const-string v3, " | \u4e91\u63a7\u7535\u91cf = "
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v2
invoke-static {}, Lcom/cleanmaster/service/c/a;->c()I
move-result v3
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v2
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v2
invoke-direct {p0, v2}, Lcom/cleanmaster/service/PermanentService;->a(Ljava/lang/String;)V
.line 1096
invoke-static {}, Lcom/cleanmaster/service/c/a;->c()I
move-result v2
if-lt v1, v2, :cond_1e
.line 1097
const/4 v0, 0x1
goto :goto_1e
.end method
# virtual methods
.method public a(ZLandroid/app/Notification;I)V
.registers 7
.prologue
.line 211
invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->b()Z
move-result v0
.line 212
if-nez p1, :cond_8
if-eqz v0, :cond_20
.line 213
:cond_8
if-nez p2, :cond_19
.line 214
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 216
invoke-virtual {v0}, Landroid/support/v4/app/NotificationCompat$Builder;->build()Landroid/app/Notification;
move-result-object p2
.line 219
:cond_19
invoke-virtual {p0, p3, p2}, Lcom/cleanmaster/service/PermanentService;->startForeground(ILandroid/app/Notification;)V
.line 220
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/cleanmaster/service/PermanentService;->c:Z
.line 222
:goto_1f
return-void
.line 221
:cond_20
invoke-static {}, Lcom/cleanmaster/hpsharelib/utils/NotificationToolConfigManager;->isNotificationToolOpen()Z
move-result v0
iput-boolean v0, p0, Lcom/cleanmaster/service/PermanentService;->c:Z
goto :goto_1f
.end method
.method a()Z
.registers 5
.prologue
.line 194
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 195
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 203
invoke-static {}, Lcom/cleanmaster/hpsharelib/utils/NotificationToolConfigManager;->isNotificationToolOpen()Z
move-result v2
if-nez v2, :cond_19
sget v2, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v3, 0x11
if-gt v2, v3, :cond_19
move v2, v1
.line 204
:goto_f
if-nez v2, :cond_17
invoke-static {}, Lcom/cleanmaster/notification/ak;->e()Z
move-result v2
if-eqz v2, :cond_18
:cond_17
move v0, v1
:cond_18
return v0
:cond_19
move v2, v0
.line 203
goto :goto_f
.end method
.method public c()V
.registers 2
.prologue
.line 226
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/cleanmaster/service/PermanentService;->c:Z
.line 227
return-void
.end method
.method public d()V
.registers 2
.prologue
.line 231
iget-boolean v0, p0, Lcom/cleanmaster/service/PermanentService;->c:Z
if-nez v0, :cond_5
.line 236
:goto_4
return-void
.line 234
:cond_5
const/4 v0, 0x0
iput-boolean v0, p0, Lcom/cleanmaster/service/PermanentService;->c:Z
.line 235
const/4 v0, 0x1
invoke-virtual {p0, v0}, Lcom/cleanmaster/service/PermanentService;->stopForeground(Z)V
goto :goto_4
.end method
.method e()V
.registers 4
.prologue
.line 239
invoke-static {}, Lcom/cm/plugincluster/pluginmgr/PluginManagerHostProxy;->getInstance()Lcom/cm/plugincluster/pluginmgr/interfaces/IPluginManager;
move-result-object v0
const/16 v1, 0x8
new-instance v2, Lcom/cleanmaster/service/u;
invoke-direct {v2, p0}, Lcom/cleanmaster/service/u;-><init>(Lcom/cleanmaster/service/PermanentService;)V
invoke-interface {v0, v1, v2}, Lcom/cm/plugincluster/pluginmgr/interfaces/IPluginManager;->runOnPluginInitComplete(ILcom/cm/plugincluster/pluginmgr/interfaces/IPluginManager$IPluginInitObserver;)V
.line 250
return-void
.end method
.method f()V
.registers 5
.prologue
.line 254
new-instance v0, Landroid/os/HandlerThread;
const-string v1, "PermanentService"
invoke-direct {v0, v1}, Landroid/os/HandlerThread;-><init>(Ljava/lang/String;)V
iput-object v0, p0, Lcom/cleanmaster/service/PermanentService;->p:Landroid/os/HandlerThread;
.line 255
iget-object v0, p0, Lcom/cleanmaster/service/PermanentService;->p:Landroid/os/HandlerThread;
invoke-virtual {v0}, Landroid/os/HandlerThread;->start()V
.line 256
new-instance v0, Landroid/os/Handler;
iget-object v1, p0, Lcom/cleanmaster/service/PermanentService;->p:Landroid/os/HandlerThread;
invoke-virtual {v1}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper;
move-result-object v1
iget-object v2, p0, Lcom/cleanmaster/service/PermanentService;->r:Landroid/os/Handler$Callback;
invoke-direct {v0, v1, v2}, Landroid/os/Handler;-><init>(Landroid/os/Looper;Landroid/os/Handler$Callback;)V
iput-object v0, p0, Lcom/cleanmaster/service/PermanentService;->q:Landroid/os/Handler;
.line 260
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
invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getNowVersionFirstStartTime()J
move-result-wide v0
.line 261
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v2
.line 262
sub-long v0, v2, v0
const-wide/16 v2, 0x4e20
cmp-long v0, v0, v2
if-gez v0, :cond_5d
invoke-static {}, Lcom/keniu/security/aj;->b()Z
move-result v0
if-nez v0, :cond_41
invoke-static {}, Lcom/keniu/security/aj;->c()Z
move-result v0
if-eqz v0, :cond_5d
.line 263
:cond_41
invoke-static {}, Lcom/cleanmaster/notification/ai;->a()Lcom/cleanmaster/notification/ai;
move-result-object v0
invoke-virtual {v0}, Lcom/cleanmaster/notification/ai;->c()Z
move-result v0
if-eqz v0, :cond_5d
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;->isManualSetFloatWindow()Z
move-result v0
if-nez v0, :cond_5d
.line 264
invoke-static {p0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;
move-result-object v0
const/4 v1, 0x1
invoke-virtual {v0, v1}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setFloatWindowEnable(Z)V
.line 266
:cond_5d
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_70
.line 267
invoke-static {}, Lcom/cleanmaster/loststars/d/a;->b()Z
move-result v0
if-eqz v0, :cond_71
.line 268
invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->h()V
.line 291
:cond_70
:goto_70
return-void
.line 270
:cond_71
const-string v0, "LostStarsEntryManager"
const-string v1, "LostStars Plugin should auto installed."
invoke-static {v0, v1}, Lcom/cleanmaster/util/CMLogUtils;->i(Ljava/lang/String;Ljava/lang/String;)V
.line 271
invoke-static {p0}, Lcom/cleanmaster/hpsharelib/base/util/net/NetworkUtil;->isAllowAccessNetwork(Landroid/content/Context;)Z
move-result v0
if-eqz v0, :cond_70
invoke-static {p0}, Lcom/cleanmaster/hpsharelib/base/util/net/NetworkUtil;->isWiFiActive(Landroid/content/Context;)Z
move-result v0
if-eqz v0, :cond_70
.line 272
const-string v0, "LostStarsEntryManager"
const-string v1, "LostStars Plugin will be installed after 5s."
invoke-static {v0, v1}, Lcom/cleanmaster/util/CMLogUtils;->i(Ljava/lang/String;Ljava/lang/String;)V
.line 273
iget-object v0, p0, Lcom/cleanmaster/service/PermanentService;->q:Landroid/os/Handler;
new-instance v1, Lcom/cleanmaster/service/aj;
invoke-direct {v1, p0}, Lcom/cleanmaster/service/aj;-><init>(Lcom/cleanmaster/service/PermanentService;)V
const-wide/16 v2, 0x1388
invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z
goto :goto_70
.end method
.method g()V
.registers 7
.prologue
const/4 v5, 0x0
const/4 v4, 0x0
.line 499
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 500
invoke-static {}, Lcom/cleanmaster/service/active_report/CmServiceReportAlarmReceiver;->a()Lcom/cleanmaster/service/active_report/CmServiceReportAlarmReceiver;
move-result-object v0
invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;
move-result-object v1
invoke-virtual {v0, v1}, Lcom/cleanmaster/service/active_report/CmServiceReportAlarmReceiver;->a(Landroid/content/Context;)V
.line 503
invoke-static {}, Lcom/cm/root/b;->c()V
.line 506
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 507
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 510
invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->a()Z
move-result v0
if-eqz v0, :cond_38
.line 511
const/16 v0, 0x3001
invoke-virtual {p0, v4, v5, v0}, Lcom/cleanmaster/service/PermanentService;->a(ZLandroid/app/Notification;I)V
.line 515
: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 516
invoke-static {p0}, Lcom/cleanmaster/notification/ak;->a(Landroid/content/Context;)V
.line 518
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 519
invoke-static {}, Lcom/cleanmaster/ui/a/f;->a()Lcom/cleanmaster/ui/a/f;
move-result-object v0
invoke-virtual {v0, p0}, Lcom/cleanmaster/ui/a/f;->a(Lcom/cleanmaster/service/PermanentService;)V
.line 522
invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->f()V
.line 525
invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->e()V
.line 528
invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->a()Z
move-result v0
if-eqz v0, :cond_6f
.line 529
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;->d:Lcom/cleanmaster/libsinterface/watcher/IAppListener;
.line 530
iget-object v0, p0, Lcom/cleanmaster/service/PermanentService;->d:Lcom/cleanmaster/libsinterface/watcher/IAppListener;
if-eqz v0, :cond_6f
.line 531
iget-object v0, p0, Lcom/cleanmaster/service/PermanentService;->d:Lcom/cleanmaster/libsinterface/watcher/IAppListener;
invoke-interface {v0}, Lcom/cleanmaster/libsinterface/watcher/IAppListener;->start()Z
.line 534
:cond_6f
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_80
.line 536
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 539
:cond_80
invoke-static {}, Lcom/cleanmaster/service/watcher/aq;->a()V
.line 541
invoke-static {}, Lcom/cleanmaster/cloudconfig/CloudCfgIntentService;->a()V
.line 543
invoke-static {}, Lcom/ijinshan/cleaner/receiver/AlarmReceiver;->b()V
.line 546
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 549
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 552
invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->a()Z
move-result v1
if-eqz v1, :cond_a7
if-eqz v0, :cond_a7
.line 553
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 556
:cond_a7
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_b8
.line 557
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 561
:cond_b8
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 563
invoke-static {}, Lcom/keniu/security/m;->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 566
invoke-static {}, Lcom/cm/plugincluster/gamebox/GameBoxPluginDelegate;->enterAndScanGames()V
.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_eb
.line 572
invoke-static {}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->getHandler()Landroid/os/Handler;
move-result-object v0
new-instance v1, Lcom/cleanmaster/service/at;
invoke-direct {v1, p0}, Lcom/cleanmaster/service/at;-><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_eb
invoke-static {}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->getHandler()Landroid/os/Handler;
move-result-object v0
new-instance v1, Lcom/cleanmaster/service/w;
invoke-direct {v1, p0}, Lcom/cleanmaster/service/w;-><init>(Lcom/cleanmaster/service/PermanentService;)V
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
.line 587
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 589
invoke-static {}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->getHandler()Landroid/os/Handler;
move-result-object v0
new-instance v1, Lcom/cleanmaster/service/x;
invoke-direct {v1, p0}, Lcom/cleanmaster/service/x;-><init>(Lcom/cleanmaster/service/PermanentService;)V
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
.line 602
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 603
return-void
.end method
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
.registers 3
.prologue
.line 993
iget-object v0, p0, Lcom/cleanmaster/service/PermanentService;->o: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;->k()V
.line 304
invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->g()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/am;
invoke-direct {v2, p0}, Lcom/cleanmaster/service/am;-><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_3b
.line 316
:goto_16
invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->r()V
.line 317
invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->u()V
.line 318
invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->w()V
.line 319
invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->o()V
.line 320
invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->p()V
.line 321
invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->n()V
.line 322
invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->q()V
.line 323
invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->v()V
.line 325
invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->i()V
.line 326
invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->m()V
.line 327
invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->l()V
.line 328
invoke-direct {p0}, Lcom/cleanmaster/service/PermanentService;->j()V
.line 329
return-void
.line 313
:catch_3b
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 607
iget-object v0, p0, Lcom/cleanmaster/service/PermanentService;->p:Landroid/os/HandlerThread;
if-eqz v0, :cond_a
.line 608
iget-object v0, p0, Lcom/cleanmaster/service/PermanentService;->p:Landroid/os/HandlerThread;
invoke-virtual {v0}, Landroid/os/HandlerThread;->quit()Z
.line 610
:cond_a
const/4 v0, 0x5
new-array v0, v0, [Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
iget-object v1, p0, Lcom/cleanmaster/service/PermanentService;->h:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
aput-object v1, v0, v3
const/4 v1, 0x1
iget-object v2, p0, Lcom/cleanmaster/service/PermanentService;->f:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
aput-object v2, v0, v1
const/4 v1, 0x2
iget-object v2, p0, Lcom/cleanmaster/service/PermanentService;->g:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
aput-object v2, v0, v1
const/4 v1, 0x3
iget-object v2, p0, Lcom/cleanmaster/service/PermanentService;->i:Lcom/cleanmaster/hpcommonlib/utils/CMBaseReceiver;
aput-object v2, v0, v1
const/4 v1, 0x4
iget-object v2, p0, Lcom/cleanmaster/service/PermanentService;->j: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 613
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 614
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 615
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 616
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 617
iget-object v0, p0, Lcom/cleanmaster/service/PermanentService;->d:Lcom/cleanmaster/libsinterface/watcher/IAppListener;
if-eqz v0, :cond_55
.line 618
iget-object v0, p0, Lcom/cleanmaster/service/PermanentService;->d:Lcom/cleanmaster/libsinterface/watcher/IAppListener;
invoke-interface {v0}, Lcom/cleanmaster/libsinterface/watcher/IAppListener;->stop()Z
.line 621
: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/y;
invoke-direct {v2, p0}, Lcom/cleanmaster/service/y;-><init>(Lcom/cleanmaster/service/PermanentService;)V
invoke-virtual {v0, v1, v2}, Lcom/plug/a;->runOnPluginInitComplete(ILcom/cm/plugincluster/pluginmgr/interfaces/IPluginManager$IPluginInitObserver;)V
.line 628
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 629
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 630
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 631
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 632
invoke-static {}, Lcom/cleanmaster/kinfoc/p;->d()Z
.line 633
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 634
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 635
invoke-super {p0}, Landroid/app/Service;->onDestroy()V
.line 636
return-void
.end method
.method public onStartCommand(Landroid/content/Intent;II)I
.registers 13
.prologue
const/16 v8, 0x3001
const/4 v7, 0x0
const/4 v6, 0x0
const/4 v5, 0x1
.line 865
if-eqz p1, :cond_13
const-string/jumbo v0, "source"
invoke-virtual {p1, v0}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z
move-result v0
if-eqz v0, :cond_13
.line 866
invoke-static {p1}, Lcom/cleanmaster/c/a;->a(Landroid/content/Intent;)V
.line 869
:cond_13
if-nez p1, :cond_16
.line 986
:cond_15
:goto_15
return v5
.line 873
:cond_16
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_31
.line 874
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_31
.line 875
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 883
:cond_31
:try_start_31
const-string v0, "cheOnAppUsageChangeExck_type"
invoke-virtual {p1, v0}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z
:try_end_36
.catch Ljava/lang/Exception; {:try_start_31 .. :try_end_36} :catch_1a4
move-result v0
if-eqz v0, :cond_15
.line 888
invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object v0
.line 889
if-eqz v0, :cond_15
.line 892
const-string v1, "cheOnAppUsageChangeExck_type"
invoke-virtual {v0, v1, v6}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I
move-result v1
.line 893
sget v2, Lcom/cleanmaster/service/PermanentService;->b:I
if-nez v2, :cond_4b
.line 894
sput v1, Lcom/cleanmaster/service/PermanentService;->b:I
.line 897
:cond_4b
new-instance v2, Lcom/cleanmaster/service/ag;
invoke-direct {v2, p0}, Lcom/cleanmaster/service/ag;-><init>(Lcom/cleanmaster/service/PermanentService;)V
invoke-static {v2}, Lcom/cleanmaster/base/util/concurrent/BackgroundThread;->post(Ljava/lang/Runnable;)V
.line 903
const-string v2, ""
new-instance v3, Ljava/lang/StringBuilder;
invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V
const-string v4, "Lynkun : Service onStartCommand() type = "
invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v3
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v3
invoke-static {v2, v3}, Lcom/cleanmaster/util/CMLogUtils;->e(Ljava/lang/String;Ljava/lang/String;)V
.line 904
const/16 v2, 0xb
if-ne v1, v2, :cond_77
.line 906
invoke-static {}, Lcom/cleanmaster/funcrecommend/StorageSpaceMonitor;->getInstance()Lcom/cleanmaster/funcrecommend/StorageSpaceMonitor;
move-result-object v0
invoke-virtual {v0, v5}, Lcom/cleanmaster/funcrecommend/StorageSpaceMonitor;->startMonitor(I)V
goto :goto_15
.line 907
:cond_77
const/16 v2, 0x190
if-ne v1, v2, :cond_84
.line 908
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_15
.line 909
:cond_84
const/16 v2, 0x191
if-ne v1, v2, :cond_91
.line 910
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_15
.line 911
:cond_91
const/16 v2, 0xa
if-ne v1, v2, :cond_9e
.line 912
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/16 :goto_15
.line 913
:cond_9e
const/16 v2, 0xc
if-ne v1, v2, :cond_a7
.line 914
invoke-static {v5, v6}, Lcom/cleanmaster/service/BgScanService;->a(ZZ)V
goto/16 :goto_15
.line 915
:cond_a7
const/16 v2, 0x19a
if-ne v1, v2, :cond_b0
.line 916
invoke-static {}, Lcom/atinst/AutoInstallIntentService;->a()V
goto/16 :goto_15
.line 917
:cond_b0
const/16 v2, 0xf
if-ne v1, v2, :cond_c0
.line 918
new-instance v0, Lcom/cleanmaster/service/ah;
const-string v1, "CHECKTYPE_RESTART_FLOAT_SERVICE"
invoke-direct {v0, p0, v1}, Lcom/cleanmaster/service/ah;-><init>(Lcom/cleanmaster/service/PermanentService;Ljava/lang/String;)V
.line 929
invoke-virtual {v0}, Lcom/cleanmaster/service/ah;->start()V
goto/16 :goto_15
.line 930
:cond_c0
const/16 v2, 0xc8
if-ne v1, v2, :cond_cd
.line 931
iget-boolean v0, p0, Lcom/cleanmaster/service/PermanentService;->c:Z
if-nez v0, :cond_15
.line 932
invoke-virtual {p0, v6, v7, v8}, Lcom/cleanmaster/service/PermanentService;->a(ZLandroid/app/Notification;I)V
goto/16 :goto_15
.line 934
:cond_cd
const/16 v2, 0xc9
if-ne v1, v2, :cond_dc
.line 935
invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->a()Z
move-result v0
if-nez v0, :cond_15
.line 936
invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->d()V
goto/16 :goto_15
.line 938
:cond_dc
const/16 v2, 0x12f
if-ne v1, v2, :cond_10e
.line 939
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_106
iget-boolean v1, p0, Lcom/cleanmaster/service/PermanentService;->c:Z
if-nez v1, :cond_106
.line 940
iput-boolean v6, p0, Lcom/cleanmaster/service/PermanentService;->n:Z
.line 941
invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->b()Z
move-result v1
invoke-virtual {p0, v1, v7, v8}, Lcom/cleanmaster/service/PermanentService;->a(ZLandroid/app/Notification;I)V
.line 945
:cond_f7
:goto_f7
invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->getApplicationContext()Landroid/content/Context;
move-result-object v1
const-string v2, "from"
invoke-virtual {v0, v2, v5}, 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_15
.line 942
:cond_106
iget-boolean v1, p0, Lcom/cleanmaster/service/PermanentService;->n:Z
if-nez v1, :cond_f7
.line 943
invoke-virtual {p0}, Lcom/cleanmaster/service/PermanentService;->d()V
goto :goto_f7
.line 946
:cond_10e
const/16 v2, 0x131
if-ne v1, v2, :cond_11b
.line 947
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_15
.line 948
:cond_11b
const/16 v2, 0x132
if-ne v1, v2, :cond_12f
.line 949
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 950
invoke-static {p0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstanse(Landroid/content/Context;)Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;
move-result-object v0
invoke-virtual {v0, v6}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setFirstMainUIExited(Z)V
goto/16 :goto_15
.line 951
:cond_12f
const/16 v2, 0xcd
if-ne v1, v2, :cond_138
.line 952
invoke-static {}, Lcom/cm/plugincluster/gamebox/GameBoxPluginDelegate;->stopScanGames()V
goto/16 :goto_15
.line 953
:cond_138
const/16 v2, 0x1a4
if-ne v1, v2, :cond_153
.line 954
const-string/jumbo v1, "report_notification_type"
invoke-virtual {v0, v1, v6}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I
move-result v0
.line 955
const v1, 0x11a01b
new-array v2, v5, [Ljava/lang/Object;
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
aput-object v0, v2, v6
invoke-static {v1, v7, v2}, Lcom/cm/plugincluster/spec/CommanderManager;->invokeCommand(ILjava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
goto/16 :goto_15
.line 956
:cond_153
const/16 v2, 0x1a5
if-ne v1, v2, :cond_161
.line 957
const v0, 0x11a01c
new-array v1, v6, [Ljava/lang/Object;
invoke-static {v0, v7, v1}, Lcom/cm/plugincluster/spec/CommanderManager;->invokeCommand(ILjava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
goto/16 :goto_15
.line 958
:cond_161
const/16 v2, 0x1a6
if-ne v1, v2, :cond_16f
.line 959
const v0, 0x22c083
new-array v1, v6, [Ljava/lang/Object;
invoke-static {v0, v1}, Lcom/cm/plugincluster/spec/CommanderManager;->invokeCommandExpNull(I[Ljava/lang/Object;)Ljava/lang/Object;
goto/16 :goto_15
.line 960
:cond_16f
const/16 v2, 0x133
if-ne v1, v2, :cond_17c
.line 961
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_15
.line 962
:cond_17c
const/16 v2, 0x135
if-ne v1, v2, :cond_189
.line 963
invoke-static {}, Lcom/cleanmaster/ui/a/f;->a()Lcom/cleanmaster/ui/a/f;
move-result-object v1
invoke-virtual {v1, v0}, Lcom/cleanmaster/ui/a/f;->a(Landroid/os/Bundle;)V
goto/16 :goto_15
.line 964
:cond_189
const/16 v0, 0x13
if-ne v1, v0, :cond_196
.line 965
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_15
.line 966
:cond_196
if-eq v1, v5, :cond_15
.line 968
new-instance v0, Lcom/cleanmaster/service/ai;
const-string v2, "CHECKTYPE_FIRST_SCAN_JUNK"
invoke-direct {v0, p0, v2, v1}, Lcom/cleanmaster/service/ai;-><init>(Lcom/cleanmaster/service/PermanentService;Ljava/lang/String;I)V
.line 983
invoke-virtual {v0}, Lcom/cleanmaster/service/ai;->start()V
goto/16 :goto_15
.line 885
:catch_1a4
move-exception v0
goto/16 :goto_15
.end method