d.smali
3.1 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
.class public Lcom/bytedance/dr/impl/d;
.super Lcom/bytedance/dr/impl/b;
.source ""
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/bytedance/dr/impl/b<",
"Lcom/bytedance/dr/aidl/a;",
">;"
}
.end annotation
# instance fields
.field public final c:Landroid/content/Context;
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 1
const-string v0, "com.coolpad.deviceidsupport"
invoke-direct {p0, v0}, Lcom/bytedance/dr/impl/b;-><init>(Ljava/lang/String;)V
iput-object p1, p0, Lcom/bytedance/dr/impl/d;->c:Landroid/content/Context;
return-void
.end method
# virtual methods
.method public a(Landroid/content/Context;)Landroid/content/Intent;
.locals 3
new-instance p1, Landroid/content/Intent;
invoke-direct {p1}, Landroid/content/Intent;-><init>()V
new-instance v0, Landroid/content/ComponentName;
const-string v1, "com.coolpad.deviceidsupport"
const-string v2, "com.coolpad.deviceidsupport.DeviceIdService"
invoke-direct {v0, v1, v2}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V
invoke-virtual {p1, v0}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
return-object p1
.end method
.method public a()Lcom/bytedance/bdtracker/d5$b;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/bytedance/bdtracker/d5$b<",
"Lcom/bytedance/dr/aidl/a;",
"Ljava/lang/String;",
">;"
}
.end annotation
new-instance v0, Lcom/bytedance/dr/impl/d$a;
invoke-direct {v0, p0}, Lcom/bytedance/dr/impl/d$a;-><init>(Lcom/bytedance/dr/impl/d;)V
return-object v0
.end method
.method public getName()Ljava/lang/String;
.locals 1
const-string v0, "coolpad"
return-object v0
.end method
.method public getOaid(Landroid/content/Context;)Lcom/bytedance/dr/OaidApi$a;
.locals 2
:try_start_0
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x11
if-lt v0, v1, :cond_0
invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
move-result-object v0
const-string v1, "coolos.oaid"
invoke-static {v0, v1}, Landroid/provider/Settings$Global;->getString(Landroid/content/ContentResolver;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v1
if-nez v1, :cond_0
new-instance v1, Lcom/bytedance/dr/OaidApi$a;
invoke-direct {v1}, Lcom/bytedance/dr/OaidApi$a;-><init>()V
iput-object v0, v1, Lcom/bytedance/dr/OaidApi$a;->a:Ljava/lang/String;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
return-object v1
:catchall_0
move-exception v0
invoke-virtual {v0}, Ljava/lang/Throwable;->printStackTrace()V
:cond_0
invoke-super {p0, p1}, Lcom/bytedance/dr/impl/b;->getOaid(Landroid/content/Context;)Lcom/bytedance/dr/OaidApi$a;
move-result-object p1
return-object p1
.end method