c.smali
.class public Lcom/sdk/plus/j/c;
.super Ljava/lang/Object;
# static fields
.field private static d:Ljava/lang/String;
.field private static e:Lcom/sdk/plus/j/c;
# instance fields
.field public a:Landroid/content/Context;
.field public b:Ljava/util/Timer;
.field public c:Landroid/content/ServiceConnection;
.field private f:Lcom/sdk/plus/j/f;
.field private g:Ljava/lang/String;
.field private h:Z
.field private i:Ljava/lang/String;
.field private j:Z
# direct methods
.method static constructor <clinit>()V
.registers 1
const-string v0, "OaidManager"
sput-object v0, Lcom/sdk/plus/j/c;->d:Ljava/lang/String;
return-void
.end method
.method private constructor <init>()V
.registers 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v0, Ljava/util/Timer;
invoke-direct {v0}, Ljava/util/Timer;-><init>()V
iput-object v0, p0, Lcom/sdk/plus/j/c;->b:Ljava/util/Timer;
new-instance v0, Lcom/sdk/plus/j/d;
invoke-direct {v0, p0}, Lcom/sdk/plus/j/d;-><init>(Lcom/sdk/plus/j/c;)V
iput-object v0, p0, Lcom/sdk/plus/j/c;->c:Landroid/content/ServiceConnection;
return-void
.end method
.method public static a()Lcom/sdk/plus/j/c;
.registers 2
sget-object v0, Lcom/sdk/plus/j/c;->e:Lcom/sdk/plus/j/c;
if-nez v0, :cond_13
const-class v1, Lcom/sdk/plus/j/c;
monitor-enter v1
:try_start_7
sget-object v0, Lcom/sdk/plus/j/c;->e:Lcom/sdk/plus/j/c;
if-nez v0, :cond_12
new-instance v0, Lcom/sdk/plus/j/c;
invoke-direct {v0}, Lcom/sdk/plus/j/c;-><init>()V
sput-object v0, Lcom/sdk/plus/j/c;->e:Lcom/sdk/plus/j/c;
:cond_12
monitor-exit v1
:try_end_13
.catchall {:try_start_7 .. :try_end_13} :catchall_16
:cond_13
sget-object v0, Lcom/sdk/plus/j/c;->e:Lcom/sdk/plus/j/c;
return-object v0
:catchall_16
move-exception v0
:try_start_17
monitor-exit v1
:try_end_18
.catchall {:try_start_17 .. :try_end_18} :catchall_16
throw v0
.end method
.method static synthetic a(Lcom/sdk/plus/j/c;Lcom/sdk/plus/j/f;)Lcom/sdk/plus/j/f;
.registers 2
iput-object p1, p0, Lcom/sdk/plus/j/c;->f:Lcom/sdk/plus/j/f;
return-object p1
.end method
.method static synthetic a(Lcom/sdk/plus/j/c;)V
.registers 2
:try_start_0
iget-object v0, p0, Lcom/sdk/plus/j/c;->f:Lcom/sdk/plus/j/f;
invoke-virtual {v0}, Lcom/sdk/plus/j/f;->a()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/sdk/plus/j/c;->g:Ljava/lang/String;
iget-object v0, p0, Lcom/sdk/plus/j/c;->f:Lcom/sdk/plus/j/f;
invoke-virtual {v0}, Lcom/sdk/plus/j/f;->b()Z
move-result v0
iput-boolean v0, p0, Lcom/sdk/plus/j/c;->h:Z
invoke-direct {p0}, Lcom/sdk/plus/j/c;->d()Ljava/lang/String;
move-result-object v0
iput-object v0, p0, Lcom/sdk/plus/j/c;->i:Ljava/lang/String;
const/4 v0, 0x1
iput-boolean v0, p0, Lcom/sdk/plus/j/c;->j:Z
:try_end_19
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_19} :catch_1a
:goto_19
return-void
:catch_1a
move-exception v0
goto :goto_19
.end method
.method static synthetic b(Lcom/sdk/plus/j/c;)V
.registers 3
iget-object v0, p0, Lcom/sdk/plus/j/c;->a:Landroid/content/Context;
iget-object v1, p0, Lcom/sdk/plus/j/c;->c:Landroid/content/ServiceConnection;
invoke-virtual {v0, v1}, Landroid/content/Context;->unbindService(Landroid/content/ServiceConnection;)V
sget-object v0, Lcom/sdk/plus/j/c;->d:Ljava/lang/String;
const-string v1, "oaid service unBind"
invoke-static {v0, v1}, Lcom/sdk/plus/h/d;->a(Ljava/lang/String;Ljava/lang/String;)V
return-void
.end method
.method static synthetic c()Ljava/lang/String;
.registers 1
sget-object v0, Lcom/sdk/plus/j/c;->d:Ljava/lang/String;
return-object v0
.end method
.method private d()Ljava/lang/String;
.registers 4
:try_start_0
iget-object v0, p0, Lcom/sdk/plus/j/c;->a:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v0
const-string v1, "com.huawei.hwid"
const/4 v2, 0x0
invoke-virtual {v0, v1, v2}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo;
move-result-object v0
iget-object v0, v0, Landroid/content/pm/PackageInfo;->versionName:Ljava/lang/String;
:try_end_f
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_f} :catch_10
:goto_f
return-object v0
:catch_10
move-exception v0
const-string v0, ""
goto :goto_f
.end method
# virtual methods
.method public final b()Ljava/lang/String;
.registers 4
const/4 v0, 0x0
:try_start_1
iget-boolean v1, p0, Lcom/sdk/plus/j/c;->j:Z
if-nez v1, :cond_6
:goto_5
return-object v0
:cond_6
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "oaid:"
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
iget-object v2, p0, Lcom/sdk/plus/j/c;->g:Ljava/lang/String;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, "#isTrackLimited:"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-boolean v2, p0, Lcom/sdk/plus/j/c;->h:Z
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, "#hwidVersion:"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
iget-object v2, p0, Lcom/sdk/plus/j/c;->i:Ljava/lang/String;
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
:try_end_2e
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_2e} :catch_30
move-result-object v0
goto :goto_5
:catch_30
move-exception v1
goto :goto_5
.end method