191 lines
4.6 KiB
Smali
191 lines
4.6 KiB
Smali
.class final Lcom/crashlytics/android/core/k$6;
|
|
.super Ljava/lang/Object;
|
|
.source "CrashlyticsController.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Runnable;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/crashlytics/android/core/k;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic qd:Lcom/crashlytics/android/core/k;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/crashlytics/android/core/k;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/crashlytics/android/core/k$6;->qd:Lcom/crashlytics/android/core/k;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final run()V
|
|
.locals 11
|
|
|
|
iget-object v0, p0, Lcom/crashlytics/android/core/k$6;->qd:Lcom/crashlytics/android/core/k;
|
|
|
|
new-instance v1, Lcom/crashlytics/android/core/k$f;
|
|
|
|
invoke-direct {v1}, Lcom/crashlytics/android/core/k$f;-><init>()V
|
|
|
|
invoke-static {v0, v1}, Lcom/crashlytics/android/core/k;->a(Lcom/crashlytics/android/core/k;Ljava/io/FilenameFilter;)[Ljava/io/File;
|
|
|
|
move-result-object v1
|
|
|
|
new-instance v2, Ljava/util/HashSet;
|
|
|
|
invoke-direct {v2}, Ljava/util/HashSet;-><init>()V
|
|
|
|
array-length v3, v1
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
:goto_0
|
|
if-ge v5, v3, :cond_0
|
|
|
|
aget-object v6, v1, v5
|
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->wB()Lio/fabric/sdk/android/l;
|
|
|
|
move-result-object v7
|
|
|
|
const-string v8, "CrashlyticsCore"
|
|
|
|
const-string v9, "Found invalid session part file: "
|
|
|
|
invoke-static {v6}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v10
|
|
|
|
invoke-virtual {v9, v10}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-interface {v7, v8, v9}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-static {v6}, Lcom/crashlytics/android/core/k;->c(Ljava/io/File;)Ljava/lang/String;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-interface {v2, v6}, Ljava/util/Set;->add(Ljava/lang/Object;)Z
|
|
|
|
add-int/lit8 v5, v5, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
invoke-interface {v2}, Ljava/util/Set;->isEmpty()Z
|
|
|
|
move-result v1
|
|
|
|
if-nez v1, :cond_4
|
|
|
|
invoke-virtual {v0}, Lcom/crashlytics/android/core/k;->cm()Ljava/io/File;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Ljava/io/File;->exists()Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_1
|
|
|
|
invoke-virtual {v1}, Ljava/io/File;->mkdir()Z
|
|
|
|
:cond_1
|
|
new-instance v3, Lcom/crashlytics/android/core/k$7;
|
|
|
|
invoke-direct {v3, v0, v2}, Lcom/crashlytics/android/core/k$7;-><init>(Lcom/crashlytics/android/core/k;Ljava/util/Set;)V
|
|
|
|
invoke-virtual {v0, v3}, Lcom/crashlytics/android/core/k;->a(Ljava/io/FilenameFilter;)[Ljava/io/File;
|
|
|
|
move-result-object v2
|
|
|
|
array-length v3, v2
|
|
|
|
:goto_1
|
|
if-ge v4, v3, :cond_3
|
|
|
|
aget-object v5, v2, v4
|
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->wB()Lio/fabric/sdk/android/l;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v7, "CrashlyticsCore"
|
|
|
|
const-string v8, "Moving session file: "
|
|
|
|
invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-virtual {v8, v9}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-interface {v6, v7, v8}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
new-instance v6, Ljava/io/File;
|
|
|
|
invoke-virtual {v5}, Ljava/io/File;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-direct {v6, v1, v7}, Ljava/io/File;-><init>(Ljava/io/File;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v5, v6}, Ljava/io/File;->renameTo(Ljava/io/File;)Z
|
|
|
|
move-result v6
|
|
|
|
if-nez v6, :cond_2
|
|
|
|
invoke-static {}, Lio/fabric/sdk/android/c;->wB()Lio/fabric/sdk/android/l;
|
|
|
|
move-result-object v6
|
|
|
|
const-string v7, "CrashlyticsCore"
|
|
|
|
const-string v8, "Could not move session file. Deleting "
|
|
|
|
invoke-static {v5}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;
|
|
|
|
move-result-object v9
|
|
|
|
invoke-virtual {v8, v9}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v8
|
|
|
|
invoke-interface {v6, v7, v8}, Lio/fabric/sdk/android/l;->d(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v5}, Ljava/io/File;->delete()Z
|
|
|
|
:cond_2
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
invoke-virtual {v0}, Lcom/crashlytics/android/core/k;->ci()V
|
|
|
|
:cond_4
|
|
return-void
|
|
.end method
|