apkfuckery/com.discord/smali/com/adjust/sdk/an$1.smali
2019-02-04 21:42:43 +01:00

141 lines
3.3 KiB
Smali

.class final Lcom/adjust/sdk/an$1;
.super Ljava/lang/Object;
.source "PackageHandler.java"
# interfaces
.implements Ljava/lang/Runnable;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/adjust/sdk/an;-><init>(Lcom/adjust/sdk/v;Landroid/content/Context;Z)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic fe:Lcom/adjust/sdk/an;
# direct methods
.method constructor <init>(Lcom/adjust/sdk/an;)V
.locals 0
iput-object p1, p0, Lcom/adjust/sdk/an$1;->fe:Lcom/adjust/sdk/an;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final run()V
.locals 8
iget-object v0, p0, Lcom/adjust/sdk/an$1;->fe:Lcom/adjust/sdk/an;
invoke-static {v0}, Lcom/adjust/sdk/j;->a(Lcom/adjust/sdk/y;)Lcom/adjust/sdk/z;
move-result-object v1
iput-object v1, v0, Lcom/adjust/sdk/an;->dw:Lcom/adjust/sdk/z;
new-instance v1, Ljava/util/concurrent/atomic/AtomicBoolean;
invoke-direct {v1}, Ljava/util/concurrent/atomic/AtomicBoolean;-><init>()V
iput-object v1, v0, Lcom/adjust/sdk/an;->fc:Ljava/util/concurrent/atomic/AtomicBoolean;
const/4 v1, 0x1
const/4 v2, 0x0
:try_start_0
iget-object v3, v0, Lcom/adjust/sdk/an;->context:Landroid/content/Context;
const-string v4, "AdjustIoPackageQueue"
const-string v5, "Package queue"
const-class v6, Ljava/util/List;
invoke-static {v3, v4, v5, v6}, Lcom/adjust/sdk/ay;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Class;)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/util/List;
iput-object v3, v0, Lcom/adjust/sdk/an;->fb:Ljava/util/List;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
move-exception v3
iget-object v4, v0, Lcom/adjust/sdk/an;->ce:Lcom/adjust/sdk/x;
const-string v5, "Failed to read %s file (%s)"
const/4 v6, 0x2
new-array v6, v6, [Ljava/lang/Object;
const-string v7, "Package queue"
aput-object v7, v6, v2
invoke-virtual {v3}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
move-result-object v3
aput-object v3, v6, v1
invoke-interface {v4, v5, v6}, Lcom/adjust/sdk/x;->f(Ljava/lang/String;[Ljava/lang/Object;)V
const/4 v3, 0x0
iput-object v3, v0, Lcom/adjust/sdk/an;->fb:Ljava/util/List;
:goto_0
iget-object v3, v0, Lcom/adjust/sdk/an;->fb:Ljava/util/List;
if-eqz v3, :cond_0
iget-object v3, v0, Lcom/adjust/sdk/an;->ce:Lcom/adjust/sdk/x;
const-string v4, "Package handler read %d packages"
new-array v1, v1, [Ljava/lang/Object;
iget-object v0, v0, Lcom/adjust/sdk/an;->fb:Ljava/util/List;
invoke-interface {v0}, Ljava/util/List;->size()I
move-result v0
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v0
aput-object v0, v1, v2
invoke-interface {v3, v4, v1}, Lcom/adjust/sdk/x;->b(Ljava/lang/String;[Ljava/lang/Object;)V
return-void
:cond_0
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
iput-object v1, v0, Lcom/adjust/sdk/an;->fb:Ljava/util/List;
return-void
.end method