Commons.smali

.class public final Lcom/cleanmaster/junk/util/Commons;
.super Ljava/lang/Object;
.source "Commons.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/cleanmaster/junk/util/Commons$DeleteFilesByMediaStore;
    }
.end annotation


# static fields
.field private static final DELETE_TASK_SHOW_PROGRESS_DIALOG_FILE_NUM_DEF_VALVE:I = 0x64

.field private static final KEY_MIUI_INTERNAL_STORAGE:Ljava/lang/String; = "ro.miui.internal.storage"

.field private static final KEY_MIUI_VERSION_CODE:Ljava/lang/String; = "ro.miui.ui.version.code"

.field private static final KEY_MIUI_VERSION_NAME:Ljava/lang/String; = "ro.miui.ui.version.name"

.field public static final LIST_FILES_FILTER_TYPE_CON:I = 0x3

.field public static final LIST_FILES_FILTER_TYPE_END:I = 0x2

.field public static final LIST_FILES_FILTER_TYPE_EQU:I = 0x0

.field public static final LIST_FILES_FILTER_TYPE_REG:I = 0x5

.field public static final LIST_FILES_FILTER_TYPE_STR:I = 0x1

.field private static final MAX_RECURSION_LEVEL:I = 0x80

.field public static final NAVER_LINE_PACKAGE_NAME:Ljava/lang/String; = "jp.naver.line.android"

.field public static final OPTION_DELETE_FILE:I = 0x10

.field public static final OPTION_DELETE_FOLDER:I = 0x11

.field public static final OPTION_DELETE_MULTI_FILE:I = 0x12

.field public static final SINA_WEIBO_PACKAGE_NAME:Ljava/lang/String; = "com.sina.weibo"

.field public static final START_INTENT_FAILED_NOT_EXPORTED:I = -0x2

.field public static final TENCENT_WX_PACKAGE_NAME:Ljava/lang/String; = "com.tencent.mm"

.field private static volatile deleteTaskShowProgressDialogFileNumValve:I

.field private static volatile firstSdcardPath:Ljava/lang/String;

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

.field private static mRandObj:Ljava/util/Random;

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

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

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

.field private static mbIsMIUIRom:Z

.field private static sDATE_FMT_DEFAULT:Ljava/text/SimpleDateFormat;

.field private static sDATE_FMT_EN:Ljava/text/SimpleDateFormat;


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

    .prologue
    const/4 v1, 0x0

    const/4 v4, 0x0

    .line 84
    sput-object v1, Lcom/cleanmaster/junk/util/Commons;->firstSdcardPath:Ljava/lang/String;

    .line 128
    sput-object v1, Lcom/cleanmaster/junk/util/Commons;->mSecondSdCardCanWriteable:Ljava/lang/Boolean;

    .line 1069
    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/junk/util/Commons;->mRandObj:Ljava/util/Random;

    .line 1170
    sput-object v1, Lcom/cleanmaster/junk/util/Commons;->sDATE_FMT_DEFAULT:Ljava/text/SimpleDateFormat;

    .line 1171
    sput-object v1, Lcom/cleanmaster/junk/util/Commons;->sDATE_FMT_EN:Ljava/text/SimpleDateFormat;

    .line 1556
    sput v4, Lcom/cleanmaster/junk/util/Commons;->deleteTaskShowProgressDialogFileNumValve:I

    .line 1572
    const/16 v0, 0x14

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

    const-string v1, "asus/WW_a501cg"

    aput-object v1, v0, v4

    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/junk/util/Commons;->mFingerSupportAppMove:[Ljava/lang/String;

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

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

    sput-object v0, Lcom/cleanmaster/junk/util/Commons;->mbCheckIsMIUIRomLock:Lcom/cleanmaster/bitloader/base/Objects;

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

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

    sput-object v0, Lcom/cleanmaster/junk/util/Commons;->mbCheckIsMIUIRom:Ljava/util/concurrent/atomic/AtomicBoolean;

    .line 1709
    sput-boolean v4, Lcom/cleanmaster/junk/util/Commons;->mbIsMIUIRom:Z

    return-void
.end method

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

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

    return-void
.end method

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

    .prologue
    const/4 v3, 0x0

    .line 607
    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 608
    :cond_b
    if-eqz p0, :cond_16

    .line 609
    const-string v0, "DEFo"

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

    move-result-object v1

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

    .line 612
    :cond_16
    const/4 v2, 0x1

    move-object v0, p0

    move-object v1, p1

    move v4, v3

    move v5, v3

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

    .line 613
    return-void
.end method

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

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

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

    .line 1086
    return-void
.end method

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

    .prologue
    .line 1096
    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 1097
    :cond_a
    if-eqz p0, :cond_15

    .line 1098
    const-string v0, "DFi"

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

    move-result-object v1

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

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

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

    .line 1102
    return-void
.end method

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

    .prologue
    const/4 v1, 0x0

    .line 1105
    if-nez p0, :cond_4

    .line 1117
    :goto_3
    return-void

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

    move-result v0

    if-eqz v0, :cond_e

    .line 1110
    invoke-static {p0, p1, v1, v1}, Lcom/cleanmaster/junk/util/Commons;->directDeleteFile(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;ZI)Z

    goto :goto_3

    .line 1113
    :cond_e
    const/16 v0, 0x80

    :try_start_10
    invoke-static {p0, p1, v0, p3}, Lcom/cleanmaster/junk/util/Commons;->directDeleteFilesInFolder(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;II)V
    :try_end_13
    .catch Ljava/lang/StackOverflowError; {:try_start_10 .. :try_end_13} :catch_14

    goto :goto_3

    .line 1114
    :catch_14
    move-exception v0

    goto :goto_3
.end method

.method public static DeleteFileOrFolder(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 447
    const/4 v0, 0x0

    const/4 v1, 0x0

    invoke-static {p0, p1, v0, v1}, Lcom/cleanmaster/junk/util/Commons;->DeleteFileOrFolderWithConfig(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 DeleteFileOrFolderWithConfig(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 456
    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 457
    :cond_a
    if-eqz p0, :cond_20

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

    move-result v2

    if-nez v2, :cond_20

    .line 459
    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/junk/util/OpLog;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 464
    :cond_20
    if-nez p1, :cond_24

    .line 465
    const/4 v2, 0x0

    .line 565
    :goto_23
    return v2

    .line 468
    :cond_24
    const/4 v2, 0x6

    new-array v2, v2, [I

    .line 469
    const/4 v3, 0x0

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

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

    move-result v4

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

    move-result v5

    .line 472
    const v3, 0xffff

    if-ne v5, v3, :cond_39

    .line 473
    const/4 v5, 0x0

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

    move-result-object v6

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

    move-result-object v7

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

    move-result-object v8

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

    move-result-object v9

    .line 480
    new-instance v3, Lcom/cleanmaster/junk/util/StorageList;

    invoke-direct {v3}, Lcom/cleanmaster/junk/util/StorageList;-><init>()V

    invoke-virtual {v3}, Lcom/cleanmaster/junk/util/StorageList;->getMountedVolumePaths()Ljava/util/ArrayList;

    move-result-object v14

    .line 483
    :try_start_52
    invoke-static {}, Landroid/os/Environment;->getExternalStorageDirectory()Ljava/io/File;
    :try_end_55
    .catch Ljava/lang/ArrayIndexOutOfBoundsException; {:try_start_52 .. :try_end_55} :catch_93
    .catch Ljava/lang/Exception; {:try_start_52 .. :try_end_55} :catch_99

    .line 491
    new-instance v10, Lcom/cleanmaster/junk/util/Commons$1;

    move-object/from16 v0, p1

    move/from16 v1, p3

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

    .line 559
    invoke-static {}, Lcom/cleanmaster/junk/util/Commons;->checkSecondSdCardCanWriteable()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 491
    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 561
    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_91

    .line 562
    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

    :cond_91
    move v2, v8

    .line 565
    goto :goto_23

    .line 484
    :catch_93
    move-exception v2

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

    .line 486
    const/4 v2, 0x0

    goto :goto_23

    .line 487
    :catch_99
    move-exception v2

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

    .line 489
    const/4 v2, 0x0

    goto :goto_23
.end method

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

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

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

    .line 576
    return-void
.end method

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

    .prologue
    const/4 v2, 0x1

    .line 586
    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 587
    :cond_b
    if-eqz p0, :cond_16

    .line 588
    const-string v0, "DFo"

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

    move-result-object v1

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

    .line 591
    :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/junk/util/Commons;->DeleteFolder(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;ZZZI)V

    .line 592
    return-void
.end method

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

    .prologue
    const/4 v2, 0x1

    const/4 v1, 0x0

    .line 801
    if-nez p0, :cond_5

    .line 838
    :cond_4
    :goto_4
    return-void

    .line 805
    :cond_5
    if-nez p4, :cond_b

    if-eqz p3, :cond_b

    if-nez p2, :cond_14

    :cond_b
    if-nez p1, :cond_14

    .line 806
    const/4 v0, 0x0

    invoke-static {p0, v0, v2, v1}, Lcom/cleanmaster/junk/util/Commons;->directDeleteFile(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;ZI)Z

    move-result v0

    if-nez v0, :cond_4

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

    move-result v0

    if-eqz v0, :cond_20

    .line 812
    if-eqz p4, :cond_4

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

    goto :goto_4

    .line 817
    :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/junk/util/Commons;->directDeleteFolder(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_57

    .line 821
    :goto_2a
    if-eqz p3, :cond_2e

    if-nez p2, :cond_4d

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

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

    const/16 v1, 0x13

    if-lt v0, v1, :cond_4d

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

    move-result v0

    if-eqz v0, :cond_4d

    .line 826
    :try_start_3d
    new-instance v0, Lcom/cleanmaster/junk/util/MediaFile;

    .line 827
    invoke-static {}, Lcom/cleanmaster/junk/util/JunkUtils;->getContext()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/junk/util/MediaFile;-><init>(Landroid/content/ContentResolver;Ljava/io/File;)V

    invoke-virtual {v0}, Lcom/cleanmaster/junk/util/MediaFile;->delete()Z
    :try_end_4d
    .catch Ljava/io/IOException; {:try_start_3d .. :try_end_4d} :catch_59

    .line 834
    :cond_4d
    :goto_4d
    if-eqz p1, :cond_4

    .line 835
    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_4

    .line 818
    :catch_57
    move-exception v0

    goto :goto_2a

    .line 828
    :catch_59
    move-exception v0

    goto :goto_4d
.end method

.method public static DlgMsgformatForAppmanager(Ljava/lang/String;)Landroid/text/Spannable;
    .registers 7

    .prologue
    const/16 v5, 0x21

    const/4 v0, 0x0

    .line 1210
    new-instance v1, Landroid/text/SpannableString;

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

    .line 1211
    new-instance v2, Landroid/text/style/AbsoluteSizeSpan;

    const/16 v3, 0xe

    const/4 v4, 0x1

    invoke-direct {v2, v3, v4}, Landroid/text/style/AbsoluteSizeSpan;-><init>(IZ)V

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

    move-result v3

    invoke-interface {v1, v2, v0, v3, v5}, Landroid/text/Spannable;->setSpan(Ljava/lang/Object;III)V

    .line 1214
    :goto_17
    const-string v2, ":"

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

    move-result v2

    .line 1215
    add-int/lit8 v2, v2, 0x1

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

    move-result v3

    if-lt v2, v3, :cond_26

    .line 1228
    :cond_25
    return-object v1

    .line 1218
    :cond_26
    if-lez v2, :cond_25

    .line 1220
    new-instance v3, Landroid/text/style/ForegroundColorSpan;

    const v4, -0x525253

    invoke-direct {v3, v4}, Landroid/text/style/ForegroundColorSpan;-><init>(I)V

    invoke-interface {v1, v3, v0, v2, v5}, Landroid/text/Spannable;->setSpan(Ljava/lang/Object;III)V

    .line 1221
    add-int/lit8 v0, v2, 0x1

    .line 1222
    const-string v2, "\n"

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

    move-result v0

    .line 1223
    if-lez v0, :cond_25

    .line 1226
    add-int/lit8 v0, v0, 0x1

    .line 1227
    goto :goto_17
.end method

.method static synthetic access$100()Z
    .registers 1

    .prologue
    .line 73
    invoke-static {}, Lcom/cleanmaster/junk/util/Commons;->checkSecondSdCardCanWriteable()Z

    move-result v0

    return v0
.end method

.method public static calcPercentage(JJ)I
    .registers 8

    .prologue
    const/4 v0, 0x0

    const-wide/16 v2, 0x0

    .line 1419
    cmp-long v1, p0, v2

    if-ltz v1, :cond_b

    cmp-long v1, p2, v2

    if-gtz v1, :cond_2e

    .line 1423
    :cond_b
    const-string v1, "CP"

    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, "n:"

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

    move-result-object v2

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

    move-result-object v2

    const-string v3, " all:"

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

    move-result-object v2

    invoke-virtual {v2, p2, p3}, 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-static {v1, v2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I

    .line 1433
    :cond_2d
    :goto_2d
    return v0

    .line 1428
    :cond_2e
    cmp-long v1, v2, p0

    if-eqz v1, :cond_2d

    .line 1432
    const-wide/16 v0, 0x64

    mul-long/2addr v0, p0

    long-to-double v0, v0

    long-to-double v2, p2

    div-double/2addr v0, v2

    .line 1433
    invoke-static {v0, v1}, Ljava/lang/Math;->round(D)J

    move-result-wide v0

    long-to-int v0, v0

    goto :goto_2d
.end method

.method private static checkIsMIUIRom()Z
    .registers 8

    .prologue
    const/4 v0, 0x1

    const/4 v2, 0x0

    .line 1712
    sget-object v3, Lcom/cleanmaster/junk/util/Commons;->mbCheckIsMIUIRomLock:Lcom/cleanmaster/bitloader/base/Objects;

    monitor-enter v3

    .line 1713
    :try_start_5
    sget-object v1, Lcom/cleanmaster/junk/util/Commons;->mbCheckIsMIUIRom: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 1714
    sget-boolean v0, Lcom/cleanmaster/junk/util/Commons;->mbIsMIUIRom:Z

    monitor-exit v3
    :try_end_12
    .catchall {:try_start_5 .. :try_end_12} :catchall_54

    .line 1739
    :goto_12
    return v0

    .line 1719
    :cond_13
    :try_start_13
    new-instance v4, Ljava/util/Properties;

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

    .line 1720
    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 1721
    :try_start_28
    invoke-virtual {v4, v1}, Ljava/util/Properties;->load(Ljava/io/InputStream;)V

    .line 1722
    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 1723
    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 1724
    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/junk/util/Commons;->mbIsMIUIRom: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 1730
    if-eqz v1, :cond_50

    .line 1732
    :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 1739
    :cond_50
    :goto_50
    :try_start_50
    sget-boolean v0, Lcom/cleanmaster/junk/util/Commons;->mbIsMIUIRom:Z

    monitor-exit v3

    goto :goto_12

    .line 1740
    :catchall_54
    move-exception v0

    monitor-exit v3
    :try_end_56
    .catchall {:try_start_50 .. :try_end_56} :catchall_54

    throw v0

    .line 1724
    :cond_57
    const/4 v0, 0x0

    goto :goto_49

    .line 1733
    :catch_59
    move-exception v0

    .line 1735
    :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 1725
    :catch_5e
    move-exception v0

    move-object v1, v2

    .line 1726
    :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 1730
    if-eqz v1, :cond_50

    .line 1732
    :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 1733
    :catch_69
    move-exception v0

    .line 1735
    :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 1727
    :catch_6e
    move-exception v0

    move-object v1, v2

    .line 1728
    :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 1730
    if-eqz v1, :cond_50

    .line 1732
    :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 1733
    :catch_79
    move-exception v0

    .line 1735
    :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 1730
    :catchall_7e
    move-exception v0

    move-object v1, v2

    :goto_80
    if-eqz v1, :cond_85

    .line 1732
    :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 1736
    :cond_85
    :goto_85
    :try_start_85
    throw v0

    .line 1733
    :catch_86
    move-exception v1

    .line 1735
    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
    :try_end_8a
    .catchall {:try_start_85 .. :try_end_8a} :catchall_54

    goto :goto_85

    .line 1730
    :catchall_8b
    move-exception v0

    goto :goto_80

    .line 1727
    :catch_8d
    move-exception v0

    goto :goto_70

    .line 1725
    :catch_8f
    move-exception v0

    goto :goto_60
.end method

.method private static checkPhoneIsHuaWei()Z
    .registers 3

    .prologue
    const/4 v0, 0x0

    .line 1767
    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 1775
    :cond_b
    :goto_b
    return v0

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

    move-result-object v1

    .line 1770
    if-eqz v1, :cond_b

    .line 1772
    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 1773
    const/4 v0, 0x1

    goto :goto_b
.end method

.method private static checkPhoneIsSamung()Z
    .registers 3

    .prologue
    const/4 v0, 0x0

    .line 1747
    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 1762
    :cond_c
    :goto_c
    return v0

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

    move-result-object v1

    .line 1750
    if-eqz v1, :cond_c

    .line 1752
    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 1753
    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 1754
    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_c

    .line 1756
    :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 1759
    const/4 v0, 0x1

    goto :goto_c
.end method

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

    .prologue
    const/4 v2, 0x0

    .line 137
    sget-object v0, Lcom/cleanmaster/junk/util/Commons;->mSecondSdCardCanWriteable:Ljava/lang/Boolean;

    if-eqz v0, :cond_c

    .line 138
    sget-object v0, Lcom/cleanmaster/junk/util/Commons;->mSecondSdCardCanWriteable:Ljava/lang/Boolean;

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

    move-result v0

    .line 183
    :goto_b
    return v0

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

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

    const/16 v3, 0x13

    if-ge v0, v3, :cond_1b

    move v0, v1

    .line 182
    :goto_14
    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    sput-object v1, Lcom/cleanmaster/junk/util/Commons;->mSecondSdCardCanWriteable:Ljava/lang/Boolean;

    goto :goto_b

    .line 147
    :cond_1b
    new-instance v0, Lcom/cleanmaster/junk/util/StorageList;

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

    .line 148
    invoke-virtual {v0}, Lcom/cleanmaster/junk/util/StorageList;->getMountedVolumePaths()Ljava/util/ArrayList;

    move-result-object v0

    .line 149
    if-eqz v0, :cond_2c

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

    move-result v3

    if-eqz v3, :cond_4a

    .line 150
    :cond_2c
    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_3a

    move v0, v1

    .line 152
    goto :goto_14

    .line 154
    :cond_3a
    new-instance v0, Ljava/util/ArrayList;

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

    .line 155
    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 158
    :cond_4a
    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v3

    const/4 v4, 0x2

    if-ge v3, v4, :cond_53

    move v0, v1

    .line 159
    goto :goto_14

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

    move-result-object v3

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

    move-result v0

    if-eqz v0, :cond_c9

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

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 164
    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_57

    .line 165
    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 168
    :try_start_93
    invoke-virtual {v4}, Ljava/io/File;->createNewFile()Z
    :try_end_96
    .catch Ljava/io/IOException; {:try_start_93 .. :try_end_96} :catch_9f

    move-result v3

    .line 171
    :goto_97
    if-eqz v3, :cond_a2

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

    move v0, v1

    goto/16 :goto_14

    .line 169
    :catch_9f
    move-exception v3

    move v3, v2

    goto :goto_97

    .line 175
    :cond_a2
    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/junk/util/OpLog;->x(Ljava/lang/String;Ljava/lang/String;)V

    move v0, v2

    .line 177
    goto/16 :goto_14

    :cond_c9
    move v0, v1

    goto/16 :goto_14
.end method

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

    .prologue
    const/4 v2, 0x0

    .line 628
    if-eqz p0, :cond_9

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

    move-result v0

    if-nez v0, :cond_a

    .line 674
    :cond_9
    :goto_9
    return-void

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

    move-result v0

    if-eqz v0, :cond_14

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

    goto :goto_9

    .line 635
    :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 637
    if-eqz v3, :cond_9

    .line 639
    :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 640
    if-eqz v1, :cond_64

    .line 641
    :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 642
    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/junk/util/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 643
    invoke-virtual {v5}, Ljava/io/File;->delete()Z
    :try_end_55
    .catchall {:try_start_24 .. :try_end_55} :catchall_56

    goto :goto_28

    .line 665
    :catchall_56
    move-exception v0

    :goto_57
    if-eqz v1, :cond_5c

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

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

    throw v0

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

    move-object v1, v2

    .line 649
    :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 651
    if-eqz v1, :cond_a0

    .line 652
    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 653
    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/junk/util/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 654
    invoke-static {v5}, Lcom/cleanmaster/junk/util/Commons;->deleteAllFile(Ljava/io/File;)V

    goto :goto_6e

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

    move-object v1, v2

    .line 660
    :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 661
    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 662
    :cond_b0
    invoke-virtual {p0}, Ljava/io/File;->delete()Z
    :try_end_b3
    .catchall {:try_start_60 .. :try_end_b3} :catchall_56

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

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

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

    goto/16 :goto_9

    .line 665
    :catchall_bd
    move-exception v0

    move-object v1, v2

    goto :goto_57
.end method

.method private static directDeleteFile(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 678
    if-eqz p1, :cond_ae

    .line 679
    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 680
    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 728
    :cond_1b
    :goto_1b
    return v2

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

    if-eq p3, v4, :cond_36

    .line 685
    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 689
    :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 690
    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 692
    :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 693
    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 703
    :cond_56
    invoke-virtual {p0}, Ljava/io/File;->delete()Z

    move-result v0

    if-nez v0, :cond_ca

    move v0, v1

    .line 704
    :goto_5d
    sget v3, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v4, 0x13

    if-lt v3, v4, :cond_79

    .line 705
    if-eqz v0, :cond_79

    .line 707
    :try_start_65
    new-instance v3, Lcom/cleanmaster/junk/util/MediaFile;

    .line 708
    invoke-static {}, Lcom/cleanmaster/junk/util/JunkUtils;->getContext()Landroid/content/Context;

    move-result-object v4

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

    move-result-object v4

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

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

    move-result v0

    if-nez v0, :cond_cc

    move v0, v1

    .line 714
    :cond_79
    :goto_79
    if-eqz p2, :cond_96

    .line 715
    if-eqz v0, :cond_96

    .line 716
    invoke-static {}, Lcom/cm/plugincluster/root/SuExecHostProxy;->getInstance()Lcom/cm/plugincluster/root/ISuExec;

    move-result-object v3

    invoke-interface {v3}, Lcom/cm/plugincluster/root/ISuExec;->checkRoot()Z

    move-result v3

    if-eqz v3, :cond_96

    .line 717
    invoke-static {}, Lcom/cm/plugincluster/root/SuExecHostProxy;->getInstance()Lcom/cm/plugincluster/root/ISuExec;

    move-result-object v0

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

    move-result-object v3

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

    move-result v0

    if-nez v0, :cond_ce

    move v0, v1

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

    .line 723
    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 724
    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 728
    :cond_a9
    if-nez v0, :cond_d0

    :goto_ab
    move v2, v1

    goto/16 :goto_1b

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

    if-eq p3, v4, :cond_56

    .line 697
    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 v0, v2

    .line 703
    goto :goto_5d

    :cond_cc
    move v0, v2

    .line 708
    goto :goto_79

    :cond_ce
    move v0, v2

    .line 717
    goto :goto_96

    :cond_d0
    move v1, v2

    .line 728
    goto :goto_ab

    .line 709
    :catch_d2
    move-exception v3

    goto :goto_79
.end method

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

    .prologue
    const/4 v2, 0x0

    const/4 v0, 0x0

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

    if-gtz p2, :cond_7

    .line 1163
    :cond_6
    :goto_6
    return-void

    .line 1125
    :cond_7
    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 1127
    if-eqz v5, :cond_6

    .line 1129
    :try_start_11
    invoke-interface {v5}, Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;->getFileNameList()Lcom/cm/plugincluster/junkengine/util/path/IKStringList;
    :try_end_14
    .catchall {:try_start_11 .. :try_end_14} :catchall_be

    move-result-object v1

    .line 1130
    if-eqz v1, :cond_7c

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

    move-result v3

    if-lez v3, :cond_c1

    .line 1133
    if-lez p3, :cond_c1

    const v3, 0xffff

    if-eq p3, v3, :cond_c1

    .line 1134
    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_c1

    move v3, p3

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

    move-result-object v6

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

    move-result v0

    if-eqz v0, :cond_78

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

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 1140
    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/junk/util/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 1141
    const/4 v0, 0x0

    invoke-static {v7, p1, v0, v3}, Lcom/cleanmaster/junk/util/Commons;->directDeleteFile(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;ZI)Z
    :try_end_6d
    .catchall {:try_start_17 .. :try_end_6d} :catchall_6e

    goto :goto_3f

    .line 1155
    :catchall_6e
    move-exception v0

    :goto_6f
    if-eqz v1, :cond_74

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

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

    throw v0

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

    move-object v1, v2

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

    move-result-object v1

    .line 1148
    if-eqz v1, :cond_b4

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

    move-result-object v2

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

    move-result v0

    if-eqz v0, :cond_b4

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

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 1150
    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/junk/util/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 1151
    invoke-static {v3, p1, v4, p3}, Lcom/cleanmaster/junk/util/Commons;->directDeleteFilesInFolder(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;II)V
    :try_end_b3
    .catchall {:try_start_78 .. :try_end_b3} :catchall_6e

    goto :goto_86

    .line 1155
    :cond_b4
    if-eqz v1, :cond_b9

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

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

    goto/16 :goto_6

    .line 1155
    :catchall_be
    move-exception v0

    move-object v1, v2

    goto :goto_6f

    :cond_c1
    move v3, v0

    goto/16 :goto_3b
.end method

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

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

    if-gtz p4, :cond_5

    .line 798
    :cond_4
    :goto_4
    return-void

    .line 738
    :cond_5
    if-eqz p2, :cond_17

    .line 739
    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_17

    .line 740
    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 744
    :cond_17
    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 745
    const/4 v3, 0x0

    .line 746
    if-eqz v9, :cond_dd

    .line 748
    if-eqz p3, :cond_93

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

    move-result-object v3

    .line 750
    if-eqz v3, :cond_93

    .line 751
    const/4 v2, 0x0

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

    move-result v4

    if-lez v4, :cond_103

    .line 753
    if-lez p5, :cond_103

    const v4, 0xffff

    move/from16 v0, p5

    if-eq v0, v4, :cond_103

    .line 754
    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_103

    move/from16 v4, p5

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

    move-result-object v5

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

    move-result v2

    if-eqz v2, :cond_8f

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

    move-result-object v2

    check-cast v2, Ljava/lang/String;

    .line 760
    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/junk/util/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 761
    const/4 v2, 0x1

    invoke-static {v7, p2, v2, v4}, Lcom/cleanmaster/junk/util/Commons;->directDeleteFile(Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;ZI)Z
    :try_end_84
    .catchall {:try_start_24 .. :try_end_84} :catchall_85

    goto :goto_56

    .line 777
    :catchall_85
    move-exception v2

    :goto_86
    if-eqz v3, :cond_8b

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

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

    throw v2

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

    .line 764
    const/4 v3, 0x0

    .line 768
    :cond_93
    invoke-interface {v9}, Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;->getFolderNameList()Lcom/cm/plugincluster/junkengine/util/path/IKStringList;
    :try_end_96
    .catchall {:try_start_8f .. :try_end_96} :catchall_85

    move-result-object v8

    .line 770
    if-eqz v8, :cond_d5

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

    move-result-object v10

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

    move-result v2

    if-eqz v2, :cond_d5

    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 772
    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/junk/util/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 773
    const/4 v3, 0x1

    move-object v4, p2

    move v5, p3

    move/from16 v7, p5

    invoke-static/range {v2 .. v7}, Lcom/cleanmaster/junk/util/Commons;->directDeleteFolder(Ljava/io/File;ZLcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;ZII)V
    :try_end_d1
    .catchall {:try_start_99 .. :try_end_d1} :catchall_d2

    goto :goto_9d

    .line 777
    :catchall_d2
    move-exception v2

    move-object v3, v8

    goto :goto_86

    :cond_d5
    if-eqz v8, :cond_da

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

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

    .line 786
    :cond_dd
    if-eqz p1, :cond_4

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

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

    const/16 v3, 0x13

    if-lt v2, v3, :cond_4

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

    move-result v2

    if-eqz v2, :cond_4

    .line 791
    :try_start_ee
    new-instance v2, Lcom/cleanmaster/junk/util/MediaFile;

    .line 792
    invoke-static {}, Lcom/cleanmaster/junk/util/JunkUtils;->getContext()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/junk/util/MediaFile;-><init>(Landroid/content/ContentResolver;Ljava/io/File;)V

    invoke-virtual {v2}, Lcom/cleanmaster/junk/util/MediaFile;->delete()Z
    :try_end_fe
    .catch Ljava/io/IOException; {:try_start_ee .. :try_end_fe} :catch_100

    goto/16 :goto_4

    .line 793
    :catch_100
    move-exception v2

    goto/16 :goto_4

    :cond_103
    move v4, v2

    goto/16 :goto_52
.end method

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

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

    const/4 v1, 0x1

    invoke-static {p0, v0, p1, v1}, Lcom/cleanmaster/junk/util/Commons;->internalDirectDeleteFolder(Ljava/io/File;ZLcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;Z)V

    .line 596
    return-void
.end method

.method public static directListFilesInDirandSubDir(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/junk/bean/FilePathInfo;",
            ">;",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/cleanmaster/junk/bean/FilePathInfo;",
            ">;",
            "Ljava/lang/String;",
            "Lcom/cm/plugincluster/junkengine/util/INameFilter;",
            "I)V"
        }
    .end annotation

    .prologue
    const/4 v2, 0x0

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

    if-gtz p4, :cond_6

    .line 1066
    :cond_5
    :goto_5
    return-void

    .line 1033
    :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 1034
    if-eqz v4, :cond_5

    .line 1037
    :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 1038
    if-eqz v1, :cond_50

    .line 1039
    if-eqz p0, :cond_4c

    .line 1040
    :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 1041
    new-instance v6, Lcom/cleanmaster/junk/bean/FilePathInfo;

    new-instance v7, Ljava/lang/StringBuilder;

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

    invoke-static {p2}, Lcom/cleanmaster/junk/util/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/junk/bean/FilePathInfo;-><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 1059
    :catchall_42
    move-exception v0

    :goto_43
    if-eqz v1, :cond_48

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

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

    throw v0

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

    move-object v1, v2

    .line 1048
    :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 1049
    if-eqz v1, :cond_8b

    .line 1050
    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 1051
    new-instance v5, Ljava/lang/StringBuilder;

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

    invoke-static {p2}, Lcom/cleanmaster/junk/util/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 1052
    if-eqz p1, :cond_85

    .line 1053
    new-instance v5, Lcom/cleanmaster/junk/bean/FilePathInfo;

    invoke-direct {v5, v0}, Lcom/cleanmaster/junk/bean/FilePathInfo;-><init>(Ljava/lang/String;)V

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

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

    invoke-static {p0, p1, v0, p3, v5}, Lcom/cleanmaster/junk/util/Commons;->directListFilesInDirandSubDir(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 1059
    :cond_8b
    if-eqz v1, :cond_90

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

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

    goto/16 :goto_5

    .line 1059
    :catchall_95
    move-exception v0

    move-object v1, v2

    goto :goto_43
.end method

.method private static directListFilesInDirandSubDirByMediaStore(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/junk/bean/FilePathInfo;",
            ">;",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/cleanmaster/junk/bean/FilePathInfo;",
            ">;",
            "Ljava/lang/String;",
            "Lcom/cm/plugincluster/junkengine/util/INameFilter;",
            ")V"
        }
    .end annotation

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

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

    .line 937
    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 939
    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 940
    :try_start_14
    invoke-static/range {v0 .. v8}, Lcom/cleanmaster/junk/util/Commons;->directListFilesInDirandSubDirByMediaStore(Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/lang/String;Lcom/cm/plugincluster/junkengine/util/INameFilter;JJLjava/util/concurrent/atomic/AtomicBoolean;)V

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

    .line 942
    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 955
    :cond_1e
    :goto_1e
    return-void

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

    move v9, v0

    goto :goto_c

    .line 946
    :catch_23
    move-exception v0

    .line 948
    :try_start_24
    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 949
    invoke-virtual {v1, v0}, Ljava/lang/OutOfMemoryError;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;

    .line 950
    const-string v0, "7001"

    invoke-static {v0, v1}, Lcom/cleanmaster/crash/JunkCustomCrashReporter;->reportCrash(Ljava/lang/String;Ljava/lang/Throwable;)V
    :try_end_4e
    .catch Ljava/lang/Throwable; {:try_start_24 .. :try_end_4e} :catch_4f

    goto :goto_1e

    .line 951
    :catch_4f
    move-exception v0

    goto :goto_1e
.end method

.method private static directListFilesInDirandSubDirByMediaStore(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/junk/bean/FilePathInfo;",
            ">;",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/cleanmaster/junk/bean/FilePathInfo;",
            ">;",
            "Ljava/lang/String;",
            "Lcom/cm/plugincluster/junkengine/util/INameFilter;",
            "JJ",
            "Ljava/util/concurrent/atomic/AtomicBoolean;",
            ")V"
        }
    .end annotation

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

    .line 960
    if-eqz p0, :cond_ce

    if-eqz p1, :cond_ce

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

    move-object/from16 v0, p8

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

    .line 968
    const/4 v8, 0x0

    .line 969
    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 977
    :try_start_29
    invoke-static {}, Lcom/cleanmaster/junk/util/JunkUtils;->getContext()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 978
    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 981
    invoke-static/range {p2 .. p2}, Lcom/cleanmaster/junk/util/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/junk/util/FileUtils;->replaceEndSlashBy0(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    aput-object v9, v6, v7

    const/4 v7, 0x0

    .line 978
    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_4c
    .catch Ljava/lang/Exception; {:try_start_29 .. :try_end_4c} :catch_13a
    .catchall {:try_start_29 .. :try_end_4c} :catchall_129

    move-result-object v16

    .line 984
    if-eqz v16, :cond_c2

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

    move-result v2

    if-eqz v2, :cond_c2

    .line 985
    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_64

    .line 986
    const/4 v2, 0x1

    move-object/from16 v0, p8

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

    .line 989
    :cond_64
    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 990
    const/4 v2, 0x1

    move-object/from16 v0, v16

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

    move-result-wide v8

    .line 991
    const/4 v2, 0x2

    move-object/from16 v0, v16

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

    move-result-wide v4

    .line 992
    const/4 v2, 0x3

    move-object/from16 v0, v16

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

    move-result-wide v6

    .line 993
    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 994
    const-wide/16 v12, 0x3001

    cmp-long v2, v8, v12

    if-nez v2, :cond_fa

    const/4 v2, 0x1

    move v8, v2

    .line 995
    :goto_8f
    const/4 v2, 0x1

    .line 996
    if-eqz p3, :cond_ac

    .line 997
    const/16 v9, 0x2f

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

    move-result v9

    .line 998
    const/4 v11, -0x1

    if-eq v9, v11, :cond_ac

    .line 999
    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 1002
    :cond_ac
    if-eqz v2, :cond_bc

    .line 1003
    if-eqz v8, :cond_fd

    .line 1004
    if-eqz p1, :cond_bc

    .line 1005
    new-instance v2, Lcom/cleanmaster/junk/bean/FilePathInfo;

    invoke-direct {v2, v3}, Lcom/cleanmaster/junk/bean/FilePathInfo;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p1

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

    .line 1016
    :cond_bc
    :goto_bc
    invoke-interface/range {v16 .. v16}, Landroid/database/Cursor;->moveToNext()Z
    :try_end_bf
    .catch Ljava/lang/Exception; {:try_start_4f .. :try_end_bf} :catch_11a
    .catchall {:try_start_4f .. :try_end_bf} :catchall_138

    move-result v2

    if-nez v2, :cond_64

    .line 1020
    :cond_c2
    if-eqz v16, :cond_cd

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

    move-result v2

    if-nez v2, :cond_cd

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

    .line 1025
    :cond_cd
    :goto_cd
    return-void

    .line 962
    :cond_ce
    if-eqz p0, :cond_e5

    .line 963
    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 965
    :cond_e5
    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 994
    :cond_fa
    const/4 v2, 0x0

    move v8, v2

    goto :goto_8f

    .line 1007
    :cond_fd
    if-eqz p3, :cond_104

    move-object/from16 v2, p3

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

    .line 1010
    :cond_104
    if-eqz p0, :cond_bc

    .line 1011
    new-instance v8, Lcom/cleanmaster/junk/bean/FilePathInfo;

    .line 1012
    invoke-static {v10}, Lcom/cleanmaster/junk/bean/FilePathInfo;->MediaTypeByMimeStr(Ljava/lang/String;)I

    move-result v14

    sget-byte v15, Lcom/cleanmaster/junk/bean/FilePathInfo;->SIZEINFO_SRC_MEDIASTORE:B

    move-object v9, v3

    move-wide v10, v6

    move-wide v12, v4

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

    .line 1011
    move-object/from16 v0, p0

    invoke-virtual {v0, v8}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_119
    .catch Ljava/lang/Exception; {:try_start_101 .. :try_end_119} :catch_11a
    .catchall {:try_start_101 .. :try_end_119} :catchall_138

    goto :goto_bc

    .line 1018
    :catch_11a
    move-exception v2

    move-object/from16 v2, v16

    .line 1020
    :goto_11d
    if-eqz v2, :cond_cd

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

    move-result v3

    if-nez v3, :cond_cd

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

    goto :goto_cd

    .line 1020
    :catchall_129
    move-exception v2

    move-object/from16 v16, v8

    :goto_12c
    if-eqz v16, :cond_137

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

    move-result v3

    if-nez v3, :cond_137

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

    .line 1022
    :cond_137
    throw v2

    .line 1020
    :catchall_138
    move-exception v2

    goto :goto_12c

    .line 1018
    :catch_13a
    move-exception v2

    move-object v2, v8

    goto :goto_11d
.end method

.method private static directMoveFile(Ljava/io/File;Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;)Z
    .registers 7

    .prologue
    const/4 v0, 0x0

    .line 1329
    .line 1331
    if-eqz p0, :cond_5

    if-nez p1, :cond_6

    .line 1366
    :cond_5
    :goto_5
    return v0

    .line 1335
    :cond_6
    if-eqz p2, :cond_10

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

    move-result v1

    and-int/lit8 v1, v1, 0x40

    if-nez v1, :cond_36

    .line 1336
    :cond_10
    if-eqz p0, :cond_36

    .line 1337
    const-string v1, "MFi"

    new-instance v2, Ljava/lang/StringBuilder;

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

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

    move-result-object v3

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

    move-result-object v2

    const-string v3, " to "

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

    move-result-object v2

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

    move-result-object v3

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

    move-result-object v2

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

    move-result-object v2

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

    .line 1341
    :cond_36
    if-eqz p2, :cond_5c

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

    move-result v1

    and-int/lit8 v1, v1, 0x8

    const/16 v2, 0x8

    if-ne v1, v2, :cond_4c

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

    move-result-object v1

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

    move-result v1

    if-eqz v1, :cond_5

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

    move-result v0

    and-int/lit8 v0, v0, 0x2

    const/4 v1, 0x2

    if-ne v0, v1, :cond_5c

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

    move-result-object v0

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

    .line 1353
    :cond_5c
    invoke-virtual {p0, p1}, Ljava/io/File;->renameTo(Ljava/io/File;)Z

    move-result v0

    .line 1355
    if-nez v0, :cond_7d

    .line 1356
    invoke-static {}, Lcom/cm/plugincluster/root/SuExecHostProxy;->getInstance()Lcom/cm/plugincluster/root/ISuExec;

    move-result-object v1

    invoke-interface {v1}, Lcom/cm/plugincluster/root/ISuExec;->checkRoot()Z

    move-result v1

    if-eqz v1, :cond_7d

    .line 1357
    invoke-static {}, Lcom/cm/plugincluster/root/SuExecHostProxy;->getInstance()Lcom/cm/plugincluster/root/ISuExec;

    move-result-object v0

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

    move-result-object v1

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

    move-result-object v2

    const/4 v3, 0x1

    invoke-interface {v0, v1, v2, v3}, Lcom/cm/plugincluster/root/ISuExec;->moveFileOrFolder(Ljava/lang/String;Ljava/lang/String;Z)Z

    move-result v0

    .line 1362
    :cond_7d
    if-eqz p2, :cond_5

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

    move-result-object v1

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

    goto/16 :goto_5
.end method

.method public static getAllSdCardsStorageInfo()Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfo;
    .registers 1

    .prologue
    .line 1442
    new-instance v0, Lcom/cleanmaster/junk/util/StorageList;

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

    .line 1443
    invoke-virtual {v0}, Lcom/cleanmaster/junk/util/StorageList;->getMountedVolumePaths()Ljava/util/ArrayList;

    move-result-object v0

    .line 1444
    if-nez v0, :cond_d

    .line 1445
    const/4 v0, 0x0

    .line 1448
    :goto_c
    return-object v0

    :cond_d
    invoke-static {v0}, Lcom/cleanmaster/junk/util/StorageInfoUtils;->getStorageInfo(Ljava/util/ArrayList;)Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfo;

    move-result-object v0

    goto :goto_c
.end method

.method public static getDateFormatStandard(J)Ljava/lang/String;
    .registers 4

    .prologue
    .line 1166
    invoke-static {}, Lcom/cleanmaster/junk/util/ServiceConfigManager;->getInstance()Lcom/cleanmaster/junk/util/ServiceConfigManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/junk/util/ServiceConfigManager;->getLanguageSelected()Lcom/cm/plugincluster/cleanmaster/base/util/system/LanguageCountry;

    move-result-object v0

    .line 1167
    invoke-static {}, Lcom/cleanmaster/cleancloud/core/AppGlobalData;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1, p0, p1, v0}, Lcom/cleanmaster/junk/util/Commons;->getDateFormatStandard(Landroid/content/Context;JLcom/cm/plugincluster/cleanmaster/base/util/system/LanguageCountry;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method private static declared-synchronized getDateFormatStandard(Landroid/content/Context;JLcom/cm/plugincluster/cleanmaster/base/util/system/LanguageCountry;)Ljava/lang/String;
    .registers 11

    .prologue
    const/4 v5, 0x1

    .line 1174
    const-class v1, Lcom/cleanmaster/junk/util/Commons;

    monitor-enter v1

    :try_start_4
    new-instance v0, Ljava/util/Date;

    invoke-direct {v0, p1, p2}, Ljava/util/Date;-><init>(J)V

    .line 1175
    invoke-virtual {v0}, Ljava/util/Date;->getYear()I

    move-result v0

    const/16 v2, 0x46

    if-eq v0, v2, :cond_9e

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

    move-result-object v0

    .line 1177
    new-instance v2, Ljava/util/Date;

    invoke-direct {v2, p1, p2}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v0, v2}, Ljava/util/Calendar;->setTime(Ljava/util/Date;)V

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

    move-result-object v2

    .line 1180
    const/4 v3, 0x1

    invoke-virtual {v2, v3}, Ljava/util/Calendar;->get(I)I

    move-result v3

    const/4 v4, 0x1

    invoke-virtual {v0, v4}, Ljava/util/Calendar;->get(I)I

    move-result v4

    if-ne v3, v4, :cond_56

    .line 1181
    const/4 v3, 0x6

    invoke-virtual {v2, v3}, Ljava/util/Calendar;->get(I)I

    move-result v3

    const/4 v4, 0x6

    invoke-virtual {v0, v4}, Ljava/util/Calendar;->get(I)I

    move-result v4

    if-ne v3, v4, :cond_41

    .line 1182
    sget v0, Lcom/cleanmaster/junk/junkengine/R$string;->today:I

    invoke-virtual {p0, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
    :try_end_3e
    .catchall {:try_start_4 .. :try_end_3e} :catchall_a5

    move-result-object v0

    .line 1203
    :goto_3f
    monitor-exit v1

    return-object v0

    .line 1183
    :cond_41
    const/4 v3, 0x6

    :try_start_42
    invoke-virtual {v2, v3}, Ljava/util/Calendar;->get(I)I

    move-result v2

    const/4 v3, 0x6

    invoke-virtual {v0, v3}, Ljava/util/Calendar;->get(I)I

    move-result v0

    sub-int v0, v2, v0

    if-ne v0, v5, :cond_56

    .line 1184
    sget v0, Lcom/cleanmaster/junk/junkengine/R$string;->yesterday:I

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

    move-result-object v0

    goto :goto_3f

    .line 1189
    :cond_56
    invoke-virtual {p3}, Lcom/cm/plugincluster/cleanmaster/base/util/system/LanguageCountry;->getLanguage()Ljava/lang/String;

    move-result-object v0

    sget-object v2, Lcom/cm/plugincluster/cleanmaster/base/util/system/LanguageCountry;->LANGUAGE_OPTION_EN:Ljava/lang/String;

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

    move-result v0

    if-eqz v0, :cond_81

    .line 1190
    sget-object v0, Lcom/cleanmaster/junk/util/Commons;->sDATE_FMT_EN:Ljava/text/SimpleDateFormat;

    if-nez v0, :cond_76

    .line 1191
    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string v2, "MMM dd, yyyy"

    new-instance v3, Ljava/util/Locale;

    const-string v4, "en"

    invoke-direct {v3, v4}, Ljava/util/Locale;-><init>(Ljava/lang/String;)V

    invoke-direct {v0, v2, v3}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V

    sput-object v0, Lcom/cleanmaster/junk/util/Commons;->sDATE_FMT_EN:Ljava/text/SimpleDateFormat;

    .line 1194
    :cond_76
    sget-object v0, Lcom/cleanmaster/junk/util/Commons;->sDATE_FMT_EN:Ljava/text/SimpleDateFormat;

    invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    goto :goto_3f

    .line 1197
    :cond_81
    sget-object v0, Lcom/cleanmaster/junk/util/Commons;->sDATE_FMT_DEFAULT:Ljava/text/SimpleDateFormat;

    if-nez v0, :cond_93

    .line 1198
    new-instance v0, Ljava/text/SimpleDateFormat;

    const-string/jumbo v2, "yyyy-MM-dd"

    invoke-static {}, Ljava/util/Locale;->getDefault()Ljava/util/Locale;

    move-result-object v3

    invoke-direct {v0, v2, v3}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;Ljava/util/Locale;)V

    sput-object v0, Lcom/cleanmaster/junk/util/Commons;->sDATE_FMT_DEFAULT:Ljava/text/SimpleDateFormat;

    .line 1200
    :cond_93
    sget-object v0, Lcom/cleanmaster/junk/util/Commons;->sDATE_FMT_DEFAULT:Ljava/text/SimpleDateFormat;

    invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    goto :goto_3f

    .line 1203
    :cond_9e
    sget v0, Lcom/cleanmaster/junk/junkengine/R$string;->unknown_app_install_date:I

    invoke-virtual {p0, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;
    :try_end_a3
    .catchall {:try_start_42 .. :try_end_a3} :catchall_a5

    move-result-object v0

    goto :goto_3f

    .line 1174
    :catchall_a5
    move-exception v0

    monitor-exit v1

    throw v0
.end method

.method public static getDeleteTaskShowProgressDialogFileNumValve()I
    .registers 4

    .prologue
    .line 1558
    sget v0, Lcom/cleanmaster/junk/util/Commons;->deleteTaskShowProgressDialogFileNumValve:I

    if-nez v0, :cond_1a

    .line 1559
    const-class v1, Lcom/cleanmaster/junk/util/Commons;

    monitor-enter v1

    .line 1560
    :try_start_7
    sget v0, Lcom/cleanmaster/junk/util/Commons;->deleteTaskShowProgressDialogFileNumValve:I

    if-nez v0, :cond_19

    .line 1561
    const-string/jumbo v0, "section_junk_other"

    const-string/jumbo v2, "subkey_other_delete_task_show_progressdialog_valve"

    const/16 v3, 0x64

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

    move-result v0

    sput v0, Lcom/cleanmaster/junk/util/Commons;->deleteTaskShowProgressDialogFileNumValve:I

    .line 1566
    :cond_19
    monitor-exit v1
    :try_end_1a
    .catchall {:try_start_7 .. :try_end_1a} :catchall_1d

    .line 1569
    :cond_1a
    sget v0, Lcom/cleanmaster/junk/util/Commons;->deleteTaskShowProgressDialogFileNumValve:I

    return v0

    .line 1566
    :catchall_1d
    move-exception v0

    :try_start_1e
    monitor-exit v1
    :try_end_1f
    .catchall {:try_start_1e .. :try_end_1f} :catchall_1d

    throw v0
.end method

.method public static getExternalStorageDirectoryPath()Ljava/lang/String;
    .registers 2

    .prologue
    .line 1282
    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 1284
    :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 1289
    :goto_1c
    return-object v0

    .line 1288
    :cond_1d
    new-instance v0, Lcom/cleanmaster/junk/util/StorageList;

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

    .line 1289
    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/cleanmaster/junk/util/StorageList;->getExternalPath(Z)Ljava/lang/String;

    move-result-object v0

    goto :goto_1c
.end method

.method public static getExternalStorageFile()Ljava/io/File;
    .registers 2

    .prologue
    .line 1648
    invoke-static {}, Lcom/cleanmaster/junk/util/Commons;->getExternalStorageDirectoryPath()Ljava/lang/String;

    move-result-object v1

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

    move-result v0

    if-nez v0, :cond_16

    .line 1650
    new-instance v0, Ljava/io/File;

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

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

    move-result v1

    if-eqz v1, :cond_16

    .line 1655
    :goto_15
    return-object v0

    :cond_16
    const/4 v0, 0x0

    goto :goto_15
.end method

.method public static getFirstSdcardPath()Ljava/lang/String;
    .registers 2

    .prologue
    .line 87
    sget-object v0, Lcom/cleanmaster/junk/util/Commons;->firstSdcardPath:Ljava/lang/String;

    if-nez v0, :cond_16

    .line 88
    const-class v1, Lcom/cleanmaster/junk/util/Commons;

    monitor-enter v1

    .line 89
    :try_start_7
    sget-object v0, Lcom/cleanmaster/junk/util/Commons;->firstSdcardPath:Ljava/lang/String;
    :try_end_9
    .catchall {:try_start_7 .. :try_end_9} :catchall_1e

    if-nez v0, :cond_15

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

    move-result-object v0

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

    move-result-object v0

    sput-object v0, Lcom/cleanmaster/junk/util/Commons;->firstSdcardPath:Ljava/lang/String;
    :try_end_15
    .catch Ljava/lang/Exception; {:try_start_b .. :try_end_15} :catch_19
    .catchall {:try_start_b .. :try_end_15} :catchall_1e

    .line 96
    :cond_15
    :goto_15
    :try_start_15
    monitor-exit v1
    :try_end_16
    .catchall {:try_start_15 .. :try_end_16} :catchall_1e

    .line 99
    :cond_16
    sget-object v0, Lcom/cleanmaster/junk/util/Commons;->firstSdcardPath:Ljava/lang/String;

    return-object v0

    .line 92
    :catch_19
    move-exception v0

    .line 93
    const/4 v0, 0x0

    :try_start_1b
    sput-object v0, Lcom/cleanmaster/junk/util/Commons;->firstSdcardPath:Ljava/lang/String;

    goto :goto_15

    .line 96
    :catchall_1e
    move-exception v0

    monitor-exit v1
    :try_end_20
    .catchall {:try_start_1b .. :try_end_20} :catchall_1e

    throw v0
.end method

.method public static getInternalSdCardsStorageInfo()Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfo;
    .registers 1

    .prologue
    .line 218
    new-instance v0, Lcom/cleanmaster/junk/util/StorageList;

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

    .line 219
    invoke-virtual {v0}, Lcom/cleanmaster/junk/util/StorageList;->getMountedPhoneVolumePaths()Ljava/util/ArrayList;

    move-result-object v0

    .line 220
    if-nez v0, :cond_d

    .line 221
    const/4 v0, 0x0

    .line 224
    :goto_c
    return-object v0

    :cond_d
    invoke-static {v0}, Lcom/cleanmaster/junk/util/StorageInfoUtils;->getStorageInfo(Ljava/util/ArrayList;)Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfo;

    move-result-object v0

    goto :goto_c
.end method

.method public static getInternalStorageDirectoryPath()Ljava/lang/String;
    .registers 6
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    .prologue
    .line 1236
    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_35

    .line 1238
    :cond_14
    new-instance v0, Lcom/cleanmaster/junk/util/StorageList;

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

    .line 1239
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/cleanmaster/junk/util/StorageList;->getExternalPath(Z)Ljava/lang/String;

    move-result-object v0

    .line 1242
    :try_start_1e
    new-instance v1, Landroid/os/StatFs;

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

    .line 1243
    invoke-virtual {v1}, Landroid/os/StatFs;->getBlockCount()I

    move-result v2

    invoke-virtual {v1}, Landroid/os/StatFs;->getBlockSize()I
    :try_end_2a
    .catch Ljava/lang/Exception; {:try_start_1e .. :try_end_2a} :catch_7b

    move-result v1

    mul-int/2addr v1, v2

    int-to-long v2, v1

    .line 1245
    const-wide/32 v4, 0x20000000

    cmp-long v1, v2, v4

    if-ltz v1, :cond_5a

    .line 1273
    :goto_34
    return-object v0

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

    const/16 v1, 0x9

    if-lt v0, v1, :cond_5c

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

    move-result-object v0

    const-string v1, "mounted"

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

    move-result v0

    if-eqz v0, :cond_5a

    invoke-static {}, Landroid/os/Environment;->isExternalStorageRemovable()Z

    move-result v0

    if-nez v0, :cond_5a

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

    move-result-object v0

    invoke-virtual {v0}, Ljava/io/File;->getPath()Ljava/lang/String;
    :try_end_54
    .catch Ljava/lang/IllegalArgumentException; {:try_start_3b .. :try_end_54} :catch_56

    move-result-object v0

    goto :goto_34

    .line 1259
    :catch_56
    move-exception v0

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

    .line 1273
    :cond_5a
    :goto_5a
    const/4 v0, 0x0

    goto :goto_34

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

    move-result-object v0

    const-string v1, "mounted"

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

    move-result v0

    if-eqz v0, :cond_5a

    .line 1265
    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 1266
    invoke-static {}, Lcom/cleanmaster/junk/util/Commons;->getExternalStorageDirectoryPath()Ljava/lang/String;

    move-result-object v1

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

    move-result v1

    if-nez v1, :cond_5a

    goto :goto_34

    .line 1248
    :catch_7b
    move-exception v0

    goto :goto_5a
.end method

.method public static getMediaFileNumInfo(Landroid/content/Context;Lcom/cm/plugincluster/junkengine/junk/bean/JunkInfoBase;)Ljava/lang/String;
    .registers 10

    .prologue
    const/4 v3, 0x0

    const/4 v2, 0x0

    const/4 v1, 0x1

    .line 1455
    if-eqz p0, :cond_7

    if-nez p1, :cond_9

    :cond_7
    move-object v0, v3

    .line 1505
    :goto_8
    return-object v0

    .line 1459
    :cond_9
    invoke-virtual {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/JunkInfoBase;->getAudioNum()I

    move-result v0

    if-gtz v0, :cond_1d

    invoke-virtual {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/JunkInfoBase;->getImageNum()I

    move-result v0

    if-gtz v0, :cond_1d

    invoke-virtual {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/JunkInfoBase;->getVideoNum()I

    move-result v0

    if-gtz v0, :cond_1d

    move-object v0, v3

    .line 1460
    goto :goto_8

    .line 1464
    :cond_1d
    new-instance v4, Ljava/lang/StringBuilder;

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

    .line 1466
    invoke-virtual {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/JunkInfoBase;->getAudioNum()I

    move-result v0

    if-lez v0, :cond_d8

    .line 1467
    invoke-virtual {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/JunkInfoBase;->getAudioNum()I

    move-result v0

    if-eq v1, v0, :cond_a9

    .line 1468
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v5, Lcom/cleanmaster/junk/junkengine/R$string;->alert_media_file_audio_m:I

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

    invoke-virtual {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/JunkInfoBase;->getAudioNum()I

    move-result v7

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

    move-result-object v7

    aput-object v7, v6, v2

    invoke-virtual {v0, v5, v6}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

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

    :goto_47
    move v0, v1

    .line 1475
    :goto_48
    invoke-virtual {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/JunkInfoBase;->getImageNum()I

    move-result v5

    if-lez v5, :cond_75

    .line 1476
    if-eqz v0, :cond_55

    .line 1477
    const-string v0, ", "

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

    .line 1480
    :cond_55
    invoke-virtual {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/JunkInfoBase;->getImageNum()I

    move-result v0

    if-eq v1, v0, :cond_b7

    .line 1481
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v5, Lcom/cleanmaster/junk/junkengine/R$string;->alert_media_file_image_m:I

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

    invoke-virtual {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/JunkInfoBase;->getImageNum()I

    move-result v7

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

    move-result-object v7

    aput-object v7, v6, v2

    invoke-virtual {v0, v5, v6}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

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

    :goto_74
    move v0, v1

    .line 1488
    :cond_75
    invoke-virtual {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/JunkInfoBase;->getVideoNum()I

    move-result v5

    if-lez v5, :cond_d6

    .line 1489
    if-eqz v0, :cond_82

    .line 1490
    const-string v0, ", "

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

    .line 1493
    :cond_82
    invoke-virtual {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/JunkInfoBase;->getVideoNum()I

    move-result v0

    if-eq v1, v0, :cond_c5

    .line 1494
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v5, Lcom/cleanmaster/junk/junkengine/R$string;->alert_media_file_video_m:I

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

    invoke-virtual {p1}, Lcom/cm/plugincluster/junkengine/junk/bean/JunkInfoBase;->getVideoNum()I

    move-result v7

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

    move-result-object v7

    aput-object v7, v6, v2

    invoke-virtual {v0, v5, v6}, Landroid/content/res/Resources;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

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

    .line 1501
    :goto_a1
    if-eqz v1, :cond_d3

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

    move-result-object v0

    goto/16 :goto_8

    .line 1470
    :cond_a9
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v5, Lcom/cleanmaster/junk/junkengine/R$string;->alert_media_file_audio_s:I

    invoke-virtual {v0, v5}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

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

    goto :goto_47

    .line 1483
    :cond_b7
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v5, Lcom/cleanmaster/junk/junkengine/R$string;->alert_media_file_image_s:I

    invoke-virtual {v0, v5}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

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

    goto :goto_74

    .line 1496
    :cond_c5
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    sget v2, Lcom/cleanmaster/junk/junkengine/R$string;->alert_media_file_video_s:I

    invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

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

    goto :goto_a1

    :cond_d3
    move-object v0, v3

    .line 1505
    goto/16 :goto_8

    :cond_d6
    move v1, v0

    goto :goto_a1

    :cond_d8
    move v0, v2

    goto/16 :goto_48
.end method

.method public static getMediaFileNumInfo(Landroid/content/Context;Ljava/util/List;)Ljava/lang/String;
    .registers 7
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/List",
            "<",
            "Lcom/cleanmaster/junk/bean/CacheInfo;",
            ">;)",
            "Ljava/lang/String;"
        }
    .end annotation

    .prologue
    .line 1512
    if-eqz p0, :cond_4

    if-nez p1, :cond_6

    .line 1513
    :cond_4
    const/4 v0, 0x0

    .line 1551
    :goto_5
    return-object v0

    .line 1516
    :cond_6
    new-instance v1, Lcom/cleanmaster/junk/bean/CacheInfo;

    invoke-direct {v1}, Lcom/cleanmaster/junk/bean/CacheInfo;-><init>()V

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

    move-result-object v2

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

    move-result v0

    if-eqz v0, :cond_90

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

    move-result-object v0

    check-cast v0, Lcom/cleanmaster/junk/bean/CacheInfo;

    .line 1518
    if-eqz v0, :cond_f

    .line 1522
    invoke-virtual {v0}, Lcom/cleanmaster/junk/bean/CacheInfo;->getAudioNum()I

    move-result v3

    if-gtz v3, :cond_2f

    invoke-virtual {v0}, Lcom/cleanmaster/junk/bean/CacheInfo;->getImageNum()I

    move-result v3

    if-gtz v3, :cond_2f

    invoke-virtual {v0}, Lcom/cleanmaster/junk/bean/CacheInfo;->getVideoNum()I

    move-result v3

    if-lez v3, :cond_f

    .line 1526
    :cond_2f
    invoke-virtual {v0}, Lcom/cleanmaster/junk/bean/CacheInfo;->getAudioNum()I

    move-result v3

    if-ltz v3, :cond_42

    .line 1527
    invoke-virtual {v1}, Lcom/cleanmaster/junk/bean/CacheInfo;->getAudioNum()I

    move-result v3

    if-gez v3, :cond_69

    .line 1528
    invoke-virtual {v0}, Lcom/cleanmaster/junk/bean/CacheInfo;->getAudioNum()I

    move-result v3

    invoke-virtual {v1, v3}, Lcom/cleanmaster/junk/bean/CacheInfo;->setAudioNum(I)V

    .line 1534
    :cond_42
    :goto_42
    invoke-virtual {v0}, Lcom/cleanmaster/junk/bean/CacheInfo;->getImageNum()I

    move-result v3

    if-ltz v3, :cond_55

    .line 1535
    invoke-virtual {v1}, Lcom/cleanmaster/junk/bean/CacheInfo;->getImageNum()I

    move-result v3

    if-gez v3, :cond_76

    .line 1536
    invoke-virtual {v0}, Lcom/cleanmaster/junk/bean/CacheInfo;->getImageNum()I

    move-result v3

    invoke-virtual {v1, v3}, Lcom/cleanmaster/junk/bean/CacheInfo;->setImageNum(I)V

    .line 1542
    :cond_55
    :goto_55
    invoke-virtual {v0}, Lcom/cleanmaster/junk/bean/CacheInfo;->getVideoNum()I

    move-result v3

    if-ltz v3, :cond_f

    .line 1543
    invoke-virtual {v1}, Lcom/cleanmaster/junk/bean/CacheInfo;->getVideoNum()I

    move-result v3

    if-gez v3, :cond_83

    .line 1544
    invoke-virtual {v0}, Lcom/cleanmaster/junk/bean/CacheInfo;->getVideoNum()I

    move-result v0

    invoke-virtual {v1, v0}, Lcom/cleanmaster/junk/bean/CacheInfo;->setVideoNum(I)V

    goto :goto_f

    .line 1530
    :cond_69
    invoke-virtual {v0}, Lcom/cleanmaster/junk/bean/CacheInfo;->getAudioNum()I

    move-result v3

    invoke-virtual {v1}, Lcom/cleanmaster/junk/bean/CacheInfo;->getAudioNum()I

    move-result v4

    add-int/2addr v3, v4

    invoke-virtual {v1, v3}, Lcom/cleanmaster/junk/bean/CacheInfo;->setAudioNum(I)V

    goto :goto_42

    .line 1538
    :cond_76
    invoke-virtual {v0}, Lcom/cleanmaster/junk/bean/CacheInfo;->getImageNum()I

    move-result v3

    invoke-virtual {v1}, Lcom/cleanmaster/junk/bean/CacheInfo;->getImageNum()I

    move-result v4

    add-int/2addr v3, v4

    invoke-virtual {v1, v3}, Lcom/cleanmaster/junk/bean/CacheInfo;->setImageNum(I)V

    goto :goto_55

    .line 1546
    :cond_83
    invoke-virtual {v0}, Lcom/cleanmaster/junk/bean/CacheInfo;->getVideoNum()I

    move-result v0

    invoke-virtual {v1}, Lcom/cleanmaster/junk/bean/CacheInfo;->getVideoNum()I

    move-result v3

    add-int/2addr v0, v3

    invoke-virtual {v1, v0}, Lcom/cleanmaster/junk/bean/CacheInfo;->setVideoNum(I)V

    goto :goto_f

    .line 1551
    :cond_90
    invoke-static {p0, v1}, Lcom/cleanmaster/junk/util/Commons;->getMediaFileNumInfo(Landroid/content/Context;Lcom/cm/plugincluster/junkengine/junk/bean/JunkInfoBase;)Ljava/lang/String;

    move-result-object v0

    goto/16 :goto_5
.end method

.method public static getRemovableSdCardsStorageInfo()Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfo;
    .registers 1

    .prologue
    .line 203
    new-instance v0, Lcom/cleanmaster/junk/util/StorageList;

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

    .line 204
    invoke-virtual {v0}, Lcom/cleanmaster/junk/util/StorageList;->getMountedSdCardVolumePaths()Ljava/util/ArrayList;

    move-result-object v0

    .line 205
    if-nez v0, :cond_d

    .line 206
    const/4 v0, 0x0

    .line 209
    :goto_c
    return-object v0

    :cond_d
    invoke-static {v0}, Lcom/cleanmaster/junk/util/StorageInfoUtils;->getStorageInfo(Ljava/util/ArrayList;)Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfo;

    move-result-object v0

    goto :goto_c
.end method

.method private static internalDirectDeleteFolder(Ljava/io/File;ZLcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;Z)V
    .registers 10

    .prologue
    .line 617
    const/16 v4, 0x80

    const/4 v5, 0x0

    move-object v0, p0

    move v1, p1

    move-object v2, p2

    move v3, p3

    :try_start_7
    invoke-static/range {v0 .. v5}, Lcom/cleanmaster/junk/util/Commons;->directDeleteFolder(Ljava/io/File;ZLcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;ZII)V
    :try_end_a
    .catch Ljava/lang/StackOverflowError; {:try_start_7 .. :try_end_a} :catch_1e

    .line 620
    :goto_a
    if-eqz p2, :cond_1d

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

    move-result v0

    and-int/lit8 v0, v0, 0x10

    const/16 v1, 0x10

    if-ne v0, v1, :cond_1d

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

    move-result-object v0

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

    .line 625
    :cond_1d
    return-void

    .line 618
    :catch_1e
    move-exception v0

    goto :goto_a
.end method

.method public static isCanMoveAppsSDCardExist()Z
    .registers 3

    .prologue
    const/4 v0, 0x0

    .line 1624
    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 1633
    :cond_9
    :goto_9
    return v0

    .line 1627
    :cond_a
    sget-boolean v1, Lcom/cleanmaster/junk/util/EmulateSdCardUtils;->s_bSdcardDataSame:Z

    if-eqz v1, :cond_16

    invoke-static {}, Lcom/cleanmaster/junk/util/Commons;->isExternalSdcardAvailable()Z

    move-result v1

    if-eqz v1, :cond_16

    .line 1628
    const/4 v0, 0x1

    goto :goto_9

    .line 1630
    :cond_16
    sget-boolean v1, Lcom/cleanmaster/junk/util/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 1631
    invoke-static {}, Lcom/cleanmaster/junk/util/Commons;->isExternalSdcardAvailable()Z

    move-result v0

    goto :goto_9
.end method

.method public static isEmptyFolder(Ljava/io/File;)Z
    .registers 4

    .prologue
    const/4 v2, 0x0

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

    move-result-object v0

    const/16 v1, 0x80

    invoke-static {v0, v1, v2, v2, v2}, Lcom/cleanmaster/util/path/PathOperFunc;->isEmptyFolder(Ljava/lang/String;ILcom/cleanmaster/util/IProgressCtrl;Ljava/util/List;Ljava/util/List;)Z

    move-result v0

    return v0
.end method

.method public static isExternalSdcardAvailable()Z
    .registers 4

    .prologue
    .line 1637
    invoke-static {}, Lcom/cleanmaster/junk/util/Commons;->getExternalStorageFile()Ljava/io/File;

    move-result-object v0

    .line 1638
    if-eqz v0, :cond_17

    .line 1639
    invoke-static {v0}, Lcom/cleanmaster/junk/util/StorageInfoUtils;->getStorageInfo(Ljava/io/File;)Lcom/cleanmaster/hpsharelib/base/util/io/StorageInfo;

    move-result-object v0

    .line 1640
    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 1641
    const/4 v0, 0x1

    .line 1644
    :goto_16
    return v0

    :cond_17
    const/4 v0, 0x0

    goto :goto_16
.end method

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

    .prologue
    const/4 v0, 0x0

    .line 1602
    if-eqz p0, :cond_9

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

    move-result v1

    if-eqz v1, :cond_a

    .line 1610
    :cond_9
    :goto_9
    return v0

    .line 1605
    :cond_a
    sget-object v2, Lcom/cleanmaster/junk/util/Commons;->mFingerSupportAppMove:[Ljava/lang/String;

    array-length v3, v2

    move v1, v0

    :goto_e
    if-ge v1, v3, :cond_9

    aget-object v4, v2, v1

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

    move-result v4

    if-eqz v4, :cond_1a

    .line 1607
    const/4 v0, 0x1

    goto :goto_9

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

    goto :goto_e
.end method

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

    .prologue
    .line 1619
    invoke-static {}, Lcom/cleanmaster/junk/util/Commons;->isSupportSysMove()Z

    move-result v0

    if-eqz v0, :cond_c

    invoke-static {}, Lcom/cleanmaster/junk/util/Commons;->isCanMoveAppsSDCardExist()Z

    move-result v0

    if-nez v0, :cond_19

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

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

    move-result-object v0

    invoke-static {v0}, Lcom/cleanmaster/junk/util/Commons;->isFingerSupportAppMove(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 isSupportCmMove()Z
    .registers 1

    .prologue
    .line 1614
    invoke-static {}, Lcom/cleanmaster/junk/util/CmBoxUtils;->getInstance()Lcom/cleanmaster/junk/util/CmBoxUtils;

    move-result-object v0

    invoke-virtual {v0}, Lcom/cleanmaster/junk/util/CmBoxUtils;->isActive()Z

    move-result v0

    if-eqz v0, :cond_12

    invoke-static {}, Lcom/cleanmaster/junk/util/Commons;->isExternalSdcardAvailable()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 isSupportSysMove()Z
    .registers 4

    .prologue
    const/4 v1, 0x1

    const/4 v0, 0x0

    .line 1663
    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 1695
    :cond_c
    :goto_c
    return v0

    .line 1667
    :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 1672
    :cond_24
    invoke-static {}, Lcom/cleanmaster/junk/util/Commons;->checkIsMIUIRom()Z

    move-result v2

    if-nez v2, :cond_c

    .line 1678
    sget-boolean v2, Lcom/cleanmaster/junk/util/EmulateSdCardUtils;->s_bSdcardDataSame:Z

    if-eqz v2, :cond_3e

    .line 1681
    invoke-static {}, Lcom/cleanmaster/junk/util/Commons;->checkPhoneIsSamung()Z

    move-result v2

    if-eqz v2, :cond_36

    move v0, v1

    .line 1682
    goto :goto_c

    .line 1686
    :cond_36
    invoke-static {}, Lcom/cleanmaster/junk/util/Commons;->checkPhoneIsHuaWei()Z

    move-result v2

    if-eqz v2, :cond_c

    move v0, v1

    .line 1687
    goto :goto_c

    :cond_3e
    move v0, v1

    .line 1695
    goto :goto_c
.end method

.method public static isSystemApp(Landroid/content/pm/ApplicationInfo;)Z
    .registers 3

    .prologue
    const/4 v0, 0x0

    .line 111
    if-nez p0, :cond_4

    .line 114
    :cond_3
    :goto_3
    return v0

    :cond_4
    iget v1, p0, Landroid/content/pm/ApplicationInfo;->flags:I

    and-int/lit8 v1, v1, 0x1

    if-nez v1, :cond_10

    iget v1, p0, Landroid/content/pm/ApplicationInfo;->flags:I

    and-int/lit16 v1, v1, 0x80

    if-eqz v1, :cond_3

    :cond_10
    const/4 v0, 0x1

    goto :goto_3
.end method

.method public static isUserApp(I)Z
    .registers 2

    .prologue
    .line 125
    and-int/lit8 v0, p0, 0x1

    if-nez v0, :cond_a

    and-int/lit16 v0, p0, 0x80

    if-nez v0, :cond_a

    const/4 v0, 0x1

    :goto_9
    return v0

    :cond_a
    const/4 v0, 0x0

    goto :goto_9
.end method

.method public static isUserApp(Landroid/content/pm/ApplicationInfo;)Z
    .registers 3

    .prologue
    const/4 v0, 0x0

    .line 118
    if-nez p0, :cond_4

    .line 121
    :cond_3
    :goto_3
    return v0

    :cond_4
    iget v1, p0, Landroid/content/pm/ApplicationInfo;->flags:I

    and-int/lit8 v1, v1, 0x1

    if-nez v1, :cond_3

    iget v1, p0, Landroid/content/pm/ApplicationInfo;->flags:I

    and-int/lit16 v1, v1, 0x80

    if-nez v1, :cond_3

    const/4 v0, 0x1

    goto :goto_3
.end method

.method public static listFilesInDirandSubDir(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/junk/bean/FilePathInfo;",
            ">;",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/cleanmaster/junk/bean/FilePathInfo;",
            ">;",
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/Object;",
            "Ljava/lang/Integer;",
            ">;ZI)V"
        }
    .end annotation

    .prologue
    .line 847
    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/junk/util/Commons;->listFilesInDirandSubDir(Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/util/List;Ljava/util/HashMap;ZIZ)V

    .line 848
    return-void
.end method

.method public static listFilesInDirandSubDir(Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/util/List;Ljava/util/HashMap;ZIZ)V
    .registers 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/cleanmaster/junk/bean/FilePathInfo;",
            ">;",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/cleanmaster/junk/bean/FilePathInfo;",
            ">;",
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/Object;",
            "Ljava/lang/Integer;",
            ">;ZIZ)V"
        }
    .end annotation

    .prologue
    .line 855
    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 927
    :cond_a
    return-void

    .line 859
    :cond_b
    new-instance v1, Lcom/cleanmaster/junk/util/Commons$2;

    invoke-direct {v1, p3, p4}, Lcom/cleanmaster/junk/util/Commons$2;-><init>(Ljava/util/HashMap;Z)V

    .line 919
    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 920
    if-eqz p6, :cond_27

    .line 921
    invoke-static {v0, v1}, Lcom/cleanmaster/junk/util/KSearchStringTreeHelper;->findListByPath(Ljava/lang/String;Lcom/cm/plugincluster/junkengine/util/INameFilter;)Ljava/util/ArrayList;

    move-result-object p0

    goto :goto_14

    .line 924
    :cond_27
    invoke-static {p0, p1, v0, v1, p5}, Lcom/cleanmaster/junk/util/Commons;->directListFilesInDirandSubDir(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 listFilesInDirandSubDirByMediaStore(Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/lang/String;Lcom/cm/plugincluster/junkengine/util/INameFilter;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/cleanmaster/junk/bean/FilePathInfo;",
            ">;",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/cleanmaster/junk/bean/FilePathInfo;",
            ">;",
            "Ljava/lang/String;",
            "Lcom/cm/plugincluster/junkengine/util/INameFilter;",
            ")V"
        }
    .end annotation

    .prologue
    .line 930
    invoke-static {p0, p1, p2, p3}, Lcom/cleanmaster/junk/util/Commons;->directListFilesInDirandSubDirByMediaStore(Ljava/util/ArrayList;Ljava/util/ArrayList;Ljava/lang/String;Lcom/cm/plugincluster/junkengine/util/INameFilter;)V

    .line 931
    return-void
.end method

.method public static moveFile(Ljava/io/File;Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;)Z
    .registers 4

    .prologue
    .line 1304
    .line 1306
    if-eqz p0, :cond_4

    if-nez p1, :cond_6

    .line 1307
    :cond_4
    const/4 v0, 0x0

    .line 1316
    :goto_5
    return v0

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

    move-result v0

    if-eqz v0, :cond_11

    .line 1311
    invoke-static {p0, p1, p2}, Lcom/cleanmaster/junk/util/Commons;->directMoveFile(Ljava/io/File;Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;)Z

    move-result v0

    goto :goto_5

    .line 1314
    :cond_11
    invoke-static {p0, p1, p2}, Lcom/cleanmaster/junk/util/Commons;->moveFilesinFolder(Ljava/io/File;Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;)Z

    move-result v0

    goto :goto_5
.end method

.method private static moveFilesinFolder(Ljava/io/File;Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;)Z
    .registers 14

    .prologue
    const/4 v2, 0x0

    .line 1379
    const/4 v0, 0x0

    .line 1380
    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 v4

    .line 1382
    if-eqz v4, :cond_d1

    .line 1383
    const/4 v0, 0x1

    .line 1385
    :try_start_d
    invoke-interface {v4}, Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;->getFileNameList()Lcom/cm/plugincluster/junkengine/util/path/IKStringList;
    :try_end_10
    .catch Ljava/lang/StackOverflowError; {:try_start_d .. :try_end_10} :catch_d2
    .catchall {:try_start_d .. :try_end_10} :catchall_dd

    move-result-object v1

    .line 1386
    if-eqz v1, :cond_fb

    .line 1387
    :try_start_13
    invoke-virtual {p1}, Ljava/io/File;->mkdirs()Z

    move-result v3

    and-int/2addr v0, v3

    .line 1388
    invoke-interface {v1}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->iterator()Ljava/util/Iterator;
    :try_end_1b
    .catch Ljava/lang/StackOverflowError; {:try_start_13 .. :try_end_1b} :catch_ef
    .catchall {:try_start_13 .. :try_end_1b} :catchall_e8

    move-result-object v5

    move v3, v0

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

    move-result v0

    if-eqz v0, :cond_6b

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

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 1389
    new-instance v6, Ljava/io/File;

    new-instance v7, Ljava/lang/StringBuilder;

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

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

    move-result-object v8

    invoke-static {v8}, Lcom/cleanmaster/junk/util/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 v7

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

    move-result-object v7

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

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

    new-instance v8, Ljava/lang/StringBuilder;

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

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

    move-result-object v9

    invoke-static {v9}, Lcom/cleanmaster/junk/util/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 1391
    invoke-static {v6, v7, p2}, Lcom/cleanmaster/junk/util/Commons;->directMoveFile(Ljava/io/File;Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;)Z

    move-result v0

    and-int/2addr v3, v0

    .line 1392
    goto :goto_1d

    .line 1393
    :cond_6b
    invoke-interface {v1}, Lcom/cm/plugincluster/junkengine/util/path/IKStringList;->release()V
    :try_end_6e
    .catch Ljava/lang/StackOverflowError; {:try_start_1d .. :try_end_6e} :catch_f1
    .catchall {:try_start_1d .. :try_end_6e} :catchall_e8

    move-object v0, v2

    move v2, v3

    .line 1397
    :goto_70
    :try_start_70
    invoke-interface {v4}, Lcom/cm/plugincluster/junkengine/util/path/IFilesAndFoldersStringList;->getFolderNameList()Lcom/cm/plugincluster/junkengine/util/path/IKStringList;
    :try_end_73
    .catch Ljava/lang/StackOverflowError; {:try_start_70 .. :try_end_73} :catch_f4
    .catchall {:try_start_70 .. :try_end_73} :catchall_ea

    move-result-object v1

    .line 1398
    if-eqz v1, :cond_c8

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

    move-result-object v3

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

    move-result v0

    if-eqz v0, :cond_c8

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

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 1400
    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/junk/util/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 v6

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

    move-result-object v6

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

    .line 1401
    new-instance v6, Ljava/io/File;

    new-instance v7, Ljava/lang/StringBuilder;

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

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

    move-result-object v8

    invoke-static {v8}, Lcom/cleanmaster/junk/util/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}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 1402
    invoke-static {v5, v6, p2}, Lcom/cleanmaster/junk/util/Commons;->moveFilesinFolder(Ljava/io/File;Ljava/io/File;Lcom/cleanmaster/junkengine/junk/util/IdeleteFileNotify;)Z
    :try_end_c5
    .catch Ljava/lang/StackOverflowError; {:try_start_76 .. :try_end_c5} :catch_f8
    .catchall {:try_start_76 .. :try_end_c5} :catchall_e8

    move-result v0

    and-int/2addr v2, v0

    .line 1403
    goto :goto_7a

    :cond_c8
    move v0, v2

    .line 1407
    if-eqz v1, :cond_ce

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

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

    .line 1414
    :cond_d1
    :goto_d1
    return v0

    .line 1405
    :catch_d2
    move-exception v1

    move-object v1, v2

    .line 1407
    :goto_d4
    if-eqz v1, :cond_d9

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

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

    goto :goto_d1

    .line 1407
    :catchall_dd
    move-exception v0

    move-object v1, v2

    :goto_df
    if-eqz v1, :cond_e4

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

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

    throw v0

    .line 1407
    :catchall_e8
    move-exception v0

    goto :goto_df

    :catchall_ea
    move-exception v1

    move-object v10, v1

    move-object v1, v0

    move-object v0, v10

    goto :goto_df

    .line 1405
    :catch_ef
    move-exception v2

    goto :goto_d4

    :catch_f1
    move-exception v0

    move v0, v3

    goto :goto_d4

    :catch_f4
    move-exception v1

    move-object v1, v0

    move v0, v2

    goto :goto_d4

    :catch_f8
    move-exception v0

    move v0, v2

    goto :goto_d4

    :cond_fb
    move v2, v0

    move-object v0, v1

    goto/16 :goto_70
.end method

.method public static random()D
    .registers 4

    .prologue
    .line 1072
    sget-object v1, Lcom/cleanmaster/junk/util/Commons;->mRandObj:Ljava/util/Random;

    monitor-enter v1

    .line 1073
    :try_start_3
    sget-object v0, Lcom/cleanmaster/junk/util/Commons;->mRandObj:Ljava/util/Random;

    invoke-virtual {v0}, Ljava/util/Random;->nextDouble()D

    move-result-wide v2

    monitor-exit v1

    return-wide v2

    .line 1074
    :catchall_b
    move-exception v0

    monitor-exit v1
    :try_end_d
    .catchall {:try_start_3 .. :try_end_d} :catchall_b

    throw v0
.end method