SensitiveUtils$e.smali
2.3 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
.class public final Lcom/bytedance/applog/util/SensitiveUtils$e;
.super Ljava/lang/Object;
.source ""
# interfaces
.implements Lcom/bytedance/bdtracker/v3$a;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/bytedance/applog/util/SensitiveUtils;->getSerialNumber(Landroid/content/Context;)Ljava/lang/String;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = null
.end annotation
# instance fields
.field public final synthetic a:Landroid/content/Context;
# direct methods
.method public constructor <init>(Landroid/content/Context;)V
.locals 0
iput-object p1, p0, Lcom/bytedance/applog/util/SensitiveUtils$e;->a:Landroid/content/Context;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public a()Ljava/lang/String;
.locals 4
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1a
if-lt v0, v1, :cond_0
iget-object v0, p0, Lcom/bytedance/applog/util/SensitiveUtils$e;->a:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
move-result-object v0
iget v0, v0, Landroid/content/pm/ApplicationInfo;->targetSdkVersion:I
if-lt v0, v1, :cond_0
iget-object v0, p0, Lcom/bytedance/applog/util/SensitiveUtils$e;->a:Landroid/content/Context;
invoke-static {v0}, Lcom/bytedance/applog/util/SensitiveUtils;->hasReadPhoneStatePermission(Landroid/content/Context;)Z
move-result v0
if-eqz v0, :cond_0
invoke-static {}, Lcom/bytedance/applog/log/LoggerImpl;->global()Lcom/bytedance/applog/log/IAppLogLogger;
move-result-object v0
.line 1
sget-object v1, Lcom/bytedance/applog/util/SensitiveUtils;->a:Ljava/util/List;
const/4 v2, 0x0
.line 2
new-array v2, v2, [Ljava/lang/Object;
const-string v3, "[DeviceMeta&READ_PHONE_STATE] Try to get build serial."
invoke-interface {v0, v1, v3, v2}, Lcom/bytedance/applog/log/IAppLogLogger;->debug(Ljava/util/List;Ljava/lang/String;[Ljava/lang/Object;)V
invoke-static {}, Landroid/os/Build;->getSerial()Ljava/lang/String;
move-result-object v0
return-object v0
:cond_0
const-string v0, ""
return-object v0
.end method