XploitSPY/app/factory/decompiled/smali/b/a/e/A.smali

102 lines
2.6 KiB
Smali
Raw Normal View History

2020-03-24 03:54:23 +08:00
.class public Lb/a/e/a;
.super Ljava/lang/Object;
2020-01-11 23:35:37 +08:00
.source ""
2020-03-24 03:54:23 +08:00
# direct methods
.method public static a(Ljava/lang/String;)Ljava/lang/String;
.locals 1
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:try_start_0
const-string v0, "UTF-8"
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-static {p0, v0}, Ljava/net/URLDecoder;->decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
:try_end_0
.catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_0
return-object p0
:catch_0
move-exception p0
new-instance v0, Ljava/lang/RuntimeException;
invoke-direct {v0, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw v0
.end method
.method public static b(Ljava/lang/String;)Ljava/lang/String;
2020-01-11 23:35:37 +08:00
.locals 2
2020-03-24 03:54:23 +08:00
:try_start_0
const-string v0, "UTF-8"
invoke-static {p0, v0}, Ljava/net/URLEncoder;->encode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object p0
const-string v0, "+"
const-string v1, "%20"
invoke-virtual {p0, v0, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
move-result-object p0
const-string v0, "%21"
const-string v1, "!"
invoke-virtual {p0, v0, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
move-result-object p0
const-string v0, "%27"
const-string v1, "\'"
invoke-virtual {p0, v0, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
move-result-object p0
const-string v0, "%28"
const-string v1, "("
invoke-virtual {p0, v0, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
move-result-object p0
const-string v0, "%29"
const-string v1, ")"
invoke-virtual {p0, v0, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
move-result-object p0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
const-string v0, "%7E"
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
const-string v1, "~"
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-virtual {p0, v0, v1}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
move-result-object p0
:try_end_0
.catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
return-object p0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
:catch_0
move-exception p0
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
new-instance v0, Ljava/lang/RuntimeException;
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
invoke-direct {v0, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
2020-01-11 23:35:37 +08:00
2020-03-24 03:54:23 +08:00
throw v0
2020-01-11 23:35:37 +08:00
.end method