.class public final Lcom/discord/utilities/SystemLogUtils$fetch$2; .super Ljava/lang/Object; .source "SystemLogUtils.kt" # interfaces .implements Ljava/util/concurrent/Callable; # annotations .annotation system Ldalvik/annotation/EnclosingMethod; value = Lcom/discord/utilities/SystemLogUtils;->fetch(Lkotlin/text/Regex;)Lrx/Observable; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x19 name = null .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Ljava/lang/Object;", "Ljava/util/concurrent/Callable<", "Ljava/util/LinkedList<", "Ljava/lang/String;", ">;>;" } .end annotation # instance fields .field public final synthetic $filter:Lkotlin/text/Regex; .field public final synthetic $output:Ljava/util/LinkedList; .field public final synthetic $systemLogPath:Ljava/lang/String; # direct methods .method public constructor (Ljava/lang/String;Ljava/util/LinkedList;Lkotlin/text/Regex;)V .locals 0 iput-object p1, p0, Lcom/discord/utilities/SystemLogUtils$fetch$2;->$systemLogPath:Ljava/lang/String; iput-object p2, p0, Lcom/discord/utilities/SystemLogUtils$fetch$2;->$output:Ljava/util/LinkedList; iput-object p3, p0, Lcom/discord/utilities/SystemLogUtils$fetch$2;->$filter:Lkotlin/text/Regex; invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method # virtual methods .method public bridge synthetic call()Ljava/lang/Object; .locals 1 invoke-virtual {p0}, Lcom/discord/utilities/SystemLogUtils$fetch$2;->call()Ljava/util/LinkedList; move-result-object v0 return-object v0 .end method .method public final call()Ljava/util/LinkedList; .locals 5 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/LinkedList<", "Ljava/lang/String;", ">;" } .end annotation const/4 v0, 0x0 :try_start_0 new-instance v1, Ljava/lang/ProcessBuilder; const/4 v2, 0x2 new-array v2, v2, [Ljava/lang/String; const/4 v3, 0x0 iget-object v4, p0, Lcom/discord/utilities/SystemLogUtils$fetch$2;->$systemLogPath:Ljava/lang/String; aput-object v4, v2, v3 const-string v3, "-d" const/4 v4, 0x1 aput-object v3, v2, v4 invoke-direct {v1, v2}, Ljava/lang/ProcessBuilder;->([Ljava/lang/String;)V invoke-virtual {v1, v4}, Ljava/lang/ProcessBuilder;->redirectErrorStream(Z)Ljava/lang/ProcessBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/ProcessBuilder;->start()Ljava/lang/Process; move-result-object v0 sget-object v1, Lcom/discord/utilities/SystemLogUtils;->INSTANCE:Lcom/discord/utilities/SystemLogUtils; const-string v2, "logcatProccess" invoke-static {v0, v2}, Lb0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V invoke-static {v1, v0}, Lcom/discord/utilities/SystemLogUtils;->access$waitFor(Lcom/discord/utilities/SystemLogUtils;Ljava/lang/Process;)V invoke-virtual {v0}, Ljava/lang/Process;->getInputStream()Ljava/io/InputStream; move-result-object v1 const-string v2, "logcatProccess.inputStream" invoke-static {v1, v2}, Lb0/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V sget-object v2, Lb0/t/a;->a:Ljava/nio/charset/Charset; new-instance v3, Ljava/io/InputStreamReader; invoke-direct {v3, v1, v2}, Ljava/io/InputStreamReader;->(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V const/16 v1, 0x2000 instance-of v2, v3, Ljava/io/BufferedReader; if-eqz v2, :cond_0 check-cast v3, Ljava/io/BufferedReader; goto :goto_0 :cond_0 new-instance v2, Ljava/io/BufferedReader; invoke-direct {v2, v3, v1}, Ljava/io/BufferedReader;->(Ljava/io/Reader;I)V move-object v3, v2 :goto_0 sget-object v1, Lcom/discord/utilities/SystemLogUtils;->INSTANCE:Lcom/discord/utilities/SystemLogUtils; iget-object v2, p0, Lcom/discord/utilities/SystemLogUtils$fetch$2;->$output:Ljava/util/LinkedList; iget-object v4, p0, Lcom/discord/utilities/SystemLogUtils$fetch$2;->$filter:Lkotlin/text/Regex; invoke-virtual {v1, v3, v2, v4}, Lcom/discord/utilities/SystemLogUtils;->processLogs$app_productionDiscordExternalRelease(Ljava/io/BufferedReader;Ljava/util/LinkedList;Lkotlin/text/Regex;)V invoke-virtual {v3}, Ljava/io/BufferedReader;->close()V :try_end_0 .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 :goto_1 invoke-virtual {v0}, Ljava/lang/Process;->destroy()V goto :goto_2 :catchall_0 move-exception v1 goto :goto_3 :catch_0 move-exception v1 :try_start_1 invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 if-eqz v0, :cond_1 goto :goto_1 :cond_1 :goto_2 iget-object v0, p0, Lcom/discord/utilities/SystemLogUtils$fetch$2;->$output:Ljava/util/LinkedList; return-object v0 :goto_3 if-eqz v0, :cond_2 invoke-virtual {v0}, Ljava/lang/Process;->destroy()V :cond_2 throw v1 .end method