a.smali
.class public final Lcom/huawei/updatesdk/sdk/service/secure/a;
.super Ljava/lang/Object;
# instance fields
.field private a:Landroid/content/Intent;
# direct methods
.method private constructor <init>(Landroid/content/Intent;)V
.registers 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
iput-object p1, p0, Lcom/huawei/updatesdk/sdk/service/secure/a;->a:Landroid/content/Intent;
return-void
.end method
.method public static a(Landroid/content/Intent;)Lcom/huawei/updatesdk/sdk/service/secure/a;
.registers 2
new-instance v0, Lcom/huawei/updatesdk/sdk/service/secure/a;
invoke-direct {v0, p0}, Lcom/huawei/updatesdk/sdk/service/secure/a;-><init>(Landroid/content/Intent;)V
return-object v0
.end method
# virtual methods
.method public a(Ljava/lang/String;I)I
.registers 5
invoke-virtual {p0}, Lcom/huawei/updatesdk/sdk/service/secure/a;->d()Z
move-result v0
if-eqz v0, :cond_c
:try_start_6
iget-object v0, p0, Lcom/huawei/updatesdk/sdk/service/secure/a;->a:Landroid/content/Intent;
invoke-virtual {v0, p1, p2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
:try_end_b
.catch Ljava/lang/Exception; {:try_start_6 .. :try_end_b} :catch_d
move-result p2
:cond_c
:goto_c
return p2
:catch_d
move-exception v0
const-string v0, "SecureIntent"
const-string v1, "getIntExtra exception!"
invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_c
.end method
.method public a()Landroid/os/Bundle;
.registers 2
invoke-virtual {p0}, Lcom/huawei/updatesdk/sdk/service/secure/a;->d()Z
move-result v0
if-eqz v0, :cond_d
iget-object v0, p0, Lcom/huawei/updatesdk/sdk/service/secure/a;->a:Landroid/content/Intent;
invoke-virtual {v0}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
move-result-object v0
:goto_c
return-object v0
:cond_d
const/4 v0, 0x0
goto :goto_c
.end method
.method public a(Ljava/lang/String;)Landroid/os/Bundle;
.registers 4
invoke-virtual {p0}, Lcom/huawei/updatesdk/sdk/service/secure/a;->d()Z
move-result v0
if-eqz v0, :cond_15
:try_start_6
iget-object v0, p0, Lcom/huawei/updatesdk/sdk/service/secure/a;->a:Landroid/content/Intent;
invoke-virtual {v0, p1}, Landroid/content/Intent;->getBundleExtra(Ljava/lang/String;)Landroid/os/Bundle;
:try_end_b
.catch Ljava/lang/Exception; {:try_start_6 .. :try_end_b} :catch_d
move-result-object v0
:goto_c
return-object v0
:catch_d
move-exception v0
const-string v0, "SecureIntent"
const-string v1, "getBundleExtra exception!"
invoke-static {v0, v1}, Lcom/huawei/updatesdk/sdk/a/b/a/a/a;->d(Ljava/lang/String;Ljava/lang/String;)V
:cond_15
const/4 v0, 0x0
goto :goto_c
.end method
.method public a(Ljava/lang/String;Z)Z
.registers 5
invoke-virtual {p0}, Lcom/huawei/updatesdk/sdk/service/secure/a;->d()Z
move-result v0
if-eqz v0, :cond_c
:try_start_6
iget-object v0, p0, Lcom/huawei/updatesdk/sdk/service/secure/a;->a:Landroid/content/Intent;
invoke-virtual {v0, p1, p2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z
:try_end_b
.catch Ljava/lang/Exception; {:try_start_6 .. :try_end_b} :catch_d
move-result p2
:cond_c
:goto_c
return p2
:catch_d
move-exception v0
const-string v0, "SecureIntent"
const-string v1, "getBooleanExtra exception!"
invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_c
.end method
.method public b()Ljava/lang/String;
.registers 3
const-string v0, ""
invoke-virtual {p0}, Lcom/huawei/updatesdk/sdk/service/secure/a;->d()Z
move-result v1
if-eqz v1, :cond_12
iget-object v0, p0, Lcom/huawei/updatesdk/sdk/service/secure/a;->a:Landroid/content/Intent;
invoke-virtual {v0}, Landroid/content/Intent;->getAction()Ljava/lang/String;
move-result-object v0
if-nez v0, :cond_12
const-string v0, ""
:cond_12
return-object v0
.end method
.method public b(Ljava/lang/String;)Ljava/lang/String;
.registers 4
invoke-virtual {p0}, Lcom/huawei/updatesdk/sdk/service/secure/a;->d()Z
move-result v0
if-eqz v0, :cond_15
:try_start_6
iget-object v0, p0, Lcom/huawei/updatesdk/sdk/service/secure/a;->a:Landroid/content/Intent;
invoke-virtual {v0, p1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
:try_end_b
.catch Ljava/lang/Exception; {:try_start_6 .. :try_end_b} :catch_d
move-result-object v0
:goto_c
return-object v0
:catch_d
move-exception v0
const-string v0, "SecureIntent"
const-string v1, "getStringExtra exception!"
invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
:cond_15
const-string v0, ""
goto :goto_c
.end method
.method public c()Landroid/content/Intent;
.registers 2
iget-object v0, p0, Lcom/huawei/updatesdk/sdk/service/secure/a;->a:Landroid/content/Intent;
return-object v0
.end method
.method public d()Z
.registers 2
iget-object v0, p0, Lcom/huawei/updatesdk/sdk/service/secure/a;->a:Landroid/content/Intent;
if-eqz v0, :cond_6
const/4 v0, 0x1
:goto_5
return v0
:cond_6
const/4 v0, 0x0
goto :goto_5
.end method