206 lines
4.6 KiB
Smali
206 lines
4.6 KiB
Smali
.class public Lmtopsdk/xstate/d;
|
|
.super Landroid/app/Service;
|
|
|
|
|
|
# instance fields
|
|
.field private a:Lmtopsdk/xstate/a/b;
|
|
|
|
.field private b:Ljava/lang/Object;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Landroid/app/Service;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
iput-object v0, p0, Lmtopsdk/xstate/d;->a:Lmtopsdk/xstate/a/b;
|
|
|
|
new-instance v0, Ljava/lang/Object;
|
|
|
|
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object v0, p0, Lmtopsdk/xstate/d;->b:Ljava/lang/Object;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
|
|
.locals 3
|
|
|
|
iget-object p1, p0, Lmtopsdk/xstate/d;->b:Ljava/lang/Object;
|
|
|
|
monitor-enter p1
|
|
|
|
:try_start_0
|
|
iget-object v0, p0, Lmtopsdk/xstate/d;->a:Lmtopsdk/xstate/a/b;
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
new-instance v0, Lmtopsdk/xstate/e;
|
|
|
|
invoke-direct {v0, p0}, Lmtopsdk/xstate/e;-><init>(Lmtopsdk/xstate/d;)V
|
|
|
|
iput-object v0, p0, Lmtopsdk/xstate/d;->a:Lmtopsdk/xstate/a/b;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
:try_start_1
|
|
iget-object v0, p0, Lmtopsdk/xstate/d;->a:Lmtopsdk/xstate/a/b;
|
|
|
|
invoke-virtual {v0}, Lmtopsdk/xstate/a/b;->a()V
|
|
:try_end_1
|
|
.catch Landroid/os/RemoteException; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
goto :goto_1
|
|
|
|
:catch_0
|
|
move-exception v0
|
|
|
|
:try_start_2
|
|
const-string v1, "mtopsdk.XStateService"
|
|
|
|
const-string v2, "[onBind]init() error"
|
|
|
|
:goto_0
|
|
invoke-static {v1, v2, v0}, Lmtopsdk/common/util/TBSdkLog;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
goto :goto_1
|
|
|
|
:catch_1
|
|
move-exception v0
|
|
|
|
const-string v1, "mtopsdk.XStateService"
|
|
|
|
const-string v2, "[onBind]init() exception"
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
:goto_1
|
|
monitor-exit p1
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
sget-object p1, Lmtopsdk/common/util/TBSdkLog$LogEnable;->InfoEnable:Lmtopsdk/common/util/TBSdkLog$LogEnable;
|
|
|
|
invoke-static {p1}, Lmtopsdk/common/util/TBSdkLog;->isLogEnable(Lmtopsdk/common/util/TBSdkLog$LogEnable;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
const-string p1, "mtopsdk.XStateService"
|
|
|
|
new-instance v0, Ljava/lang/StringBuilder;
|
|
|
|
const-string v1, "[onBind] XStateService stub= "
|
|
|
|
invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
iget-object v1, p0, Lmtopsdk/xstate/d;->a:Lmtopsdk/xstate/a/b;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/Object;->hashCode()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-static {p1, v0}, Lmtopsdk/common/util/TBSdkLog;->i(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
:cond_1
|
|
iget-object p1, p0, Lmtopsdk/xstate/d;->a:Lmtopsdk/xstate/a/b;
|
|
|
|
return-object p1
|
|
|
|
:catchall_0
|
|
move-exception v0
|
|
|
|
monitor-exit p1
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public onDestroy()V
|
|
.locals 4
|
|
|
|
invoke-super {p0}, Landroid/app/Service;->onDestroy()V
|
|
|
|
iget-object v0, p0, Lmtopsdk/xstate/d;->b:Ljava/lang/Object;
|
|
|
|
monitor-enter v0
|
|
|
|
:try_start_0
|
|
iget-object v1, p0, Lmtopsdk/xstate/d;->a:Lmtopsdk/xstate/a/b;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
:try_start_1
|
|
iget-object v1, p0, Lmtopsdk/xstate/d;->a:Lmtopsdk/xstate/a/b;
|
|
|
|
invoke-virtual {v1}, Lmtopsdk/xstate/a/b;->b()V
|
|
:try_end_1
|
|
.catch Landroid/os/RemoteException; {:try_start_1 .. :try_end_1} :catch_1
|
|
.catch Ljava/lang/Throwable; {:try_start_1 .. :try_end_1} :catch_0
|
|
.catchall {:try_start_1 .. :try_end_1} :catchall_0
|
|
|
|
goto :goto_1
|
|
|
|
:catch_0
|
|
move-exception v1
|
|
|
|
:try_start_2
|
|
const-string v2, "mtopsdk.XStateService"
|
|
|
|
const-string v3, "[onDestroy]unInit() error"
|
|
|
|
:goto_0
|
|
invoke-static {v2, v3, v1}, Lmtopsdk/common/util/TBSdkLog;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
|
|
|
|
goto :goto_1
|
|
|
|
:catch_1
|
|
move-exception v1
|
|
|
|
const-string v2, "mtopsdk.XStateService"
|
|
|
|
const-string v3, "[onDestroy]unInit() exception"
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
:goto_1
|
|
monitor-exit v0
|
|
:try_end_2
|
|
.catchall {:try_start_2 .. :try_end_2} :catchall_0
|
|
|
|
return-void
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
monitor-exit v0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
.method public onStartCommand(Landroid/content/Intent;II)I
|
|
.locals 0
|
|
|
|
const/4 p1, 0x2
|
|
|
|
return p1
|
|
.end method
|