Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .method private getProcessor()Ljava/lang/String;
- .locals 9
- .prologue
- const/4 v8, 0x1
- .line 418
- const/4 v0, 0x0
- .line 419
- .local v0, info:[Ljava/lang/String;
- const/4 v3, 0x0
- .line 423
- .local v3, reader:Ljava/io/BufferedReader;
- :try_start_0
- new-instance v4, Ljava/io/BufferedReader;
- new-instance v5, Ljava/io/InputStreamReader;
- .line 424
- new-instance v6, Ljava/io/FileInputStream;
- const-string v7, "/proc/cpuinfo"
- invoke-direct {v6, v7}, Ljava/io/FileInputStream;-><init>(Ljava/lang/String;)V
- invoke-direct {v5, v6}, Ljava/io/InputStreamReader;-><init>(Ljava/io/InputStream;)V
- const/16 v6, 0x3e8
- .line 423
- invoke-direct {v4, v5, v6}, Ljava/io/BufferedReader;-><init>(Ljava/io/Reader;I)V
- :try_end_0
- .catchall {:try_start_0 .. :try_end_0} :catchall_0
- .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
- .line 427
- .end local v3 #reader:Ljava/io/BufferedReader;
- .local v4, reader:Ljava/io/BufferedReader;
- :try_start_1
- invoke-virtual {v4}, Ljava/io/BufferedReader;->readLine()Ljava/lang/String;
- move-result-object v2
- .line 430
- .local v2, line:Ljava/lang/String;
- const-string v5, ":"
- invoke-virtual {v2, v5}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
- :try_end_1
- .catchall {:try_start_1 .. :try_end_1} :catchall_1
- .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_4
- move-result-object v0
- .line 438
- :try_start_2
- invoke-virtual {v4}, Ljava/io/BufferedReader;->close()V
- :try_end_2
- .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_3
- .line 441
- :goto_0
- const/4 v3, 0x0
- .line 444
- .end local v2 #line:Ljava/lang/String;
- .end local v4 #reader:Ljava/io/BufferedReader;
- .restart local v3 #reader:Ljava/io/BufferedReader;
- :goto_1
- aget-object v5, v0, v8
- return-object v5
- .line 431
- :catch_0
- move-exception v1
- .line 432
- .local v1, io:Ljava/io/IOException;
- :goto_2
- :try_start_3
- invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V
- .line 433
- const/4 v5, 0x1
- new-array v0, v5, [Ljava/lang/String;
- .line 434
- const/4 v5, 0x1
- const-string v6, "error"
- aput-object v6, v0, v5
- :try_end_3
- .catchall {:try_start_3 .. :try_end_3} :catchall_0
- .line 438
- :try_start_4
- invoke-virtual {v3}, Ljava/io/BufferedReader;->close()V
- :try_end_4
- .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_1
- .line 441
- :goto_3
- const/4 v3, 0x0
- goto :goto_1
- .line 435
- .end local v1 #io:Ljava/io/IOException;
- :catchall_0
- move-exception v5
- .line 438
- :goto_4
- :try_start_5
- invoke-virtual {v3}, Ljava/io/BufferedReader;->close()V
- :try_end_5
- .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_2
- .line 441
- :goto_5
- const/4 v3, 0x0
- .line 442
- throw v5
- .line 439
- .restart local v1 #io:Ljava/io/IOException;
- :catch_1
- move-exception v5
- goto :goto_3
- .end local v1 #io:Ljava/io/IOException;
- :catch_2
- move-exception v6
- goto :goto_5
- .end local v3 #reader:Ljava/io/BufferedReader;
- .restart local v2 #line:Ljava/lang/String;
- .restart local v4 #reader:Ljava/io/BufferedReader;
- :catch_3
- move-exception v5
- goto :goto_0
- .line 435
- .end local v2 #line:Ljava/lang/String;
- :catchall_1
- move-exception v5
- move-object v3, v4
- .end local v4 #reader:Ljava/io/BufferedReader;
- .restart local v3 #reader:Ljava/io/BufferedReader;
- goto :goto_4
- .line 431
- .end local v3 #reader:Ljava/io/BufferedReader;
- .restart local v4 #reader:Ljava/io/BufferedReader;
- :catch_4
- move-exception v1
- move-object v3, v4
- .end local v4 #reader:Ljava/io/BufferedReader;
- .restart local v3 #reader:Ljava/io/BufferedReader;
- goto :goto_2
- .end method
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement