BoxUtil.smali
.class public Lcn/tongdun/android/shell/utils/BoxUtil;
.super Ljava/lang/Object;
.source "TongDun"
# static fields
.field public static final PLACEHOLDER2:Ljava/lang/String; = ""
.field public static stamp:J
# direct methods
.method public static constructor <clinit>()V
.registers 0
return-void
.end method
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static native box1(I[B)V
.end method
.method public static native box10(D)D
.end method
.method public static native box11(Landroid/os/Parcelable;)Landroid/os/Parcelable;
.end method
.method public static native box12(Landroid/os/Parcelable;)Landroid/os/Parcelable;
.end method
.method public static native box13(I)Lcn/tongdun/android/shell/FMAgent;
.end method
.method public static native box14(Ljava/lang/String;I)V
.end method
.method public static native box15(Ljava/lang/String;)[C
.end method
.method public static native box16()Ljava/lang/String;
.end method
.method public static native box2(Ljava/lang/String;)[B
.end method
.method public static native box3(I)I
.end method
.method public static native box4(J)J
.end method
.method public static native box5(J)Ljava/lang/String;
.end method
.method public static native box6(I)Z
.end method
.method public static native box7()Ljava/lang/String;
.end method
.method public static native box8([B)V
.end method
.method public static native box9(FI)F
.end method
.method public static native getdata(Ljava/net/HttpURLConnection;[B)Ljava/lang/String;
.end method
.method public static limitBox(Lorg/json/JSONObject;I)Ljava/lang/String;
.registers 9
.annotation system Ldalvik/annotation/Throws;
value = {
Lorg/json/JSONException;
}
.end annotation
invoke-virtual {p0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/String;->length()I
move-result v0
mul-int/lit8 v0, v0, 0x4
div-int/lit8 v0, v0, 0x3
if-ge v0, p1, :cond_13
invoke-virtual {p0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
:cond_13
const/16 v0, 0x54
const-string v1, "787a6567784a4e4d4950"
invoke-static {v1, v0}, Lcn/tongdun/android/shell/utils/BoxUtil;->linkxxxxx(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v0
invoke-virtual {p0, v0}, Lorg/json/JSONObject;->getJSONObject(Ljava/lang/String;)Lorg/json/JSONObject;
move-result-object v0
new-instance v1, Lorg/json/JSONArray;
const/16 v2, 0x17
const-string v3, "7839652478094a175e"
invoke-static {v3, v2}, Lcn/tongdun/android/shell/utils/BoxUtil;->linkxxxxx(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
invoke-direct {v1, v2}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V
new-instance v2, Lorg/json/JSONArray;
invoke-direct {v2}, Lorg/json/JSONArray;-><init>()V
const/4 v3, 0x0
:goto_36
invoke-virtual {v1}, Lorg/json/JSONArray;->length()I
move-result v4
const-string v5, ""
if-ge v3, v4, :cond_4d
invoke-virtual {v1, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;
move-result-object v4
sget-object v6, Lcn/tongdun/android/shell/common/CollectorError;->KEY_REASON:Ljava/lang/String;
invoke-virtual {v4, v6, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
invoke-virtual {v2, v4}, Lorg/json/JSONArray;->put(Ljava/lang/Object;)Lorg/json/JSONArray;
add-int/lit8 v3, v3, 0x1
goto :goto_36
:cond_4d
const/16 v1, 0x5c
const-string v3, "7872656f78424a5c5e"
invoke-static {v3, v1}, Lcn/tongdun/android/shell/utils/BoxUtil;->linkxxxxx(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
const/16 v1, 0x32
const-string v2, "781c6501782c4e2b4936"
invoke-static {v2, v1}, Lcn/tongdun/android/shell/utils/BoxUtil;->linkxxxxx(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v1
invoke-virtual {p0, v1, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
invoke-virtual {p0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/String;->length()I
move-result v1
mul-int/lit8 v1, v1, 0x4
div-int/lit8 v1, v1, 0x3
if-le v1, p1, :cond_90
const/16 p1, 0x61
const-string v1, "784f6552787f4a615e"
invoke-static {v1, p1}, Lcn/tongdun/android/shell/utils/BoxUtil;->linkxxxxx(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
const/16 v1, 0x6a
const-string v2, "7952774d7d4b"
invoke-static {v2, v1}, Lcn/tongdun/android/shell/utils/BoxUtil;->linkxxxxx(Ljava/lang/String;I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1, v5}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
const-string v1, "784f6552787f4e784965"
invoke-static {v1, p1}, Lcn/tongdun/android/shell/utils/BoxUtil;->linkxxxxx(Ljava/lang/String;I)Ljava/lang/String;
move-result-object p1
invoke-virtual {p0, p1, v0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:cond_90
invoke-virtual {p0}, Lorg/json/JSONObject;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static linkxxxxx(Ljava/lang/String;I)Ljava/lang/String;
.registers 9
const-string v0, "0123456789abcdef"
:try_start_2
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result v1
div-int/lit8 v1, v1, 0x2
invoke-virtual {p0}, Ljava/lang/String;->toCharArray()[C
move-result-object p0
new-array v2, v1, [B
const/4 v3, 0x0
const/4 v4, 0x0
:goto_10
if-ge v4, v1, :cond_2b
mul-int/lit8 v5, v4, 0x2
aget-char v6, p0, v5
invoke-virtual {v0, v6}, Ljava/lang/String;->indexOf(I)I
move-result v6
shl-int/lit8 v6, v6, 0x4
add-int/lit8 v5, v5, 0x1
aget-char v5, p0, v5
invoke-virtual {v0, v5}, Ljava/lang/String;->indexOf(I)I
move-result v5
or-int/2addr v5, v6
int-to-byte v5, v5
aput-byte v5, v2, v4
add-int/lit8 v4, v4, 0x1
goto :goto_10
:cond_2b
xor-int/lit8 p0, p1, 0x39
int-to-byte p0, p0
aget-byte p1, v2, v3
xor-int/lit8 p1, p1, 0x1d
int-to-byte p1, p1
aput-byte p1, v2, v3
aget-byte p1, v2, v3
const/4 v0, 0x1
:goto_38
if-ge v0, v1, :cond_47
aget-byte v3, v2, v0
aget-byte v4, v2, v0
xor-int/2addr p1, v4
xor-int/2addr p1, p0
int-to-byte p1, p1
aput-byte p1, v2, v0
add-int/lit8 v0, v0, 0x1
move p1, v3
goto :goto_38
:cond_47
new-instance p0, Ljava/lang/String;
const-string/jumbo p1, "utf-8"
invoke-direct {p0, v2, p1}, Ljava/lang/String;-><init>([BLjava/lang/String;)V
:try_end_4f
.catch Ljava/lang/Exception; {:try_start_2 .. :try_end_4f} :catch_50
return-object p0
:catch_50
move-exception p0
invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V
const-string p0, ""
return-object p0
.end method
.method public static native mixup(Ljava/lang/String;)Ljava/lang/String;
.end method