as.smali
4.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
.class public Lcom/umeng/analytics/pro/as;
.super Ljava/lang/Object;
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static a([BLjava/io/OutputStream;)V
.locals 3
:try_start_0
new-instance v0, Ljava/util/zip/GZIPOutputStream;
invoke-direct {v0, p1}, Ljava/util/zip/GZIPOutputStream;-><init>(Ljava/io/OutputStream;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
:try_start_1
invoke-virtual {v0, p0}, Ljava/util/zip/GZIPOutputStream;->write([B)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_1
:catchall_0
move-exception p0
goto :goto_0
:catchall_1
move-exception p0
const/4 v0, 0x0
:goto_0
const-string p1, "MobclickRT"
:try_start_2
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "gzip error: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object p0
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-static {p1, p0}, Lcom/umeng/commonsdk/debug/UMRTLog;->e(Ljava/lang/String;Ljava/lang/String;)V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_2
:goto_1
invoke-static {v0}, Lcom/umeng/analytics/pro/ap;->a(Ljava/io/Closeable;)V
return-void
:catchall_2
move-exception p0
invoke-static {v0}, Lcom/umeng/analytics/pro/ap;->a(Ljava/io/Closeable;)V
throw p0
.end method
.method public static a([B[B)[B
.locals 3
if-eqz p0, :cond_1
array-length v0, p0
if-eqz v0, :cond_1
if-eqz p1, :cond_1
array-length v0, p1
if-nez v0, :cond_0
goto :goto_1
:cond_0
const/4 v0, 0x0
:goto_0
array-length v1, p0
if-ge v0, v1, :cond_1
aget-byte v1, p0, v0
array-length v2, p1
rem-int v2, v0, v2
aget-byte v2, p1, v2
xor-int/2addr v1, v2
and-int/lit16 v2, v0, 0xff
xor-int/2addr v1, v2
int-to-byte v1, v1
aput-byte v1, p0, v0
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_1
:goto_1
return-object p0
.end method
.method public static b([BLjava/io/OutputStream;)V
.locals 3
:try_start_0
new-instance v0, Ljava/util/zip/GZIPInputStream;
new-instance v1, Ljava/io/ByteArrayInputStream;
invoke-direct {v1, p0}, Ljava/io/ByteArrayInputStream;-><init>([B)V
invoke-direct {v0, v1}, Ljava/util/zip/GZIPInputStream;-><init>(Ljava/io/InputStream;)V
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_1
const/16 p0, 0x400
:try_start_1
new-array p0, p0, [B
:goto_0
invoke-virtual {v0, p0}, Ljava/util/zip/GZIPInputStream;->read([B)I
move-result v1
const/4 v2, -0x1
if-eq v1, v2, :cond_0
const/4 v2, 0x0
invoke-virtual {p1, p0, v2, v1}, Ljava/io/OutputStream;->write([BII)V
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
goto :goto_0
:cond_0
:goto_1
invoke-static {v0}, Lcom/umeng/analytics/pro/ap;->a(Ljava/io/Closeable;)V
goto :goto_3
:catchall_0
move-exception p0
goto :goto_2
:catchall_1
move-exception p0
const/4 v0, 0x0
:goto_2
const-string p1, "MobclickRT"
:try_start_2
new-instance v1, Ljava/lang/StringBuilder;
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
const-string v2, "unGzip error: "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;
move-result-object p0
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-static {p1, p0}, Lcom/umeng/commonsdk/debug/UMRTLog;->e(Ljava/lang/String;Ljava/lang/String;)V
:try_end_2
.catchall {:try_start_2 .. :try_end_2} :catchall_2
goto :goto_1
:goto_3
return-void
:catchall_2
move-exception p0
invoke-static {v0}, Lcom/umeng/analytics/pro/ap;->a(Ljava/io/Closeable;)V
throw p0
.end method