KcmutilSoLoader.smali

.class public Lcom/cleanmaster/util/lib/KcmutilSoLoader;
.super Ljava/lang/Object;
.source "KcmutilSoLoader.java"


# static fields
.field public static final LIB_NAME:Ljava/lang/String; = "kcmutil"

.field private static volatile mLoaded:Z

.field private static mMutex:Ljava/lang/Object;


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

    .prologue
    .line 11
    new-instance v0, Ljava/lang/Object;

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

    sput-object v0, Lcom/cleanmaster/util/lib/KcmutilSoLoader;->mMutex:Ljava/lang/Object;

    .line 13
    const/4 v0, 0x0

    sput-boolean v0, Lcom/cleanmaster/util/lib/KcmutilSoLoader;->mLoaded:Z

    return-void
.end method

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

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

    return-void
.end method

.method public static doLoad()Z
    .registers 5

    .prologue
    const/4 v1, 0x0

    const/4 v0, 0x1

    .line 17
    sget-boolean v2, Lcom/cleanmaster/util/lib/KcmutilSoLoader;->mLoaded:Z

    if-eqz v2, :cond_7

    .line 43
    :goto_6
    return v0

    .line 22
    :cond_7
    sget-object v2, Lcom/cleanmaster/util/lib/KcmutilSoLoader;->mMutex:Ljava/lang/Object;

    monitor-enter v2

    .line 23
    :try_start_a
    sget-boolean v3, Lcom/cleanmaster/util/lib/KcmutilSoLoader;->mLoaded:Z

    if-eqz v3, :cond_13

    .line 24
    monitor-exit v2

    goto :goto_6

    .line 40
    :catchall_10
    move-exception v0

    monitor-exit v2
    :try_end_12
    .catchall {:try_start_a .. :try_end_12} :catchall_10

    throw v0

    .line 28
    :cond_13
    :try_start_13
    const-string v3, "KcmutilSoLoader"

    const-string v4, "+++++++++++++doLoad kcmutil"

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 29
    invoke-static {}, Lcom/cleanmaster/hpsharelib/base/lib/LibLoader;->getInstance()Lcom/cleanmaster/hpsharelib/base/lib/LibLoader;

    move-result-object v3

    const-string v4, "kcmutil"

    invoke-virtual {v3, v4}, Lcom/cleanmaster/hpsharelib/base/lib/LibLoader;->loadLibrary(Ljava/lang/String;)Ljava/lang/String;

    .line 30
    const-string v3, "KcmutilSoLoader"

    const-string v4, "-------------end doLoad "

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_2a
    .catch Ljava/lang/Exception; {:try_start_13 .. :try_end_2a} :catch_2e
    .catch Ljava/lang/Error; {:try_start_13 .. :try_end_2a} :catch_34
    .catchall {:try_start_13 .. :try_end_2a} :catchall_10

    .line 39
    :goto_2a
    :try_start_2a
    sput-boolean v0, Lcom/cleanmaster/util/lib/KcmutilSoLoader;->mLoaded:Z

    .line 40
    monitor-exit v2

    goto :goto_6

    .line 32
    :catch_2e
    move-exception v0

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

    move v0, v1

    .line 38
    goto :goto_2a

    .line 35
    :catch_34
    move-exception v0

    .line 36
    invoke-virtual {v0}, Ljava/lang/Error;->printStackTrace()V
    :try_end_38
    .catchall {:try_start_2a .. :try_end_38} :catchall_10

    move v0, v1

    .line 37
    goto :goto_2a
.end method

.method public static getSoPath()Ljava/lang/String;
    .registers 1

    .prologue
    .line 47
    const-string v0, "kcmutil"

    invoke-static {v0}, Lcom/cleanmaster/junk/util/JunkUtils;->loadLibrary(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method