OAIDLog.smali
1.6 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
.class public final Lcom/github/gzuliyujiang/oaid/OAIDLog;
.super Ljava/lang/Object;
.source "OAIDLog.java"
# static fields
.field private static final TAG:Ljava/lang/String; = "OAID"
.field private static enable:Z
# direct methods
.method static constructor <clinit>()V
.registers 1
.prologue
.line 26
const/4 v0, 0x0
sput-boolean v0, Lcom/github/gzuliyujiang/oaid/OAIDLog;->enable:Z
return-void
.end method
.method private constructor <init>()V
.registers 1
.prologue
.line 29
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 30
return-void
.end method
.method public static enable()V
.registers 1
.prologue
.line 36
const/4 v0, 0x1
sput-boolean v0, Lcom/github/gzuliyujiang/oaid/OAIDLog;->enable:Z
.line 37
return-void
.end method
.method public static print(Ljava/lang/Object;)V
.registers 3
.param p0, "log" # Ljava/lang/Object;
.prologue
.line 45
sget-boolean v0, Lcom/github/gzuliyujiang/oaid/OAIDLog;->enable:Z
if-nez v0, :cond_5
.line 52
.end local p0 # "log":Ljava/lang/Object;
:goto_4
return-void
.line 48
.restart local p0 # "log":Ljava/lang/Object;
:cond_5
if-nez p0, :cond_9
.line 49
const-string p0, "<null>"
.line 51
.end local p0 # "log":Ljava/lang/Object;
:cond_9
const-string v0, "OAID"
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_4
.end method