.class final Lcom/facebook/soloader/SoLoader$1; .super Ljava/lang/Object; .source "SoLoader.java" # interfaces .implements Lcom/facebook/soloader/h; # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lcom/facebook/soloader/SoLoader;->a(Lcom/facebook/soloader/h;)V .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x8 name = null .end annotation # instance fields .field final synthetic YF:Z .field final synthetic YG:Ljava/lang/String; .field final synthetic YH:Ljava/lang/String; .field final synthetic YI:Ljava/lang/Runtime; .field final synthetic YJ:Ljava/lang/reflect/Method; # direct methods .method constructor (ZLjava/lang/String;Ljava/lang/String;Ljava/lang/Runtime;Ljava/lang/reflect/Method;)V .locals 0 iput-boolean p1, p0, Lcom/facebook/soloader/SoLoader$1;->YF:Z iput-object p2, p0, Lcom/facebook/soloader/SoLoader$1;->YG:Ljava/lang/String; iput-object p3, p0, Lcom/facebook/soloader/SoLoader$1;->YH:Ljava/lang/String; iput-object p4, p0, Lcom/facebook/soloader/SoLoader$1;->YI:Ljava/lang/Runtime; iput-object p5, p0, Lcom/facebook/soloader/SoLoader$1;->YJ:Ljava/lang/reflect/Method; invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method private static aF(Ljava/lang/String;)Ljava/lang/String; .locals 7 :try_start_0 new-instance v0, Ljava/io/File; invoke-direct {v0, p0}, Ljava/io/File;->(Ljava/lang/String;)V const-string p0, "MD5" invoke-static {p0}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest; move-result-object p0 new-instance v1, Ljava/io/FileInputStream; invoke-direct {v1, v0}, Ljava/io/FileInputStream;->(Ljava/io/File;)V :try_end_0 .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_4 .catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_3 .catch Ljava/security/NoSuchAlgorithmException; {:try_start_0 .. :try_end_0} :catch_2 const/4 v0, 0x0 const/16 v2, 0x1000 :try_start_1 new-array v2, v2, [B :goto_0 invoke-virtual {v1, v2}, Ljava/io/InputStream;->read([B)I move-result v3 const/4 v4, 0x0 if-lez v3, :cond_0 invoke-virtual {p0, v2, v4, v3}, Ljava/security/MessageDigest;->update([BII)V goto :goto_0 :cond_0 const-string v2, "%32x" const/4 v3, 0x1 new-array v5, v3, [Ljava/lang/Object; new-instance v6, Ljava/math/BigInteger; invoke-virtual {p0}, Ljava/security/MessageDigest;->digest()[B move-result-object p0 invoke-direct {v6, v3, p0}, Ljava/math/BigInteger;->(I[B)V aput-object v6, v5, v4 invoke-static {v2, v5}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; move-result-object p0 :try_end_1 .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_0 .catchall {:try_start_1 .. :try_end_1} :catchall_0 :try_start_2 invoke-virtual {v1}, Ljava/io/InputStream;->close()V :try_end_2 .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_4 .catch Ljava/lang/SecurityException; {:try_start_2 .. :try_end_2} :catch_3 .catch Ljava/security/NoSuchAlgorithmException; {:try_start_2 .. :try_end_2} :catch_2 goto :goto_3 :catchall_0 move-exception p0 goto :goto_1 :catch_0 move-exception p0 move-object v0, p0 :try_start_3 throw v0 :try_end_3 .catchall {:try_start_3 .. :try_end_3} :catchall_0 :goto_1 if-eqz v0, :cond_1 :try_start_4 invoke-virtual {v1}, Ljava/io/InputStream;->close()V :try_end_4 .catch Ljava/lang/Throwable; {:try_start_4 .. :try_end_4} :catch_1 .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_4 .catch Ljava/lang/SecurityException; {:try_start_4 .. :try_end_4} :catch_3 .catch Ljava/security/NoSuchAlgorithmException; {:try_start_4 .. :try_end_4} :catch_2 goto :goto_2 :cond_1 :try_start_5 invoke-virtual {v1}, Ljava/io/InputStream;->close()V :catch_1 :goto_2 throw p0 :try_end_5 .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_4 .catch Ljava/lang/SecurityException; {:try_start_5 .. :try_end_5} :catch_3 .catch Ljava/security/NoSuchAlgorithmException; {:try_start_5 .. :try_end_5} :catch_2 :catch_2 move-exception p0 invoke-virtual {p0}, Ljava/security/NoSuchAlgorithmException;->toString()Ljava/lang/String; move-result-object p0 goto :goto_3 :catch_3 move-exception p0 invoke-virtual {p0}, Ljava/lang/SecurityException;->toString()Ljava/lang/String; move-result-object p0 goto :goto_3 :catch_4 move-exception p0 invoke-virtual {p0}, Ljava/io/IOException;->toString()Ljava/lang/String; move-result-object p0 :goto_3 return-object p0 .end method # virtual methods .method public final g(Ljava/lang/String;I)V .locals 8 iget-boolean v0, p0, Lcom/facebook/soloader/SoLoader$1;->YF:Z if-eqz v0, :cond_5 const/4 v0, 0x4 and-int/2addr p2, v0 const/4 v1, 0x1 const/4 v2, 0x0 if-ne p2, v0, :cond_0 const/4 p2, 0x1 goto :goto_0 :cond_0 const/4 p2, 0x0 :goto_0 if-eqz p2, :cond_1 iget-object p2, p0, Lcom/facebook/soloader/SoLoader$1;->YG:Ljava/lang/String; goto :goto_1 :cond_1 iget-object p2, p0, Lcom/facebook/soloader/SoLoader$1;->YH:Ljava/lang/String; :goto_1 const/4 v0, 0x0 :try_start_0 iget-object v3, p0, Lcom/facebook/soloader/SoLoader$1;->YI:Ljava/lang/Runtime; monitor-enter v3 :try_end_0 .catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_2 .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_1 .catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0 .catchall {:try_start_0 .. :try_end_0} :catchall_2 :try_start_1 iget-object v4, p0, Lcom/facebook/soloader/SoLoader$1;->YJ:Ljava/lang/reflect/Method; iget-object v5, p0, Lcom/facebook/soloader/SoLoader$1;->YI:Ljava/lang/Runtime; const/4 v6, 0x3 new-array v6, v6, [Ljava/lang/Object; aput-object p1, v6, v2 const-class v2, Lcom/facebook/soloader/SoLoader; invoke-virtual {v2}, Ljava/lang/Class;->getClassLoader()Ljava/lang/ClassLoader; move-result-object v2 aput-object v2, v6, v1 const/4 v1, 0x2 aput-object p2, v6, v1 invoke-virtual {v4, v5, v6}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; move-result-object v1 check-cast v1, Ljava/lang/String; :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_1 if-nez v1, :cond_3 :try_start_2 monitor-exit v3 :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_0 if-eqz v1, :cond_2 new-instance v0, Ljava/lang/StringBuilder; const-string v2, "Error when loading lib: " invoke-direct {v0, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v1, " lib hash: " invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-static {p1}, Lcom/facebook/soloader/SoLoader$1;->aF(Ljava/lang/String;)Ljava/lang/String; move-result-object p1 invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string p1, " search path is " invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 const-string p2, "SoLoader" invoke-static {p2, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I :cond_2 return-void :catchall_0 move-exception v0 move-object v7, v1 move-object v1, v0 move-object v0, v7 goto :goto_2 :cond_3 :try_start_3 new-instance v0, Ljava/lang/UnsatisfiedLinkError; invoke-direct {v0, v1}, Ljava/lang/UnsatisfiedLinkError;->(Ljava/lang/String;)V throw v0 :try_end_3 .catchall {:try_start_3 .. :try_end_3} :catchall_0 :catchall_1 move-exception v1 :goto_2 :try_start_4 monitor-exit v3 :try_end_4 .catchall {:try_start_4 .. :try_end_4} :catchall_1 :try_start_5 throw v1 :try_end_5 .catch Ljava/lang/IllegalAccessException; {:try_start_5 .. :try_end_5} :catch_2 .catch Ljava/lang/IllegalArgumentException; {:try_start_5 .. :try_end_5} :catch_1 .catch Ljava/lang/reflect/InvocationTargetException; {:try_start_5 .. :try_end_5} :catch_0 .catchall {:try_start_5 .. :try_end_5} :catchall_2 :catchall_2 move-exception v1 goto :goto_4 :catch_0 move-exception v1 goto :goto_3 :catch_1 move-exception v1 goto :goto_3 :catch_2 move-exception v1 :goto_3 :try_start_6 const-string v2, "Error: Cannot load " invoke-static {p1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object v3 invoke-virtual {v2, v3}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 new-instance v2, Ljava/lang/RuntimeException; invoke-direct {v2, v0, v1}, Ljava/lang/RuntimeException;->(Ljava/lang/String;Ljava/lang/Throwable;)V throw v2 :try_end_6 .catchall {:try_start_6 .. :try_end_6} :catchall_2 :goto_4 if-eqz v0, :cond_4 new-instance v2, Ljava/lang/StringBuilder; const-string v3, "Error when loading lib: " invoke-direct {v2, v3}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v0, " lib hash: " invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-static {p1}, Lcom/facebook/soloader/SoLoader$1;->aF(Ljava/lang/String;)Ljava/lang/String; move-result-object p1 invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string p1, " search path is " invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 const-string p2, "SoLoader" invoke-static {p2, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I :cond_4 throw v1 :cond_5 invoke-static {p1}, Ljava/lang/System;->load(Ljava/lang/String;)V return-void .end method