a.smali

.class public Lcom/cleanmaster/base/a;
.super Ljava/lang/Object;
.source "Commons.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/cleanmaster/base/a$a;
    }
.end annotation


# static fields
.field static a:Ljava/util/Random;

.field private static b:Ljava/lang/Boolean;

.field private static volatile c:Ljava/io/File;

.field private static d:[Ljava/lang/String;

.field private static e:Lcom/cleanmaster/bitloader/base/Objects;

.field private static f:Ljava/util/concurrent/atomic/AtomicBoolean;

.field private static g:Z

.field private static h:Ljava/lang/Runnable;

.field private static i:I


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

    .prologue
    const/4 v4, 0x0

    const/4 v3, 0x0

    .line 305
    sput-object v4, Lcom/cleanmaster/base/a;->b:Ljava/lang/Boolean;

    .line 995
    sput-object v4, Lcom/cleanmaster/base/a;->c:Ljava/io/File;

    .line 1206
    const/16 v0, 0x14

    new-array v0, v0, [Ljava/lang/String;

    const-string v1, "asus/WW_a501cg"

    aput-object v1, v0, v3

    const/4 v1, 0x1

    const-string v2, "Coolpad/Coolpad7620L"

    aput-object v2, v0, v1

    const/4 v1, 0x2

    const-string v2, "motorola/condor"

    aput-object v2, v0, v1

    const/4 v1, 0x3

    const-string v2, "OPPO/1105"

    aput-object v2, v0, v1

    const/4 v1, 0x4

    const-string v2, "OPPO/1107"

    aput-object v2, v0, v1

    const/4 v1, 0x5

    const-string v2, "OPPO/3007"

    aput-object v2, v0, v1

    const/4 v1, 0x6

    const-string v2, "OPPO/A31"

    aput-object v2, v0, v1

    const/4 v1, 0x7

    const-string v2, "OPPO/R2017"

    aput-object v2, v0, v1

    const/16 v1, 0x8

    const-string v2, "OPPO/R6007"

    aput-object v2, v0, v1

    const/16 v1, 0x9

    const-string v2, "OPPO/R7007"

    aput-object v2, v0, v1

    const/16 v1, 0xa

    const-string v2, "OPPO/R831S"

    aput-object v2, v0, v1

    const/16 v1, 0xb

    const-string/jumbo v2, "samsung/fortuna3g"

    aput-object v2, v0, v1

    const/16 v1, 0xc

    const-string/jumbo v2, "samsung/fortunave3gxx"

    aput-object v2, v0, v1

    const/16 v1, 0xd

    const-string/jumbo v2, "samsung/goyawifixx"

    aput-object v2, v0, v1

    const/16 v1, 0xe

    const-string/jumbo v2, "samsung/kanas3gxx"

    aput-object v2, v0, v1

    const/16 v1, 0xf

    const-string/jumbo v2, "samsung/ms013g"

    aput-object v2, v0, v1

    const/16 v1, 0x10

    const-string/jumbo v2, "samsung/serrano"

    aput-object v2, v0, v1

    const/16 v1, 0x11

    const-string/jumbo v2, "samsung/t03gxx/t03g:4.4.2"

    aput-object v2, v0, v1

    const/16 v1, 0x12

    const-string v2, "Sony/D6503/D6503:5"

    aput-object v2, v0, v1

    const/16 v1, 0x13

    const-string/jumbo v2, "yulong/Coolpad8720L"

    aput-object v2, v0, v1

    sput-object v0, Lcom/cleanmaster/base/a;->d:[Ljava/lang/String;

    .line 1331
    new-instance v0, Lcom/cleanmaster/bitloader/base/Objects;

    invoke-direct {v0}, Lcom/cleanmaster/bitloader/base/Objects;-><init>()V

    sput-object v0, Lcom/cleanmaster/base/a;->e:Lcom/cleanmaster/bitloader/base/Objects;

    .line 1332
    new-instance v0, Ljava/util/concurrent/atomic/AtomicBoolean;

    invoke-direct {v0, v3}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V

    sput-object v0, Lcom/cleanmaster/base/a;->f:Ljava/util/concurrent/atomic/AtomicBoolean;

    .line 1333
    sput-boolean v3, Lcom/cleanmaster/base/a;->g:Z

    .line 1875
    sput-object v4, Lcom/cleanmaster/base/a;->h:Ljava/lang/Runnable;

    .line 2083
    sput-object v4, Lcom/cleanmaster/base/a;->a:Ljava/util/Random;

    .line 2118
    sput v3, Lcom/cleanmaster/base/a;->i:I

    return-void
.end method

.method public static a(II)I
    .registers 6

    .prologue
    .line 2106
    sget-object v0, Lcom/cleanmaster/base/a;->a:Ljava/util/Random;

    if-nez v0, :cond_f

    .line 2107
    new-instance v0, Ljava/util/Random;

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

    move-result-wide v2

    invoke-direct {v0, v2, v3}, Ljava/util/Random;-><init>(J)V

    sput-object v0, Lcom/cleanmaster/base/a;->a:Ljava/util/Random;

    .line 2109
    :cond_f
    sget-object v0, Lcom/cleanmaster/base/a;->a:Ljava/util/Random;

    sub-int v1, p1, p0

    invoke-virtual {v0, v1}, Ljava/util/Random;->nextInt(I)I

    move-result v0

    add-int/2addr v0, p0

    return v0
.end method

.method public static a(Landroid/content/Context;)I
    .registers 7

    .prologue
    .line 145
    new-instance v1, Lcom/cleanmaster/hpsharelib/data/filter/And;

    new-instance v0, Lcom/cleanmaster/service/LocalService$g;

    invoke-direct {v0}, Lcom/cleanmaster/service/LocalService$g;-><init>()V

    new-instance v2, Lcom/cleanmaster/service/LocalService$c;

    invoke-direct {v2, p0}, Lcom/cleanmaster/service/LocalService$c;-><init>(Landroid/content/Context;)V

    invoke-direct {v1, v0, v2}, Lcom/cleanmaster/hpsharelib/data/filter/And;-><init>(Lcom/cleanmaster/data/filter/IFilter;Lcom/cleanmaster/data/filter/IFilter;)V

    .line 147
    new-instance v0, Lcom/cleanmaster/hpcommonlib/utils/PackageManagerWrapper;

    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v2

    invoke-direct {v0, v2}, Lcom/cleanmaster/hpcommonlib/utils/PackageManagerWrapper;-><init>(Landroid/content/pm/PackageManager;)V

    const/4 v2, 0x0

    const/16 v3, 0x68

    invoke-virtual {v0, v2, v3}, Lcom/cleanmaster/hpcommonlib/utils/PackageManagerWrapper;->getInstalledApplications(II)Ljava/util/List;

    move-result-object v0

    .line 149
    new-instance v2, Lcom/cleanmaster/bitloader/base/ArraySet;

    invoke-direct {v2}, Lcom/cleanmaster/bitloader/base/ArraySet;-><init>()V

    .line 151
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_28
    :goto_28
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_5b

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/content/pm/ApplicationInfo;

    .line 152
    iget-object v4, v0, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

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

    move-result-object v5

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

    move-result v4

    if-nez v4, :cond_28

    .line 156
    invoke-interface {v1, v0}, Lcom/cleanmaster/data/filter/IFilter;->onFilter(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_28

    iget v4, v0, Landroid/content/pm/ApplicationInfo;->flags:I

    const/high16 v5, 0x40000

    and-int/2addr v4, v5

    if-nez v4, :cond_28

    .line 157
    iget-object v4, v0, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v2, v4}, Lcom/cleanmaster/bitloader/base/ArraySet;->contains(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_28

    .line 158
    iget-object v0, v0, Landroid/content/pm/ApplicationInfo;->packageName:Ljava/lang/String;

    invoke-virtual {v2, v0}, Lcom/cleanmaster/bitloader/base/ArraySet;->add(Ljava/lang/Object;)Z

    goto :goto_28

    .line 162
    :cond_5b
    invoke-virtual {v2}, Lcom/cleanmaster/bitloader/base/ArraySet;->size()I

    move-result v0

    return v0
.end method

.method public static a(Ljava/lang/String;Ljava/lang/String;Landroid/graphics/drawable/Drawable;)Landroid/text/SpannableString;
    .registers 9

    .prologue
    const/16 v5, 0x21

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

    move-result v0

    if-nez v0, :cond_10

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

    move-result v0

    if-nez v0, :cond_10

    if-nez p2, :cond_12

    .line 1644
    :cond_10
    const/4 v0, 0x0

    .line 1664
    :goto_11
    return-object v0

    .line 1646
    :cond_12
    new-instance v2, Landroid/text/SpannableString;

    invoke-direct {v2, p0}, Landroid/text/SpannableString;-><init>(Ljava/lang/CharSequence;)V

    .line 1647
    invoke-virtual {p0, p1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v0

    .line 1648
    const/4 v1, -0x1

    if-eq v0, v1, :cond_3d

    .line 1649
    new-instance v1, Landroid/text/style/ImageSpan;

    const/4 v3, 0x1

    invoke-direct {v1, p2, v3}, Landroid/text/style/ImageSpan;-><init>(Landroid/graphics/drawable/Drawable;I)V

    .line 1650
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v3

    .line 1651
    add-int v4, v0, v3

    invoke-virtual {v2, v1, v0, v4, v5}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    .line 1654
    if-nez v0, :cond_3f

    .line 1655
    add-int v1, v0, v3

    .line 1656
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v0

    .line 1661
    :goto_35
    new-instance v3, Lcom/cleanmaster/hpsharelib/base/widget/CenterableAffectingSpan;

    invoke-direct {v3, p2}, Lcom/cleanmaster/hpsharelib/base/widget/CenterableAffectingSpan;-><init>(Landroid/graphics/drawable/Drawable;)V

    .line 1662
    invoke-virtual {v2, v3, v1, v0, v5}, Landroid/text/SpannableString;->setSpan(Ljava/lang/Object;III)V

    :cond_3d
    move-object v0, v2

    .line 1664
    goto :goto_11

    .line 1658
    :cond_3f
    const/4 v1, 0x0

    .line 1659
    goto :goto_35
.end method

.method public static a(Landroid/content/Context;I)V
    .registers 4

    .prologue
    .line 2315
    if-nez p0, :cond_3

    .line 2328
    :cond_2
    :goto_2
    return-void

    .line 2319
    :cond_3
    new-instance v0, Landroid/content/Intent;

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

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

    .line 2320
    const-string v1, "cheOnAppUsageChangeExck_type"

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

    .line 2322
    :try_start_f
    invoke-virtual {p0, v0}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    move-result-object v0

    if-nez v0, :cond_2

    .line 2323
    const-string v0, "Servive"

    const-string/jumbo v1, "start service fail"

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_1d
    .catch Ljava/lang/Exception; {:try_start_f .. :try_end_1d} :catch_1e

    goto :goto_2

    .line 2325
    :catch_1e
    move-exception v0

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

    goto :goto_2
.end method

.method public static a(Landroid/content/Context;Lcom/cm/plugincluster/common/IUpdateUIHelper;)V
    .registers 4

    .prologue
    .line 1092
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/ComponentUtils;->isInMainThread()Z

    move-result v0

    if-eqz v0, :cond_b

    .line 1093
    const/4 v0, 0x1

    invoke-static {p0, p1, v0}, Lcom/cleanmaster/base/a;->a(Landroid/content/Context;Lcom/cm/plugincluster/common/IUpdateUIHelper;Z)V

    .line 1103
    :goto_a
    return-void

    .line 1097
    :cond_b
    invoke-static {}, Lcom/keniu/security/m;->e()Lcom/keniu/security/m;

    move-result-object v0

    invoke-virtual {v0}, Lcom/keniu/security/m;->l()Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/cleanmaster/base/e;

    invoke-direct {v1, p0, p1}, Lcom/cleanmaster/base/e;-><init>(Landroid/content/Context;Lcom/cm/plugincluster/common/IUpdateUIHelper;)V

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

    goto :goto_a
.end method

.method public static a(Landroid/content/Context;Lcom/cm/plugincluster/common/IUpdateUIHelper;Z)V
    .registers 4

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

    invoke-static {p0, p1, p2, v0}, Lcom/cleanmaster/base/a;->a(Landroid/content/Context;Lcom/cm/plugincluster/common/IUpdateUIHelper;ZI)V

    .line 1693
    return-void
.end method

.method public static a(Landroid/content/Context;Lcom/cm/plugincluster/common/IUpdateUIHelper;ZI)V
    .registers 5

    .prologue
    .line 1727
    invoke-static {}, Lcom/cleanmaster/base/a;->t()I

    move-result v0

    sparse-switch v0, :sswitch_data_1c

    .line 1754
    const/4 v0, 0x1

    invoke-static {v0, p0, p1, p3}, Lcom/cleanmaster/base/a;->a(ZLandroid/content/Context;Lcom/cm/plugincluster/common/IUpdateUIHelper;I)V

    .line 1755
    :goto_b
    return-void

    .line 1732
    :sswitch_c
    invoke-static {p0, p2}, Lcom/cleanmaster/base/a;->a(Landroid/content/Context;Z)V

    goto :goto_b

    .line 1737
    :sswitch_10
    invoke-static {p0}, Lcom/cleanmaster/base/a;->f(Landroid/content/Context;)V

    goto :goto_b

    .line 1742
    :sswitch_14
    invoke-static {p0}, Lcom/cleanmaster/base/a;->g(Landroid/content/Context;)V

    goto :goto_b

    .line 1747
    :sswitch_18
    invoke-static {p0}, Lcom/cleanmaster/base/a;->h(Landroid/content/Context;)V

    goto :goto_b

    .line 1727
    :sswitch_data_1c
    .sparse-switch
        0x186a9 -> :sswitch_c
        0x30d41 -> :sswitch_c
        0x30d43 -> :sswitch_10
        0x30d44 -> :sswitch_14
        0x30d45 -> :sswitch_18
        0x30d4d -> :sswitch_c
    .end sparse-switch
.end method

.method public static a(Landroid/content/Context;Lcom/keniu/security/update/y;)V
    .registers 4

    .prologue
    .line 1077
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/ComponentUtils;->isInMainThread()Z

    move-result v0

    if-eqz v0, :cond_b

    .line 1078
    const/4 v0, 0x1

    invoke-static {p0, p1, v0}, Lcom/cleanmaster/base/a;->a(Landroid/content/Context;Lcom/keniu/security/update/y;Z)V

    .line 1088
    :goto_a
    return-void

    .line 1082
    :cond_b
    invoke-static {}, Lcom/keniu/security/m;->e()Lcom/keniu/security/m;

    move-result-object v0

    invoke-virtual {v0}, Lcom/keniu/security/m;->l()Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/cleanmaster/base/d;

    invoke-direct {v1, p0, p1}, Lcom/cleanmaster/base/d;-><init>(Landroid/content/Context;Lcom/keniu/security/update/y;)V

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

    goto :goto_a
.end method

.method public static a(Landroid/content/Context;Lcom/keniu/security/update/y;Z)V
    .registers 4

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

    invoke-static {p0, p1, p2, v0}, Lcom/cleanmaster/base/a;->a(Landroid/content/Context;Lcom/keniu/security/update/y;ZI)V

    .line 1689
    return-void
.end method

.method public static a(Landroid/content/Context;Lcom/keniu/security/update/y;ZI)V
    .registers 5

    .prologue
    .line 1696
    invoke-static {}, Lcom/cleanmaster/base/a;->t()I

    move-result v0

    sparse-switch v0, :sswitch_data_1c

    .line 1723
    const/4 v0, 0x1

    invoke-static {v0, p0, p1, p3}, Lcom/cleanmaster/base/a;->a(ZLandroid/content/Context;Lcom/keniu/security/update/y;I)V

    .line 1724
    :goto_b
    return-void

    .line 1701
    :sswitch_c
    invoke-static {p0, p2}, Lcom/cleanmaster/base/a;->a(Landroid/content/Context;Z)V

    goto :goto_b

    .line 1706
    :sswitch_10
    invoke-static {p0}, Lcom/cleanmaster/base/a;->f(Landroid/content/Context;)V

    goto :goto_b

    .line 1711
    :sswitch_14
    invoke-static {p0}, Lcom/cleanmaster/base/a;->g(Landroid/content/Context;)V

    goto :goto_b

    .line 1716
    :sswitch_18
    invoke-static {p0}, Lcom/cleanmaster/base/a;->h(Landroid/content/Context;)V

    goto :goto_b

    .line 1696
    :sswitch_data_1c
    .sparse-switch
        0x186a9 -> :sswitch_c
        0x30d41 -> :sswitch_c
        0x30d43 -> :sswitch_10
        0x30d44 -> :sswitch_14
        0x30d45 -> :sswitch_18
        0x30d4d -> :sswitch_c
    .end sparse-switch
.end method

.method public static a(Landroid/content/Context;Z)V
    .registers 8

    .prologue
    const/high16 v5, 0x10000000

    .line 1830
    invoke-static {}, Lcom/keniu/security/h;->a()Ljava/lang/String;

    move-result-object v0

    .line 1831
    new-instance v1, Landroid/content/Intent;

    const-string v2, "android.intent.action.VIEW"

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

    .line 1832
    invoke-virtual {v1, v5}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 1833
    const-string v2, "com.android.vending"

    const-string v3, "com.google.android.finsky.activities.MainActivity"

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

    .line 1835
    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, "market://details?id="

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

    move-result-object v2

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

    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 1838
    invoke-static {p0, v1}, Lcom/cleanmaster/hpsharelib/base/util/system/ComponentUtils;->startActivity(Landroid/content/Context;Landroid/content/Intent;)Z

    move-result v1

    if-eqz v1, :cond_43

    .line 1839
    invoke-static {p0}, Lcom/cleanmaster/base/a;->k(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_42

    if-eqz p1, :cond_42

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

    .line 1857
    :cond_42
    :goto_42
    return-void

    .line 1846
    :cond_43
    new-instance v1, Landroid/content/Intent;

    const-string v2, "android.intent.action.VIEW"

    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v4, "https://play.google.com/store/apps/details?id="

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

    move-result-object v3

    invoke-virtual {v3, v0}, 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

    .line 1847
    invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v0

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

    .line 1849
    invoke-virtual {v1, v5}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 1851
    invoke-static {p0, v1}, Lcom/cleanmaster/hpsharelib/base/util/system/ComponentUtils;->startActivity(Landroid/content/Context;Landroid/content/Intent;)Z

    .line 1853
    invoke-static {p0}, Lcom/cleanmaster/base/a;->k(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_42

    if-eqz p1, :cond_42

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

    goto :goto_42
.end method

.method public static a(Ljava/io/File;)V
    .registers 9

    .prologue
    const/4 v2, 0x0

    .line 457
    if-eqz p0, :cond_9

    invoke-virtual {p0}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_a

    .line 503
    :cond_9
    :goto_9
    return-void

    .line 461
    :cond_a
    invoke-virtual {p0}, Ljava/io/File;->isFile()Z

    move-result v0

    if-eqz v0, :cond_14

    .line 462
    invoke-virtual {p0}, Ljava/io/File;->delete()Z

    goto :goto_9

    .line 464
    :cond_14
    invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/util/path/PathOperFunc;->listDir(Ljava/lang/String;)Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;

    move-result-object v3

    .line 466
    if-eqz v3, :cond_9

    .line 468
    :try_start_1e
    invoke-interface {v3}, Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;->getFileNameList()Lcom/cm/plugincluster/junkengine/util/path/IKStringList;
    :try_end_21
    .catchall {:try_start_1e .. :try_end_21} :catchall_bd

    move-result-object v1

    .line 469
    if-eqz v1, :cond_64

    .line 470
    :try_start_24
    invoke-interface {v1}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :goto_28
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_60

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 471
    new-instance v5, Ljava/io/File;

    new-instance v6, Ljava/lang/StringBuilder;

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

    invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Lcom/cleanmaster/hpsharelib/base/util/io/FileUtils;->addSlash(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

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

    move-result-object v6

    invoke-virtual {v6, v0}, 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

    invoke-direct {v5, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 472
    invoke-virtual {v5}, Ljava/io/File;->delete()Z
    :try_end_55
    .catchall {:try_start_24 .. :try_end_55} :catchall_56

    goto :goto_28

    .line 494
    :catchall_56
    move-exception v0

    :goto_57
    if-eqz v1, :cond_5c

    .line 495
    invoke-interface {v1}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->release()V

    .line 499
    :cond_5c
    invoke-interface {v3}, Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;->release()V

    throw v0

    .line 474
    :cond_60
    :try_start_60
    invoke-interface {v1}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->release()V

    move-object v1, v2

    .line 478
    :cond_64
    invoke-interface {v3}, Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;->getFolderNameList()Lcom/cm/plugincluster/junkengine/util/path/IKStringList;

    move-result-object v1

    .line 480
    if-eqz v1, :cond_a0

    .line 481
    invoke-interface {v1}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :goto_6e
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_9c

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 482
    new-instance v5, Ljava/io/File;

    new-instance v6, Ljava/lang/StringBuilder;

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

    invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Lcom/cleanmaster/hpsharelib/base/util/io/FileUtils;->addSlash(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

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

    move-result-object v6

    invoke-virtual {v6, v0}, 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

    invoke-direct {v5, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 483
    invoke-static {v5}, Lcom/cleanmaster/base/a;->a(Ljava/io/File;)V

    goto :goto_6e

    .line 485
    :cond_9c
    invoke-interface {v1}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->release()V

    move-object v1, v2

    .line 489
    :cond_a0
    invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/util/path/PathOperFunc;->listDir(Ljava/lang/String;)Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;

    move-result-object v1

    .line 490
    if-eqz v1, :cond_b0

    invoke-interface {v1}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->size()I

    move-result v0

    if-nez v0, :cond_b3

    .line 491
    :cond_b0
    invoke-virtual {p0}, Ljava/io/File;->delete()Z
    :try_end_b3
    .catchall {:try_start_60 .. :try_end_b3} :catchall_56

    .line 494
    :cond_b3
    if-eqz v1, :cond_b8

    .line 495
    invoke-interface {v1}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->release()V

    .line 499
    :cond_b8
    invoke-interface {v3}, Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;->release()V

    goto/16 :goto_9

    .line 494
    :catchall_bd
    move-exception v0

    move-object v1, v2

    goto :goto_57
.end method

.method public static a(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;)V
    .registers 3

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

    invoke-static {p0, p1, v0}, Lcom/cleanmaster/base/a;->a(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;I)V

    .line 371
    return-void
.end method

.method public static a(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;I)V
    .registers 5

    .prologue
    .line 380
    if-eqz p1, :cond_a

    invoke-interface {p1}, Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;->getEnableFlags()I

    move-result v0

    and-int/lit8 v0, v0, 0x40

    if-nez v0, :cond_15

    .line 381
    :cond_a
    if-eqz p0, :cond_15

    .line 382
    const-string v0, "DFi"

    invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v1

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

    .line 385
    :cond_15
    const/4 v0, 0x1

    invoke-static {p0, p1, v0, p2}, Lcom/cleanmaster/base/a;->a(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;ZI)V

    .line 386
    return-void
.end method

.method private static a(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;II)V
    .registers 14

    .prologue
    const/4 v2, 0x0

    const/4 v0, 0x0

    .line 411
    add-int/lit8 v4, p2, -0x1

    if-gtz p2, :cond_7

    .line 454
    :cond_6
    :goto_6
    return-void

    .line 415
    :cond_7
    sput-object p0, Lcom/cleanmaster/base/a;->c:Ljava/io/File;

    .line 416
    invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/cleanmaster/util/path/PathOperFunc;->listDir(Ljava/lang/String;)Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;

    move-result-object v5

    .line 418
    if-eqz v5, :cond_6

    .line 420
    :try_start_13
    invoke-interface {v5}, Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;->getFileNameList()Lcom/cm/plugincluster/junkengine/util/path/IKStringList;
    :try_end_16
    .catchall {:try_start_13 .. :try_end_16} :catchall_c0

    move-result-object v1

    .line 421
    if-eqz v1, :cond_7e

    .line 423
    :try_start_19
    invoke-interface {v1}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->size()I

    move-result v3

    if-lez v3, :cond_c3

    .line 424
    if-lez p3, :cond_c3

    const v3, 0xffff

    if-eq p3, v3, :cond_c3

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

    move-result-wide v6

    invoke-virtual {p0}, Ljava/io/File;->lastModified()J

    move-result-wide v8

    sub-long/2addr v6, v8

    mul-int/lit8 v3, p3, 0x18

    mul-int/lit8 v3, v3, 0x3c

    mul-int/lit8 v3, v3, 0x3c

    mul-int/lit16 v3, v3, 0x3e8

    int-to-long v8, v3

    cmp-long v3, v6, v8

    if-gez v3, :cond_c3

    move v3, p3

    .line 430
    :goto_3d
    invoke-interface {v1}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->iterator()Ljava/util/Iterator;

    move-result-object v6

    :goto_41
    invoke-interface {v6}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_7a

    invoke-interface {v6}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 431
    new-instance v7, Ljava/io/File;

    new-instance v8, Ljava/lang/StringBuilder;

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

    invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Lcom/cleanmaster/hpsharelib/base/util/io/FileUtils;->addSlash(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

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

    move-result-object v8

    invoke-virtual {v8, v0}, 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

    invoke-direct {v7, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 432
    const/4 v0, 0x0

    invoke-static {v7, p1, v0, v3}, Lcom/cleanmaster/base/a;->b(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;ZI)Z
    :try_end_6f
    .catchall {:try_start_19 .. :try_end_6f} :catchall_70

    goto :goto_41

    .line 446
    :catchall_70
    move-exception v0

    :goto_71
    if-eqz v1, :cond_76

    .line 447
    invoke-interface {v1}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->release()V

    .line 451
    :cond_76
    invoke-interface {v5}, Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;->release()V

    throw v0

    .line 434
    :cond_7a
    :try_start_7a
    invoke-interface {v1}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->release()V

    move-object v1, v2

    .line 438
    :cond_7e
    invoke-interface {v5}, Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;->getFolderNameList()Lcom/cm/plugincluster/junkengine/util/path/IKStringList;

    move-result-object v1

    .line 439
    if-eqz v1, :cond_b6

    .line 440
    invoke-interface {v1}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_88
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_b6

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 441
    new-instance v3, Ljava/io/File;

    new-instance v6, Ljava/lang/StringBuilder;

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

    invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v7

    invoke-static {v7}, Lcom/cleanmaster/hpsharelib/base/util/io/FileUtils;->addSlash(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

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

    move-result-object v6

    invoke-virtual {v6, v0}, 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

    invoke-direct {v3, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 442
    invoke-static {v3, p1, v4, p3}, Lcom/cleanmaster/base/a;->a(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;II)V
    :try_end_b5
    .catchall {:try_start_7a .. :try_end_b5} :catchall_70

    goto :goto_88

    .line 446
    :cond_b6
    if-eqz v1, :cond_bb

    .line 447
    invoke-interface {v1}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->release()V

    .line 451
    :cond_bb
    invoke-interface {v5}, Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;->release()V

    goto/16 :goto_6

    .line 446
    :catchall_c0
    move-exception v0

    move-object v1, v2

    goto :goto_71

    :cond_c3
    move v3, v0

    goto/16 :goto_3d
.end method

.method private static a(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;ZI)V
    .registers 7

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 389
    if-nez p0, :cond_5

    .line 406
    :goto_4
    return-void

    .line 393
    :cond_5
    invoke-virtual {p0}, Ljava/io/File;->isFile()Z

    move-result v0

    if-eqz v0, :cond_f

    .line 394
    invoke-static {p0, p1, v2, v2}, Lcom/cleanmaster/base/a;->b(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;ZI)Z

    goto :goto_4

    .line 398
    :cond_f
    const/16 v0, 0x80

    :try_start_11
    invoke-static {p0, p1, v0, p3}, Lcom/cleanmaster/base/a;->a(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;II)V
    :try_end_14
    .catch Ljava/lang/StackOverflowError; {:try_start_11 .. :try_end_14} :catch_17
    .catchall {:try_start_11 .. :try_end_14} :catchall_1b

    .line 403
    sput-object v1, Lcom/cleanmaster/base/a;->c:Ljava/io/File;

    goto :goto_4

    .line 399
    :catch_17
    move-exception v0

    .line 403
    sput-object v1, Lcom/cleanmaster/base/a;->c:Ljava/io/File;

    goto :goto_4

    :catchall_1b
    move-exception v0

    sput-object v1, Lcom/cleanmaster/base/a;->c:Ljava/io/File;

    throw v0
.end method

.method private static a(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;ZZZI)V
    .registers 13

    .prologue
    const/4 v2, 0x1

    const/4 v1, 0x0

    const/4 v6, 0x0

    .line 747
    if-nez p0, :cond_6

    .line 789
    :cond_5
    :goto_5
    return-void

    .line 751
    :cond_6
    if-nez p4, :cond_c

    if-eqz p3, :cond_c

    if-nez p2, :cond_14

    :cond_c
    if-nez p1, :cond_14

    .line 752
    invoke-static {p0, v6, v2, v1}, Lcom/cleanmaster/base/a;->b(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;ZI)Z

    move-result v0

    if-nez v0, :cond_5

    .line 757
    :cond_14
    invoke-virtual {p0}, Ljava/io/File;->isFile()Z

    move-result v0

    if-eqz v0, :cond_20

    .line 758
    if-eqz p4, :cond_5

    .line 759
    invoke-static {p0, p1, v2, v1}, Lcom/cleanmaster/base/a;->b(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;ZI)Z

    goto :goto_5

    .line 763
    :cond_20
    const/4 v1, 0x0

    const/16 v4, 0x80

    move-object v0, p0

    move-object v2, p1

    move v3, p4

    move v5, p5

    :try_start_27
    invoke-static/range {v0 .. v5}, Lcom/cleanmaster/base/a;->a(Ljava/io/File;ZLcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;ZII)V
    :try_end_2a
    .catch Ljava/lang/StackOverflowError; {:try_start_27 .. :try_end_2a} :catch_59
    .catchall {:try_start_27 .. :try_end_2a} :catchall_5d

    .line 768
    sput-object v6, Lcom/cleanmaster/base/a;->c:Ljava/io/File;

    .line 771
    :goto_2c
    if-eqz p3, :cond_30

    if-nez p2, :cond_4f

    .line 772
    :cond_30
    invoke-virtual {p0}, Ljava/io/File;->delete()Z

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

    const/16 v1, 0x13

    if-lt v0, v1, :cond_4f

    .line 774
    invoke-virtual {p0}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_4f

    .line 776
    :try_start_3f
    new-instance v0, Lcom/cleanmaster/util/MediaFile;

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

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v1

    invoke-direct {v0, v1, p0}, Lcom/cleanmaster/util/MediaFile;-><init>(Landroid/content/ContentResolver;Ljava/io/File;)V

    invoke-virtual {v0}, Lcom/cleanmaster/util/MediaFile;->delete()Z
    :try_end_4f
    .catch Ljava/io/IOException; {:try_start_3f .. :try_end_4f} :catch_61

    .line 785
    :cond_4f
    :goto_4f
    if-eqz p1, :cond_5

    .line 786
    invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v0}, Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;->afterFolderDel(Ljava/lang/String;)V

    goto :goto_5

    .line 764
    :catch_59
    move-exception v0

    .line 768
    sput-object v6, Lcom/cleanmaster/base/a;->c:Ljava/io/File;

    goto :goto_2c

    :catchall_5d
    move-exception v0

    sput-object v6, Lcom/cleanmaster/base/a;->c:Ljava/io/File;

    throw v0

    .line 778
    :catch_61
    move-exception v0

    .line 779
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_4f
.end method

.method private static a(Ljava/io/File;ZLcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;ZII)V
    .registers 18

    .prologue
    .line 793
    add-int/lit8 v6, p4, -0x1

    if-gtz p4, :cond_5

    .line 859
    :cond_4
    :goto_4
    return-void

    .line 797
    :cond_5
    sput-object p0, Lcom/cleanmaster/base/a;->c:Ljava/io/File;

    .line 798
    if-eqz p2, :cond_19

    .line 799
    invoke-interface {p2}, Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;->getEnableFlags()I

    move-result v2

    and-int/lit8 v2, v2, 0x1

    const/4 v3, 0x1

    if-ne v2, v3, :cond_19

    .line 800
    invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v2

    invoke-interface {p2, v2}, Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;->notifyFolderDel(Ljava/lang/String;)V

    .line 804
    :cond_19
    invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/cleanmaster/util/path/PathOperFunc;->listDir(Ljava/lang/String;)Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;

    move-result-object v9

    .line 805
    const/4 v3, 0x0

    .line 806
    if-eqz v9, :cond_df

    .line 808
    if-eqz p3, :cond_95

    .line 809
    :try_start_26
    invoke-interface {v9}, Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;->getFileNameList()Lcom/cm/plugincluster/junkengine/util/path/IKStringList;

    move-result-object v3

    .line 810
    if-eqz v3, :cond_95

    .line 811
    const/4 v2, 0x0

    .line 812
    invoke-interface {v3}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->size()I

    move-result v4

    if-lez v4, :cond_108

    .line 813
    if-lez p5, :cond_108

    const v4, 0xffff

    move/from16 v0, p5

    if-eq v0, v4, :cond_108

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

    move-result-wide v4

    invoke-virtual {p0}, Ljava/io/File;->lastModified()J

    move-result-wide v10

    sub-long/2addr v4, v10

    mul-int/lit8 v7, p5, 0x18

    mul-int/lit8 v7, v7, 0x3c

    mul-int/lit8 v7, v7, 0x3c

    mul-int/lit16 v7, v7, 0x3e8

    int-to-long v10, v7

    cmp-long v4, v4, v10

    if-gez v4, :cond_108

    move/from16 v4, p5

    .line 819
    :goto_54
    invoke-interface {v3}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->iterator()Ljava/util/Iterator;

    move-result-object v5

    :goto_58
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_91

    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 820
    new-instance v7, Ljava/io/File;

    new-instance v8, Ljava/lang/StringBuilder;

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

    invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Lcom/cleanmaster/hpsharelib/base/util/io/FileUtils;->addSlash(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

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

    move-result-object v8

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

    invoke-direct {v7, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 821
    const/4 v2, 0x1

    invoke-static {v7, p2, v2, v4}, Lcom/cleanmaster/base/a;->b(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;ZI)Z
    :try_end_86
    .catchall {:try_start_26 .. :try_end_86} :catchall_87

    goto :goto_58

    .line 837
    :catchall_87
    move-exception v2

    :goto_88
    if-eqz v3, :cond_8d

    .line 838
    invoke-interface {v3}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->release()V

    .line 842
    :cond_8d
    invoke-interface {v9}, Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;->release()V

    throw v2

    .line 823
    :cond_91
    :try_start_91
    invoke-interface {v3}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->release()V

    .line 824
    const/4 v3, 0x0

    .line 828
    :cond_95
    invoke-interface {v9}, Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;->getFolderNameList()Lcom/cm/plugincluster/junkengine/util/path/IKStringList;
    :try_end_98
    .catchall {:try_start_91 .. :try_end_98} :catchall_87

    move-result-object v8

    .line 830
    if-eqz v8, :cond_d7

    .line 831
    :try_start_9b
    invoke-interface {v8}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->iterator()Ljava/util/Iterator;

    move-result-object v10

    :goto_9f
    invoke-interface {v10}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_d7

    invoke-interface {v10}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    move-object v0, v2

    check-cast v0, Ljava/lang/String;

    move-object v3, v0

    .line 832
    new-instance v2, Ljava/io/File;

    new-instance v4, Ljava/lang/StringBuilder;

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

    invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Lcom/cleanmaster/hpsharelib/base/util/io/FileUtils;->addSlash(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

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

    move-result-object v4

    invoke-virtual {v4, v3}, 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

    invoke-direct {v2, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 833
    const/4 v3, 0x1

    move-object v4, p2

    move v5, p3

    move/from16 v7, p5

    invoke-static/range {v2 .. v7}, Lcom/cleanmaster/base/a;->a(Ljava/io/File;ZLcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;ZII)V
    :try_end_d3
    .catchall {:try_start_9b .. :try_end_d3} :catchall_d4

    goto :goto_9f

    .line 837
    :catchall_d4
    move-exception v2

    move-object v3, v8

    goto :goto_88

    :cond_d7
    if-eqz v8, :cond_dc

    .line 838
    invoke-interface {v8}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->release()V

    .line 842
    :cond_dc
    invoke-interface {v9}, Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;->release()V

    .line 846
    :cond_df
    if-eqz p1, :cond_4

    .line 847
    invoke-virtual {p0}, Ljava/io/File;->delete()Z

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

    const/16 v3, 0x13

    if-lt v2, v3, :cond_4

    .line 849
    invoke-virtual {p0}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_4

    .line 851
    :try_start_f0
    new-instance v2, Lcom/cleanmaster/util/MediaFile;

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

    move-result-object v3

    invoke-virtual {v3}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v3

    invoke-direct {v2, v3, p0}, Lcom/cleanmaster/util/MediaFile;-><init>(Landroid/content/ContentResolver;Ljava/io/File;)V

    invoke-virtual {v2}, Lcom/cleanmaster/util/MediaFile;->delete()Z
    :try_end_100
    .catch Ljava/io/IOException; {:try_start_f0 .. :try_end_100} :catch_102

    goto/16 :goto_4

    .line 853
    :catch_102
    move-exception v2

    .line 854
    invoke-virtual {v2}, Ljava/io/IOException;->printStackTrace()V

    goto/16 :goto_4

    :cond_108
    move v4, v2

    goto/16 :goto_54
.end method

.method private static a(Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/lang/String;Lcom/cm/plugincluster/junkengine/util/INameFilter;)V
    .registers 14
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/cleanmaster/base/a$a;",
            ">;",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/cleanmaster/base/a$a;",
            ">;",
            "Ljava/lang/String;",
            "Lcom/cm/plugincluster/junkengine/util/INameFilter;",
            ")V"
        }
    .end annotation

    .prologue
    .line 700
    const-wide/16 v4, 0x1388

    .line 701
    const-wide/16 v6, 0x0

    .line 702
    new-instance v8, Ljava/util/concurrent/atomic/AtomicBoolean;

    const/4 v0, 0x1

    invoke-direct {v8, v0}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>(Z)V

    .line 704
    const/4 v0, 0x0

    move v9, v0

    :goto_c
    const/16 v0, 0x1f4

    if-ge v9, v0, :cond_1e

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move-object v3, p3

    .line 705
    :try_start_14
    invoke-static/range {v0 .. v8}, Lcom/cleanmaster/base/a;->a(Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/lang/String;Lcom/cm/plugincluster/junkengine/util/INameFilter;JJLjava/util/concurrent/atomic/AtomicBoolean;)V

    .line 706
    add-long/2addr v6, v4

    .line 707
    invoke-virtual {v8}, Ljava/util/concurrent/atomic/AtomicBoolean;->get()Z
    :try_end_1b
    .catch Ljava/lang/OutOfMemoryError; {:try_start_14 .. :try_end_1b} :catch_23

    move-result v0

    if-nez v0, :cond_1f

    .line 716
    :cond_1e
    return-void

    .line 704
    :cond_1f
    add-int/lit8 v0, v9, 0x1

    move v9, v0

    goto :goto_c

    .line 711
    :catch_23
    move-exception v0

    .line 712
    new-instance v1, Ljava/lang/OutOfMemoryError;

    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, "directListFilesInDirandSubDirByMediaStore path:"

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

    move-result-object v2

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

    move-result-object v2

    const-string v3, " nLimitOffset:"

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

    move-result-object v2

    invoke-virtual {v2, v6, v7}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v2

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

    move-result-object v2

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

    .line 713
    invoke-virtual {v1, v0}, Ljava/lang/OutOfMemoryError;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;

    .line 714
    throw v1
.end method

.method public static a(Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/lang/String;Lcom/cm/plugincluster/junkengine/util/INameFilter;I)V
    .registers 14
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/cleanmaster/base/a$a;",
            ">;",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/cleanmaster/base/a$a;",
            ">;",
            "Ljava/lang/String;",
            "Lcom/cm/plugincluster/junkengine/util/INameFilter;",
            "I)V"
        }
    .end annotation

    .prologue
    const/4 v2, 0x0

    .line 587
    add-int/lit8 v3, p4, -0x1

    if-gtz p4, :cond_6

    .line 624
    :cond_5
    :goto_5
    return-void

    .line 591
    :cond_6
    invoke-static {p2, p3}, Lcom/cleanmaster/util/path/PathOperFunc;->listDir(Ljava/lang/String;Lcom/cm/plugincluster/junkengine/util/INameFilter;)Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;

    move-result-object v4

    .line 592
    if-eqz v4, :cond_5

    .line 595
    :try_start_c
    invoke-interface {v4}, Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;->getFileNameList()Lcom/cm/plugincluster/junkengine/util/path/IKStringList;
    :try_end_f
    .catchall {:try_start_c .. :try_end_f} :catchall_95

    move-result-object v1

    .line 596
    if-eqz v1, :cond_50

    .line 597
    if-eqz p0, :cond_4c

    .line 598
    :try_start_14
    invoke-interface {v1}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->iterator()Ljava/util/Iterator;

    move-result-object v5

    :goto_18
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_4c

    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 599
    new-instance v6, Lcom/cleanmaster/base/a$a;

    new-instance v7, Ljava/lang/StringBuilder;

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

    invoke-static {p2}, Lcom/cleanmaster/hpsharelib/base/util/io/FileUtils;->addSlash(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

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

    move-result-object v7

    invoke-virtual {v7, v0}, 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

    invoke-direct {v6, v0}, Lcom/cleanmaster/base/a$a;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_41
    .catchall {:try_start_14 .. :try_end_41} :catchall_42

    goto :goto_18

    .line 617
    :catchall_42
    move-exception v0

    :goto_43
    if-eqz v1, :cond_48

    .line 618
    invoke-interface {v1}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->release()V

    .line 621
    :cond_48
    invoke-interface {v4}, Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;->release()V

    throw v0

    .line 602
    :cond_4c
    :try_start_4c
    invoke-interface {v1}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->release()V

    move-object v1, v2

    .line 606
    :cond_50
    invoke-interface {v4}, Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;->getFolderNameList()Lcom/cm/plugincluster/junkengine/util/path/IKStringList;

    move-result-object v1

    .line 607
    if-eqz v1, :cond_8b

    .line 608
    invoke-interface {v1}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_5a
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_8b

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 609
    new-instance v5, Ljava/lang/StringBuilder;

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

    invoke-static {p2}, Lcom/cleanmaster/hpsharelib/base/util/io/FileUtils;->addSlash(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

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

    move-result-object v5

    invoke-virtual {v5, v0}, 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

    .line 610
    if-eqz p1, :cond_85

    .line 611
    new-instance v5, Lcom/cleanmaster/base/a$a;

    invoke-direct {v5, v0}, Lcom/cleanmaster/base/a$a;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 613
    :cond_85
    add-int/lit8 v5, v3, -0x1

    invoke-static {p0, p1, v0, p3, v5}, Lcom/cleanmaster/base/a;->a(Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/lang/String;Lcom/cm/plugincluster/junkengine/util/INameFilter;I)V
    :try_end_8a
    .catchall {:try_start_4c .. :try_end_8a} :catchall_42

    goto :goto_5a

    .line 617
    :cond_8b
    if-eqz v1, :cond_90

    .line 618
    invoke-interface {v1}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->release()V

    .line 621
    :cond_90
    invoke-interface {v4}, Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;->release()V

    goto/16 :goto_5

    .line 617
    :catchall_95
    move-exception v0

    move-object v1, v2

    goto :goto_43
.end method

.method private static a(Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/lang/String;Lcom/cm/plugincluster/junkengine/util/INameFilter;JJLjava/util/concurrent/atomic/AtomicBoolean;)V
    .registers 27
    .annotation build Landroid/annotation/TargetApi;
        value = 0xb
    .end annotation

    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/cleanmaster/base/a$a;",
            ">;",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/cleanmaster/base/a$a;",
            ">;",
            "Ljava/lang/String;",
            "Lcom/cm/plugincluster/junkengine/util/INameFilter;",
            "JJ",
            "Ljava/util/concurrent/atomic/AtomicBoolean;",
            ")V"
        }
    .end annotation

    .prologue
    .line 631
    const-string v5, "_data > ? AND _data < ? and title!=\'.nomedia\'"

    .line 633
    if-eqz p0, :cond_f4

    if-eqz p1, :cond_f4

    .line 640
    :goto_6
    const/4 v2, 0x0

    move-object/from16 v0, p8

    invoke-virtual {v0, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V

    .line 641
    const/4 v8, 0x0

    .line 642
    const/4 v2, 0x5

    new-array v4, v2, [Ljava/lang/String;

    const/4 v2, 0x0

    const-string v3, "_data"

    aput-object v3, v4, v2

    const/4 v2, 0x1

    const-string v3, "format"

    aput-object v3, v4, v2

    const/4 v2, 0x2

    const-string v3, "date_modified"

    aput-object v3, v4, v2

    const/4 v2, 0x3

    const-string v3, "_size"

    aput-object v3, v4, v2

    const/4 v2, 0x4

    const-string v3, "mime_type"

    aput-object v3, v4, v2

    .line 650
    :try_start_29
    invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v2

    const-string v3, "external"

    .line 651
    invoke-static {v3}, Landroid/provider/MediaStore$Files;->getContentUri(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v3

    const/4 v6, 0x2

    new-array v6, v6, [Ljava/lang/String;

    const/4 v7, 0x0

    .line 652
    invoke-static/range {p2 .. p2}, Lcom/cleanmaster/hpsharelib/base/util/io/FileUtils;->addSlash(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    aput-object v9, v6, v7

    const/4 v7, 0x1

    invoke-static/range {p2 .. p2}, Lcom/cleanmaster/hpsharelib/base/util/io/FileUtils;->replaceEndSlashBy0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    aput-object v9, v6, v7

    new-instance v7, Ljava/lang/StringBuilder;

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

    const-string v9, "_id limit "

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

    move-result-object v7

    move-wide/from16 v0, p4

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

    move-result-object v7

    const-string v9, " offset "

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

    move-result-object v7

    move-wide/from16 v0, p6

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

    move-result-object v7

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

    move-result-object v7

    .line 651
    invoke-virtual/range {v2 .. v7}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;
    :try_end_6c
    .catch Ljava/lang/Exception; {:try_start_29 .. :try_end_6c} :catch_165
    .catchall {:try_start_29 .. :try_end_6c} :catchall_150

    move-result-object v16

    .line 653
    if-eqz v16, :cond_e8

    :try_start_6f
    invoke-interface/range {v16 .. v16}, Landroid/database/Cursor;->moveToFirst()Z

    move-result v2

    if-eqz v2, :cond_e8

    .line 654
    invoke-interface/range {v16 .. v16}, Landroid/database/Cursor;->getCount()I

    move-result v2

    int-to-long v2, v2

    cmp-long v2, v2, p4

    if-nez v2, :cond_84

    .line 655
    const/4 v2, 0x1

    move-object/from16 v0, p8

    invoke-virtual {v0, v2}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V

    .line 658
    :cond_84
    const/4 v2, 0x0

    move-object/from16 v0, v16

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v3

    .line 659
    const/4 v2, 0x1

    move-object/from16 v0, v16

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v8

    .line 660
    const/4 v2, 0x2

    move-object/from16 v0, v16

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v4

    .line 661
    const/4 v2, 0x3

    move-object/from16 v0, v16

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v6

    .line 662
    const/4 v2, 0x4

    move-object/from16 v0, v16

    invoke-interface {v0, v2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v10

    .line 663
    const-wide/16 v12, 0x3001

    cmp-long v2, v8, v12

    if-nez v2, :cond_120

    const/4 v2, 0x1

    move v8, v2

    .line 665
    :goto_af
    if-eqz p0, :cond_b3

    if-eqz v8, :cond_b7

    :cond_b3
    if-eqz p1, :cond_e2

    if-eqz v8, :cond_e2

    .line 666
    :cond_b7
    const/4 v2, 0x1

    .line 667
    if-eqz p3, :cond_d4

    .line 668
    const/16 v9, 0x2f

    invoke-virtual {v3, v9}, Ljava/lang/String;->lastIndexOf(I)I

    move-result v9

    .line 669
    const/4 v11, -0x1

    if-eq v9, v11, :cond_d4

    .line 670
    const/4 v2, 0x0

    invoke-virtual {v3, v2, v9}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v2

    add-int/lit8 v9, v9, 0x1

    invoke-virtual {v3, v9}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v9

    move-object/from16 v0, p3

    invoke-interface {v0, v2, v9, v8}, Lcom/cm/plugincluster/junkengine/util/INameFilter;->accept(Ljava/lang/String;Ljava/lang/String;Z)Z

    move-result v2

    .line 673
    :cond_d4
    if-eqz v2, :cond_e2

    .line 674
    if-eqz v8, :cond_123

    .line 675
    new-instance v2, Lcom/cleanmaster/base/a$a;

    invoke-direct {v2, v3}, Lcom/cleanmaster/base/a$a;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p1

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 685
    :cond_e2
    :goto_e2
    invoke-interface/range {v16 .. v16}, Landroid/database/Cursor;->moveToNext()Z
    :try_end_e5
    .catch Ljava/lang/Exception; {:try_start_6f .. :try_end_e5} :catch_13e
    .catchall {:try_start_6f .. :try_end_e5} :catchall_15f

    move-result v2

    if-nez v2, :cond_84

    .line 690
    :cond_e8
    if-eqz v16, :cond_f3

    invoke-interface/range {v16 .. v16}, Landroid/database/Cursor;->isClosed()Z

    move-result v2

    if-nez v2, :cond_f3

    .line 691
    invoke-interface/range {v16 .. v16}, Landroid/database/Cursor;->close()V

    .line 695
    :cond_f3
    :goto_f3
    return-void

    .line 635
    :cond_f4
    if-eqz p0, :cond_10b

    .line 636
    new-instance v2, Ljava/lang/StringBuilder;

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

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

    move-result-object v2

    const-string v3, " AND format != 12289"

    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 v5

    goto/16 :goto_6

    .line 638
    :cond_10b
    new-instance v2, Ljava/lang/StringBuilder;

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

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

    move-result-object v2

    const-string v3, " AND format = 12289"

    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 v5

    goto/16 :goto_6

    .line 663
    :cond_120
    const/4 v2, 0x0

    move v8, v2

    goto :goto_af

    .line 677
    :cond_123
    if-eqz p3, :cond_12a

    move-object/from16 v2, p3

    .line 678
    :try_start_127
    invoke-interface/range {v2 .. v7}, Lcom/cm/plugincluster/junkengine/util/INameFilter;->onFile(Ljava/lang/String;JJ)V

    .line 680
    :cond_12a
    new-instance v8, Lcom/cleanmaster/base/a$a;

    .line 681
    invoke-static {v10}, Lcom/cleanmaster/base/a$a;->a(Ljava/lang/String;)I

    move-result v14

    sget-byte v15, Lcom/cleanmaster/base/a$a;->f:B

    move-object v9, v3

    move-wide v10, v6

    move-wide v12, v4

    invoke-direct/range {v8 .. v15}, Lcom/cleanmaster/base/a$a;-><init>(Ljava/lang/String;JJIB)V

    .line 680
    move-object/from16 v0, p0

    invoke-virtual {v0, v8}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_13d
    .catch Ljava/lang/Exception; {:try_start_127 .. :try_end_13d} :catch_13e
    .catchall {:try_start_127 .. :try_end_13d} :catchall_15f

    goto :goto_e2

    .line 687
    :catch_13e
    move-exception v2

    move-object/from16 v3, v16

    .line 688
    :goto_141
    :try_start_141
    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_144
    .catchall {:try_start_141 .. :try_end_144} :catchall_161

    .line 690
    if-eqz v3, :cond_f3

    invoke-interface {v3}, Landroid/database/Cursor;->isClosed()Z

    move-result v2

    if-nez v2, :cond_f3

    .line 691
    invoke-interface {v3}, Landroid/database/Cursor;->close()V

    goto :goto_f3

    .line 690
    :catchall_150
    move-exception v2

    move-object/from16 v16, v8

    :goto_153
    if-eqz v16, :cond_15e

    invoke-interface/range {v16 .. v16}, Landroid/database/Cursor;->isClosed()Z

    move-result v3

    if-nez v3, :cond_15e

    .line 691
    invoke-interface/range {v16 .. v16}, Landroid/database/Cursor;->close()V

    .line 692
    :cond_15e
    throw v2

    .line 690
    :catchall_15f
    move-exception v2

    goto :goto_153

    :catchall_161
    move-exception v2

    move-object/from16 v16, v3

    goto :goto_153

    .line 687
    :catch_165
    move-exception v2

    move-object v3, v8

    goto :goto_141
.end method

.method public static a(Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/util/List;Ljava/util/HashMap;ZI)V
    .registers 13
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/cleanmaster/base/a$a;",
            ">;",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/cleanmaster/base/a$a;",
            ">;",
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/Object;",
            "Ljava/lang/Integer;",
            ">;ZI)V"
        }
    .end annotation

    .prologue
    .line 139
    const/4 v6, 0x0

    move-object v0, p0

    move-object v1, p1

    move-object v2, p2

    move-object v3, p3

    move v4, p4

    move v5, p5

    invoke-static/range {v0 .. v6}, Lcom/cleanmaster/base/a;->a(Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/util/List;Ljava/util/HashMap;ZIZ)V

    .line 140
    return-void
.end method

.method public static a(Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/util/List;Ljava/util/HashMap;ZIZ)V
    .registers 12
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/cleanmaster/base/a$a;",
            ">;",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/cleanmaster/base/a$a;",
            ">;",
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/Object;",
            "Ljava/lang/Integer;",
            ">;ZIZ)V"
        }
    .end annotation

    .prologue
    .line 510
    if-nez p0, :cond_4

    if-eqz p1, :cond_a

    :cond_4
    if-eqz p3, :cond_a

    if-eqz p2, :cond_a

    if-nez p5, :cond_b

    .line 583
    :cond_a
    return-void

    .line 514
    :cond_b
    new-instance v1, Lcom/cleanmaster/base/c;

    invoke-direct {v1, p3, p4}, Lcom/cleanmaster/base/c;-><init>(Ljava/util/HashMap;Z)V

    .line 575
    invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_14
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_a

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 576
    new-instance v3, Ljava/io/File;

    invoke-direct {v3, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    sput-object v3, Lcom/cleanmaster/base/a;->c:Ljava/io/File;

    .line 577
    if-eqz p6, :cond_33

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

    const/16 v4, 0xb

    if-lt v3, v4, :cond_33

    .line 578
    invoke-static {p0, p1, v0, v1}, Lcom/cleanmaster/base/a;->a(Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/lang/String;Lcom/cm/plugincluster/junkengine/util/INameFilter;)V

    goto :goto_14

    .line 580
    :cond_33
    invoke-static {p0, p1, v0, v1, p5}, Lcom/cleanmaster/base/a;->a(Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/lang/String;Lcom/cm/plugincluster/junkengine/util/INameFilter;I)V

    goto :goto_14
.end method

.method public static a(ZLandroid/content/Context;Lcom/cm/plugincluster/common/IUpdateUIHelper;I)V
    .registers 8

    .prologue
    .line 1793
    invoke-static {p1}, Lcom/cleanmaster/hpsharelib/base/util/net/NetworkUtil;->IsNetworkAvailable(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_41

    .line 1794
    new-instance v0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;

    invoke-direct {v0, p1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 1795
    const v1, 0x7f0a1a7d

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

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Ljava/lang/Object;

    .line 1796
    const v1, 0x7f0a1a83

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

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Ljava/lang/Object;

    .line 1798
    const v1, 0x7f0a1a7e

    .line 1799
    invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    new-instance v2, Lcom/cleanmaster/base/g;

    invoke-direct {v2, p1}, Lcom/cleanmaster/base/g;-><init>(Landroid/content/Context;)V

    .line 1798
    invoke-virtual {v0, v1, v2}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Ljava/lang/Object;

    .line 1806
    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->enableShowWithSuitableHeight(Z)Ljava/lang/Object;

    .line 1807
    const v1, 0x7f0a1a7b

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

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Ljava/lang/Object;

    .line 1809
    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->show()Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;

    .line 1821
    :goto_40
    return-void

    .line 1814
    :cond_41
    if-nez p2, :cond_48

    .line 1815
    new-instance p2, Lcom/keniu/security/update/y;

    invoke-direct {p2, p1, p3}, Lcom/keniu/security/update/y;-><init>(Landroid/content/Context;I)V

    .line 1816
    :cond_48
    invoke-interface {p2, p0}, Lcom/cm/plugincluster/common/IUpdateUIHelper;->startCommonCheck(Z)V

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

    move-result-object v0

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

    move-result-wide v2

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

    goto :goto_40
.end method

.method public static a(ZLandroid/content/Context;Lcom/keniu/security/update/y;I)V
    .registers 8

    .prologue
    .line 1760
    invoke-static {p1}, Lcom/cleanmaster/hpsharelib/base/util/net/NetworkUtil;->IsNetworkAvailable(Landroid/content/Context;)Z

    move-result v0

    if-nez v0, :cond_41

    .line 1761
    new-instance v0, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;

    invoke-direct {v0, p1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 1762
    const v1, 0x7f0a1a7d

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

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Ljava/lang/Object;

    .line 1763
    const v1, 0x7f0a1a83

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

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Ljava/lang/Object;

    .line 1765
    const v1, 0x7f0a1a7e

    .line 1766
    invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    new-instance v2, Lcom/cleanmaster/base/f;

    invoke-direct {v2, p1}, Lcom/cleanmaster/base/f;-><init>(Landroid/content/Context;)V

    .line 1765
    invoke-virtual {v0, v1, v2}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Ljava/lang/Object;

    .line 1773
    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->enableShowWithSuitableHeight(Z)Ljava/lang/Object;

    .line 1774
    const v1, 0x7f0a1a7b

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

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Ljava/lang/Object;

    .line 1776
    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog$Builder;->show()Lcom/cleanmaster/hpsharelib/ui/dlg/alert/MyAlertDialog;

    .line 1788
    :goto_40
    return-void

    .line 1781
    :cond_41
    if-nez p2, :cond_48

    .line 1782
    new-instance p2, Lcom/keniu/security/update/y;

    invoke-direct {p2, p1, p3}, Lcom/keniu/security/update/y;-><init>(Landroid/content/Context;I)V

    .line 1783
    :cond_48
    invoke-virtual {p2, p0}, Lcom/keniu/security/update/y;->startCommonCheck(Z)V

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

    move-result-object v0

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

    move-result-wide v2

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

    goto :goto_40
.end method

.method public static a()Z
    .registers 8
    .annotation build Landroid/annotation/TargetApi;
        value = 0xc
    .end annotation

    .prologue
    const/4 v2, 0x0

    .line 308
    sget-object v0, Lcom/cleanmaster/base/a;->b:Ljava/lang/Boolean;

    if-eqz v0, :cond_c

    .line 309
    sget-object v0, Lcom/cleanmaster/base/a;->b:Ljava/lang/Boolean;

    invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    .line 359
    :goto_b
    return v0

    .line 311
    :cond_c
    const/4 v1, 0x1

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

    const/16 v3, 0x13

    if-ge v0, v3, :cond_1c

    move v0, v1

    .line 358
    :goto_14
    new-instance v1, Ljava/lang/Boolean;

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

    sput-object v1, Lcom/cleanmaster/base/a;->b:Ljava/lang/Boolean;

    goto :goto_b

    .line 317
    :cond_1c
    const-string v0, "android.permission.WRITE_EXTERNAL_STORAGE"

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

    move-result v0

    if-nez v0, :cond_26

    move v0, v2

    .line 319
    goto :goto_14

    .line 322
    :cond_26
    new-instance v0, Lcom/cleanmaster/hpsharelib/base/util/io/StorageList;

    invoke-direct {v0}, Lcom/cleanmaster/hpsharelib/base/util/io/StorageList;-><init>()V

    .line 323
    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/util/io/StorageList;->getMountedVolumePaths()Ljava/util/ArrayList;

    move-result-object v0

    .line 324
    if-eqz v0, :cond_37

    invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v3

    if-eqz v3, :cond_55

    .line 325
    :cond_37
    invoke-static {}, Landroid/os/Environment;->getExternalStorageState()Ljava/lang/String;

    move-result-object v0

    const-string v3, "mounted"

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

    move-result v0

    if-nez v0, :cond_45

    move v0, v1

    .line 327
    goto :goto_14

    .line 329
    :cond_45
    new-instance v0, Ljava/util/ArrayList;

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

    .line 330
    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v3

    invoke-virtual {v3}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 333
    :cond_55
    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v3

    const/4 v4, 0x2

    if-ge v3, v4, :cond_5e

    move v0, v1

    .line 334
    goto :goto_14

    .line 338
    :cond_5e
    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_62
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_d7

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 339
    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v4

    invoke-virtual {v4}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v4

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

    move-result v4

    if-nez v4, :cond_62

    .line 340
    new-instance v4, Ljava/io/File;

    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v5, ".CleanMaster"

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

    move-result-object v3

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

    move-result-wide v6

    invoke-virtual {v3, v6, v7}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v5, ".tmp"

    invoke-virtual {v3, v5}, 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

    invoke-direct {v4, v0, v3}, Ljava/io/File;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 343
    :try_start_9e
    invoke-virtual {v4}, Ljava/io/File;->createNewFile()Z
    :try_end_a1
    .catch Ljava/io/IOException; {:try_start_9e .. :try_end_a1} :catch_aa

    move-result v3

    .line 347
    :goto_a2
    if-eqz v3, :cond_b0

    .line 348
    invoke-virtual {v4}, Ljava/io/File;->delete()Z

    move v0, v1

    goto/16 :goto_14

    .line 344
    :catch_aa
    move-exception v3

    .line 345
    invoke-virtual {v3}, Ljava/io/IOException;->printStackTrace()V

    move v3, v2

    goto :goto_a2

    .line 351
    :cond_b0
    const-string v1, "Del2SD"

    new-instance v3, Ljava/lang/StringBuilder;

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

    const-string v4, "SDK:"

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

    move-result-object v3

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

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

    move-result-object v3

    const-string v4, " SecondSdCard not write! SecondSdCardPath:"

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

    move-result-object v3

    invoke-virtual {v3, v0}, 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

    invoke-static {v1, v0}, Lcom/cleanmaster/hpsharelib/utils/OpLog;->x(Ljava/lang/String;Ljava/lang/String;)V

    move v0, v2

    .line 353
    goto/16 :goto_14

    :cond_d7
    move v0, v1

    goto/16 :goto_14
.end method

.method public static a(Landroid/app/Activity;Landroid/content/Intent;I)Z
    .registers 5

    .prologue
    const/4 v1, 0x0

    .line 1108
    const/4 v0, 0x1

    .line 1110
    :try_start_2
    invoke-virtual {p0, p1, p2}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V
    :try_end_5
    .catch Landroid/content/ActivityNotFoundException; {:try_start_2 .. :try_end_5} :catch_6
    .catch Ljava/lang/SecurityException; {:try_start_2 .. :try_end_5} :catch_9
    .catch Ljava/lang/NullPointerException; {:try_start_2 .. :try_end_5} :catch_c

    .line 1118
    :goto_5
    return v0

    .line 1111
    :catch_6
    move-exception v0

    move v0, v1

    .line 1117
    goto :goto_5

    .line 1113
    :catch_9
    move-exception v0

    move v0, v1

    .line 1117
    goto :goto_5

    .line 1115
    :catch_c
    move-exception v0

    move v0, v1

    .line 1116
    goto :goto_5
.end method

.method public static a(Landroid/content/Context;Landroid/content/Intent;)Z
    .registers 7

    .prologue
    const/high16 v4, 0x10000000

    const/4 v0, 0x1

    .line 1122
    const/4 v1, 0x0

    .line 1124
    :try_start_4
    instance-of v2, p0, Landroid/app/Activity;

    if-nez v2, :cond_d

    .line 1125
    const/high16 v2, 0x10000000

    invoke-virtual {p1, v2}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 1127
    :cond_d
    invoke-virtual {p0, p1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
    :try_end_10
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_10} :catch_11

    .line 1139
    :goto_10
    return v0

    .line 1129
    :catch_11
    move-exception v2

    .line 1130
    instance-of v3, v2, Landroid/util/AndroidRuntimeException;

    if-eqz v3, :cond_2c

    .line 1131
    invoke-virtual {v2}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v2

    const-string v3, "FLAG_ACTIVITY_NEW_TASK"

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

    move-result v2

    if-eqz v2, :cond_2c

    .line 1132
    invoke-virtual {p1, v4}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 1134
    :try_start_25
    invoke-virtual {p0, p1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
    :try_end_28
    .catch Ljava/lang/Exception; {:try_start_25 .. :try_end_28} :catch_29

    goto :goto_10

    .line 1136
    :catch_29
    move-exception v0

    move v0, v1

    goto :goto_10

    :cond_2c
    move v0, v1

    goto :goto_10
.end method

.method public static a(Landroid/content/Context;Landroid/content/Intent;III)Z
    .registers 10

    .prologue
    const/4 v2, 0x1

    .line 1175
    const/4 v3, 0x0

    .line 1177
    if-lez p4, :cond_11

    :try_start_4
    instance-of v1, p0, Landroid/app/Activity;

    if-eqz v1, :cond_11

    .line 1178
    move-object v0, p0

    check-cast v0, Landroid/app/Activity;

    move-object v1, v0

    invoke-virtual {v1, p1, p4}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    :goto_f
    move v1, v2

    .line 1198
    :goto_10
    return v1

    .line 1180
    :cond_11
    invoke-virtual {p0, p1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
    :try_end_14
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_14} :catch_15

    goto :goto_f

    .line 1183
    :catch_15
    move-exception v1

    .line 1184
    instance-of v4, v1, Landroid/util/AndroidRuntimeException;

    if-eqz v4, :cond_3b

    .line 1185
    invoke-virtual {v1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v1

    const-string v4, "FLAG_ACTIVITY_NEW_TASK"

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

    move-result v1

    if-eqz v1, :cond_3b

    .line 1186
    const/high16 v1, 0x10000000

    invoke-virtual {p1, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 1188
    if-lez p4, :cond_34

    .line 1189
    :try_start_2d
    check-cast p0, Landroid/app/Activity;

    invoke-virtual {p0, p1, p4}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V

    :goto_32
    move v1, v2

    .line 1195
    goto :goto_10

    .line 1191
    :cond_34
    invoke-virtual {p0, p1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
    :try_end_37
    .catch Ljava/lang/Exception; {:try_start_2d .. :try_end_37} :catch_38

    goto :goto_32

    .line 1194
    :catch_38
    move-exception v1

    move v1, v3

    goto :goto_10

    :cond_3b
    move v1, v3

    goto :goto_10
.end method

.method public static a(Landroid/content/Context;Landroid/graphics/Bitmap;Ljava/lang/CharSequence;Ljava/lang/CharSequence;IILandroid/content/Intent;)Z
    .registers 11
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    .prologue
    const/4 v3, 0x1

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

    const/16 v1, 0x10

    if-ge v0, v1, :cond_9

    .line 1977
    const/4 v0, 0x0

    .line 1993
    :goto_8
    return v0

    .line 1980
    :cond_9
    new-instance v0, Landroid/widget/RemoteViews;

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

    move-result-object v1

    const v2, 0x7f040093

    invoke-direct {v0, v1, v2}, Landroid/widget/RemoteViews;-><init>(Ljava/lang/String;I)V

    .line 1981
    const v1, 0x7f10039b

    invoke-virtual {v0, v1, p1}, Landroid/widget/RemoteViews;->setImageViewBitmap(ILandroid/graphics/Bitmap;)V

    .line 1983
    new-instance v1, Lcom/cm/plugincluster/common/notification/define/NotificationModel;

    invoke-direct {v1}, Lcom/cm/plugincluster/common/notification/define/NotificationModel;-><init>()V

    .line 1984
    iput v3, v1, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mLeftIconType:I

    .line 1985
    iput-object p6, v1, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mIntent:Landroid/content/Intent;

    .line 1986
    iput-object p2, v1, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mTitle:Ljava/lang/CharSequence;

    .line 1987
    iput-object p2, v1, Lcom/cm/plugincluster/common/notification/define/NotificationModel;->mTickerTitle:Ljava/lang/CharSequence;

    .line 1989
    new-instance v2, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;

    invoke-direct {v2}, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;-><init>()V

    .line 1990
    iput v3, v2, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;->mIntentType:I

    .line 1991
    iput p5, v2, Lcom/cm/plugincluster/common/notification/define/NotificationSetting;->mNotifyId:I

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

    move-result-object v3

    invoke-virtual {v3, v2, v1, v0}, Lcom/cleanmaster/notification/af;->b(Lcom/cm/plugincluster/common/notification/define/NotificationSetting;Lcom/cm/plugincluster/common/notification/define/NotificationModel;Landroid/widget/RemoteViews;)Z

    move-result v0

    goto :goto_8
.end method

.method private static a(Ljava/lang/String;)Z
    .registers 6

    .prologue
    const/4 v0, 0x0

    .line 1235
    if-eqz p0, :cond_9

    invoke-virtual {p0}, Ljava/lang/String;->isEmpty()Z

    move-result v1

    if-eqz v1, :cond_a

    .line 1243
    :cond_9
    :goto_9
    return v0

    .line 1238
    :cond_a
    sget-object v2, Lcom/cleanmaster/base/a;->d:[Ljava/lang/String;

    array-length v3, v2

    move v1, v0

    :goto_e
    if-ge v1, v3, :cond_9

    aget-object v4, v2, v1

    .line 1239
    invoke-virtual {p0, v4}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_1a

    .line 1240
    const/4 v0, 0x1

    goto :goto_9

    .line 1238
    :cond_1a
    add-int/lit8 v1, v1, 0x1

    goto :goto_e
.end method

.method public static a(Ljava/util/List;Lcom/cm/plugincluster/softmgr/interfaces/junk/IDelCallback;)Z
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;",
            "Lcom/cm/plugincluster/softmgr/interfaces/junk/IDelCallback;",
            ")Z"
        }
    .end annotation

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

    const/4 v1, 0x0

    invoke-static {p0, p1, v0, v1}, Lcom/cleanmaster/base/a;->a(Ljava/util/List;Lcom/cm/plugincluster/softmgr/interfaces/junk/IDelCallback;Lcom/cm/plugincluster/junkengine/junk/engine/IEngineConfig;Z)Z

    move-result v0

    return v0
.end method

.method public static a(Ljava/util/List;Lcom/cm/plugincluster/softmgr/interfaces/junk/IDelCallback;Lcom/cm/plugincluster/junkengine/junk/engine/IEngineConfig;Z)Z
    .registers 20
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;",
            "Lcom/cm/plugincluster/softmgr/interfaces/junk/IDelCallback;",
            "Lcom/cm/plugincluster/junkengine/junk/engine/IEngineConfig;",
            "Z)Z"
        }
    .end annotation

    .prologue
    .line 183
    if-eqz p1, :cond_a

    invoke-interface/range {p1 .. p1}, Lcom/cm/plugincluster/softmgr/interfaces/junk/IDelCallback;->getEnableFlags()I

    move-result v2

    and-int/lit8 v2, v2, 0x1

    if-nez v2, :cond_20

    .line 184
    :cond_a
    if-eqz p0, :cond_20

    invoke-interface/range {p0 .. p0}, Ljava/util/List;->isEmpty()Z

    move-result v2

    if-nez v2, :cond_20

    .line 185
    const-string v3, "NDFo"

    const/4 v2, 0x0

    move-object/from16 v0, p0

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    invoke-static {v3, v2}, Lcom/cleanmaster/hpsharelib/utils/OpLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 188
    :cond_20
    const/4 v2, 0x6

    new-array v2, v2, [I

    .line 189
    const/4 v3, 0x0

    invoke-static {v2, v3}, Ljava/util/Arrays;->fill([II)V

    .line 190
    const/4 v4, 0x0

    .line 191
    const/4 v3, 0x0

    .line 192
    const/4 v6, 0x0

    .line 193
    const/4 v7, 0x0

    .line 194
    const/4 v8, 0x0

    .line 195
    const/4 v9, 0x0

    .line 196
    if-eqz p1, :cond_47

    .line 197
    invoke-interface/range {p1 .. p1}, Lcom/cm/plugincluster/softmgr/interfaces/junk/IDelCallback;->getDelFlags()I

    move-result v4

    .line 198
    invoke-interface/range {p1 .. p1}, Lcom/cm/plugincluster/softmgr/interfaces/junk/IDelCallback;->getDelFileTimeLimit()I

    move-result v3

    .line 199
    invoke-interface/range {p1 .. p1}, Lcom/cm/plugincluster/softmgr/interfaces/junk/IDelCallback;->getFileWhiteList()Ljava/util/List;

    move-result-object v6

    .line 200
    invoke-interface/range {p1 .. p1}, Lcom/cm/plugincluster/softmgr/interfaces/junk/IDelCallback;->getFolderWhiteList()Ljava/util/List;

    move-result-object v7

    .line 201
    invoke-interface/range {p1 .. p1}, Lcom/cm/plugincluster/softmgr/interfaces/junk/IDelCallback;->getFeedbackFileList()Ljava/util/List;

    move-result-object v8

    .line 202
    invoke-interface/range {p1 .. p1}, Lcom/cm/plugincluster/softmgr/interfaces/junk/IDelCallback;->getFeedbackFolderList()Ljava/util/List;

    move-result-object v9

    .line 204
    :cond_47
    new-instance v5, Lcom/cleanmaster/hpsharelib/base/util/io/StorageList;

    invoke-direct {v5}, Lcom/cleanmaster/hpsharelib/base/util/io/StorageList;-><init>()V

    invoke-virtual {v5}, Lcom/cleanmaster/hpsharelib/base/util/io/StorageList;->getMountedVolumePaths()Ljava/util/ArrayList;

    move-result-object v14

    .line 206
    const v5, 0xffff

    if-ne v3, v5, :cond_95

    .line 207
    const/4 v5, 0x0

    .line 209
    :goto_56
    new-instance v10, Lcom/cleanmaster/base/b;

    move-object/from16 v0, p1

    move/from16 v1, p3

    invoke-direct {v10, v0, v1}, Lcom/cleanmaster/base/b;-><init>(Lcom/cm/plugincluster/softmgr/interfaces/junk/IDelCallback;Z)V

    .line 289
    invoke-static {}, Lcom/cleanmaster/base/a;->a()Z

    move-result v11

    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v3

    invoke-virtual {v3}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v12

    move-object/from16 v3, p0

    move-object/from16 v13, p2

    move/from16 v15, p3

    .line 209
    invoke-static/range {v2 .. v15}, Lcom/cleanmaster/util/path/PathOperFunc;->deleteFileOrFolderWithConfig([ILjava/util/List;IILjava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;Lcom/cleanmaster/util/IPathCallback;ZLjava/lang/String;Lcom/cm/plugincluster/junkengine/junk/engine/IEngineConfig;Ljava/util/List;Z)Z

    move-result v8

    .line 291
    if-eqz p1, :cond_94

    invoke-interface/range {p1 .. p1}, Lcom/cm/plugincluster/softmgr/interfaces/junk/IDelCallback;->getEnableFlags()I

    move-result v3

    and-int/lit8 v3, v3, 0x2

    const/4 v4, 0x2

    if-ne v3, v4, :cond_94

    .line 292
    const/4 v3, 0x1

    aget v3, v2, v3

    const/4 v4, 0x2

    aget v4, v2, v4

    const/4 v5, 0x3

    aget v5, v2, v5

    const/4 v6, 0x4

    aget v6, v2, v6

    const/4 v7, 0x5

    aget v7, v2, v7

    move-object/from16 v2, p1

    invoke-interface/range {v2 .. v7}, Lcom/cm/plugincluster/softmgr/interfaces/junk/IDelCallback;->afterDel(IIIII)V

    .line 295
    :cond_94
    return v8

    :cond_95
    move v5, v3

    goto :goto_56
.end method

.method public static a(Z)Z
    .registers 11

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x1

    .line 1583
    invoke-static {}, Lcom/keniu/security/aj;->c()Z

    move-result v0

    if-nez v0, :cond_9

    .line 1616
    :cond_8
    :goto_8
    return v1

    .line 1589
    :cond_9
    :try_start_9
    invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Lcom/utils/CommonUtils;->getAndroidId(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    .line 1590
    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v3

    add-int/lit8 v3, v3, -0x3

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v4

    add-int/lit8 v4, v4, -0x2

    invoke-virtual {v0, v3, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    const/16 v3, 0x10

    invoke-static {v0, v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;I)I
    :try_end_26
    .catch Ljava/lang/Exception; {:try_start_9 .. :try_end_26} :catch_7b

    move-result v0

    .line 1591
    const/4 v3, 0x4

    if-ne v0, v3, :cond_7f

    move v0, v1

    .line 1597
    :goto_2b
    const-string v3, "low_performance_policy_enable"

    const-string/jumbo v4, "selection_low_performance_policy"

    invoke-static {v3, v0, v4}, Lcom/cleanmaster/recommendapps/c;->a(Ljava/lang/String;ZLjava/lang/String;)Z

    move-result v0

    .line 1599
    if-eqz v0, :cond_8

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

    move-result-object v0

    invoke-static {v0}, Lcom/utils/CommonUtils;->getMCC(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    .line 1604
    if-eqz p0, :cond_4a

    if-eqz v0, :cond_4a

    const-string v3, "404,405"

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

    move-result v0

    if-nez v0, :cond_8

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

    move-result-wide v4

    const-wide/16 v6, 0x400

    div-long/2addr v4, v6

    .line 1609
    const-wide/32 v6, 0x100000

    cmp-long v0, v4, v6

    if-gtz v0, :cond_8

    .line 1610
    invoke-static {}, Lcom/keniu/security/aj;->d()J

    move-result-wide v4

    .line 1611
    const-string v0, "low_performance_new_user"

    const/16 v3, 0x48

    const-string/jumbo v6, "selection_low_performance_policy"

    invoke-static {v0, v3, v6}, Lcom/cleanmaster/recommendapps/c;->a(Ljava/lang/String;ILjava/lang/String;)I

    move-result v0

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

    move-result-wide v6

    sub-long v4, v6, v4

    mul-int/lit8 v0, v0, 0x3c

    mul-int/lit8 v0, v0, 0x3c

    int-to-long v6, v0

    const-wide/16 v8, 0x3e8

    mul-long/2addr v6, v8

    cmp-long v0, v4, v6

    if-gez v0, :cond_8

    move v1, v2

    .line 1613
    goto :goto_8

    .line 1594
    :catch_7b
    move-exception v0

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

    :cond_7f
    move v0, v2

    goto :goto_2b
.end method

.method public static b(Landroid/content/Context;Landroid/content/Intent;)I
    .registers 6

    .prologue
    const/4 v0, 0x0

    .line 1431
    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v2

    .line 1432
    const-string v1, "android.intent.category.DEFAULT"

    invoke-virtual {p1, v1}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    .line 1433
    const/4 v1, 0x0

    .line 1435
    const/4 v3, 0x0

    :try_start_c
    invoke-virtual {v2, p1, v3}, Landroid/content/pm/PackageManager;->queryIntentActivities(Landroid/content/Intent;I)Ljava/util/List;
    :try_end_f
    .catch Ljava/lang/Exception; {:try_start_c .. :try_end_f} :catch_13

    move-result-object v1

    .line 1441
    :goto_10
    if-nez v1, :cond_18

    .line 1444
    :goto_12
    return v0

    .line 1436
    :catch_13
    move-exception v2

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

    goto :goto_10

    .line 1444
    :cond_18
    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v0

    goto :goto_12
.end method

.method private static b(Ljava/lang/String;)Ljava/lang/String;
    .registers 9

    .prologue
    const/4 v0, 0x0

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

    move-result-object v1

    .line 2162
    if-nez v1, :cond_8

    .line 2191
    :goto_7
    return-object v0

    .line 2166
    :cond_8
    invoke-virtual {v1}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;

    move-result-object v1

    .line 2173
    :try_start_c
    invoke-virtual {v1, p0}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;
    :try_end_f
    .catch Ljava/io/IOException; {:try_start_c .. :try_end_f} :catch_30
    .catchall {:try_start_c .. :try_end_f} :catchall_5d

    move-result-object v3

    .line 2174
    if-eqz v3, :cond_83

    .line 2175
    :try_start_12
    new-instance v2, Ljava/io/InputStreamReader;

    invoke-direct {v2, v3}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V
    :try_end_17
    .catch Ljava/io/IOException; {:try_start_12 .. :try_end_17} :catch_7a
    .catchall {:try_start_12 .. :try_end_17} :catchall_6d

    .line 2176
    :try_start_17
    new-instance v1, Ljava/io/BufferedReader;

    invoke-direct {v1, v2}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;)V
    :try_end_1c
    .catch Ljava/io/IOException; {:try_start_17 .. :try_end_1c} :catch_7e
    .catchall {:try_start_17 .. :try_end_1c} :catchall_73

    .line 2177
    :try_start_1c
    invoke-virtual {v1}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;

    move-result-object v0

    .line 2178
    if-eqz v0, :cond_26

    .line 2179
    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;
    :try_end_25
    .catch Ljava/io/IOException; {:try_start_1c .. :try_end_25} :catch_81
    .catchall {:try_start_1c .. :try_end_25} :catchall_78

    move-result-object v0

    .line 2186
    :cond_26
    :goto_26
    invoke-static {v1}, Lcom/cleanmaster/hpsharelib/utils/io/IOUtils;->closeSilently(Ljava/io/Closeable;)V

    .line 2187
    invoke-static {v2}, Lcom/cleanmaster/hpsharelib/utils/io/IOUtils;->closeSilently(Ljava/io/Closeable;)V

    .line 2188
    invoke-static {v3}, Lcom/cleanmaster/hpsharelib/utils/io/IOUtils;->closeSilently(Ljava/io/Closeable;)V

    goto :goto_7

    .line 2182
    :catch_30
    move-exception v1

    move-object v1, v0

    move-object v2, v0

    move-object v3, v0

    .line 2183
    :goto_34
    :try_start_34
    sget-object v4, Ljava/lang/System;->err:Ljava/io/PrintStream;

    new-instance v5, Ljava/lang/StringBuilder;

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

    const-string v6, "Commons.readAssetsFileLineString :"

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

    move-result-object v5

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

    move-result-object v5

    const-string/jumbo v6, "\u9519\u8bef"

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

    move-result-object v5

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

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/io/PrintStream;->println(Ljava/lang/String;)V
    :try_end_53
    .catchall {:try_start_34 .. :try_end_53} :catchall_78

    .line 2186
    invoke-static {v1}, Lcom/cleanmaster/hpsharelib/utils/io/IOUtils;->closeSilently(Ljava/io/Closeable;)V

    .line 2187
    invoke-static {v2}, Lcom/cleanmaster/hpsharelib/utils/io/IOUtils;->closeSilently(Ljava/io/Closeable;)V

    .line 2188
    invoke-static {v3}, Lcom/cleanmaster/hpsharelib/utils/io/IOUtils;->closeSilently(Ljava/io/Closeable;)V

    goto :goto_7

    .line 2186
    :catchall_5d
    move-exception v1

    move-object v2, v0

    move-object v3, v0

    move-object v7, v1

    move-object v1, v0

    move-object v0, v7

    :goto_63
    invoke-static {v1}, Lcom/cleanmaster/hpsharelib/utils/io/IOUtils;->closeSilently(Ljava/io/Closeable;)V

    .line 2187
    invoke-static {v2}, Lcom/cleanmaster/hpsharelib/utils/io/IOUtils;->closeSilently(Ljava/io/Closeable;)V

    .line 2188
    invoke-static {v3}, Lcom/cleanmaster/hpsharelib/utils/io/IOUtils;->closeSilently(Ljava/io/Closeable;)V

    throw v0

    .line 2186
    :catchall_6d
    move-exception v1

    move-object v2, v0

    move-object v7, v0

    move-object v0, v1

    move-object v1, v7

    goto :goto_63

    :catchall_73
    move-exception v1

    move-object v7, v1

    move-object v1, v0

    move-object v0, v7

    goto :goto_63

    :catchall_78
    move-exception v0

    goto :goto_63

    .line 2182
    :catch_7a
    move-exception v1

    move-object v1, v0

    move-object v2, v0

    goto :goto_34

    :catch_7e
    move-exception v1

    move-object v1, v0

    goto :goto_34

    :catch_81
    move-exception v4

    goto :goto_34

    :cond_83
    move-object v1, v0

    move-object v2, v0

    goto :goto_26
.end method

.method public static b(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;)V
    .registers 3

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

    invoke-static {p0, p1, v0}, Lcom/cleanmaster/base/a;->b(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;I)V

    .line 729
    return-void
.end method

.method public static b(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;I)V
    .registers 9

    .prologue
    const/4 v2, 0x1

    .line 738
    if-eqz p1, :cond_b

    invoke-interface {p1}, Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;->getEnableFlags()I

    move-result v0

    and-int/lit8 v0, v0, 0x40

    if-nez v0, :cond_16

    .line 739
    :cond_b
    if-eqz p0, :cond_16

    .line 740
    const-string v0, "DFo"

    invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v1

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

    .line 743
    :cond_16
    const/4 v3, 0x0

    move-object v0, p0

    move-object v1, p1

    move v4, v2

    move v5, p2

    invoke-static/range {v0 .. v5}, Lcom/cleanmaster/base/a;->a(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;ZZZI)V

    .line 744
    return-void
.end method

.method public static b()Z
    .registers 4

    .prologue
    .line 915
    invoke-static {}, Lcom/cleanmaster/base/a;->l()Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfo;

    move-result-object v0

    .line 916
    if-eqz v0, :cond_10

    iget-wide v0, v0, Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfo;->allSize:J

    const-wide/16 v2, 0x0

    cmp-long v0, v0, v2

    if-eqz v0, :cond_10

    const/4 v0, 0x1

    :goto_f
    return v0

    :cond_10
    const/4 v0, 0x0

    goto :goto_f
.end method

.method public static b(Landroid/content/Context;)Z
    .registers 2

    .prologue
    .line 1067
    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;->getGoWidgetId()Ljava/lang/String;

    move-result-object v0

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

    move-result v0

    if-nez v0, :cond_10

    .line 1069
    const/4 v0, 0x1

    .line 1071
    :goto_f
    return v0

    :cond_10
    const/4 v0, 0x0

    goto :goto_f
.end method

.method private static b(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;ZI)Z
    .registers 12

    .prologue
    const v4, 0xffff

    const/4 v1, 0x1

    const/4 v2, 0x0

    .line 863
    if-eqz p1, :cond_ae

    .line 864
    invoke-interface {p1}, Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;->getEnableFlags()I

    move-result v0

    and-int/lit8 v0, v0, 0x8

    const/16 v3, 0x8

    if-ne v0, v3, :cond_1c

    .line 865
    invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v0}, Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;->beforeFileDel(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1c

    .line 910
    :cond_1b
    :goto_1b
    return v2

    .line 869
    :cond_1c
    if-lez p3, :cond_36

    if-eq p3, v4, :cond_36

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

    move-result-wide v4

    invoke-virtual {p0}, Ljava/io/File;->lastModified()J

    move-result-wide v6

    sub-long/2addr v4, v6

    mul-int/lit8 v0, p3, 0x18

    mul-int/lit8 v0, v0, 0x3c

    mul-int/lit8 v0, v0, 0x3c

    mul-int/lit16 v0, v0, 0x3e8

    int-to-long v6, v0

    cmp-long v0, v4, v6

    if-ltz v0, :cond_1b

    .line 874
    :cond_36
    invoke-interface {p1}, Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;->getEnableFlags()I

    move-result v0

    and-int/lit8 v0, v0, 0x2

    const/4 v3, 0x2

    if-ne v0, v3, :cond_46

    .line 875
    invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v0}, Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;->notifyFileDel(Ljava/lang/String;)V

    .line 877
    :cond_46
    invoke-interface {p1}, Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;->getEnableFlags()I

    move-result v0

    and-int/lit8 v0, v0, 0x4

    const/4 v3, 0x4

    if-ne v0, v3, :cond_56

    .line 878
    invoke-virtual {p0}, Ljava/io/File;->length()J

    move-result-wide v4

    invoke-interface {p1, v4, v5}, Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;->notifyDeletedFileSize(J)V

    .line 888
    :cond_56
    invoke-virtual {p0}, Ljava/io/File;->delete()Z

    move-result v0

    if-nez v0, :cond_ca

    move v3, v1

    .line 889
    :goto_5d
    if-eqz v3, :cond_d2

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

    const/16 v4, 0x13

    if-lt v0, v4, :cond_d2

    .line 891
    :try_start_65
    new-instance v0, Lcom/cleanmaster/util/MediaFile;

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

    move-result-object v4

    invoke-virtual {v4}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v4

    invoke-direct {v0, v4, p0}, Lcom/cleanmaster/util/MediaFile;-><init>(Landroid/content/ContentResolver;Ljava/io/File;)V

    invoke-virtual {v0}, Lcom/cleanmaster/util/MediaFile;->delete()Z
    :try_end_75
    .catch Ljava/io/IOException; {:try_start_65 .. :try_end_75} :catch_ce

    move-result v0

    if-nez v0, :cond_cc

    move v0, v1

    .line 898
    :goto_79
    if-eqz v0, :cond_96

    if-eqz p2, :cond_96

    .line 899
    invoke-static {}, Lcom/cm/root/k;->a()Lcom/cm/root/k;

    move-result-object v3

    invoke-virtual {v3}, Lcom/cm/root/k;->checkRoot()Z

    move-result v3

    if-eqz v3, :cond_96

    .line 900
    invoke-static {}, Lcom/cm/root/k;->a()Lcom/cm/root/k;

    move-result-object v0

    invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Lcom/cm/root/k;->deleteFile(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_d4

    move v0, v1

    .line 904
    :cond_96
    :goto_96
    if-eqz p1, :cond_a9

    .line 905
    invoke-interface {p1}, Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;->getEnableFlags()I

    move-result v3

    and-int/lit8 v3, v3, 0x20

    const/16 v4, 0x20

    if-ne v3, v4, :cond_a9

    .line 906
    invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v3

    invoke-interface {p1, v3}, Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;->afterFileDel(Ljava/lang/String;)V

    .line 910
    :cond_a9
    if-nez v0, :cond_d6

    :goto_ab
    move v2, v1

    goto/16 :goto_1b

    .line 881
    :cond_ae
    if-lez p3, :cond_56

    if-eq p3, v4, :cond_56

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

    move-result-wide v4

    invoke-virtual {p0}, Ljava/io/File;->lastModified()J

    move-result-wide v6

    sub-long/2addr v4, v6

    mul-int/lit8 v0, p3, 0x18

    mul-int/lit8 v0, v0, 0x3c

    mul-int/lit8 v0, v0, 0x3c

    mul-int/lit16 v0, v0, 0x3e8

    int-to-long v6, v0

    cmp-long v0, v4, v6

    if-gez v0, :cond_56

    goto/16 :goto_1b

    :cond_ca
    move v3, v2

    .line 888
    goto :goto_5d

    :cond_cc
    move v0, v2

    .line 892
    goto :goto_79

    .line 893
    :catch_ce
    move-exception v0

    .line 894
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    :cond_d2
    move v0, v3

    goto :goto_79

    :cond_d4
    move v0, v2

    .line 900
    goto :goto_96

    :cond_d6
    move v1, v2

    .line 910
    goto :goto_ab
.end method

.method public static c(Landroid/content/Context;Landroid/content/Intent;)Ljava/lang/String;
    .registers 9

    .prologue
    const/4 v2, 0x0

    .line 1449
    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    .line 1450
    const-string v1, "android.intent.category.DEFAULT"

    invoke-virtual {p1, v1}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    .line 1451
    new-instance v1, Ljava/util/ArrayList;

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

    .line 1452
    new-instance v4, Ljava/util/ArrayList;

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

    .line 1453
    invoke-virtual {v0, v1, v4, v2}, Landroid/content/pm/PackageManager;->getPreferredActivities(Ljava/util/List;Ljava/util/List;Ljava/lang/String;)I

    .line 1454
    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v5

    .line 1455
    const/4 v0, 0x0

    move v3, v0

    :goto_1d
    if-ge v3, v5, :cond_60

    .line 1456
    invoke-interface {v1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/content/IntentFilter;

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

    move-result-object v6

    invoke-virtual {v0, v6}, Landroid/content/IntentFilter;->hasAction(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_5c

    .line 1457
    invoke-virtual {p1}, Landroid/content/Intent;->getCategories()Ljava/util/Set;

    move-result-object v0

    .line 1458
    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v6

    .line 1459
    invoke-interface {v6}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_5c

    .line 1460
    invoke-interface {v1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/content/IntentFilter;

    invoke-interface {v6}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

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

    move-result v0

    if-nez v0, :cond_51

    move-object v0, v2

    .line 1467
    :goto_50
    return-object v0

    .line 1463
    :cond_51
    invoke-interface {v4, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/content/ComponentName;

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

    move-result-object v0

    goto :goto_50

    .line 1455
    :cond_5c
    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto :goto_1d

    :cond_60
    move-object v0, v2

    .line 1467
    goto :goto_50
.end method

.method public static c(Landroid/content/Context;)V
    .registers 4

    .prologue
    .line 1548
    if-nez p0, :cond_3

    .line 1559
    :goto_2
    return-void

    .line 1552
    :cond_3
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/cleanmaster/ui/app/provider/download/DownloadService;

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

    .line 1553
    const-string v1, "key_check_download_thread"

    const/4 v2, 0x1

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

    .line 1555
    :try_start_10
    invoke-virtual {p0, v0}, Landroid/content/Context;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;
    :try_end_13
    .catch Ljava/lang/Exception; {:try_start_10 .. :try_end_13} :catch_14

    goto :goto_2

    .line 1556
    :catch_14
    move-exception v0

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

    goto :goto_2
.end method

.method public static c()Z
    .registers 1
    .annotation build Landroid/annotation/TargetApi;
        value = 0xb
    .end annotation

    .prologue
    .line 1203
    invoke-static {}, Lcom/cleanmaster/base/a;->d()Z

    move-result v0

    if-eqz v0, :cond_c

    invoke-static {}, Lcom/cleanmaster/base/a;->e()Z

    move-result v0

    if-nez v0, :cond_19

    :cond_c
    const-string/jumbo v0, "ro.build.fingerprint"

    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/report/BaseTracer;->SP1(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/base/a;->a(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1b

    :cond_19
    const/4 v0, 0x1

    :goto_1a
    return v0

    :cond_1b
    const/4 v0, 0x0

    goto :goto_1a
.end method

.method public static d(Landroid/content/Context;)V
    .registers 2

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

    invoke-static {p0, v0}, Lcom/cleanmaster/base/a;->a(Landroid/content/Context;Z)V

    .line 1827
    return-void
.end method

.method public static d()Z
    .registers 4

    .prologue
    const/4 v1, 0x1

    const/4 v0, 0x0

    .line 1251
    sget-object v2, Landroid/os/Build;->MANUFACTURER:Ljava/lang/String;

    const-string v3, "Xiaomi"

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

    move-result v2

    if-eqz v2, :cond_d

    .line 1283
    :cond_c
    :goto_c
    return v0

    .line 1255
    :cond_d
    sget-object v2, Landroid/os/Build;->MANUFACTURER:Ljava/lang/String;

    const-string v3, "huawei"

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

    move-result v2

    if-eqz v2, :cond_24

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

    move-result-object v2

    const-string/jumbo v3, "u8110"

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

    move-result v2

    if-nez v2, :cond_c

    .line 1260
    :cond_24
    invoke-static {}, Lcom/cleanmaster/base/a;->z()Z

    move-result v2

    if-nez v2, :cond_c

    .line 1266
    sget-boolean v2, Lcom/cleanmaster/hpsharelib/base/util/io/EmulateSdCardUtils;->s_bSdcardDataSame:Z

    if-eqz v2, :cond_3e

    .line 1269
    invoke-static {}, Lcom/cleanmaster/base/a;->x()Z

    move-result v2

    if-eqz v2, :cond_36

    move v0, v1

    .line 1270
    goto :goto_c

    .line 1274
    :cond_36
    invoke-static {}, Lcom/cleanmaster/base/a;->y()Z

    move-result v2

    if-eqz v2, :cond_c

    move v0, v1

    .line 1275
    goto :goto_c

    :cond_3e
    move v0, v1

    .line 1283
    goto :goto_c
.end method

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

    .prologue
    const/4 v0, 0x0

    .line 1472
    if-nez p1, :cond_4

    .line 1479
    :cond_3
    :goto_3
    return v0

    .line 1475
    :cond_4
    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v1

    .line 1476
    invoke-virtual {v1, p1, v0}, Landroid/content/pm/PackageManager;->resolveActivity(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo;

    move-result-object v1

    if-eqz v1, :cond_3

    .line 1479
    const/4 v0, 0x1

    goto :goto_3
.end method

.method public static e(Landroid/content/Context;Landroid/content/Intent;)Landroid/content/Intent;
    .registers 6

    .prologue
    const/4 v0, 0x0

    .line 1563
    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v2

    .line 1564
    const-string v1, "android.intent.category.DEFAULT"

    invoke-virtual {p1, v1}, Landroid/content/Intent;->addCategory(Ljava/lang/String;)Landroid/content/Intent;

    .line 1565
    const/4 v1, 0x0

    invoke-virtual {v2, p1, v1}, Landroid/content/pm/PackageManager;->resolveActivity(Landroid/content/Intent;I)Landroid/content/pm/ResolveInfo;

    move-result-object v1

    .line 1567
    if-eqz v1, :cond_20

    iget-object v3, v1, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    if-eqz v3, :cond_20

    .line 1568
    iget-object v1, v1, Landroid/content/pm/ResolveInfo;->activityInfo:Landroid/content/pm/ActivityInfo;

    iget-object v1, v1, Landroid/content/pm/ActivityInfo;->packageName:Ljava/lang/String;

    .line 1569
    :goto_19
    if-eqz v1, :cond_1f

    .line 1570
    invoke-virtual {v2, v1}, Landroid/content/pm/PackageManager;->getLaunchIntentForPackage(Ljava/lang/String;)Landroid/content/Intent;

    move-result-object v0

    .line 1572
    :cond_1f
    return-object v0

    :cond_20
    move-object v1, v0

    goto :goto_19
.end method

.method public static e(Landroid/content/Context;)V
    .registers 5

    .prologue
    .line 1877
    sget-object v0, Lcom/cleanmaster/base/a;->h:Ljava/lang/Runnable;

    if-nez v0, :cond_b

    .line 1879
    new-instance v0, Lcom/cleanmaster/base/h;

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

    sput-object v0, Lcom/cleanmaster/base/a;->h:Ljava/lang/Runnable;

    .line 1901
    :cond_b
    invoke-static {}, Lcom/keniu/security/m;->e()Lcom/keniu/security/m;

    move-result-object v0

    invoke-virtual {v0}, Lcom/keniu/security/m;->l()Landroid/os/Handler;

    move-result-object v0

    sget-object v1, Lcom/cleanmaster/base/a;->h:Ljava/lang/Runnable;

    const-wide/16 v2, 0x3e8

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

    .line 1902
    return-void
.end method

.method public static e()Z
    .registers 3

    .prologue
    const/4 v0, 0x0

    .line 1371
    const-string v1, "android.permission.WRITE_EXTERNAL_STORAGE"

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

    move-result v1

    if-nez v1, :cond_a

    .line 1380
    :cond_9
    :goto_9
    return v0

    .line 1374
    :cond_a
    sget-boolean v1, Lcom/cleanmaster/hpsharelib/base/util/io/EmulateSdCardUtils;->s_bSdcardDataSame:Z

    if-eqz v1, :cond_16

    invoke-static {}, Lcom/cleanmaster/base/a;->f()Z

    move-result v1

    if-eqz v1, :cond_16

    .line 1375
    const/4 v0, 0x1

    goto :goto_9

    .line 1377
    :cond_16
    sget-boolean v1, Lcom/cleanmaster/hpsharelib/base/util/io/EmulateSdCardUtils;->s_bSdcardDataSame:Z

    if-nez v1, :cond_9

    const-string v1, "mounted"

    invoke-static {}, Landroid/os/Environment;->getExternalStorageState()Ljava/lang/String;

    move-result-object v2

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

    move-result v1

    if-eqz v1, :cond_9

    .line 1378
    invoke-static {}, Lcom/cleanmaster/base/a;->f()Z

    move-result v0

    goto :goto_9
.end method

.method public static f(Landroid/content/Context;)V
    .registers 4
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "InlinedApi"
        }
    .end annotation

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

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

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

    .line 1908
    const-string/jumbo v1, "samsungapps://ProductDetail/com.cleanmaster.mguard"

    .line 1909
    invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    .line 1908
    invoke-virtual {v0, v1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 1910
    const v1, 0x14000020

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 1913
    invoke-static {p0, v0}, Lcom/cleanmaster/hpsharelib/base/util/system/ComponentUtils;->startActivity(Landroid/content/Context;Landroid/content/Intent;)Z

    move-result v0

    if-eqz v0, :cond_1e

    .line 1921
    :goto_1d
    return-void

    .line 1917
    :cond_1e
    new-instance v0, Landroid/content/Intent;

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

    const-string v2, "http://apps.samsung.com/topApps/topAppsDetail.as?productId=000000575600"

    .line 1919
    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

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

    .line 1920
    invoke-static {p0, v0}, Lcom/cleanmaster/hpsharelib/base/util/system/ComponentUtils;->startActivity(Landroid/content/Context;Landroid/content/Intent;)Z

    goto :goto_1d
.end method

.method public static f(Landroid/content/Context;Landroid/content/Intent;)V
    .registers 4

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

    move-result-object v0

    .line 1635
    invoke-static {v0, p1}, Lcom/cleanmaster/base/a;->e(Landroid/content/Context;Landroid/content/Intent;)Landroid/content/Intent;

    move-result-object v0

    .line 1637
    if-eqz v0, :cond_11

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

    move-result-object v1

    invoke-static {v1, v0}, Lcom/cleanmaster/hpsharelib/base/util/system/ComponentUtils;->startActivity(Landroid/content/Context;Landroid/content/Intent;)Z

    .line 1640
    :cond_11
    return-void
.end method

.method public static f()Z
    .registers 4

    .prologue
    .line 1384
    invoke-static {}, Lcom/cleanmaster/base/a;->g()Ljava/io/File;

    move-result-object v0

    .line 1385
    if-eqz v0, :cond_17

    .line 1386
    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfoUtils;->getStorageInfo(Ljava/io/File;)Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfo;

    move-result-object v0

    .line 1387
    if-eqz v0, :cond_17

    iget-wide v0, v0, Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfo;->allSize:J

    const-wide/32 v2, 0x6400000

    cmp-long v0, v0, v2

    if-lez v0, :cond_17

    .line 1388
    const/4 v0, 0x1

    .line 1391
    :goto_16
    return v0

    :cond_17
    const/4 v0, 0x0

    goto :goto_16
.end method

.method public static g()Ljava/io/File;
    .registers 2

    .prologue
    .line 1395
    invoke-static {}, Lcom/cleanmaster/base/a;->h()Ljava/lang/String;

    move-result-object v1

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

    move-result v0

    if-nez v0, :cond_16

    .line 1397
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 1398
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_16

    .line 1402
    :goto_15
    return-object v0

    :cond_16
    const/4 v0, 0x0

    goto :goto_15
.end method

.method public static g(Landroid/content/Context;)V
    .registers 4

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

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

    .line 1926
    const/high16 v1, 0x10000000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 1927
    const-string v1, "com.skt.skaf.A000Z00040"

    const-string v2, "com.skt.skaf.A000Z00040.A000Z00040"

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

    .line 1929
    const-string v1, "COLLAB_ACTION"

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

    .line 1930
    const-string v1, "com.skt.skaf.COL.URI"

    const-string v2, "PRODUCT_VIEW/0000361598/0"

    .line 1931
    invoke-virtual {v2}, Ljava/lang/String;->getBytes()[B

    move-result-object v2

    .line 1930
    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;[B)Landroid/content/Intent;

    .line 1933
    const-string v1, "com.skt.skaf.COL.REQUESTER"

    const-string v2, "A000Z00040"

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

    .line 1935
    invoke-static {p0, v0}, Lcom/cleanmaster/hpsharelib/base/util/system/ComponentUtils;->startActivity(Landroid/content/Context;Landroid/content/Intent;)Z

    move-result v0

    if-eqz v0, :cond_2f

    .line 1942
    :goto_2e
    return-void

    .line 1939
    :cond_2f
    new-instance v0, Landroid/content/Intent;

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

    const-string v2, "http://tsto.re/0000361598"

    .line 1940
    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

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

    .line 1941
    invoke-static {p0, v0}, Lcom/cleanmaster/hpsharelib/base/util/system/ComponentUtils;->startActivity(Landroid/content/Context;Landroid/content/Intent;)Z

    goto :goto_2e
.end method

.method public static h()Ljava/lang/String;
    .registers 2

    .prologue
    .line 1411
    sget-object v0, Landroid/os/Build;->MODEL:Ljava/lang/String;

    const-string v1, "ZTE V955"

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

    move-result v0

    if-nez v0, :cond_14

    sget-object v0, Landroid/os/Build;->MODEL:Ljava/lang/String;

    const-string v1, "MI-ONE Plus"

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

    move-result v0

    if-eqz v0, :cond_1d

    .line 1413
    :cond_14
    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v0

    invoke-virtual {v0}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v0

    .line 1418
    :goto_1c
    return-object v0

    .line 1417
    :cond_1d
    new-instance v0, Lcom/cleanmaster/hpsharelib/base/util/io/StorageList;

    invoke-direct {v0}, Lcom/cleanmaster/hpsharelib/base/util/io/StorageList;-><init>()V

    .line 1418
    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/cleanmaster/hpsharelib/base/util/io/StorageList;->getExternalPath(Z)Ljava/lang/String;

    move-result-object v0

    goto :goto_1c
.end method

.method public static h(Landroid/content/Context;)V
    .registers 4

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

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

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

    .line 1948
    const-string v1, "amzn://apps/android?p=com.cleanmaster.mguard"

    invoke-static {v1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setData(Landroid/net/Uri;)Landroid/content/Intent;

    .line 1949
    const/high16 v1, 0x14000000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 1951
    invoke-static {p0, v0}, Lcom/cleanmaster/hpsharelib/base/util/system/ComponentUtils;->startActivity(Landroid/content/Context;Landroid/content/Intent;)Z

    move-result v0

    if-eqz v0, :cond_1c

    .line 1959
    :goto_1b
    return-void

    .line 1955
    :cond_1c
    new-instance v0, Landroid/content/Intent;

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

    const-string v2, "http://www.amazon.com/gp/mas/dl/android?p=com.cleanmaster.mguard"

    .line 1957
    invoke-static {v2}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v2

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

    .line 1958
    invoke-static {p0, v0}, Lcom/cleanmaster/hpsharelib/base/util/system/ComponentUtils;->startActivity(Landroid/content/Context;Landroid/content/Intent;)Z

    goto :goto_1b
.end method

.method public static i()Z
    .registers 1

    .prologue
    .line 1423
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/io/CmBoxUtils;->getInstance()Lcom/cleanmaster/hpsharelib/base/util/io/CmBoxUtils;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/util/io/CmBoxUtils;->isActive()Z

    move-result v0

    if-eqz v0, :cond_12

    invoke-static {}, Lcom/cleanmaster/base/a;->f()Z

    move-result v0

    if-eqz v0, :cond_12

    const/4 v0, 0x1

    :goto_11
    return v0

    :cond_12
    const/4 v0, 0x0

    goto :goto_11
.end method

.method public static i(Landroid/content/Context;)Z
    .registers 3

    .prologue
    .line 2279
    if-eqz p0, :cond_18

    .line 2280
    new-instance v0, Landroid/content/ComponentName;

    const-class v1, Lcom/cleanmaster/appwidget/MainAppWidgetWhiteProvider;

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

    .line 2281
    invoke-static {p0}, Landroid/appwidget/AppWidgetManager;->getInstance(Landroid/content/Context;)Landroid/appwidget/AppWidgetManager;

    move-result-object v1

    .line 2282
    invoke-virtual {v1, v0}, Landroid/appwidget/AppWidgetManager;->getAppWidgetIds(Landroid/content/ComponentName;)[I

    move-result-object v0

    .line 2283
    if-eqz v0, :cond_18

    array-length v0, v0

    if-lez v0, :cond_18

    .line 2284
    const/4 v0, 0x1

    .line 2287
    :goto_17
    return v0

    :cond_18
    const/4 v0, 0x0

    goto :goto_17
.end method

.method public static j()Z
    .registers 1

    .prologue
    .line 1427
    invoke-static {}, Lcom/cleanmaster/base/a;->c()Z

    move-result v0

    if-nez v0, :cond_c

    invoke-static {}, Lcom/cleanmaster/base/a;->i()Z

    move-result v0

    if-eqz v0, :cond_e

    :cond_c
    const/4 v0, 0x1

    :goto_d
    return v0

    :cond_e
    const/4 v0, 0x0

    goto :goto_d
.end method

.method public static j(Landroid/content/Context;)Z
    .registers 3

    .prologue
    .line 2338
    if-eqz p0, :cond_18

    .line 2339
    new-instance v0, Landroid/content/ComponentName;

    const-class v1, Lcom/cleanmaster/appwidget/MainAppWidgetBlackProvider;

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

    .line 2340
    invoke-static {p0}, Landroid/appwidget/AppWidgetManager;->getInstance(Landroid/content/Context;)Landroid/appwidget/AppWidgetManager;

    move-result-object v1

    .line 2341
    invoke-virtual {v1, v0}, Landroid/appwidget/AppWidgetManager;->getAppWidgetIds(Landroid/content/ComponentName;)[I

    move-result-object v0

    .line 2342
    if-eqz v0, :cond_18

    array-length v0, v0

    if-lez v0, :cond_18

    .line 2343
    const/4 v0, 0x1

    .line 2346
    :goto_17
    return v0

    :cond_18
    const/4 v0, 0x0

    goto :goto_17
.end method

.method public static k()Z
    .registers 1

    .prologue
    .line 1486
    invoke-static {}, Lcom/cleanmaster/base/a;->t()I

    move-result v0

    sparse-switch v0, :sswitch_data_c

    .line 1495
    const/4 v0, 0x0

    :goto_8
    return v0

    .line 1493
    :sswitch_9
    const/4 v0, 0x1

    goto :goto_8

    .line 1486
    nop

    :sswitch_data_c
    .sparse-switch
        0x186a8 -> :sswitch_9
        0x186b0 -> :sswitch_9
        0x77ce2a8a -> :sswitch_9
        0x77ce3614 -> :sswitch_9
    .end sparse-switch
.end method

.method private static k(Landroid/content/Context;)Z
    .registers 6

    .prologue
    const/4 v0, 0x1

    const/4 v1, 0x0

    .line 1865
    invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v2

    .line 1867
    :try_start_6
    const-string v3, "com.android.vending"

    const/4 v4, 0x1

    invoke-virtual {v2, v3, v4}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;

    move-result-object v2

    .line 1868
    iget-object v2, v2, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;

    const-string v3, "4.9.13"

    invoke-virtual {v2, v3}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I
    :try_end_14
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_6 .. :try_end_14} :catch_1a

    move-result v2

    if-ltz v2, :cond_18

    .line 1871
    :goto_17
    return v0

    :cond_18
    move v0, v1

    .line 1868
    goto :goto_17

    .line 1869
    :catch_1a
    move-exception v0

    .line 1870
    invoke-virtual {v0}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V

    move v0, v1

    .line 1871
    goto :goto_17
.end method

.method public static l()Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfo;
    .registers 1

    .prologue
    .line 1505
    new-instance v0, Lcom/cleanmaster/hpsharelib/base/util/io/StorageList;

    invoke-direct {v0}, Lcom/cleanmaster/hpsharelib/base/util/io/StorageList;-><init>()V

    .line 1506
    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/util/io/StorageList;->getMountedSdCardVolumePaths()Ljava/util/ArrayList;

    move-result-object v0

    .line 1507
    if-nez v0, :cond_d

    .line 1508
    const/4 v0, 0x0

    .line 1511
    :goto_c
    return-object v0

    :cond_d
    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfoUtils;->getStorageInfo(Ljava/util/ArrayList;)Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfo;

    move-result-object v0

    goto :goto_c
.end method

.method public static m()Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfo;
    .registers 1

    .prologue
    .line 1520
    new-instance v0, Lcom/cleanmaster/hpsharelib/base/util/io/StorageList;

    invoke-direct {v0}, Lcom/cleanmaster/hpsharelib/base/util/io/StorageList;-><init>()V

    .line 1521
    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/util/io/StorageList;->getMountedPhoneVolumePaths()Ljava/util/ArrayList;

    move-result-object v0

    .line 1522
    if-nez v0, :cond_d

    .line 1523
    const/4 v0, 0x0

    .line 1526
    :goto_c
    return-object v0

    :cond_d
    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfoUtils;->getStorageInfo(Ljava/util/ArrayList;)Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfo;

    move-result-object v0

    goto :goto_c
.end method

.method public static n()Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfo;
    .registers 1

    .prologue
    .line 1535
    new-instance v0, Lcom/cleanmaster/hpsharelib/base/util/io/StorageList;

    invoke-direct {v0}, Lcom/cleanmaster/hpsharelib/base/util/io/StorageList;-><init>()V

    .line 1536
    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/util/io/StorageList;->getMountedVolumePaths()Ljava/util/ArrayList;

    move-result-object v0

    .line 1537
    if-nez v0, :cond_d

    .line 1538
    const/4 v0, 0x0

    .line 1541
    :goto_c
    return-object v0

    :cond_d
    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfoUtils;->getStorageInfo(Ljava/util/ArrayList;)Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfo;

    move-result-object v0

    goto :goto_c
.end method

.method public static o()V
    .registers 1

    .prologue
    .line 1620
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/RuntimeCheck;->checkUiProcess()V

    .line 1621
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/RuntimeCheck;->checkNoUIThread()V

    .line 1622
    invoke-static {}, Lcom/cm/root/k;->a()Lcom/cm/root/k;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cm/root/k;->isMobileRoot()Z

    move-result v0

    if-eqz v0, :cond_25

    .line 1623
    invoke-static {}, Lcom/cm/root/k;->a()Lcom/cm/root/k;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cm/root/k;->checkRoot()Z

    move-result v0

    if-nez v0, :cond_25

    .line 1625
    :try_start_1a
    invoke-static {}, Lcom/cleanmaster/hpsharelib/synipc/SyncIpcCtrl;->getIns()Lcom/cleanmaster/hpsharelib/synipc/SyncIpcCtrl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/synipc/SyncIpcCtrl;->getIPCClient()Lcom/cleanmaster/hpsharelib/synipc/ISyncIpcService;

    move-result-object v0

    invoke-interface {v0}, Lcom/cleanmaster/hpsharelib/synipc/ISyncIpcService;->enterRoot()V
    :try_end_25
    .catch Landroid/os/RemoteException; {:try_start_1a .. :try_end_25} :catch_26

    .line 1630
    :cond_25
    :goto_25
    return-void

    .line 1626
    :catch_26
    move-exception v0

    goto :goto_25
.end method

.method public static p()Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfo;
    .registers 3

    .prologue
    .line 2003
    new-instance v0, Lcom/cleanmaster/hpsharelib/base/util/io/StorageList;

    invoke-direct {v0}, Lcom/cleanmaster/hpsharelib/base/util/io/StorageList;-><init>()V

    .line 2004
    invoke-virtual {v0}, Lcom/cleanmaster/hpsharelib/base/util/io/StorageList;->getMountedSdCardVolumePaths()Ljava/util/ArrayList;

    move-result-object v0

    .line 2005
    if-nez v0, :cond_10

    .line 2006
    new-instance v0, Ljava/util/ArrayList;

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

    .line 2009
    :cond_10
    invoke-static {}, Landroid/os/Environment;->getExternalStorageState()Ljava/lang/String;

    move-result-object v1

    const-string v2, "mounted"

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

    move-result v1

    if-eqz v1, :cond_2d

    .line 2010
    invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z

    move-result v1

    if-eqz v1, :cond_32

    .line 2011
    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 2030
    :cond_2d
    :goto_2d
    invoke-static {v0}, Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfoUtils;->getStorageInfo(Ljava/util/ArrayList;)Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfo;

    move-result-object v0

    return-object v0

    .line 2013
    :cond_32
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/io/EmulateSdCardUtils;->isExtStorageEmulated()Z

    move-result v1

    if-eqz v1, :cond_51

    .line 2014
    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v1

    const/4 v2, 0x1

    if-le v1, v2, :cond_2d

    .line 2016
    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->indexOf(Ljava/lang/Object;)I

    move-result v1

    .line 2017
    if-ltz v1, :cond_2d

    .line 2018
    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;

    goto :goto_2d

    .line 2022
    :cond_51
    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;

    move-result-object v1

    invoke-virtual {v1}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object v1

    .line 2023
    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v2

    if-nez v2, :cond_2d

    .line 2024
    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_2d
.end method

.method public static q()V
    .registers 2

    .prologue
    .line 2037
    :try_start_0
    invoke-static {}, Lcom/keniu/security/m;->e()Lcom/keniu/security/m;

    move-result-object v0

    invoke-virtual {v0}, Lcom/keniu/security/m;->n()V

    .line 2040
    const-wide/16 v0, 0x5dc

    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V

    .line 2042
    invoke-static {}, Landroid/os/Process;->myPid()I

    move-result v0

    invoke-static {v0}, Landroid/os/Process;->killProcess(I)V

    .line 2043
    const/16 v0, 0xa

    invoke-static {v0}, Ljava/lang/System;->exit(I)V
    :try_end_18
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_18} :catch_19

    .line 2047
    :goto_18
    return-void

    .line 2044
    :catch_19
    move-exception v0

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

    goto :goto_18
.end method

.method public static r()I
    .registers 4

    .prologue
    .line 2092
    sget-object v0, Lcom/cleanmaster/base/a;->a:Ljava/util/Random;

    if-nez v0, :cond_f

    .line 2093
    new-instance v0, Ljava/util/Random;

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

    move-result-wide v2

    invoke-direct {v0, v2, v3}, Ljava/util/Random;-><init>(J)V

    sput-object v0, Lcom/cleanmaster/base/a;->a:Ljava/util/Random;

    .line 2095
    :cond_f
    sget-object v0, Lcom/cleanmaster/base/a;->a:Ljava/util/Random;

    invoke-virtual {v0}, Ljava/util/Random;->nextInt()I

    move-result v0

    return v0
.end method

.method public static s()Ljava/lang/String;
    .registers 1

    .prologue
    .line 2114
    invoke-static {}, Lcom/cleanmaster/base/a;->t()I

    move-result v0

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

    move-result-object v0

    .line 2115
    invoke-virtual {v0}, Ljava/lang/Integer;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public static declared-synchronized t()I
    .registers 5

    .prologue
    .line 2126
    const-class v1, Lcom/cleanmaster/base/a;

    monitor-enter v1

    :try_start_3
    sget v0, Lcom/cleanmaster/base/a;->i:I
    :try_end_5
    .catchall {:try_start_3 .. :try_end_5} :catchall_3b

    .line 2127
    if-eqz v0, :cond_18

    const v2, 0x30d41

    if-eq v2, v0, :cond_18

    const v2, 0x30d4d

    if-eq v2, v0, :cond_18

    const v2, 0x186a9

    if-eq v2, v0, :cond_18

    .line 2157
    :cond_16
    :goto_16
    monitor-exit v1

    return v0

    .line 2134
    :cond_18
    :try_start_18
    invoke-static {}, Lcom/keniu/security/m;->d()Landroid/content/Context;

    move-result-object v2

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

    move-result-object v2

    .line 2135
    if-eqz v2, :cond_3e

    .line 2136
    invoke-virtual {v2}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->getAppChannelId()I

    move-result v0

    .line 2137
    if-eqz v0, :cond_3e

    const v3, 0x186a0

    if-eq v3, v0, :cond_3e

    const v3, 0x30d40

    if-eq v3, v0, :cond_3e

    const/4 v3, 0x1

    if-lt v0, v3, :cond_38

    const/4 v3, 0x5

    if-le v0, v3, :cond_3e

    .line 2141
    :cond_38
    sput v0, Lcom/cleanmaster/base/a;->i:I
    :try_end_3a
    .catchall {:try_start_18 .. :try_end_3a} :catchall_3b

    goto :goto_16

    .line 2126
    :catchall_3b
    move-exception v0

    monitor-exit v1

    throw v0

    .line 2146
    :cond_3e
    :try_start_3e
    const-string v3, "cn"

    invoke-static {v3}, Lcom/cleanmaster/base/a;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

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

    move-result v4

    if-nez v4, :cond_16

    .line 2151
    invoke-static {v3}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    sput v0, Lcom/cleanmaster/base/a;->i:I

    .line 2152
    sget v0, Lcom/cleanmaster/base/a;->i:I

    .line 2153
    if-eqz v2, :cond_16

    .line 2154
    invoke-virtual {v2, v0}, Lcom/cleanmaster/hpsharelib/configmanager/ServiceConfigManager;->setAppChannelId(I)V
    :try_end_5b
    .catchall {:try_start_3e .. :try_end_5b} :catchall_3b

    goto :goto_16
.end method

.method public static u()I
    .registers 5

    .prologue
    const/4 v0, 0x0

    .line 2204
    const/4 v1, -0x1

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

    move-result-object v2

    .line 2207
    :try_start_6
    invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object v2

    const-string v3, "install_non_market_apps"

    const/4 v4, 0x0

    invoke-static {v2, v3, v4}, Landroid/provider/Settings$Secure;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I
    :try_end_10
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_10} :catch_15

    move-result v1

    if-lez v1, :cond_14

    .line 2209
    const/4 v0, 0x1

    .line 2218
    :cond_14
    :goto_14
    return v0

    .line 2215
    :catch_15
    move-exception v0

    move v0, v1

    goto :goto_14
.end method

.method public static v()I
    .registers 4

    .prologue
    const/4 v0, 0x0

    .line 2292
    invoke-static {}, Lcom/cleanmaster/hpsharelib/security/update/UpdateManager;->getInstance()Lcom/cleanmaster/hpsharelib/security/update/UpdateManager;

    move-result-object v1

    invoke-virtual {v1}, Lcom/cleanmaster/hpsharelib/security/update/UpdateManager;->getDataVersion()Ljava/lang/String;

    move-result-object v1

    .line 2293
    if-nez v1, :cond_c

    .line 2310
    :cond_b
    :goto_b
    return v0

    .line 2297
    :cond_c
    const-string v2, "\\."

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

    move-result-object v1

    .line 2298
    if-eqz v1, :cond_b

    const/4 v2, 0x4

    array-length v3, v1

    if-ne v2, v3, :cond_b

    .line 2302
    aget-object v0, v1, v0

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

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    rem-int/lit8 v0, v0, 0x64

    .line 2303
    mul-int/lit8 v0, v0, 0x64

    .line 2304
    const/4 v2, 0x1

    aget-object v2, v1, v2

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    rem-int/lit8 v2, v2, 0x64

    add-int/2addr v0, v2

    .line 2305
    mul-int/lit8 v0, v0, 0x64

    .line 2306
    const/4 v2, 0x2

    aget-object v2, v1, v2

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    rem-int/lit8 v2, v2, 0x64

    add-int/2addr v0, v2

    .line 2307
    mul-int/lit16 v0, v0, 0x2710

    .line 2308
    const/4 v2, 0x3

    aget-object v1, v1, v2

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    rem-int/lit16 v1, v1, 0x2710

    add-int/2addr v0, v1

    .line 2310
    goto :goto_b
.end method

.method public static declared-synchronized w()I
    .registers 3

    .prologue
    .line 2351
    const-class v1, Lcom/cleanmaster/base/a;

    monitor-enter v1

    :try_start_3
    const-string v0, "cn"

    invoke-static {v0}, Lcom/cleanmaster/base/a;->b(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

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

    move-result v2

    if-eqz v2, :cond_13

    .line 2353
    sget v0, Lcom/cleanmaster/base/a;->i:I
    :try_end_11
    .catchall {:try_start_3 .. :try_end_11} :catchall_1c

    .line 2357
    :goto_11
    monitor-exit v1

    return v0

    .line 2356
    :cond_13
    :try_start_13
    invoke-static {v0}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
    :try_end_1a
    .catchall {:try_start_13 .. :try_end_1a} :catchall_1c

    move-result v0

    goto :goto_11

    .line 2351
    :catchall_1c
    move-exception v0

    monitor-exit v1

    throw v0
.end method

.method private static x()Z
    .registers 3

    .prologue
    const/4 v0, 0x0

    .line 1290
    sget-object v1, Landroid/os/Build;->MANUFACTURER:Ljava/lang/String;

    const-string/jumbo v2, "samsung"

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

    move-result v1

    if-nez v1, :cond_d

    .line 1305
    :cond_c
    :goto_c
    return v0

    .line 1292
    :cond_d
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->GetPhoneModel()Ljava/lang/String;

    move-result-object v1

    .line 1293
    if-eqz v1, :cond_c

    .line 1295
    const-string v2, "GT-I95"

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

    move-result v2

    if-nez v2, :cond_2b

    const-string v2, "SM-N9"

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

    move-result v2

    if-nez v2, :cond_2b

    const-string v2, "SM-G9"

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

    move-result v2

    if-eqz v2, :cond_c

    .line 1299
    :cond_2b
    const-string v2, "SM-G9350"

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

    move-result v1

    if-nez v1, :cond_c

    .line 1302
    const/4 v0, 0x1

    goto :goto_c
.end method

.method private static y()Z
    .registers 3

    .prologue
    const/4 v0, 0x0

    .line 1310
    sget-object v1, Landroid/os/Build;->MANUFACTURER:Ljava/lang/String;

    const-string v2, "huawei"

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

    move-result v1

    if-nez v1, :cond_c

    .line 1318
    :cond_b
    :goto_b
    return v0

    .line 1312
    :cond_c
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/util/system/DeviceUtils;->GetPhoneModel()Ljava/lang/String;

    move-result-object v1

    .line 1313
    if-eqz v1, :cond_b

    .line 1315
    const-string v2, "H60-L01"

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

    move-result v1

    if-eqz v1, :cond_b

    .line 1316
    const/4 v0, 0x1

    goto :goto_b
.end method

.method private static z()Z
    .registers 8

    .prologue
    const/4 v0, 0x1

    const/4 v2, 0x0

    .line 1336
    sget-object v3, Lcom/cleanmaster/base/a;->e:Lcom/cleanmaster/bitloader/base/Objects;

    monitor-enter v3

    .line 1337
    :try_start_5
    sget-object v1, Lcom/cleanmaster/base/a;->f:Ljava/util/concurrent/atomic/AtomicBoolean;

    const/4 v4, 0x1

    const/4 v5, 0x1

    invoke-virtual {v1, v4, v5}, Ljava/util/concurrent/atomic/AtomicBoolean;->compareAndSet(ZZ)Z

    move-result v1

    if-eqz v1, :cond_13

    .line 1338
    sget-boolean v0, Lcom/cleanmaster/base/a;->g:Z

    monitor-exit v3
    :try_end_12
    .catchall {:try_start_5 .. :try_end_12} :catchall_54

    .line 1363
    :goto_12
    return v0

    .line 1343
    :cond_13
    :try_start_13
    new-instance v4, Ljava/util/Properties;

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

    .line 1344
    new-instance v1, Ljava/io/FileInputStream;

    new-instance v5, Ljava/io/File;

    invoke-static {}, Landroid/os/Environment;->getRootDirectory()Ljava/io/File;

    move-result-object v6

    const-string v7, "build.prop"

    invoke-direct {v5, v6, v7}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V

    invoke-direct {v1, v5}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V
    :try_end_28
    .catch Ljava/io/FileNotFoundException; {:try_start_13 .. :try_end_28} :catch_5e
    .catch Ljava/io/IOException; {:try_start_13 .. :try_end_28} :catch_6e
    .catchall {:try_start_13 .. :try_end_28} :catchall_7e

    .line 1345
    :try_start_28
    invoke-virtual {v4, v1}, Ljava/util/Properties;->load(Ljava/io/InputStream;)V

    .line 1346
    const-string/jumbo v2, "ro.miui.ui.version.code"

    const/4 v5, 0x0

    invoke-virtual {v4, v2, v5}, Ljava/util/Properties;->getProperty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    if-nez v2, :cond_49

    const-string/jumbo v2, "ro.miui.ui.version.name"

    const/4 v5, 0x0

    .line 1347
    invoke-virtual {v4, v2, v5}, Ljava/util/Properties;->getProperty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    if-nez v2, :cond_49

    const-string/jumbo v2, "ro.miui.internal.storage"

    const/4 v5, 0x0

    .line 1348
    invoke-virtual {v4, v2, v5}, Ljava/util/Properties;->getProperty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    if-eqz v2, :cond_57

    :cond_49
    :goto_49
    sput-boolean v0, Lcom/cleanmaster/base/a;->g:Z
    :try_end_4b
    .catch Ljava/io/FileNotFoundException; {:try_start_28 .. :try_end_4b} :catch_8f
    .catch Ljava/io/IOException; {:try_start_28 .. :try_end_4b} :catch_8d
    .catchall {:try_start_28 .. :try_end_4b} :catchall_8b

    .line 1354
    if-eqz v1, :cond_50

    .line 1356
    :try_start_4d
    invoke-virtual {v1}, Ljava/io/FileInputStream;->close()V
    :try_end_50
    .catch Ljava/io/IOException; {:try_start_4d .. :try_end_50} :catch_59
    .catchall {:try_start_4d .. :try_end_50} :catchall_54

    .line 1363
    :cond_50
    :goto_50
    :try_start_50
    sget-boolean v0, Lcom/cleanmaster/base/a;->g:Z

    monitor-exit v3

    goto :goto_12

    .line 1364
    :catchall_54
    move-exception v0

    monitor-exit v3
    :try_end_56
    .catchall {:try_start_50 .. :try_end_56} :catchall_54

    throw v0

    .line 1348
    :cond_57
    const/4 v0, 0x0

    goto :goto_49

    .line 1357
    :catch_59
    move-exception v0

    .line 1359
    :try_start_5a
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
    :try_end_5d
    .catchall {:try_start_5a .. :try_end_5d} :catchall_54

    goto :goto_50

    .line 1349
    :catch_5e
    move-exception v0

    move-object v1, v2

    .line 1350
    :goto_60
    :try_start_60
    invoke-virtual {v0}, Ljava/io/FileNotFoundException;->printStackTrace()V
    :try_end_63
    .catchall {:try_start_60 .. :try_end_63} :catchall_8b

    .line 1354
    if-eqz v1, :cond_50

    .line 1356
    :try_start_65
    invoke-virtual {v1}, Ljava/io/FileInputStream;->close()V
    :try_end_68
    .catch Ljava/io/IOException; {:try_start_65 .. :try_end_68} :catch_69
    .catchall {:try_start_65 .. :try_end_68} :catchall_54

    goto :goto_50

    .line 1357
    :catch_69
    move-exception v0

    .line 1359
    :try_start_6a
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
    :try_end_6d
    .catchall {:try_start_6a .. :try_end_6d} :catchall_54

    goto :goto_50

    .line 1351
    :catch_6e
    move-exception v0

    move-object v1, v2

    .line 1352
    :goto_70
    :try_start_70
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
    :try_end_73
    .catchall {:try_start_70 .. :try_end_73} :catchall_8b

    .line 1354
    if-eqz v1, :cond_50

    .line 1356
    :try_start_75
    invoke-virtual {v1}, Ljava/io/FileInputStream;->close()V
    :try_end_78
    .catch Ljava/io/IOException; {:try_start_75 .. :try_end_78} :catch_79
    .catchall {:try_start_75 .. :try_end_78} :catchall_54

    goto :goto_50

    .line 1357
    :catch_79
    move-exception v0

    .line 1359
    :try_start_7a
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V
    :try_end_7d
    .catchall {:try_start_7a .. :try_end_7d} :catchall_54

    goto :goto_50

    .line 1354
    :catchall_7e
    move-exception v0

    move-object v1, v2

    :goto_80
    if-eqz v1, :cond_85

    .line 1356
    :try_start_82
    invoke-virtual {v1}, Ljava/io/FileInputStream;->close()V
    :try_end_85
    .catch Ljava/io/IOException; {:try_start_82 .. :try_end_85} :catch_86
    .catchall {:try_start_82 .. :try_end_85} :catchall_54

    .line 1360
    :cond_85
    :goto_85
    :try_start_85
    throw v0

    .line 1357
    :catch_86
    move-exception v1

    .line 1359
    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
    :try_end_8a
    .catchall {:try_start_85 .. :try_end_8a} :catchall_54

    goto :goto_85

    .line 1354
    :catchall_8b
    move-exception v0

    goto :goto_80

    .line 1351
    :catch_8d
    move-exception v0

    goto :goto_70

    .line 1349
    :catch_8f
    move-exception v0

    goto :goto_60
.end method