cfc.smali
.class public Ldxoptimizer/cfc;
.super Ljava/lang/Object;
.source "SystemUtils.java"
# direct methods
.method public static a()Ljava/lang/String;
.registers 6
.prologue
.line 12
const-string v0, ""
.line 15
:try_start_2
new-instance v3, Ljava/io/FileInputStream;
const-string v1, "/proc/version"
invoke-direct {v3, v1}, Ljava/io/FileInputStream;-><init>(Ljava/lang/String;)V
:try_end_9
.catch Ljava/io/FileNotFoundException; {:try_start_2 .. :try_end_9} :catch_33
.line 20
new-instance v4, Ljava/io/BufferedReader;
new-instance v1, Ljava/io/InputStreamReader;
invoke-direct {v1, v3}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V
const/16 v2, 0x400
invoke-direct {v4, v1, v2}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;I)V
.line 21
const-string v1, ""
.line 22
const-string v2, ""
move-object v2, v1
.line 24
:goto_1a
:try_start_1a
invoke-virtual {v4}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;
move-result-object v1
if-eqz v1, :cond_38
.line 25
new-instance v5, Ljava/lang/StringBuilder;
invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v5
invoke-virtual {v5, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
:try_end_30
.catch Ljava/io/IOException; {:try_start_1a .. :try_end_30} :catch_66
.catchall {:try_start_1a .. :try_end_30} :catchall_76
move-result-object v1
move-object v2, v1
goto :goto_1a
.line 16
:catch_33
move-exception v1
.line 17
invoke-virtual {v1}, Ljava/io/FileNotFoundException;->printStackTrace()V
.line 49
:cond_37
:goto_37
return-object v0
.line 31
:cond_38
:try_start_38
invoke-virtual {v4}, Ljava/io/BufferedReader;->close()V
.line 32
invoke-virtual {v3}, Ljava/io/InputStream;->close()V
:try_end_3e
.catch Ljava/io/IOException; {:try_start_38 .. :try_end_3e} :catch_61
.line 39
:goto_3e
:try_start_3e
const-string v1, ""
if-eq v2, v1, :cond_37
.line 40
const-string v1, "version "
.line 41
const-string v1, "version "
invoke-virtual {v2, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I
move-result v1
.line 42
const-string v3, "version "
invoke-virtual {v3}, Ljava/lang/String;->length()I
move-result v3
add-int/2addr v1, v3
invoke-virtual {v2, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object v1
.line 43
const-string v2, " "
invoke-virtual {v1, v2}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I
move-result v2
.line 44
const/4 v3, 0x0
invoke-virtual {v1, v3, v2}, Ljava/lang/String;->substring(II)Ljava/lang/String;
:try_end_5f
.catch Ljava/lang/IndexOutOfBoundsException; {:try_start_3e .. :try_end_5f} :catch_83
move-result-object v0
goto :goto_37
.line 33
:catch_61
move-exception v1
.line 34
invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
goto :goto_3e
.line 27
:catch_66
move-exception v1
.line 28
:try_start_67
invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
:try_end_6a
.catchall {:try_start_67 .. :try_end_6a} :catchall_76
.line 31
:try_start_6a
invoke-virtual {v4}, Ljava/io/BufferedReader;->close()V
.line 32
invoke-virtual {v3}, Ljava/io/InputStream;->close()V
:try_end_70
.catch Ljava/io/IOException; {:try_start_6a .. :try_end_70} :catch_71
goto :goto_3e
.line 33
:catch_71
move-exception v1
.line 34
invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
goto :goto_3e
.line 30
:catchall_76
move-exception v0
.line 31
:try_start_77
invoke-virtual {v4}, Ljava/io/BufferedReader;->close()V
.line 32
invoke-virtual {v3}, Ljava/io/InputStream;->close()V
:try_end_7d
.catch Ljava/io/IOException; {:try_start_77 .. :try_end_7d} :catch_7e
.line 35
:goto_7d
throw v0
.line 33
:catch_7e
move-exception v1
.line 34
invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
goto :goto_7d
.line 46
:catch_83
move-exception v1
.line 47
invoke-virtual {v1}, Ljava/lang/IndexOutOfBoundsException;->printStackTrace()V
goto :goto_37
.end method