.class public Lcom/facebook/soloader/SoLoader; .super Ljava/lang/Object; .source "SoLoader.java" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/facebook/soloader/SoLoader$Api14Utils;, Lcom/facebook/soloader/SoLoader$a; } .end annotation .annotation build Ljavax/annotation/concurrent/ThreadSafe; .end annotation # static fields .field static final VK:Z .field static VL:Lcom/facebook/soloader/h; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end field .field private static final VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; .field private static VN:[Lcom/facebook/soloader/i; .annotation runtime Ljavax/annotation/Nullable; .end annotation .annotation build Ljavax/annotation/concurrent/GuardedBy; value = "sSoSourcesLock" .end annotation .end field .field private static VO:I .field private static VP:Lcom/facebook/soloader/l; .annotation runtime Ljavax/annotation/Nullable; .end annotation .annotation build Ljavax/annotation/concurrent/GuardedBy; value = "sSoSourcesLock" .end annotation .end field .field private static VQ:Lcom/facebook/soloader/b; .annotation runtime Ljavax/annotation/Nullable; .end annotation .annotation build Ljavax/annotation/concurrent/GuardedBy; value = "sSoSourcesLock" .end annotation .end field .field private static final VR:Ljava/util/HashSet; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/HashSet<", "Ljava/lang/String;", ">;" } .end annotation .annotation build Ljavax/annotation/concurrent/GuardedBy; value = "SoLoader.class" .end annotation .end field .field private static final VS:Ljava/util/Map; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Map<", "Ljava/lang/String;", "Ljava/lang/Object;", ">;" } .end annotation .annotation build Ljavax/annotation/concurrent/GuardedBy; value = "SoLoader.class" .end annotation .end field .field private static final VT:Ljava/util/Set; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Set<", "Ljava/lang/String;", ">;" } .end annotation .end field .field private static VU:Lcom/facebook/soloader/k; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end field .field private static VV:I .annotation build Ljavax/annotation/concurrent/GuardedBy; value = "sSoSourcesLock" .end annotation .end field # direct methods .method static constructor ()V .locals 3 new-instance v0, Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-direct {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->()V sput-object v0, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; const/4 v0, 0x0 sput-object v0, Lcom/facebook/soloader/SoLoader;->VN:[Lcom/facebook/soloader/i; const/4 v1, 0x0 sput v1, Lcom/facebook/soloader/SoLoader;->VO:I new-instance v2, Ljava/util/HashSet; invoke-direct {v2}, Ljava/util/HashSet;->()V sput-object v2, Lcom/facebook/soloader/SoLoader;->VR:Ljava/util/HashSet; new-instance v2, Ljava/util/HashMap; invoke-direct {v2}, Ljava/util/HashMap;->()V sput-object v2, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/Map; new-instance v2, Ljava/util/concurrent/ConcurrentHashMap; invoke-direct {v2}, Ljava/util/concurrent/ConcurrentHashMap;->()V invoke-static {v2}, Ljava/util/Collections;->newSetFromMap(Ljava/util/Map;)Ljava/util/Set; move-result-object v2 sput-object v2, Lcom/facebook/soloader/SoLoader;->VT:Ljava/util/Set; sput-object v0, Lcom/facebook/soloader/SoLoader;->VU:Lcom/facebook/soloader/k; :try_start_0 sget v0, Landroid/os/Build$VERSION;->SDK_INT:I :try_end_0 .catch Ljava/lang/NoClassDefFoundError; {:try_start_0 .. :try_end_0} :catch_0 .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_0 .. :try_end_0} :catch_0 const/16 v2, 0x12 if-lt v0, v2, :cond_0 const/4 v0, 0x1 const/4 v1, 0x1 :catch_0 :cond_0 sput-boolean v1, Lcom/facebook/soloader/SoLoader;->VK:Z return-void .end method .method public constructor ()V .locals 0 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method private static declared-synchronized a(Lcom/facebook/soloader/h;)V .locals 10 .param p0 # Lcom/facebook/soloader/h; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param const-class p0, Lcom/facebook/soloader/SoLoader; monitor-enter p0 :try_start_0 invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime; move-result-object v4 invoke-static {}, Lcom/facebook/soloader/SoLoader;->jS()Ljava/lang/reflect/Method; move-result-object v5 const/4 v0, 0x0 if-eqz v5, :cond_0 const/4 v1, 0x1 goto :goto_0 :cond_0 const/4 v1, 0x0 :goto_0 const/4 v2, 0x0 if-eqz v1, :cond_1 invoke-static {}, Lcom/facebook/soloader/SoLoader$Api14Utils;->jT()Ljava/lang/String; move-result-object v3 goto :goto_1 :cond_1 move-object v3, v2 :goto_1 if-nez v3, :cond_2 move-object v6, v2 goto :goto_3 :cond_2 const-string v2, ":" invoke-virtual {v3, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String; move-result-object v2 new-instance v6, Ljava/util/ArrayList; array-length v7, v2 invoke-direct {v6, v7}, Ljava/util/ArrayList;->(I)V array-length v7, v2 :goto_2 if-ge v0, v7, :cond_4 aget-object v8, v2, v0 const-string v9, "!" invoke-virtual {v8, v9}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z move-result v9 if-nez v9, :cond_3 invoke-virtual {v6, v8}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z :cond_3 add-int/lit8 v0, v0, 0x1 goto :goto_2 :cond_4 const-string v0, ":" invoke-static {v0, v6}, Landroid/text/TextUtils;->join(Ljava/lang/CharSequence;Ljava/lang/Iterable;)Ljava/lang/String; move-result-object v0 move-object v6, v0 :goto_3 new-instance v7, Lcom/facebook/soloader/SoLoader$1; move-object v0, v7 move-object v2, v3 move-object v3, v6 invoke-direct/range {v0 .. v5}, Lcom/facebook/soloader/SoLoader$1;->(ZLjava/lang/String;Ljava/lang/String;Ljava/lang/Runtime;Ljava/lang/reflect/Method;)V sput-object v7, Lcom/facebook/soloader/SoLoader;->VL:Lcom/facebook/soloader/h; :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 monitor-exit p0 return-void :catchall_0 move-exception v0 monitor-exit p0 throw v0 return-void .end method .method private static a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILandroid/os/StrictMode$ThreadPolicy;)Z .locals 3 .param p1 # Ljava/lang/String; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param .param p2 # Ljava/lang/String; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param .param p4 # Landroid/os/StrictMode$ThreadPolicy; .annotation runtime Ljavax/annotation/Nullable; .end annotation .end param invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result p2 const/4 v0, 0x0 if-nez p2, :cond_0 sget-object p2, Lcom/facebook/soloader/SoLoader;->VT:Ljava/util/Set; invoke-interface {p2, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z move-result p2 if-eqz p2, :cond_0 return v0 :cond_0 const-class p2, Lcom/facebook/soloader/SoLoader; monitor-enter p2 :try_start_0 sget-object v1, Lcom/facebook/soloader/SoLoader;->VR:Ljava/util/HashSet; invoke-virtual {v1, p0}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_1 monitor-exit p2 return v0 :cond_1 sget-object v1, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/Map; invoke-interface {v1, p0}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z move-result v1 if-eqz v1, :cond_2 sget-object v1, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/Map; invoke-interface {v1, p0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v1 goto :goto_0 :cond_2 new-instance v1, Ljava/lang/Object; invoke-direct {v1}, Ljava/lang/Object;->()V sget-object v2, Lcom/facebook/soloader/SoLoader;->VS:Ljava/util/Map; invoke-interface {v2, p0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; :goto_0 monitor-exit p2 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_3 monitor-enter v1 :try_start_1 const-class p2, Lcom/facebook/soloader/SoLoader; monitor-enter p2 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_2 :try_start_2 sget-object v2, Lcom/facebook/soloader/SoLoader;->VR:Ljava/util/HashSet; invoke-virtual {v2, p0}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z move-result v2 if-eqz v2, :cond_3 monitor-exit p2 :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_1 :try_start_3 monitor-exit v1 :try_end_3 .catchall {:try_start_3 .. :try_end_3} :catchall_2 return v0 :cond_3 :try_start_4 monitor-exit p2 :try_end_4 .catchall {:try_start_4 .. :try_end_4} :catchall_1 :try_start_5 const-string p2, "SoLoader" const-string v0, "About to load: " invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object v2 invoke-virtual {v0, v2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 invoke-static {p2, v0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I invoke-static {p0, p3, p4}, Lcom/facebook/soloader/SoLoader;->c(Ljava/lang/String;ILandroid/os/StrictMode$ThreadPolicy;)V :try_end_5 .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_1 .catch Ljava/lang/UnsatisfiedLinkError; {:try_start_5 .. :try_end_5} :catch_0 .catchall {:try_start_5 .. :try_end_5} :catchall_2 :try_start_6 const-class p2, Lcom/facebook/soloader/SoLoader; monitor-enter p2 :try_end_6 .catchall {:try_start_6 .. :try_end_6} :catchall_2 :try_start_7 const-string p3, "SoLoader" const-string p4, "Loaded: " invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object v0 invoke-virtual {p4, v0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object p4 invoke-static {p3, p4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I sget-object p3, Lcom/facebook/soloader/SoLoader;->VR:Ljava/util/HashSet; invoke-virtual {p3, p0}, Ljava/util/HashSet;->add(Ljava/lang/Object;)Z monitor-exit p2 :try_end_7 .catchall {:try_start_7 .. :try_end_7} :catchall_0 :try_start_8 invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z move-result p0 if-nez p0, :cond_4 sget-object p0, Lcom/facebook/soloader/SoLoader;->VT:Ljava/util/Set; invoke-interface {p0, p1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z :cond_4 monitor-exit v1 :try_end_8 .catchall {:try_start_8 .. :try_end_8} :catchall_2 const/4 p0, 0x1 return p0 :catchall_0 move-exception p0 :try_start_9 monitor-exit p2 :try_end_9 .catchall {:try_start_9 .. :try_end_9} :catchall_0 :try_start_a throw p0 :catch_0 move-exception p0 invoke-virtual {p0}, Ljava/lang/UnsatisfiedLinkError;->getMessage()Ljava/lang/String; move-result-object p1 if-eqz p1, :cond_5 const-string p2, "unexpected e_machine:" invoke-virtual {p1, p2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z move-result p1 if-eqz p1, :cond_5 new-instance p1, Lcom/facebook/soloader/SoLoader$a; invoke-direct {p1, p0}, Lcom/facebook/soloader/SoLoader$a;->(Ljava/lang/Throwable;)V throw p1 :cond_5 throw p0 :catch_1 move-exception p0 new-instance p1, Ljava/lang/RuntimeException; invoke-direct {p1, p0}, Ljava/lang/RuntimeException;->(Ljava/lang/Throwable;)V throw p1 :try_end_a .catchall {:try_start_a .. :try_end_a} :catchall_2 :catchall_1 move-exception p0 :try_start_b monitor-exit p2 :try_end_b .catchall {:try_start_b .. :try_end_b} :catchall_1 :try_start_c throw p0 :catchall_2 move-exception p0 monitor-exit v1 :try_end_c .catchall {:try_start_c .. :try_end_c} :catchall_2 throw p0 :catchall_3 move-exception p0 :try_start_d monitor-exit p2 :try_end_d .catchall {:try_start_d .. :try_end_d} :catchall_3 throw p0 .end method .method private static aA(Ljava/lang/String;)Z .locals 3 .annotation system Ldalvik/annotation/Throws; value = { Ljava/lang/UnsatisfiedLinkError; } .end annotation sget-object v0, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock; move-result-object v0 invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->lock()V :try_start_0 sget-object v0, Lcom/facebook/soloader/SoLoader;->VN:[Lcom/facebook/soloader/i; if-nez v0, :cond_3 const-string v0, "http://www.android.com/" const-string v1, "java.vendor.url" invoke-static {v1}, Ljava/lang/System;->getProperty(Ljava/lang/String;)Ljava/lang/String; move-result-object v1 invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z move-result v0 if-eqz v0, :cond_1 sget-object v0, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock; move-result-object v0 invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->lock()V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_2 :try_start_1 sget-object v0, Lcom/facebook/soloader/SoLoader;->VN:[Lcom/facebook/soloader/i; :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 if-eqz v0, :cond_0 :try_start_2 sget-object v0, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock; move-result-object v0 invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->unlock()V :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_2 goto :goto_0 :cond_0 :try_start_3 new-instance p0, Ljava/lang/RuntimeException; const-string v0, "SoLoader.init() not yet called" invoke-direct {p0, v0}, Ljava/lang/RuntimeException;->(Ljava/lang/String;)V throw p0 :try_end_3 .catchall {:try_start_3 .. :try_end_3} :catchall_0 :catchall_0 move-exception p0 :try_start_4 sget-object v0, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock; move-result-object v0 invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->unlock()V throw p0 :cond_1 const-class v0, Lcom/facebook/soloader/SoLoader; monitor-enter v0 :try_end_4 .catchall {:try_start_4 .. :try_end_4} :catchall_2 :try_start_5 sget-object v1, Lcom/facebook/soloader/SoLoader;->VR:Ljava/util/HashSet; invoke-virtual {v1, p0}, Ljava/util/HashSet;->contains(Ljava/lang/Object;)Z move-result v1 xor-int/lit8 v1, v1, 0x1 if-eqz v1, :cond_2 sget-object v2, Lcom/facebook/soloader/SoLoader;->VU:Lcom/facebook/soloader/k; if-nez v2, :cond_2 invoke-static {p0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V :cond_2 monitor-exit v0 :try_end_5 .catchall {:try_start_5 .. :try_end_5} :catchall_1 sget-object p0, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {p0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock; move-result-object p0 invoke-virtual {p0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->unlock()V return v1 :catchall_1 move-exception p0 :try_start_6 monitor-exit v0 :try_end_6 .catchall {:try_start_6 .. :try_end_6} :catchall_1 :try_start_7 throw p0 :try_end_7 .catchall {:try_start_7 .. :try_end_7} :catchall_2 :cond_3 :goto_0 sget-object v0, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock; move-result-object v0 invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->unlock()V invoke-static {p0}, Ljava/lang/System;->mapLibraryName(Ljava/lang/String;)Ljava/lang/String; move-result-object v0 const/4 v1, 0x0 const/4 v2, 0x0 invoke-static {v0, p0, v2, v1, v2}, Lcom/facebook/soloader/SoLoader;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILandroid/os/StrictMode$ThreadPolicy;)Z move-result p0 return p0 :catchall_2 move-exception p0 sget-object v0, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock; move-result-object v0 invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->unlock()V throw p0 .end method .method public static az(Ljava/lang/String;)Z .locals 0 invoke-static {p0}, Lcom/facebook/soloader/SoLoader;->aA(Ljava/lang/String;)Z move-result p0 return p0 .end method .method static b(Ljava/lang/String;ILandroid/os/StrictMode$ThreadPolicy;)V .locals 1 const/4 v0, 0x0 invoke-static {p0, v0, v0, p1, p2}, Lcom/facebook/soloader/SoLoader;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILandroid/os/StrictMode$ThreadPolicy;)Z return-void .end method .method private static c(Ljava/lang/String;ILandroid/os/StrictMode$ThreadPolicy;)V .locals 9 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation sget-object v0, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock; move-result-object v0 invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->lock()V :try_start_0 sget-object v0, Lcom/facebook/soloader/SoLoader;->VN:[Lcom/facebook/soloader/i; :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_3 if-eqz v0, :cond_14 sget-object v0, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock; move-result-object v0 invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->unlock()V const/4 v0, 0x1 const/4 v1, 0x0 if-nez p2, :cond_0 invoke-static {}, Landroid/os/StrictMode;->allowThreadDiskReads()Landroid/os/StrictMode$ThreadPolicy; move-result-object p2 const/4 v2, 0x1 goto :goto_0 :cond_0 const/4 v2, 0x0 :goto_0 sget-boolean v3, Lcom/facebook/soloader/SoLoader;->VK:Z if-eqz v3, :cond_1 new-instance v3, Ljava/lang/StringBuilder; const-string v4, "SoLoader.loadLibrary[" invoke-direct {v3, v4}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v3, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v4, "]" invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v3 invoke-static {v3}, Lcom/facebook/soloader/Api18TraceUtils;->ay(Ljava/lang/String;)V :cond_1 const/4 v3, 0x0 :cond_2 const/4 v4, 0x3 :try_start_1 sget-object v5, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {v5}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock; move-result-object v5 invoke-virtual {v5}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->lock()V sget v5, Lcom/facebook/soloader/SoLoader;->VO:I :try_end_1 .catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_0 .catchall {:try_start_1 .. :try_end_1} :catchall_2 const/4 v6, 0x0 :goto_1 if-nez v3, :cond_4 :try_start_2 sget-object v7, Lcom/facebook/soloader/SoLoader;->VN:[Lcom/facebook/soloader/i; array-length v7, v7 if-ge v6, v7, :cond_4 sget-object v7, Lcom/facebook/soloader/SoLoader;->VN:[Lcom/facebook/soloader/i; aget-object v7, v7, v6 invoke-virtual {v7, p0, p1, p2}, Lcom/facebook/soloader/i;->a(Ljava/lang/String;ILandroid/os/StrictMode$ThreadPolicy;)I move-result v3 if-ne v3, v4, :cond_3 sget-object v7, Lcom/facebook/soloader/SoLoader;->VP:Lcom/facebook/soloader/l; if-eqz v7, :cond_3 const-string v6, "SoLoader" const-string v7, "Trying backup SoSource for " invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object v8 invoke-virtual {v7, v8}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object v7 invoke-static {v6, v7}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I sget-object v6, Lcom/facebook/soloader/SoLoader;->VP:Lcom/facebook/soloader/l; invoke-virtual {v6, p0}, Lcom/facebook/soloader/l;->aD(Ljava/lang/String;)V sget-object v6, Lcom/facebook/soloader/SoLoader;->VP:Lcom/facebook/soloader/l; invoke-virtual {v6, p0, p1, p2}, Lcom/facebook/soloader/l;->a(Ljava/lang/String;ILandroid/os/StrictMode$ThreadPolicy;)I move-result v3 :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_0 goto :goto_2 :cond_3 add-int/lit8 v6, v6, 0x1 goto :goto_1 :catchall_0 move-exception p1 :try_start_3 sget-object v0, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock; move-result-object v0 invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->unlock()V throw p1 :cond_4 :goto_2 sget-object v6, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {v6}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock; move-result-object v6 invoke-virtual {v6}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->unlock()V if-nez v3, :cond_7 sget-object v6, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {v6}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->writeLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock; move-result-object v6 invoke-virtual {v6}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;->lock()V :try_end_3 .catch Ljava/lang/Throwable; {:try_start_3 .. :try_end_3} :catch_0 .catchall {:try_start_3 .. :try_end_3} :catchall_2 :try_start_4 sget-object v6, Lcom/facebook/soloader/SoLoader;->VQ:Lcom/facebook/soloader/b; if-eqz v6, :cond_5 sget-object v6, Lcom/facebook/soloader/SoLoader;->VQ:Lcom/facebook/soloader/b; invoke-virtual {v6}, Lcom/facebook/soloader/b;->jM()Z move-result v6 if-eqz v6, :cond_5 sget v6, Lcom/facebook/soloader/SoLoader;->VO:I add-int/2addr v6, v0 sput v6, Lcom/facebook/soloader/SoLoader;->VO:I :cond_5 sget v6, Lcom/facebook/soloader/SoLoader;->VO:I :try_end_4 .catchall {:try_start_4 .. :try_end_4} :catchall_1 if-eq v6, v5, :cond_6 const/4 v5, 0x1 goto :goto_3 :cond_6 const/4 v5, 0x0 :goto_3 :try_start_5 sget-object v6, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {v6}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->writeLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock; move-result-object v6 invoke-virtual {v6}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;->unlock()V goto :goto_4 :catchall_1 move-exception p1 sget-object v0, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->writeLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock; move-result-object v0 invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;->unlock()V throw p1 :try_end_5 .catch Ljava/lang/Throwable; {:try_start_5 .. :try_end_5} :catch_0 .catchall {:try_start_5 .. :try_end_5} :catchall_2 :cond_7 const/4 v5, 0x0 :goto_4 if-nez v5, :cond_2 sget-boolean p1, Lcom/facebook/soloader/SoLoader;->VK:Z if-eqz p1, :cond_8 invoke-static {}, Lcom/facebook/soloader/Api18TraceUtils;->endSection()V :cond_8 if-eqz v2, :cond_9 invoke-static {p2}, Landroid/os/StrictMode;->setThreadPolicy(Landroid/os/StrictMode$ThreadPolicy;)V :cond_9 if-eqz v3, :cond_a if-eq v3, v4, :cond_a goto :goto_6 :cond_a invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object p0 const-string p1, "couldn\'t find DSO to load: " invoke-virtual {p1, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 const-string p1, "SoLoader" invoke-static {p1, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I new-instance p1, Ljava/lang/UnsatisfiedLinkError; invoke-direct {p1, p0}, Ljava/lang/UnsatisfiedLinkError;->(Ljava/lang/String;)V throw p1 :catchall_2 move-exception p1 sget-boolean v0, Lcom/facebook/soloader/SoLoader;->VK:Z if-eqz v0, :cond_b invoke-static {}, Lcom/facebook/soloader/Api18TraceUtils;->endSection()V :cond_b if-eqz v2, :cond_c invoke-static {p2}, Landroid/os/StrictMode;->setThreadPolicy(Landroid/os/StrictMode$ThreadPolicy;)V :cond_c if-eqz v3, :cond_e if-ne v3, v4, :cond_d goto :goto_5 :cond_d throw p1 :cond_e :goto_5 invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object p0 const-string p1, "couldn\'t find DSO to load: " invoke-virtual {p1, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 const-string p1, "SoLoader" invoke-static {p1, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I new-instance p1, Ljava/lang/UnsatisfiedLinkError; invoke-direct {p1, p0}, Ljava/lang/UnsatisfiedLinkError;->(Ljava/lang/String;)V throw p1 :catch_0 move-exception p1 sget-boolean v0, Lcom/facebook/soloader/SoLoader;->VK:Z if-eqz v0, :cond_f invoke-static {}, Lcom/facebook/soloader/Api18TraceUtils;->endSection()V :cond_f if-eqz v2, :cond_10 invoke-static {p2}, Landroid/os/StrictMode;->setThreadPolicy(Landroid/os/StrictMode$ThreadPolicy;)V :cond_10 if-eqz v3, :cond_12 if-ne v3, v4, :cond_11 goto :goto_7 :cond_11 :goto_6 return-void :cond_12 :goto_7 const-string p2, "couldn\'t find DSO to load: " invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object p0 invoke-virtual {p2, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String; move-result-object p2 if-nez p2, :cond_13 invoke-virtual {p1}, Ljava/lang/Throwable;->toString()Ljava/lang/String; move-result-object p2 :cond_13 new-instance p1, Ljava/lang/StringBuilder; invoke-direct {p1}, Ljava/lang/StringBuilder;->()V invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string p0, " caused by: " invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 const-string p1, "SoLoader" invoke-static {p1, p0}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I new-instance p1, Ljava/lang/UnsatisfiedLinkError; invoke-direct {p1, p0}, Ljava/lang/UnsatisfiedLinkError;->(Ljava/lang/String;)V throw p1 :cond_14 :try_start_6 const-string p1, "SoLoader" new-instance p2, Ljava/lang/StringBuilder; const-string v0, "Could not load: " invoke-direct {p2, v0}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {p2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; const-string v0, " because no SO source exists" invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p2 invoke-static {p1, p2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I new-instance p1, Ljava/lang/UnsatisfiedLinkError; const-string p2, "couldn\'t find DSO to load: " invoke-static {p0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String; move-result-object p0 invoke-virtual {p2, p0}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 invoke-direct {p1, p0}, Ljava/lang/UnsatisfiedLinkError;->(Ljava/lang/String;)V throw p1 :try_end_6 .catchall {:try_start_6 .. :try_end_6} :catchall_3 :catchall_3 move-exception p0 sget-object p1, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {p1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->readLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock; move-result-object p1 invoke-virtual {p1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$ReadLock;->unlock()V throw p0 return-void .end method .method private static jR()I .locals 2 sget-object v0, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->writeLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock; move-result-object v0 invoke-virtual {v0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;->lock()V :try_start_0 sget v0, Lcom/facebook/soloader/SoLoader;->VV:I :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 and-int/lit8 v0, v0, 0x2 if-eqz v0, :cond_0 const/4 v0, 0x1 goto :goto_0 :cond_0 const/4 v0, 0x0 :goto_0 sget-object v1, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {v1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->writeLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock; move-result-object v1 invoke-virtual {v1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;->unlock()V return v0 :catchall_0 move-exception v0 sget-object v1, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {v1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->writeLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock; move-result-object v1 invoke-virtual {v1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;->unlock()V throw v0 .end method .method private static jS()Ljava/lang/reflect/Method; .locals 8 .annotation runtime Ljavax/annotation/Nullable; .end annotation sget v0, Landroid/os/Build$VERSION;->SDK_INT:I const/4 v1, 0x0 const/16 v2, 0x17 if-ge v0, v2, :cond_0 return-object v1 :cond_0 :try_start_0 sget v0, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v2, 0x1b const/4 v3, 0x0 const/4 v4, 0x2 const/4 v5, 0x1 if-gt v0, v2, :cond_1 const-class v0, Ljava/lang/Runtime; const-string v2, "nativeLoad" const/4 v6, 0x3 new-array v6, v6, [Ljava/lang/Class; const-class v7, Ljava/lang/String; aput-object v7, v6, v3 const-class v3, Ljava/lang/ClassLoader; aput-object v3, v6, v5 const-class v3, Ljava/lang/String; aput-object v3, v6, v4 invoke-virtual {v0, v2, v6}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; move-result-object v0 goto :goto_0 :cond_1 const-class v0, Ljava/lang/Runtime; const-string v2, "nativeLoad" new-array v4, v4, [Ljava/lang/Class; const-class v6, Ljava/lang/String; aput-object v6, v4, v3 const-class v3, Ljava/lang/ClassLoader; aput-object v3, v4, v5 invoke-virtual {v0, v2, v4}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; move-result-object v0 :goto_0 invoke-virtual {v0, v5}, Ljava/lang/reflect/Method;->setAccessible(Z)V :try_end_0 .catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0 .catch Ljava/lang/SecurityException; {:try_start_0 .. :try_end_0} :catch_0 return-object v0 :catch_0 move-exception v0 const-string v2, "SoLoader" const-string v3, "Cannot get nativeLoad method" invoke-static {v2, v3, v0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I return-object v1 .end method .method public static x(Landroid/content/Context;)V .locals 8 .annotation system Ldalvik/annotation/Throws; value = { Ljava/io/IOException; } .end annotation invoke-static {}, Landroid/os/StrictMode;->allowThreadDiskWrites()Landroid/os/StrictMode$ThreadPolicy; move-result-object v0 const/4 v1, 0x0 :try_start_0 invoke-static {v1}, Lcom/facebook/soloader/SoLoader;->a(Lcom/facebook/soloader/h;)V sget-object v1, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {v1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->writeLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock; move-result-object v1 invoke-virtual {v1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;->lock()V :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_1 :try_start_1 sget-object v1, Lcom/facebook/soloader/SoLoader;->VN:[Lcom/facebook/soloader/i; if-nez v1, :cond_7 const-string v1, "SoLoader" const-string v2, "init start" invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I const/4 v1, 0x0 sput v1, Lcom/facebook/soloader/SoLoader;->VV:I new-instance v2, Ljava/util/ArrayList; invoke-direct {v2}, Ljava/util/ArrayList;->()V const-string v3, "LD_LIBRARY_PATH" invoke-static {v3}, Ljava/lang/System;->getenv(Ljava/lang/String;)Ljava/lang/String; move-result-object v3 if-nez v3, :cond_0 const-string v3, "/vendor/lib:/system/lib" :cond_0 const-string v4, ":" invoke-virtual {v3, v4}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String; move-result-object v3 const/4 v4, 0x0 :goto_0 array-length v5, v3 if-ge v4, v5, :cond_1 const-string v5, "SoLoader" new-instance v6, Ljava/lang/StringBuilder; const-string v7, "adding system library source: " invoke-direct {v6, v7}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V aget-object v7, v3, v4 invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v6 invoke-static {v5, v6}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I new-instance v5, Ljava/io/File; aget-object v6, v3, v4 invoke-direct {v5, v6}, Ljava/io/File;->(Ljava/lang/String;)V new-instance v6, Lcom/facebook/soloader/c; const/4 v7, 0x2 invoke-direct {v6, v5, v7}, Lcom/facebook/soloader/c;->(Ljava/io/File;I)V invoke-virtual {v2, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z add-int/lit8 v4, v4, 0x1 goto :goto_0 :cond_1 const/4 v3, 0x1 if-eqz p0, :cond_5 invoke-virtual {p0}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo; move-result-object v4 iget v5, v4, Landroid/content/pm/ApplicationInfo;->flags:I and-int/2addr v5, v3 if-eqz v5, :cond_2 iget v4, v4, Landroid/content/pm/ApplicationInfo;->flags:I and-int/lit16 v4, v4, 0x80 if-nez v4, :cond_2 const/4 v4, 0x1 goto :goto_1 :cond_2 const/4 v4, 0x0 :goto_1 if-eqz v4, :cond_3 const/4 v4, 0x0 goto :goto_3 :cond_3 sget v4, Landroid/os/Build$VERSION;->SDK_INT:I const/16 v5, 0x11 if-gt v4, v5, :cond_4 const/4 v4, 0x1 goto :goto_2 :cond_4 const/4 v4, 0x0 :goto_2 new-instance v5, Lcom/facebook/soloader/b; invoke-direct {v5, p0, v4}, Lcom/facebook/soloader/b;->(Landroid/content/Context;I)V sput-object v5, Lcom/facebook/soloader/SoLoader;->VQ:Lcom/facebook/soloader/b; const-string v4, "SoLoader" new-instance v5, Ljava/lang/StringBuilder; const-string v6, "adding application source: " invoke-direct {v5, v6}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V sget-object v6, Lcom/facebook/soloader/SoLoader;->VQ:Lcom/facebook/soloader/b; invoke-virtual {v6}, Lcom/facebook/soloader/b;->toString()Ljava/lang/String; move-result-object v6 invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v5 invoke-static {v4, v5}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I sget-object v4, Lcom/facebook/soloader/SoLoader;->VQ:Lcom/facebook/soloader/b; invoke-virtual {v2, v1, v4}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V const/4 v4, 0x1 :goto_3 new-instance v5, Lcom/facebook/soloader/a; const-string v6, "lib-main" invoke-direct {v5, p0, v6, v4}, Lcom/facebook/soloader/a;->(Landroid/content/Context;Ljava/lang/String;I)V sput-object v5, Lcom/facebook/soloader/SoLoader;->VP:Lcom/facebook/soloader/l; const-string p0, "SoLoader" new-instance v4, Ljava/lang/StringBuilder; const-string v5, "adding backup source: " invoke-direct {v4, v5}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V sget-object v5, Lcom/facebook/soloader/SoLoader;->VP:Lcom/facebook/soloader/l; invoke-virtual {v5}, Lcom/facebook/soloader/l;->toString()Ljava/lang/String; move-result-object v5 invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v4 invoke-static {p0, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I sget-object p0, Lcom/facebook/soloader/SoLoader;->VP:Lcom/facebook/soloader/l; invoke-virtual {v2, v1, p0}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V :cond_5 invoke-virtual {v2}, Ljava/util/ArrayList;->size()I move-result p0 new-array p0, p0, [Lcom/facebook/soloader/i; invoke-virtual {v2, p0}, Ljava/util/ArrayList;->toArray([Ljava/lang/Object;)[Ljava/lang/Object; move-result-object p0 check-cast p0, [Lcom/facebook/soloader/i; invoke-static {}, Lcom/facebook/soloader/SoLoader;->jR()I move-result v1 array-length v2, p0 :goto_4 add-int/lit8 v4, v2, -0x1 if-lez v2, :cond_6 const-string v2, "SoLoader" new-instance v5, Ljava/lang/StringBuilder; const-string v6, "Preparing SO source: " invoke-direct {v5, v6}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V aget-object v6, p0, v4 invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v5 invoke-static {v2, v5}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I aget-object v2, p0, v4 invoke-virtual {v2, v1}, Lcom/facebook/soloader/i;->aC(I)V move v2, v4 goto :goto_4 :cond_6 sput-object p0, Lcom/facebook/soloader/SoLoader;->VN:[Lcom/facebook/soloader/i; sget p0, Lcom/facebook/soloader/SoLoader;->VO:I add-int/2addr p0, v3 sput p0, Lcom/facebook/soloader/SoLoader;->VO:I const-string p0, "SoLoader" new-instance v1, Ljava/lang/StringBuilder; const-string v2, "init finish: " invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V sget-object v2, Lcom/facebook/soloader/SoLoader;->VN:[Lcom/facebook/soloader/i; array-length v2, v2 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; const-string v2, " SO sources prepared" invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 invoke-static {p0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 :cond_7 :try_start_2 const-string p0, "SoLoader" const-string v1, "init exiting" invoke-static {p0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I sget-object p0, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {p0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->writeLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock; move-result-object p0 invoke-virtual {p0}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;->unlock()V :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_1 invoke-static {v0}, Landroid/os/StrictMode;->setThreadPolicy(Landroid/os/StrictMode$ThreadPolicy;)V return-void :catchall_0 move-exception p0 :try_start_3 const-string v1, "SoLoader" const-string v2, "init exiting" invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I sget-object v1, Lcom/facebook/soloader/SoLoader;->VM:Ljava/util/concurrent/locks/ReentrantReadWriteLock; invoke-virtual {v1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock;->writeLock()Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock; move-result-object v1 invoke-virtual {v1}, Ljava/util/concurrent/locks/ReentrantReadWriteLock$WriteLock;->unlock()V throw p0 :try_end_3 .catchall {:try_start_3 .. :try_end_3} :catchall_1 :catchall_1 move-exception p0 invoke-static {v0}, Landroid/os/StrictMode;->setThreadPolicy(Landroid/os/StrictMode$ThreadPolicy;)V throw p0 return-void .end method