x3.smali
5.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
.class public Lcom/bytedance/bdtracker/x3;
.super Lcom/bytedance/bdtracker/j3;
.source ""
# static fields
.field public static final s:Lorg/json/JSONObject;
# direct methods
.method public static constructor <clinit>()V
.locals 7
new-instance v0, Lorg/json/JSONObject;
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
sput-object v0, Lcom/bytedance/bdtracker/x3;->s:Lorg/json/JSONObject;
:try_start_0
sget-object v0, Lcom/bytedance/bdtracker/x3;->s:Lorg/json/JSONObject;
const-string v1, "_staging_flag"
const/4 v2, 0x1
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
sget-object v0, Lcom/bytedance/bdtracker/x3;->s:Lorg/json/JSONObject;
const-string v1, "params_for_special"
const-string v2, "applog_trace"
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
goto :goto_0
:catchall_0
move-exception v0
move-object v5, v0
invoke-static {}, Lcom/bytedance/applog/log/LoggerImpl;->global()Lcom/bytedance/applog/log/IAppLogLogger;
move-result-object v1
const-string v0, "trace"
invoke-static {v0}, Ljava/util/Collections;->singletonList(Ljava/lang/Object;)Ljava/util/List;
move-result-object v3
const/4 v0, 0x0
new-array v6, v0, [Ljava/lang/Object;
const/4 v2, 0x4
const-string v4, "JSON handle failed"
invoke-interface/range {v1 .. v6}, Lcom/bytedance/applog/log/IAppLogLogger;->error(ILjava/util/List;Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V
:goto_0
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Lcom/bytedance/bdtracker/j3;-><init>()V
return-void
.end method
# virtual methods
.method public f()Ljava/lang/String;
.locals 1
.annotation build Landroidx/annotation/NonNull;
.end annotation
const-string v0, "trace"
return-object v0
.end method
.method public i()Lorg/json/JSONObject;
.locals 5
new-instance v0, Lorg/json/JSONObject;
invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V
iget-wide v1, p0, Lcom/bytedance/bdtracker/j3;->c:J
const-string v3, "local_time_ms"
invoke-virtual {v0, v3, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;
iget-wide v1, p0, Lcom/bytedance/bdtracker/j3;->d:J
const-string v3, "tea_event_index"
invoke-virtual {v0, v3, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;
iget-object v1, p0, Lcom/bytedance/bdtracker/j3;->e:Ljava/lang/String;
const-string v2, "session_id"
invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
iget-wide v1, p0, Lcom/bytedance/bdtracker/j3;->f:J
const-wide/16 v3, 0x0
cmp-long v3, v1, v3
if-lez v3, :cond_0
const-string v3, "user_id"
invoke-virtual {v0, v3, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;J)Lorg/json/JSONObject;
:cond_0
iget-object v1, p0, Lcom/bytedance/bdtracker/j3;->g:Ljava/lang/String;
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-eqz v1, :cond_1
sget-object v1, Lorg/json/JSONObject;->NULL:Ljava/lang/Object;
goto :goto_0
:cond_1
iget-object v1, p0, Lcom/bytedance/bdtracker/j3;->g:Ljava/lang/String;
:goto_0
const-string v2, "user_unique_id"
invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
iget-object v1, p0, Lcom/bytedance/bdtracker/j3;->h:Ljava/lang/String;
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_2
iget-object v1, p0, Lcom/bytedance/bdtracker/j3;->h:Ljava/lang/String;
const-string v2, "$user_unique_id_type"
invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:cond_2
iget-object v1, p0, Lcom/bytedance/bdtracker/j3;->i:Ljava/lang/String;
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_3
iget-object v1, p0, Lcom/bytedance/bdtracker/j3;->i:Ljava/lang/String;
const-string v2, "ssid"
invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
:cond_3
const-string v1, "event"
const-string v2, "rangersapplog_trace"
invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
sget-object v1, Lcom/bytedance/bdtracker/x3;->s:Lorg/json/JSONObject;
invoke-virtual {p0, v0, v1}, Lcom/bytedance/bdtracker/j3;->a(Lorg/json/JSONObject;Lorg/json/JSONObject;)V
iget v1, p0, Lcom/bytedance/bdtracker/j3;->k:I
sget-object v2, Lcom/bytedance/bdtracker/i4$a;->b:Lcom/bytedance/bdtracker/i4$a;
.line 1
iget v2, v2, Lcom/bytedance/bdtracker/i4$a;->a:I
if-eq v1, v2, :cond_4
const-string v2, "nt"
.line 2
invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;
:cond_4
iget-object v1, p0, Lcom/bytedance/bdtracker/j3;->n:Ljava/lang/String;
const-string v2, "datetime"
invoke-virtual {v0, v2, v1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
return-object v0
.end method