KeepLiveManagerImpl.smali

.class public Lcom/cleanmaster/daemon/KeepLiveManagerImpl;
.super Ljava/lang/Object;
.source "KeepLiveManagerImpl.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/cleanmaster/daemon/KeepLiveManagerImpl$CMDaemonListener;
    }
.end annotation


# static fields
.field public static final ACCOUNT_TYPE:Ljava/lang/String;

.field public static final DAEMONE_PROSS_NAME:Ljava/lang/String; = ":daemon"

.field public static final HTC_B:Ljava/lang/String; = "htc"

.field public static final HUAWEI_B:Ljava/lang/String; = "Huawei"

.field public static final IS_RESIDENT:Ljava/lang/String; = "isResident"

.field public static final NEXUS_B:Ljava/lang/String; = "google"

.field public static final NON_RESIDENT_ID:Ljava/lang/String; = "nonResidentId"

.field public static final ONEPLUS_B:Ljava/lang/String; = "ONEPLUS"

.field public static final SAMSUNG_B:Ljava/lang/String; = "samsung"

.field public static final SERVICE_PROSS_NAME:Ljava/lang/String; = ":service"

.field public static final WORKER_PROSS_NAME:Ljava/lang/String; = ":worker"


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

    .prologue
    .line 44
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

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

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ".account.type"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->ACCOUNT_TYPE:Ljava/lang/String;

    return-void
.end method

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

    .prologue
    .line 43
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static StopLiveOfAccountManager(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V
    .registers 1

    .prologue
    .line 136
    return-void
.end method

.method public static StopLiveOfJobScheduler(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V
    .registers 3

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

    const/16 v1, 0x15

    if-lt v0, v1, :cond_b

    .line 149
    iget-object v0, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->context:Landroid/content/Context;

    invoke-static {v0}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->jobSchedulerForStop(Landroid/content/Context;)V

    .line 151
    :cond_b
    return-void
.end method

.method public static StopLiveOfNotificationListenerService(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V
    .registers 5

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

    const/16 v1, 0x12

    if-lt v0, v1, :cond_14

    .line 251
    iget-object v0, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->context:Landroid/content/Context;

    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->context:Landroid/content/Context;

    const-class v3, Lcom/cleanmaster/daemon/systemService/CMNotificationListenerService;

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

    invoke-virtual {v0, v1}, Landroid/content/Context;->stopService(Landroid/content/Intent;)Z

    .line 253
    :cond_14
    return-void
.end method

.method public static StopLiveOfOnePx(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V
    .registers 1

    .prologue
    .line 234
    invoke-static {p0}, Lcom/cleanmaster/daemon/onePxForLive/OnepxReceiver;->unregister1pxReceiver(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V

    .line 235
    return-void
.end method

.method private static addAccount(Landroid/content/Context;ILjava/lang/String;)V
    .registers 9

    .prologue
    const/4 v5, 0x0

    const/4 v4, 0x1

    .line 277
    invoke-static {}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance()Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v0

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

    move-result v2

    .line 278
    const-string v0, "account"

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

    move-result-object v0

    check-cast v0, Landroid/accounts/AccountManager;

    .line 280
    if-nez v0, :cond_15

    .line 310
    :cond_14
    :goto_14
    return-void

    .line 284
    :cond_15
    sget-object v1, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->ACCOUNT_TYPE:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/accounts/AccountManager;->getAccountsByType(Ljava/lang/String;)[Landroid/accounts/Account;

    move-result-object v1

    .line 285
    array-length v3, v1

    if-lez v3, :cond_53

    .line 286
    aget-object v1, v1, v5

    .line 287
    invoke-static {}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance()Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v2

    invoke-virtual {v2, v5}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setNewAdditionAccount(Z)V

    .line 295
    :cond_27
    :goto_27
    invoke-static {}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance()Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v2

    invoke-virtual {v2, v5}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setManualAdditionAccount(Z)V

    .line 300
    const/4 v2, 0x0

    const/4 v3, 0x0

    :try_start_30
    invoke-virtual {v0, v1, v2, v3}, Landroid/accounts/AccountManager;->addAccountExplicitly(Landroid/accounts/Account;Ljava/lang/String;Landroid/os/Bundle;)Z

    move-result v0

    if-eqz v0, :cond_14

    .line 302
    new-instance v0, Landroid/os/Bundle;

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

    .line 303
    sget-object v2, Lcom/cleanmaster/daemon/accountManager/CMAccountProvider;->AUTHORITY:Ljava/lang/String;

    const/4 v3, 0x1

    invoke-static {v1, v2, v3}, Landroid/content/ContentResolver;->setIsSyncable(Landroid/accounts/Account;Ljava/lang/String;I)V

    .line 304
    sget-object v2, Lcom/cleanmaster/daemon/accountManager/CMAccountProvider;->AUTHORITY:Ljava/lang/String;

    const/4 v3, 0x1

    invoke-static {v1, v2, v3}, Landroid/content/ContentResolver;->setSyncAutomatically(Landroid/accounts/Account;Ljava/lang/String;Z)V

    .line 305
    sget-object v2, Lcom/cleanmaster/daemon/accountManager/CMAccountProvider;->AUTHORITY:Ljava/lang/String;

    int-to-long v4, p1

    invoke-static {v1, v2, v0, v4, v5}, Landroid/content/ContentResolver;->addPeriodicSync(Landroid/accounts/Account;Ljava/lang/String;Landroid/os/Bundle;J)V
    :try_end_4d
    .catch Ljava/lang/Exception; {:try_start_30 .. :try_end_4d} :catch_4e

    goto :goto_14

    .line 307
    :catch_4e
    move-exception v0

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

    goto :goto_14

    .line 289
    :cond_53
    new-instance v1, Landroid/accounts/Account;

    sget-object v3, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->ACCOUNT_TYPE:Ljava/lang/String;

    invoke-direct {v1, p2, v3}, Landroid/accounts/Account;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 290
    invoke-static {}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance()Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v3

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

    .line 291
    if-eqz v2, :cond_27

    .line 292
    invoke-static {}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance()Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v2

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

    goto :goto_27
.end method

.method public static checkNotificationPermission(Landroid/content/Context;)Z
    .registers 4

    .prologue
    .line 429
    invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v0

    .line 430
    invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    const-string v2, "enabled_notification_listeners"

    invoke-static {v1, v2}, Landroid/provider/Settings$Secure;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 431
    if-eqz v1, :cond_18

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

    move-result v0

    if-eqz v0, :cond_18

    const/4 v0, 0x1

    .line 432
    :goto_17
    return v0

    .line 431
    :cond_18
    const/4 v0, 0x0

    goto :goto_17
.end method

.method private static createDaemonConfigurations()Lcom/cleanmaster/daemon/nativeforlive/utils/DaemonConfigurations;
    .registers 5

    .prologue
    .line 388
    new-instance v0, Lcom/cleanmaster/daemon/nativeforlive/utils/DaemonConfigurations$DaemonConfiguration;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

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

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ":service"

    invoke-virtual {v1, v2}, 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

    const-class v2, Lcom/cleanmaster/daemon/nativeforlive/PersistentService;

    .line 390
    invoke-virtual {v2}, Ljava/lang/Class;->getCanonicalName()Ljava/lang/String;

    move-result-object v2

    const-class v3, Lcom/cleanmaster/daemon/nativeforlive/PersistentReceiver;

    .line 391
    invoke-virtual {v3}, Ljava/lang/Class;->getCanonicalName()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v0, v1, v2, v3}, Lcom/cleanmaster/daemon/nativeforlive/utils/DaemonConfigurations$DaemonConfiguration;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 392
    new-instance v1, Lcom/cleanmaster/daemon/nativeforlive/utils/DaemonConfigurations$DaemonConfiguration;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

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

    move-result-object v3

    invoke-virtual {v3}, Landroid/content/Context;->getPackageName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ":deamon"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const-class v3, Lcom/cleanmaster/daemon/nativeforlive/DaemonService;

    .line 394
    invoke-virtual {v3}, Ljava/lang/Class;->getCanonicalName()Ljava/lang/String;

    move-result-object v3

    const-class v4, Lcom/cleanmaster/daemon/nativeforlive/DaemonReceiver;

    .line 395
    invoke-virtual {v4}, Ljava/lang/Class;->getCanonicalName()Ljava/lang/String;

    move-result-object v4

    invoke-direct {v1, v2, v3, v4}, Lcom/cleanmaster/daemon/nativeforlive/utils/DaemonConfigurations$DaemonConfiguration;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 396
    new-instance v2, Lcom/cleanmaster/daemon/KeepLiveManagerImpl$CMDaemonListener;

    invoke-direct {v2}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl$CMDaemonListener;-><init>()V

    .line 397
    new-instance v3, Lcom/cleanmaster/daemon/nativeforlive/utils/DaemonConfigurations;

    invoke-direct {v3, v0, v1, v2}, Lcom/cleanmaster/daemon/nativeforlive/utils/DaemonConfigurations;-><init>(Lcom/cleanmaster/daemon/nativeforlive/utils/DaemonConfigurations$DaemonConfiguration;Lcom/cleanmaster/daemon/nativeforlive/utils/DaemonConfigurations$DaemonConfiguration;Lcom/cleanmaster/daemon/nativeforlive/utils/DaemonConfigurations$DaemonListener;)V

    return-object v3
.end method

.method private static getGrayServiceIntent(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)Landroid/content/Intent;
    .registers 4

    .prologue
    .line 195
    iget-boolean v0, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->isResident:Z

    if-eqz v0, :cond_15

    .line 196
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->context:Landroid/content/Context;

    const-class v2, Lcom/cleanmaster/daemon/foreServiceforlive/service/GrayService;

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

    .line 206
    :goto_d
    const-string v1, "isResident"

    iget-boolean v2, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->isResident:Z

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 207
    :goto_14
    return-object v0

    .line 198
    :cond_15
    const-class v0, Lcom/cleanmaster/daemon/foreServiceforlive/service/GrayService;

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

    move-result-object v0

    .line 199
    iget v1, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->nonResidentId:I

    invoke-static {v0, v1}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->getNonResidentComName(Ljava/lang/String;I)Ljava/lang/Class;

    move-result-object v1

    .line 200
    if-nez v1, :cond_25

    .line 201
    const/4 v0, 0x0

    goto :goto_14

    .line 203
    :cond_25
    new-instance v0, Landroid/content/Intent;

    iget-object v2, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->context:Landroid/content/Context;

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

    .line 204
    const-string v1, "nonResidentId"

    iget v2, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->nonResidentId:I

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

    goto :goto_d
.end method

.method public static getNonResidentComName(Ljava/lang/String;I)Ljava/lang/Class;
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "I)",
            "Ljava/lang/Class",
            "<*>;"
        }
    .end annotation

    .prologue
    const/4 v0, 0x0

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

    move-result v1

    if-eqz v1, :cond_8

    .line 223
    :goto_7
    return-object v0

    .line 216
    :cond_8
    if-gtz p1, :cond_f

    .line 217
    :try_start_a
    invoke-static {p0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v0

    goto :goto_7

    .line 219
    :cond_f
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, 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 {v1}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;
    :try_end_27
    .catch Ljava/lang/Exception; {:try_start_a .. :try_end_27} :catch_29

    move-result-object v0

    goto :goto_7

    .line 221
    :catch_29
    move-exception v1

    goto :goto_7
.end method

.method public static goNLPermission(Landroid/content/Context;)V
    .registers 3

    .prologue
    .line 419
    :try_start_0
    new-instance v0, Landroid/content/Intent;

    const-string v1, "android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS"

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

    .line 420
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
    :try_end_a
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_a} :catch_b

    .line 424
    :goto_a
    return-void

    .line 421
    :catch_b
    move-exception v0

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

    goto :goto_a
.end method

.method private static initDaemonClient(Landroid/content/Context;)V
    .registers 2

    .prologue
    .line 384
    invoke-static {}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->createDaemonConfigurations()Lcom/cleanmaster/daemon/nativeforlive/utils/DaemonConfigurations;

    move-result-object v0

    invoke-static {p0, v0}, Lcom/cleanmaster/daemon/nativeforlive/utils/DaemonClient;->onAttachBaseContext(Landroid/content/Context;Lcom/cleanmaster/daemon/nativeforlive/utils/DaemonConfigurations;)V

    .line 385
    return-void
.end method

.method public static isAvoidRom()Z
    .registers 5

    .prologue
    const/4 v2, 0x0

    .line 436
    invoke-static {}, Lcom/cleanmaster/daemon/KeepLiveCloudCfgKey;->getAvoidRom()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/daemon/utils/AvoidRomUtils;->parseAvoidRomList(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v3

    move v1, v2

    .line 437
    :goto_a
    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v1, v0, :cond_33

    .line 438
    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/cleanmaster/daemon/bean/Rom;

    .line 439
    invoke-virtual {v0}, Lcom/cleanmaster/daemon/bean/Rom;->getName()Ljava/lang/String;

    move-result-object v4

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

    move-result v4

    if-nez v4, :cond_34

    .line 440
    invoke-virtual {v0}, Lcom/cleanmaster/daemon/bean/Rom;->getName()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Lcom/cleanmaster/hpsharelib/base/util/system/SystemUtils;->getSystemProperty(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 441
    invoke-virtual {v0}, Lcom/cleanmaster/daemon/bean/Rom;->getValue()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v4, v0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_34

    .line 442
    const/4 v2, 0x1

    .line 446
    :cond_33
    return v2

    .line 437
    :cond_34
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_a
.end method

.method public static isCanOpenMediaPlayer()Z
    .registers 3

    .prologue
    const/4 v0, 0x0

    .line 450
    invoke-static {}, Lcom/cleanmaster/daemon/KeepLiveCloudCfgKey;->getDaemonValue()I

    move-result v1

    and-int/lit16 v1, v1, 0x80

    const/16 v2, 0x80

    if-eq v1, v2, :cond_c

    .line 460
    :cond_b
    :goto_b
    return v0

    .line 453
    :cond_c
    invoke-static {}, Lcom/cleanmaster/daemon/KeepLiveCloudCfgKey;->getChargeStatu()Z

    move-result v1

    if-eqz v1, :cond_b

    .line 457
    invoke-static {}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->isAvoidRom()Z

    move-result v1

    if-nez v1, :cond_b

    .line 460
    const/4 v0, 0x1

    goto :goto_b
.end method

.method private static jobSchedulerForLive(Landroid/content/Context;I)V
    .registers 4

    .prologue
    .line 329
    invoke-static {p0, p1}, Lcom/cleanmaster/daemon/jobScheduler/CMJobService;->scheduleService(Landroid/content/Context;I)V

    .line 330
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/cleanmaster/daemon/jobScheduler/CMJobService;

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

    invoke-virtual {p0, v0}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    .line 331
    return-void
.end method

.method private static jobSchedulerForStop(Landroid/content/Context;)V
    .registers 3

    .prologue
    .line 334
    invoke-static {p0}, Lcom/cleanmaster/daemon/jobScheduler/CMJobService;->stopScheduleService(Landroid/content/Context;)V

    .line 335
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/cleanmaster/daemon/jobScheduler/CMJobService;

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

    invoke-virtual {p0, v0}, Landroid/content/Context;->stopService(Landroid/content/Intent;)Z

    .line 336
    return-void
.end method

.method public static keepAliveAbove26(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V
    .registers 9

    .prologue
    .line 466
    iget-object v0, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->context:Landroid/content/Context;

    new-instance v1, Lcom/cleanmaster/keepalive/b;

    new-instance v2, Lcom/cleanmaster/keepalive/b$a;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->packageName:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ":service"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    const-class v4, Lcom/cleanmaster/daemon/keepalive/DaemonService1;

    .line 469
    invoke-virtual {v4}, Ljava/lang/Class;->getCanonicalName()Ljava/lang/String;

    move-result-object v4

    const-class v5, Lcom/cleanmaster/daemon/keepalive/DaemonReceiver1;

    .line 470
    invoke-virtual {v5}, Ljava/lang/Class;->getCanonicalName()Ljava/lang/String;

    move-result-object v5

    const-class v6, Lcom/cleanmaster/daemon/keepalive/ExportInstrumentation;

    .line 471
    invoke-virtual {v6}, Ljava/lang/Class;->getCanonicalName()Ljava/lang/String;

    move-result-object v6

    invoke-direct {v2, v3, v4, v5, v6}, Lcom/cleanmaster/keepalive/b$a;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    new-instance v3, Lcom/cleanmaster/keepalive/b$a;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v5, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->packageName:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, ":worker"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    const-class v5, Lcom/cleanmaster/daemon/keepalive/DaemonService2;

    .line 474
    invoke-virtual {v5}, Ljava/lang/Class;->getCanonicalName()Ljava/lang/String;

    move-result-object v5

    const-class v6, Lcom/cleanmaster/daemon/keepalive/DaemonReceiver2;

    .line 475
    invoke-virtual {v6}, Ljava/lang/Class;->getCanonicalName()Ljava/lang/String;

    move-result-object v6

    const-class v7, Lcom/cleanmaster/daemon/keepalive/ExportInstrumentation;

    .line 476
    invoke-virtual {v7}, Ljava/lang/Class;->getCanonicalName()Ljava/lang/String;

    move-result-object v7

    invoke-direct {v3, v4, v5, v6, v7}, Lcom/cleanmaster/keepalive/b$a;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    invoke-direct {v1, v2, v3}, Lcom/cleanmaster/keepalive/b;-><init>(Lcom/cleanmaster/keepalive/b$a;Lcom/cleanmaster/keepalive/b$a;)V

    .line 466
    invoke-static {v0, v1}, Lcom/cleanmaster/keepalive/a;->a(Landroid/content/Context;Lcom/cleanmaster/keepalive/b;)V

    .line 478
    return-void
.end method

.method public static keepLive(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)I
    .registers 6

    .prologue
    const/16 v4, 0x20

    const/16 v3, 0x10

    const/4 v0, 0x1

    .line 52
    if-nez p0, :cond_9

    .line 53
    const/4 v0, 0x0

    .line 111
    :cond_8
    :goto_8
    return v0

    .line 55
    :cond_9
    iget-object v1, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->processName:Ljava/lang/String;

    const-string v2, ":daemon"

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

    move-result v1

    if-eqz v1, :cond_17

    .line 56
    invoke-static {p0}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->keepLiveByNative(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V

    goto :goto_8

    .line 57
    :cond_17
    iget-object v1, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->processName:Ljava/lang/String;

    const-string v2, ":service"

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

    move-result v1

    if-eqz v1, :cond_77

    .line 58
    invoke-static {}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getInstance()Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;

    move-result-object v1

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

    move-result v1

    if-nez v1, :cond_34

    .line 59
    iget v1, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->keepLiveType:I

    and-int/lit8 v1, v1, 0x1

    if-ne v1, v0, :cond_63

    .line 60
    invoke-static {p0}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->keepLiveByAccountManager(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V

    .line 66
    :cond_34
    :goto_34
    iget v1, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->keepLiveType:I

    and-int/lit8 v1, v1, 0x2

    const/4 v2, 0x2

    if-ne v1, v2, :cond_67

    .line 67
    invoke-static {p0}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->keepLiveByJobScheduler(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V

    .line 72
    :goto_3e
    iget v1, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->keepLiveType:I

    and-int/lit8 v1, v1, 0x4

    const/4 v2, 0x4

    if-ne v1, v2, :cond_6b

    .line 73
    invoke-static {p0}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->keepLiveByNative(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V

    .line 78
    :goto_48
    iget v1, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->keepLiveType:I

    and-int/lit8 v1, v1, 0x20

    if-ne v1, v4, :cond_6f

    .line 79
    invoke-static {p0}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->keepLiveByGray(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V

    .line 84
    :goto_51
    iget v1, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->keepLiveType:I

    and-int/lit8 v1, v1, 0x10

    if-ne v1, v3, :cond_73

    .line 85
    invoke-static {p0}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->keepLiveByOnePx(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V

    .line 90
    :goto_5a
    iget v1, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->keepLiveType:I

    and-int/lit8 v1, v1, 0x40

    const/16 v2, 0x40

    if-ne v1, v2, :cond_8

    goto :goto_8

    .line 62
    :cond_63
    invoke-static {p0}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->StopLiveOfAccountManager(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V

    goto :goto_34

    .line 69
    :cond_67
    invoke-static {p0}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->StopLiveOfJobScheduler(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V

    goto :goto_3e

    .line 75
    :cond_6b
    invoke-static {p0}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->stopLiveOfNative(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V

    goto :goto_48

    .line 81
    :cond_6f
    invoke-static {p0}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->stopLiveOfGray(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V

    goto :goto_51

    .line 87
    :cond_73
    invoke-static {p0}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->StopLiveOfOnePx(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V

    goto :goto_5a

    .line 101
    :cond_77
    iget-boolean v1, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->isResident:Z

    if-nez v1, :cond_8

    .line 102
    iget v1, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->keepLiveType:I

    and-int/lit8 v1, v1, 0x20

    if-ne v1, v4, :cond_84

    .line 103
    invoke-static {p0}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->keepLiveByGray(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V

    .line 105
    :cond_84
    iget v1, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->keepLiveType:I

    and-int/lit8 v1, v1, 0x10

    if-ne v1, v3, :cond_8

    .line 106
    invoke-static {p0}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->keepLiveByOnePx(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V

    goto/16 :goto_8
.end method

.method public static keepLiveByAccountManager(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V
    .registers 1

    .prologue
    .line 132
    return-void
.end method

.method public static keepLiveByGray(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V
    .registers 4

    .prologue
    .line 177
    invoke-static {p0}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->getGrayServiceIntent(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)Landroid/content/Intent;

    move-result-object v0

    .line 178
    if-nez v0, :cond_7

    .line 183
    :goto_6
    return-void

    .line 181
    :cond_7
    const-string v1, "Internal"

    iget v2, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->interval:I

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

    .line 182
    iget-object v1, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->context:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    goto :goto_6
.end method

.method public static keepLiveByJobScheduler(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V
    .registers 3

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

    const/16 v1, 0x15

    if-lt v0, v1, :cond_d

    .line 143
    iget-object v0, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->context:Landroid/content/Context;

    iget v1, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->interval:I

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

    .line 145
    :cond_d
    return-void
.end method

.method public static keepLiveByMediaPlayer(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V
    .registers 4

    .prologue
    .line 259
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->context:Landroid/content/Context;

    const-class v2, Lcom/cleanmaster/daemon/mediaPlayerForLive/GameResidentService;

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

    .line 260
    if-nez v0, :cond_c

    .line 264
    :goto_b
    return-void

    .line 263
    :cond_c
    iget-object v1, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->context:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    goto :goto_b
.end method

.method public static keepLiveByNative(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V
    .registers 1

    .prologue
    .line 164
    return-void
.end method

.method public static keepLiveByNotificationListenerService(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V
    .registers 5

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

    const/16 v1, 0x12

    if-lt v0, v1, :cond_21

    .line 242
    iget-object v0, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->context:Landroid/content/Context;

    invoke-static {v0}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->checkNotificationPermission(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_13

    .line 243
    iget-object v0, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->context:Landroid/content/Context;

    invoke-static {v0}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->goNLPermission(Landroid/content/Context;)V

    .line 245
    :cond_13
    iget-object v0, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->context:Landroid/content/Context;

    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->context:Landroid/content/Context;

    const-class v3, Lcom/cleanmaster/daemon/systemService/CMNotificationListenerService;

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

    invoke-virtual {v0, v1}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    .line 247
    :cond_21
    return-void
.end method

.method public static keepLiveByOnePx(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V
    .registers 1

    .prologue
    .line 230
    invoke-static {p0}, Lcom/cleanmaster/daemon/onePxForLive/OnepxReceiver;->register1pxReceiver(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V

    .line 231
    return-void
.end method

.method private static nativeForLive(Landroid/content/Context;)V
    .registers 3

    .prologue
    .line 339
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/cleanmaster/daemon/nativeforlive/PersistentService;

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

    invoke-virtual {p0, v0}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    .line 340
    return-void
.end method

.method private static nativeStopLive(Landroid/content/Context;)V
    .registers 3

    .prologue
    .line 343
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/cleanmaster/daemon/nativeforlive/PersistentService;

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

    invoke-virtual {p0, v0}, Landroid/content/Context;->stopService(Landroid/content/Intent;)Z

    .line 344
    return-void
.end method

.method private static removeAccount(Landroid/content/Context;)V
    .registers 7

    .prologue
    .line 313
    const-string v0, "account"

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

    move-result-object v0

    check-cast v0, Landroid/accounts/AccountManager;

    .line 314
    if-nez v0, :cond_b

    .line 326
    :cond_a
    :goto_a
    return-void

    .line 318
    :cond_b
    :try_start_b
    invoke-virtual {v0}, Landroid/accounts/AccountManager;->getAccounts()[Landroid/accounts/Account;

    move-result-object v2

    .line 319
    const/4 v1, 0x0

    :goto_10
    array-length v3, v2

    if-ge v1, v3, :cond_a

    .line 320
    aget-object v3, v2, v1

    iget-object v3, v3, Landroid/accounts/Account;->type:Ljava/lang/String;

    invoke-virtual {v3}, Ljava/lang/String;->intern()Ljava/lang/String;

    move-result-object v3

    sget-object v4, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->ACCOUNT_TYPE:Ljava/lang/String;

    if-ne v3, v4, :cond_26

    .line 321
    aget-object v3, v2, v1

    const/4 v4, 0x0

    const/4 v5, 0x0

    invoke-virtual {v0, v3, v4, v5}, Landroid/accounts/AccountManager;->removeAccount(Landroid/accounts/Account;Landroid/accounts/AccountManagerCallback;Landroid/os/Handler;)Landroid/accounts/AccountManagerFuture;
    :try_end_26
    .catch Ljava/lang/Exception; {:try_start_b .. :try_end_26} :catch_29

    .line 319
    :cond_26
    add-int/lit8 v1, v1, 0x1

    goto :goto_10

    .line 323
    :catch_29
    move-exception v0

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

    goto :goto_a
.end method

.method public static stopKeepLive(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)I
    .registers 3

    .prologue
    .line 115
    iget-boolean v0, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->isResident:Z

    if-eqz v0, :cond_6

    .line 116
    const/4 v0, 0x0

    .line 124
    :goto_5
    return v0

    .line 118
    :cond_6
    iget v0, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->keepLiveType:I

    and-int/lit8 v0, v0, 0x20

    const/16 v1, 0x20

    if-ne v0, v1, :cond_11

    .line 119
    invoke-static {p0}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->stopLiveOfGray(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V

    .line 121
    :cond_11
    iget v0, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->keepLiveType:I

    and-int/lit8 v0, v0, 0x10

    const/16 v1, 0x10

    if-ne v0, v1, :cond_1c

    .line 122
    invoke-static {p0}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->StopLiveOfOnePx(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V

    .line 124
    :cond_1c
    const/4 v0, 0x1

    goto :goto_5
.end method

.method public static stopLiveOfGray(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V
    .registers 3

    .prologue
    .line 186
    invoke-static {p0}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->getGrayServiceIntent(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)Landroid/content/Intent;

    move-result-object v0

    .line 187
    if-nez v0, :cond_7

    .line 191
    :goto_6
    return-void

    .line 190
    :cond_7
    iget-object v1, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->context:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->stopService(Landroid/content/Intent;)Z

    goto :goto_6
.end method

.method public static stopLiveOfMediaPlayer(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V
    .registers 4

    .prologue
    .line 267
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->context:Landroid/content/Context;

    const-class v2, Lcom/cleanmaster/daemon/mediaPlayerForLive/GameResidentService;

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

    .line 268
    if-nez v0, :cond_c

    .line 272
    :goto_b
    return-void

    .line 271
    :cond_c
    iget-object v1, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->context:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->stopService(Landroid/content/Intent;)Z

    goto :goto_b
.end method

.method public static stopLiveOfNative(Lcom/cleanmaster/daemon/KeepLiveParamBuilder;)V
    .registers 3

    .prologue
    .line 167
    iget-object v0, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->processName:Ljava/lang/String;

    const-string v1, ":service"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_f

    .line 168
    iget-object v0, p0, Lcom/cleanmaster/daemon/KeepLiveParamBuilder;->context:Landroid/content/Context;

    invoke-static {v0}, Lcom/cleanmaster/daemon/KeepLiveManagerImpl;->nativeStopLive(Landroid/content/Context;)V

    .line 171
    :cond_f
    return-void
.end method

.method private static versionAndModelIsOk()Z
    .registers 5

    .prologue
    const/4 v1, 0x1

    const/4 v0, 0x0

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

    .line 354
    sget-object v3, Landroid/os/Build;->BRAND:Ljava/lang/String;

    .line 355
    if-eqz v3, :cond_c

    .line 356
    const/16 v4, 0x16

    if-ge v2, v4, :cond_d

    .line 380
    :cond_c
    :goto_c
    return v0

    .line 367
    :cond_d
    const/16 v4, 0x18

    if-ge v2, v4, :cond_c

    .line 368
    const-string v2, "google"

    invoke-virtual {v3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_1b

    move v0, v1

    .line 369
    goto :goto_c

    .line 371
    :cond_1b
    const-string v2, "samsung"

    invoke-virtual {v3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_25

    move v0, v1

    .line 372
    goto :goto_c

    .line 374
    :cond_25
    const-string v2, "htc"

    invoke-virtual {v3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_c

    move v0, v1

    .line 375
    goto :goto_c
.end method