OpenDeviceId.smali
3.7 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
.class public Lcom/zui/opendeviceidlibrary/OpenDeviceId;
.super Ljava/lang/Object;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/zui/opendeviceidlibrary/OpenDeviceId$CallBack;
}
.end annotation
# static fields
.field private static c:Ljava/lang/String; = "OpenDeviceId library"
.field private static d:Z = false
# instance fields
.field private a:Landroid/content/Context;
.field private b:Lcom/zui/deviceidservice/IDeviceidInterface;
.field private e:Landroid/content/ServiceConnection;
.field private f:Lcom/zui/opendeviceidlibrary/OpenDeviceId$CallBack;
# direct methods
.method static constructor <clinit>()V
.locals 0
return-void
.end method
.method public constructor <init>(Landroid/content/Context;Lcom/zui/opendeviceidlibrary/OpenDeviceId$CallBack;)V
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const/4 v0, 0x0
iput-object v0, p0, Lcom/zui/opendeviceidlibrary/OpenDeviceId;->a:Landroid/content/Context;
iput-object v0, p0, Lcom/zui/opendeviceidlibrary/OpenDeviceId;->f:Lcom/zui/opendeviceidlibrary/OpenDeviceId$CallBack;
if-eqz p1, :cond_1
iput-object p1, p0, Lcom/zui/opendeviceidlibrary/OpenDeviceId;->a:Landroid/content/Context;
iput-object p2, p0, Lcom/zui/opendeviceidlibrary/OpenDeviceId;->f:Lcom/zui/opendeviceidlibrary/OpenDeviceId$CallBack;
new-instance p1, Lcom/zui/opendeviceidlibrary/OpenDeviceId$1;
invoke-direct {p1, p0}, Lcom/zui/opendeviceidlibrary/OpenDeviceId$1;-><init>(Lcom/zui/opendeviceidlibrary/OpenDeviceId;)V
iput-object p1, p0, Lcom/zui/opendeviceidlibrary/OpenDeviceId;->e:Landroid/content/ServiceConnection;
new-instance p1, Landroid/content/Intent;
invoke-direct {p1}, Landroid/content/Intent;-><init>()V
const-string p2, "com.zui.deviceidservice"
const-string v0, "com.zui.deviceidservice.DeviceidService"
invoke-virtual {p1, p2, v0}, Landroid/content/Intent;->setClassName(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
iget-object p2, p0, Lcom/zui/opendeviceidlibrary/OpenDeviceId;->a:Landroid/content/Context;
iget-object v0, p0, Lcom/zui/opendeviceidlibrary/OpenDeviceId;->e:Landroid/content/ServiceConnection;
const/4 v1, 0x1
invoke-virtual {p2, p1, v0, v1}, Landroid/content/Context;->bindService(Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z
move-result p1
if-eqz p1, :cond_0
const-string p1, "bindService Successful!"
goto :goto_0
:cond_0
const-string p1, "bindService Failed!"
:goto_0
invoke-direct {p0, p1}, Lcom/zui/opendeviceidlibrary/OpenDeviceId;->a(Ljava/lang/String;)V
return-void
:cond_1
new-instance p1, Ljava/lang/NullPointerException;
const-string p2, "Context can not be null."
invoke-direct {p1, p2}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p1
.end method
.method static native synthetic a(Lcom/zui/opendeviceidlibrary/OpenDeviceId;Lcom/zui/deviceidservice/IDeviceidInterface;)Lcom/zui/deviceidservice/IDeviceidInterface;
.end method
.method static native synthetic a(Lcom/zui/opendeviceidlibrary/OpenDeviceId;)Lcom/zui/opendeviceidlibrary/OpenDeviceId$CallBack;
.end method
.method static native synthetic a(Lcom/zui/opendeviceidlibrary/OpenDeviceId;Ljava/lang/String;)V
.end method
.method private native a(Ljava/lang/String;)V
.end method
.method private native b(Ljava/lang/String;)V
.end method
# virtual methods
.method public native a()Ljava/lang/String;
.end method
.method public native b()Ljava/lang/String;
.end method
.method public native c()Z
.end method
.method public native d()Ljava/lang/String;
.end method
.method public native e()Ljava/lang/String;
.end method
.method public native f()V
.end method