H.smali

.class public Lcom/secneo/apkwrapper/H;
.super Ljava/lang/Object;
.source ""


# static fields
.field public static ACFNAME:Ljava/lang/String; = "androidy.core.app.CoreComponentFactory"

.field public static APPNAME:Ljava/lang/String; = "com.universe.messenger.AppShell"

.field public static ARM_LIBRARY:Ljava/lang/String; = "DexHelper"

.field public static HAVEX86:Ljava/lang/String; = "###HAVEX86###"

.field public static HAVEX8664:Ljava/lang/String; = "###HAVEX8664###"

.field public static ISMPAAS:Ljava/lang/String; = "###MPAAS###"

.field public static ISSOPHIX:Ljava/lang/String; = "###SOPHIX###"

.field public static ORI_AW_NAME:Ljava/lang/String; = "com.secneo.apkwrapper.AW"

.field public static PKGNAME:Ljava/lang/String; = "com.universe.messenger"

.field public static X86_LIBRARY:Ljava/lang/String; = "DexHelper-x86"


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

    return-void
.end method

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

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

    return-void
.end method

.method public static bytes2int([B)I
    .registers 7

    const/4 v0, 0x0

    :try_start_1
    new-array v0, v0, [I
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_3} :catch_7
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_3} :catch_5

    nop

    goto :goto_9

    :catch_5
    move-exception v0

    .local v0, "ex1":Ljava/lang/Throwable;
    throw v0

    .end local v0    # "ex1":Ljava/lang/Throwable;
    :catch_7
    move-exception v0

    .local v0, "ex1":Ljava/lang/Exception;
    throw v0

    :goto_9
    goto :goto_d

    invoke-static {}, Landroid/os/Debug;->resetGlobalClassInitTime()V

    :goto_d
    const/4 v0, 0x0

    aget-byte v1, p0, v0

    or-int/2addr v0, v1

    shl-int/lit8 v0, v0, 0x8

    const/4 v1, 0x1

    aget-byte v1, p0, v1

    or-int/2addr v0, v1

    shl-int/lit8 v0, v0, 0x8

    const/4 v1, 0x2

    aget-byte v1, p0, v1

    or-int/2addr v0, v1

    shl-int/lit8 v0, v0, 0x8

    const/4 v1, 0x3

    aget-byte p0, p0, v1

    or-int/2addr p0, v0

    return p0
.end method

.method public static native d(Ljava/lang/String;)Ljava/lang/String;
.end method

.method public static g(Ljava/lang/Object;)V
    .registers 7

    const/4 v0, 0x0

    :try_start_1
    new-array v0, v0, [I
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_3} :catch_7
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_3} :catch_5

    nop

    goto :goto_9

    :catch_5
    move-exception v0

    .local v0, "ex1":Ljava/lang/Throwable;
    throw v0

    .end local v0    # "ex1":Ljava/lang/Throwable;
    :catch_7
    move-exception v0

    .local v0, "ex1":Ljava/lang/Exception;
    throw v0

    :goto_9
    goto :goto_d

    invoke-static {}, Landroid/os/Debug;->waitForDebugger()V

    :goto_d
    return-void
.end method

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

    const/4 v0, 0x0

    :try_start_1
    new-array v0, v0, [I
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_3} :catch_7
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_3} :catch_5

    nop

    goto :goto_9

    :catch_5
    move-exception v0

    .local v0, "ex1":Ljava/lang/Throwable;
    throw v0

    .end local v0    # "ex1":Ljava/lang/Throwable;
    :catch_7
    move-exception v0

    .local v0, "ex1":Ljava/lang/Exception;
    throw v0

    :goto_9
    goto :goto_d

    invoke-static {}, Landroid/os/Debug;->waitForDebugger()V

    :goto_d
    :try_start_d
    invoke-virtual {p0, p2}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;

    move-result-object p0

    const/4 p2, 0x1

    invoke-virtual {p0, p2}, Ljava/lang/reflect/Field;->setAccessible(Z)V

    invoke-virtual {p0, p1}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0
    :try_end_19
    .catch Ljava/lang/NoSuchFieldException; {:try_start_d .. :try_end_19} :catch_24
    .catch Ljava/lang/IllegalAccessException; {:try_start_d .. :try_end_19} :catch_1f
    .catch Ljava/lang/IllegalArgumentException; {:try_start_d .. :try_end_19} :catch_1a

    return-object p0

    :catch_1a
    move-exception p0

    invoke-virtual {p0}, Ljava/lang/IllegalArgumentException;->printStackTrace()V

    goto :goto_28

    :catch_1f
    move-exception p0

    invoke-virtual {p0}, Ljava/lang/IllegalAccessException;->printStackTrace()V

    goto :goto_28

    :catch_24
    move-exception p0

    invoke-virtual {p0}, Ljava/lang/NoSuchFieldException;->printStackTrace()V

    :goto_28
    const/4 p0, 0x0

    return-object p0
.end method

.method public static getFieldValue(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
    .registers 9

    const/4 v0, 0x0

    :try_start_1
    new-array v0, v0, [I
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_3} :catch_7
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_3} :catch_5

    nop

    goto :goto_9

    :catch_5
    move-exception v0

    .local v0, "ex1":Ljava/lang/Throwable;
    throw v0

    .end local v0    # "ex1":Ljava/lang/Throwable;
    :catch_7
    move-exception v0

    .local v0, "ex1":Ljava/lang/Exception;
    throw v0

    :goto_9
    goto :goto_d

    invoke-static {}, Landroid/os/Debug;->resetGlobalClassInitCount()V

    :goto_d
    :try_start_d
    invoke-static {p0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object p0

    invoke-static {p0, p1, p2}, Lcom/secneo/apkwrapper/H;->getFieldValue(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p0
    :try_end_15
    .catch Ljava/lang/ClassNotFoundException; {:try_start_d .. :try_end_15} :catch_1b
    .catch Ljava/lang/IllegalArgumentException; {:try_start_d .. :try_end_15} :catch_16

    return-object p0

    :catch_16
    move-exception p0

    invoke-virtual {p0}, Ljava/lang/IllegalArgumentException;->printStackTrace()V

    goto :goto_1f

    :catch_1b
    move-exception p0

    invoke-virtual {p0}, Ljava/lang/ClassNotFoundException;->printStackTrace()V

    :goto_1f
    const/4 p0, 0x0

    return-object p0
.end method

.method private static getRuntimeAbi()I
    .registers 7

    const/4 v0, 0x0

    :try_start_1
    new-array v0, v0, [I
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_3} :catch_7
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_3} :catch_5

    nop

    goto :goto_9

    :catch_5
    move-exception v0

    .local v0, "ex1":Ljava/lang/Throwable;
    throw v0

    .end local v0    # "ex1":Ljava/lang/Throwable;
    :catch_7
    move-exception v0

    .local v0, "ex1":Ljava/lang/Exception;
    throw v0

    :goto_9
    goto :goto_d

    invoke-static {}, Landroid/os/StrictMode;->enableDefaults()V

    :goto_d
    const/16 v0, 0x14

    new-array v0, v0, [B

    const/4 v1, 0x0

    const/4 v2, 0x0

    :try_start_13
    new-instance v3, Ljava/io/FileInputStream;

    const-string v4, "/proc/self/exe"

    invoke-direct {v3, v4}, Ljava/io/FileInputStream;-><init>(Ljava/lang/String;)V
    :try_end_1a
    .catch Ljava/lang/Exception; {:try_start_13 .. :try_end_1a} :catch_57
    .catchall {:try_start_13 .. :try_end_1a} :catchall_4f

    :try_start_1a
    invoke-virtual {v3, v0}, Ljava/io/FileInputStream;->read([B)I

    const/4 v2, 0x4

    new-array v2, v2, [B

    aput-byte v1, v2, v1

    const/4 v4, 0x1

    aput-byte v1, v2, v4

    const/16 v5, 0x13

    aget-byte v5, v0, v5

    const/4 v6, 0x2

    aput-byte v5, v2, v6

    const/16 v5, 0x12

    aget-byte v0, v0, v5

    const/4 v5, 0x3

    aput-byte v0, v2, v5

    invoke-static {v2}, Lcom/secneo/apkwrapper/H;->bytes2int([B)I

    move-result v0
    :try_end_37
    .catch Ljava/lang/Exception; {:try_start_1a .. :try_end_37} :catch_4d
    .catchall {:try_start_1a .. :try_end_37} :catchall_4b

    if-eq v0, v5, :cond_46

    const/4 v2, 0x6

    if-eq v0, v2, :cond_46

    const/4 v2, 0x7

    if-ne v0, v2, :cond_40

    goto :goto_46

    :cond_40
    const/16 v2, 0x3e

    if-ne v0, v2, :cond_47

    const/4 v1, 0x2

    goto :goto_47

    :cond_46
    :goto_46
    const/4 v1, 0x1

    :cond_47
    :goto_47
    :try_start_47
    invoke-virtual {v3}, Ljava/io/FileInputStream;->close()V
    :try_end_4a
    .catch Ljava/io/IOException; {:try_start_47 .. :try_end_4a} :catch_5b

    goto :goto_5b

    :catchall_4b
    move-exception v0

    goto :goto_51

    :catch_4d
    nop

    goto :goto_58

    :catchall_4f
    move-exception v0

    move-object v3, v2

    :goto_51
    if-eqz v3, :cond_56

    :try_start_53
    invoke-virtual {v3}, Ljava/io/FileInputStream;->close()V
    :try_end_56
    .catch Ljava/io/IOException; {:try_start_53 .. :try_end_56} :catch_56

    :catch_56
    :cond_56
    throw v0

    :catch_57
    move-object v3, v2

    :goto_58
    if-eqz v3, :cond_5b

    goto :goto_47

    :catch_5b
    :cond_5b
    :goto_5b
    return v1
.end method

.method public static varargs invokeMethod(Ljava/lang/Class;Ljava/lang/Object;[Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/Object;
    .registers 11
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Class<",
            "*>;",
            "Ljava/lang/Object;",
            "[",
            "Ljava/lang/Object;",
            "Ljava/lang/String;",
            "[",
            "Ljava/lang/Class<",
            "*>;)",
            "Ljava/lang/Object;"
        }
    .end annotation

    const/4 v0, 0x0

    :try_start_1
    new-array v0, v0, [I
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_3} :catch_7
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_3} :catch_5

    nop

    goto :goto_9

    :catch_5
    move-exception v0

    .local v0, "ex1":Ljava/lang/Throwable;
    throw v0

    .end local v0    # "ex1":Ljava/lang/Throwable;
    :catch_7
    move-exception v0

    .local v0, "ex1":Ljava/lang/Exception;
    throw v0

    :goto_9
    goto :goto_d

    invoke-static {}, Landroid/os/Debug;->resetThreadAllocSize()V

    :goto_d
    :try_start_d
    invoke-virtual {p0, p3, p4}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object p0

    const/4 p3, 0x1

    invoke-virtual {p0, p3}, Ljava/lang/reflect/Method;->setAccessible(Z)V

    invoke-virtual {p0, p1, p2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0
    :try_end_19
    .catch Ljava/lang/NoSuchMethodException; {:try_start_d .. :try_end_19} :catch_29
    .catch Ljava/lang/IllegalAccessException; {:try_start_d .. :try_end_19} :catch_24
    .catch Ljava/lang/IllegalArgumentException; {:try_start_d .. :try_end_19} :catch_1f
    .catch Ljava/lang/reflect/InvocationTargetException; {:try_start_d .. :try_end_19} :catch_1a

    return-object p0

    :catch_1a
    move-exception p0

    invoke-virtual {p0}, Ljava/lang/reflect/InvocationTargetException;->printStackTrace()V

    goto :goto_2d

    :catch_1f
    move-exception p0

    invoke-virtual {p0}, Ljava/lang/IllegalArgumentException;->printStackTrace()V

    goto :goto_2d

    :catch_24
    move-exception p0

    invoke-virtual {p0}, Ljava/lang/IllegalAccessException;->printStackTrace()V

    goto :goto_2d

    :catch_29
    move-exception p0

    invoke-virtual {p0}, Ljava/lang/NoSuchMethodException;->printStackTrace()V

    :goto_2d
    const/4 p0, 0x0

    return-object p0
.end method

.method public static isNeedLoadX86()Z
    .registers 6

    const/4 v0, 0x0

    :try_start_1
    new-array v0, v0, [I
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_3} :catch_7
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_3} :catch_5

    nop

    goto :goto_9

    :catch_5
    move-exception v0

    .local v0, "ex1":Ljava/lang/Throwable;
    throw v0

    .end local v0    # "ex1":Ljava/lang/Throwable;
    :catch_7
    move-exception v0

    .local v0, "ex1":Ljava/lang/Exception;
    throw v0

    :goto_9
    goto :goto_d

    invoke-static {}, Landroid/os/Debug;->resetThreadExternalAllocCount()V

    :goto_d
    sget-object v0, Lcom/secneo/apkwrapper/H;->HAVEX86:Ljava/lang/String;

    const-string v1, "true"

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

    move-result v0

    sget-object v2, Lcom/secneo/apkwrapper/H;->HAVEX8664:Ljava/lang/String;

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

    move-result v1

    invoke-static {}, Lcom/secneo/apkwrapper/H;->getRuntimeAbi()I

    move-result v2

    const/4 v3, 0x1

    if-ne v2, v3, :cond_25

    if-nez v0, :cond_25

    return v3

    :cond_25
    const/4 v0, 0x2

    if-ne v2, v0, :cond_2b

    if-nez v1, :cond_2b

    return v3

    :cond_2b
    const/4 v0, 0x0

    return v0
.end method

.method public static setFieldValue(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)Z
    .registers 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/Class<",
            "*>;",
            "Ljava/lang/Object;",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ")Z"
        }
    .end annotation

    const/4 v0, 0x0

    :try_start_1
    new-array v0, v0, [I
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_3} :catch_7
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_3} :catch_5

    nop

    goto :goto_9

    :catch_5
    move-exception v0

    .local v0, "ex1":Ljava/lang/Throwable;
    throw v0

    .end local v0    # "ex1":Ljava/lang/Throwable;
    :catch_7
    move-exception v0

    .local v0, "ex1":Ljava/lang/Exception;
    throw v0

    :goto_9
    goto :goto_d

    invoke-static {}, Landroid/os/Debug;->stopMethodTracing()V

    :goto_d
    :try_start_d
    invoke-virtual {p0, p2}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;

    move-result-object p0

    const/4 p2, 0x1

    invoke-virtual {p0, p2}, Ljava/lang/reflect/Field;->setAccessible(Z)V

    invoke-virtual {p0, p1, p3}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
    :try_end_18
    .catch Ljava/lang/NoSuchFieldException; {:try_start_d .. :try_end_18} :catch_23
    .catch Ljava/lang/IllegalAccessException; {:try_start_d .. :try_end_18} :catch_1e
    .catch Ljava/lang/IllegalArgumentException; {:try_start_d .. :try_end_18} :catch_19

    return p2

    :catch_19
    move-exception p0

    invoke-virtual {p0}, Ljava/lang/IllegalArgumentException;->printStackTrace()V

    goto :goto_27

    :catch_1e
    move-exception p0

    invoke-virtual {p0}, Ljava/lang/IllegalAccessException;->printStackTrace()V

    goto :goto_27

    :catch_23
    move-exception p0

    invoke-virtual {p0}, Ljava/lang/NoSuchFieldException;->printStackTrace()V

    :goto_27
    const/4 p0, 0x0

    return p0
.end method

.method public static setFieldValue(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)Z
    .registers 10

    const/4 v0, 0x0

    :try_start_1
    new-array v0, v0, [I
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_3} :catch_7
    .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_3} :catch_5

    nop

    goto :goto_9

    :catch_5
    move-exception v0

    .local v0, "ex1":Ljava/lang/Throwable;
    throw v0

    .end local v0    # "ex1":Ljava/lang/Throwable;
    :catch_7
    move-exception v0

    .local v0, "ex1":Ljava/lang/Exception;
    throw v0

    :goto_9
    goto :goto_d

    invoke-static {}, Landroid/os/Debug;->resetThreadExternalAllocSize()V

    :goto_d
    :try_start_d
    invoke-static {p0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object p0

    invoke-static {p0, p1, p2, p3}, Lcom/secneo/apkwrapper/H;->setFieldValue(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)Z
    :try_end_14
    .catch Ljava/lang/ClassNotFoundException; {:try_start_d .. :try_end_14} :catch_1b
    .catch Ljava/lang/IllegalArgumentException; {:try_start_d .. :try_end_14} :catch_16

    const/4 p0, 0x1

    return p0

    :catch_16
    move-exception p0

    invoke-virtual {p0}, Ljava/lang/IllegalArgumentException;->printStackTrace()V

    goto :goto_1f

    :catch_1b
    move-exception p0

    invoke-virtual {p0}, Ljava/lang/ClassNotFoundException;->printStackTrace()V

    :goto_1f
    const/4 p0, 0x0

    return p0
.end method

.method public static native sn(Ljava/lang/String;)I
.end method