a.smali
.class public Lcom/baidu/sapi2/passhost/framework/a/a;
.super Ljava/lang/Object;
.source "SapiBaseService.java"
# interfaces
.implements Lcom/baidu/sapi2/passhost/pluginsdk/service/ISapiBaseService;
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/baidu/sapi2/passhost/framework/a/a$a;
}
.end annotation
# static fields
.field private static final a:Ljava/lang/String; = "SapiBaseService"
# instance fields
.field private b:Landroid/content/Context;
# direct methods
.method private constructor <init>()V
.registers 1
.prologue
.line 39
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 41
return-void
.end method
.method synthetic constructor <init>(Lcom/baidu/sapi2/passhost/framework/a/a$1;)V
.registers 2
.prologue
.line 22
invoke-direct {p0}, Lcom/baidu/sapi2/passhost/framework/a/a;-><init>()V
return-void
.end method
.method public static a()Lcom/baidu/sapi2/passhost/framework/a/a;
.registers 1
.prologue
.line 32
sget-object v0, Lcom/baidu/sapi2/passhost/framework/a/a$a;->a:Lcom/baidu/sapi2/passhost/framework/a/a;
return-object v0
.end method
# virtual methods
.method public a(Landroid/content/Context;)V
.registers 2
.prologue
.line 36
iput-object p1, p0, Lcom/baidu/sapi2/passhost/framework/a/a;->b:Landroid/content/Context;
.line 37
return-void
.end method
.method public checkRequestPermission(Ljava/lang/String;)Z
.registers 3
.prologue
.line 86
iget-object v0, p0, Lcom/baidu/sapi2/passhost/framework/a/a;->b:Landroid/content/Context;
invoke-static {p1, v0}, Lcom/baidu/sapi2/utils/SapiUtils;->checkRequestPermission(Ljava/lang/String;Landroid/content/Context;)Z
move-result v0
return v0
.end method
.method public getAppPackageSign()Ljava/lang/String;
.registers 3
.prologue
.line 60
iget-object v0, p0, Lcom/baidu/sapi2/passhost/framework/a/a;->b:Landroid/content/Context;
iget-object v1, p0, Lcom/baidu/sapi2/passhost/framework/a/a;->b:Landroid/content/Context;
invoke-virtual {v1}, Landroid/content/Context;->getPackageName()Ljava/lang/String;
move-result-object v1
invoke-static {v0, v1}, Lcom/baidu/sapi2/utils/SapiUtils;->getPackageSign(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getAppVersionName()Ljava/lang/String;
.registers 2
.prologue
.line 50
iget-object v0, p0, Lcom/baidu/sapi2/passhost/framework/a/a;->b:Landroid/content/Context;
invoke-static {v0}, Lcom/baidu/sapi2/utils/SapiUtils;->getVersionName(Landroid/content/Context;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getAppZid()Ljava/lang/String;
.registers 5
.prologue
.line 92
const/4 v1, 0x1
.line 93
const/4 v0, 0x0
.line 95
invoke-static {}, Lcom/baidu/sapi2/ServiceManager;->getInstance()Lcom/baidu/sapi2/ServiceManager;
move-result-object v2
invoke-virtual {v2}, Lcom/baidu/sapi2/ServiceManager;->getIsAccountManager()Lcom/baidu/sapi2/service/interfaces/ISAccountManager;
move-result-object v2
.line 96
invoke-interface {v2}, Lcom/baidu/sapi2/service/interfaces/ISAccountManager;->getSession()Lcom/baidu/sapi2/SapiAccount;
move-result-object v2
.line 97
if-eqz v2, :cond_12
.line 98
iget-object v0, v2, Lcom/baidu/sapi2/SapiAccount;->uid:Ljava/lang/String;
.line 100
:cond_12
invoke-static {}, Lcom/baidu/sapi2/passhost/hostsdk/service/SafeService;->getInstance()Lcom/baidu/sapi2/passhost/hostsdk/service/SafeService;
move-result-object v2
iget-object v3, p0, Lcom/baidu/sapi2/passhost/framework/a/a;->b:Landroid/content/Context;
invoke-virtual {v2, v3, v0, v1}, Lcom/baidu/sapi2/passhost/hostsdk/service/SafeService;->getZidAndCheckSafe(Landroid/content/Context;Ljava/lang/String;I)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getClientId()Ljava/lang/String;
.registers 2
.prologue
.line 54
iget-object v0, p0, Lcom/baidu/sapi2/passhost/framework/a/a;->b:Landroid/content/Context;
invoke-static {v0}, Lcom/baidu/sapi2/utils/SapiUtils;->getClientId(Landroid/content/Context;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getDeviceInfo(Ljava/lang/String;)Ljava/lang/String;
.registers 3
.prologue
.line 65
invoke-static {p1}, Lcom/baidu/sapi2/utils/SapiDeviceInfo;->getDeviceInfo(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 66
return-object v0
.end method
.method public getGPSInfo()Ljava/lang/String;
.registers 2
.prologue
.line 82
iget-object v0, p0, Lcom/baidu/sapi2/passhost/framework/a/a;->b:Landroid/content/Context;
invoke-static {v0}, Lcom/baidu/sapi2/utils/SapiUtils;->getGPSInfo(Landroid/content/Context;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getLocation()Ljava/lang/String;
.registers 2
.prologue
.line 70
iget-object v0, p0, Lcom/baidu/sapi2/passhost/framework/a/a;->b:Landroid/content/Context;
invoke-static {v0}, Lcom/baidu/sapi2/utils/SapiUtils;->getLocation(Landroid/content/Context;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public getPiranhaVersion()Ljava/lang/String;
.registers 2
.prologue
.line 45
const-string v0, "1.0.5"
return-object v0
.end method
.method public getWifiInfo()Ljava/lang/String;
.registers 2
.prologue
.line 78
iget-object v0, p0, Lcom/baidu/sapi2/passhost/framework/a/a;->b:Landroid/content/Context;
invoke-static {v0}, Lcom/baidu/sapi2/utils/SapiUtils;->getWifiInfo(Landroid/content/Context;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public isRoot()Z
.registers 2
.prologue
.line 74
invoke-static {}, Lcom/baidu/sapi2/utils/SapiUtils;->isRoot()Z
move-result v0
return v0
.end method