u.smali
.class public Lyhdsplh/u;
.super Landroid/app/Service;
.source "PluginService.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lyhdsplh/u$b;,
Lyhdsplh/u$a;,
Lyhdsplh/u$c;
}
.end annotation
# instance fields
.field a:Ldxoptimizer/cta;
.field private final b:Ljava/util/ArrayList;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/ArrayList",
"<",
"Lyhdsplh/u$c;",
">;"
}
.end annotation
.end field
.field private final c:Lyhdsplh/u$b;
# direct methods
.method public constructor <init>()V
.registers 3
.prologue
.line 29
invoke-direct {p0}, Landroid/app/Service;-><init>()V
.line 59
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
iput-object v0, p0, Lyhdsplh/u;->b:Ljava/util/ArrayList;
.line 103
new-instance v0, Lyhdsplh/u$b;
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
move-result-object v1
invoke-direct {v0, p0, v1}, Lyhdsplh/u$b;-><init>(Lyhdsplh/u;Landroid/os/Looper;)V
iput-object v0, p0, Lyhdsplh/u;->c:Lyhdsplh/u$b;
.line 105
new-instance v0, Lyhdsplh/u$1;
invoke-direct {v0, p0}, Lyhdsplh/u$1;-><init>(Lyhdsplh/u;)V
iput-object v0, p0, Lyhdsplh/u;->a:Ldxoptimizer/cta;
return-void
.end method
.method private declared-synchronized a(Landroid/content/Intent;)I
.registers 9
.prologue
const/4 v3, 0x1
const/4 v2, 0x0
.line 297
monitor-enter p0
:try_start_3
const-string v0, "plugin_component_name"
invoke-static {p1, v0}, Ldxoptimizer/cgc;->c(Landroid/content/Intent;Ljava/lang/String;)Landroid/os/Parcelable;
move-result-object v0
check-cast v0, Landroid/content/ComponentName;
:try_end_b
.catchall {:try_start_3 .. :try_end_b} :catchall_70
.line 299
if-nez v0, :cond_10
move v0, v2
.line 338
:goto_e
monitor-exit p0
return v0
.line 304
:cond_10
:try_start_10
invoke-virtual {v0}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;
move-result-object v1
.line 305
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v4
if-eqz v4, :cond_1c
move v0, v2
.line 307
goto :goto_e
.line 310
:cond_1c
invoke-virtual {v0}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;
move-result-object v4
.line 311
invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v4
if-eqz v4, :cond_28
move v0, v2
.line 313
goto :goto_e
.line 316
:cond_28
invoke-static {p0}, Ldxoptimizer/bxf;->a(Landroid/content/Context;)Ldxoptimizer/bxf;
move-result-object v4
const/4 v5, 0x0
const/4 v6, 0x1
invoke-virtual {v4, v1, v5, v6}, Ldxoptimizer/bxf;->a(Ljava/lang/String;Ljava/lang/String;I)Ldxoptimizer/bxe;
move-result-object v1
.line 318
if-nez v1, :cond_36
move v0, v2
.line 320
goto :goto_e
.line 324
:cond_36
iget-object v4, p0, Lyhdsplh/u;->b:Ljava/util/ArrayList;
monitor-enter v4
:try_end_39
.catchall {:try_start_10 .. :try_end_39} :catchall_70
.line 325
:try_start_39
iget-object v1, p0, Lyhdsplh/u;->b:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v5
:cond_3f
invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_6a
invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lyhdsplh/u$c;
.line 326
if-eqz v1, :cond_3f
iget-object v6, v1, Lyhdsplh/u$c;->g:Landroid/content/ComponentName;
if-eqz v6, :cond_3f
iget-object v6, v1, Lyhdsplh/u$c;->g:Landroid/content/ComponentName;
invoke-virtual {v6, v0}, Landroid/content/ComponentName;->equals(Ljava/lang/Object;)Z
move-result v6
if-eqz v6, :cond_3f
.line 327
invoke-static {}, Landroid/os/Message;->obtain()Landroid/os/Message;
move-result-object v0
.line 328
const/4 v2, 0x2
iput v2, v0, Landroid/os/Message;->what:I
.line 329
iput-object v1, v0, Landroid/os/Message;->obj:Ljava/lang/Object;
.line 330
iget-object v1, p0, Lyhdsplh/u;->c:Lyhdsplh/u$b;
invoke-virtual {v1, v0}, Lyhdsplh/u$b;->sendMessage(Landroid/os/Message;)Z
.line 332
monitor-exit v4
move v0, v3
goto :goto_e
.line 335
:cond_6a
monitor-exit v4
move v0, v2
.line 338
goto :goto_e
.line 335
:catchall_6d
move-exception v0
monitor-exit v4
:try_end_6f
.catchall {:try_start_39 .. :try_end_6f} :catchall_6d
:try_start_6f
throw v0
:try_end_70
.catchall {:try_start_6f .. :try_end_70} :catchall_70
.line 297
:catchall_70
move-exception v0
monitor-exit p0
throw v0
.end method
.method static synthetic a(Lyhdsplh/u;Landroid/content/Intent;)I
.registers 3
.prologue
.line 29
invoke-direct {p0, p1}, Lyhdsplh/u;->a(Landroid/content/Intent;)I
move-result v0
return v0
.end method
.method private declared-synchronized a(Landroid/content/Intent;Landroid/os/IBinder;I)Landroid/content/ComponentName;
.registers 10
.prologue
const/4 v1, 0x0
.line 162
monitor-enter p0
:try_start_2
const-string v0, "plugin_component_name"
invoke-static {p1, v0}, Ldxoptimizer/cgc;->c(Landroid/content/Intent;Ljava/lang/String;)Landroid/os/Parcelable;
move-result-object v0
check-cast v0, Landroid/content/ComponentName;
:try_end_a
.catchall {:try_start_2 .. :try_end_a} :catchall_6f
.line 164
if-nez v0, :cond_f
move-object v0, v1
.line 204
:goto_d
monitor-exit p0
return-object v0
.line 168
:cond_f
:try_start_f
invoke-virtual {v0}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;
move-result-object v2
.line 169
invoke-static {v2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v3
if-eqz v3, :cond_1b
move-object v0, v1
.line 170
goto :goto_d
.line 173
:cond_1b
invoke-virtual {v0}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;
move-result-object v3
.line 174
invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v3
if-eqz v3, :cond_27
move-object v0, v1
.line 175
goto :goto_d
.line 178
:cond_27
invoke-static {p0}, Ldxoptimizer/bxf;->a(Landroid/content/Context;)Ldxoptimizer/bxf;
move-result-object v3
const/4 v4, 0x0
const/4 v5, 0x2
invoke-virtual {v3, v2, v4, v5}, Ldxoptimizer/bxf;->a(Ljava/lang/String;Ljava/lang/String;I)Ldxoptimizer/bxe;
move-result-object v3
.line 180
if-nez v3, :cond_35
move-object v0, v1
.line 182
goto :goto_d
.line 185
:cond_35
const-string v1, "plugin_component_name"
invoke-virtual {p1, v1}, Landroid/content/Intent;->removeExtra(Ljava/lang/String;)V
.line 186
invoke-virtual {p1, v2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
.line 187
invoke-virtual {p1, v0}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
.line 189
new-instance v1, Lyhdsplh/u$c;
invoke-direct {v1, p0}, Lyhdsplh/u$c;-><init>(Lyhdsplh/u;)V
.line 190
iput-object v3, v1, Lyhdsplh/u$c;->c:Ldxoptimizer/bxe;
.line 191
iput-object p1, v1, Lyhdsplh/u$c;->a:Landroid/content/Intent;
.line 192
const/4 v2, 0x0
iput v2, v1, Lyhdsplh/u$c;->e:I
.line 193
const/4 v2, 0x0
iput v2, v1, Lyhdsplh/u$c;->f:I
.line 194
iput p3, v1, Lyhdsplh/u$c;->i:I
.line 195
const/4 v2, 0x0
iput-boolean v2, v1, Lyhdsplh/u$c;->h:Z
.line 196
const/4 v2, 0x0
iput-object v2, v1, Lyhdsplh/u$c;->j:Landroid/os/IBinder;
.line 197
iput-object v0, v1, Lyhdsplh/u$c;->g:Landroid/content/ComponentName;
.line 199
invoke-static {}, Landroid/os/Message;->obtain()Landroid/os/Message;
move-result-object v0
.line 200
const/4 v2, 0x1
iput v2, v0, Landroid/os/Message;->what:I
.line 201
new-instance v2, Lyhdsplh/u$a;
invoke-direct {v2, p0, v1, p2}, Lyhdsplh/u$a;-><init>(Lyhdsplh/u;Lyhdsplh/u$c;Landroid/os/IBinder;)V
iput-object v2, v0, Landroid/os/Message;->obj:Ljava/lang/Object;
.line 202
iget-object v2, p0, Lyhdsplh/u;->c:Lyhdsplh/u$b;
invoke-virtual {v2, v0}, Lyhdsplh/u$b;->sendMessage(Landroid/os/Message;)Z
.line 204
iget-object v0, v1, Lyhdsplh/u$c;->g:Landroid/content/ComponentName;
:try_end_6e
.catchall {:try_start_f .. :try_end_6e} :catchall_6f
goto :goto_d
.line 162
:catchall_6f
move-exception v0
monitor-exit p0
throw v0
.end method
.method private a(Landroid/app/Service;Landroid/app/Application;)V
.registers 5
.prologue
.line 554
:try_start_0
const-class v0, Landroid/app/Service;
const-string v1, "mApplication"
invoke-static {v0, v1}, Ldxoptimizer/cdo;->a(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v0
.line 555
invoke-virtual {v0, p1, p2}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
:try_end_b
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_b} :catch_c
.line 559
:goto_b
return-void
.line 556
:catch_c
move-exception v0
goto :goto_b
.end method
.method private a(Landroid/app/Service;Landroid/content/Context;)V
.registers 7
.prologue
.line 536
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v1
.line 537
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
.line 538
:goto_8
if-eqz v0, :cond_26
.line 540
:try_start_a
const-string v2, "mBase"
invoke-virtual {v0, v2}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v2
.line 541
const/4 v3, 0x1
invoke-virtual {v2, v3}, Ljava/lang/reflect/Field;->setAccessible(Z)V
.line 542
invoke-virtual {v2}, Ljava/lang/reflect/Field;->getType()Ljava/lang/Class;
move-result-object v3
invoke-virtual {v3, v1}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
move-result v3
if-eqz v3, :cond_21
.line 543
invoke-virtual {v2, p1, p2}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
:try_end_21
.catch Ljava/lang/Exception; {:try_start_a .. :try_end_21} :catch_27
.line 548
:cond_21
:goto_21
invoke-virtual {v0}, Ljava/lang/Class;->getSuperclass()Ljava/lang/Class;
move-result-object v0
goto :goto_8
.line 550
:cond_26
return-void
.line 545
:catch_27
move-exception v2
goto :goto_21
.end method
.method private a(Landroid/app/Service;Ljava/lang/String;)V
.registers 5
.prologue
.line 563
:try_start_0
const-class v0, Landroid/app/Service;
const-string v1, "mClassName"
invoke-static {v0, v1}, Ldxoptimizer/cdo;->a(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v0
.line 564
invoke-virtual {v0, p1, p2}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
:try_end_b
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_b} :catch_c
.line 568
:goto_b
return-void
.line 565
:catch_c
move-exception v0
goto :goto_b
.end method
.method private a(Landroid/content/Intent;II)V
.registers 6
.prologue
.line 128
iget-object v0, p0, Lyhdsplh/u;->c:Lyhdsplh/u$b;
new-instance v1, Lyhdsplh/u$2;
invoke-direct {v1, p0, p1}, Lyhdsplh/u$2;-><init>(Lyhdsplh/u;Landroid/content/Intent;)V
invoke-virtual {v0, v1}, Lyhdsplh/u$b;->post(Ljava/lang/Runnable;)Z
.line 143
return-void
.end method
.method private declared-synchronized a(Landroid/os/IBinder;)V
.registers 7
.prologue
.line 494
monitor-enter p0
:try_start_1
iget-object v1, p0, Lyhdsplh/u;->b:Ljava/util/ArrayList;
monitor-enter v1
:try_end_4
.catchall {:try_start_1 .. :try_end_4} :catchall_3e
.line 495
:try_start_4
iget-object v0, p0, Lyhdsplh/u;->b:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v2
:cond_a
:goto_a
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v0
if-eqz v0, :cond_41
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lyhdsplh/u$c;
.line 496
if-eqz v0, :cond_a
iget-object v3, v0, Lyhdsplh/u$c;->l:Ljava/util/ArrayList;
invoke-virtual {v3, p1}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_a
.line 497
iget-object v3, v0, Lyhdsplh/u$c;->b:Landroid/app/Service;
.line 498
if-nez v3, :cond_27
.line 499
monitor-exit v1
:try_end_25
.catchall {:try_start_4 .. :try_end_25} :catchall_3b
.line 509
:goto_25
monitor-exit p0
return-void
.line 502
:cond_27
:try_start_27
invoke-static {}, Landroid/os/Message;->obtain()Landroid/os/Message;
move-result-object v3
.line 503
const/4 v4, 0x5
iput v4, v3, Landroid/os/Message;->what:I
.line 504
new-instance v4, Lyhdsplh/u$a;
invoke-direct {v4, p0, v0, p1}, Lyhdsplh/u$a;-><init>(Lyhdsplh/u;Lyhdsplh/u$c;Landroid/os/IBinder;)V
iput-object v4, v3, Landroid/os/Message;->obj:Ljava/lang/Object;
.line 505
iget-object v0, p0, Lyhdsplh/u;->c:Lyhdsplh/u$b;
invoke-virtual {v0, v3}, Lyhdsplh/u$b;->sendMessage(Landroid/os/Message;)Z
goto :goto_a
.line 508
:catchall_3b
move-exception v0
monitor-exit v1
:try_end_3d
.catchall {:try_start_27 .. :try_end_3d} :catchall_3b
:try_start_3d
throw v0
:try_end_3e
.catchall {:try_start_3d .. :try_end_3e} :catchall_3e
.line 494
:catchall_3e
move-exception v0
monitor-exit p0
throw v0
.line 508
:cond_41
:try_start_41
monitor-exit v1
:try_end_42
.catchall {:try_start_41 .. :try_end_42} :catchall_3b
goto :goto_25
.end method
.method private a(Lyhdsplh/u$a;)V
.registers 10
.prologue
const/4 v7, 0x1
.line 208
if-nez p1, :cond_4
.line 293
:cond_3
:goto_3
return-void
.line 211
:cond_4
iget-object v3, p1, Lyhdsplh/u$a;->a:Lyhdsplh/u$c;
.line 212
iget-object v2, p0, Lyhdsplh/u;->b:Ljava/util/ArrayList;
monitor-enter v2
.line 214
:try_start_9
iget-object v1, p0, Lyhdsplh/u;->b:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v4
:cond_f
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_51
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lyhdsplh/u$c;
.line 215
if-eqz v1, :cond_f
iget-object v5, v1, Lyhdsplh/u$c;->g:Landroid/content/ComponentName;
if-eqz v5, :cond_f
iget-object v5, v1, Lyhdsplh/u$c;->g:Landroid/content/ComponentName;
iget-object v6, v3, Lyhdsplh/u$c;->g:Landroid/content/ComponentName;
invoke-virtual {v5, v6}, Landroid/content/ComponentName;->equals(Ljava/lang/Object;)Z
move-result v5
if-eqz v5, :cond_f
.line 216
iget v4, v3, Lyhdsplh/u$c;->i:I
and-int/lit8 v4, v4, 0x1
if-eq v4, v7, :cond_47
.line 217
iget v4, v1, Lyhdsplh/u$c;->f:I
add-int/lit8 v4, v4, 0x1
iput v4, v1, Lyhdsplh/u$c;->f:I
.line 219
iget-object v4, v1, Lyhdsplh/u$c;->b:Landroid/app/Service;
.line 220
iget v5, v1, Lyhdsplh/u$c;->e:I
.line 221
iget v1, v1, Lyhdsplh/u$c;->f:I
.line 223
iget-object v3, v3, Lyhdsplh/u$c;->a:Landroid/content/Intent;
invoke-virtual {v4, v3, v5, v1}, Landroid/app/Service;->onStartCommand(Landroid/content/Intent;II)I
.line 231
:cond_42
:goto_42
monitor-exit v2
goto :goto_3
.line 234
:catchall_44
move-exception v1
monitor-exit v2
:try_end_46
.catchall {:try_start_9 .. :try_end_46} :catchall_44
throw v1
.line 226
:cond_47
:try_start_47
iget-object v3, p1, Lyhdsplh/u$a;->b:Landroid/os/IBinder;
if-eqz v3, :cond_42
.line 227
iput-object v1, p1, Lyhdsplh/u$a;->a:Lyhdsplh/u$c;
.line 228
invoke-direct {p0, p1}, Lyhdsplh/u;->b(Lyhdsplh/u$a;)V
goto :goto_42
.line 234
:cond_51
monitor-exit v2
:try_end_52
.catchall {:try_start_47 .. :try_end_52} :catchall_44
.line 237
:try_start_52
iget-object v1, v3, Lyhdsplh/u$c;->c:Ldxoptimizer/bxe;
iget v1, v1, Ldxoptimizer/bxe;->p:I
if-nez v1, :cond_c3
.line 238
new-instance v1, Ldxoptimizer/ctf;
iget-object v2, v3, Lyhdsplh/u$c;->c:Ldxoptimizer/bxe;
iget-object v4, v3, Lyhdsplh/u$c;->c:Ldxoptimizer/bxe;
iget-object v4, v4, Ldxoptimizer/bxe;->f:Ldxoptimizer/ctf;
invoke-direct {v1, v2, v4}, Ldxoptimizer/ctf;-><init>(Ldxoptimizer/bxe;Landroid/content/Context;)V
iput-object v1, v3, Lyhdsplh/u$c;->d:Ldxoptimizer/ctf;
:try_end_65
.catch Ljava/lang/Exception; {:try_start_52 .. :try_end_65} :catch_d7
.line 255
:goto_65
:try_start_65
iget-object v1, v3, Lyhdsplh/u$c;->d:Ldxoptimizer/ctf;
invoke-virtual {v1}, Ldxoptimizer/ctf;->getClassLoader()Ljava/lang/ClassLoader;
move-result-object v1
iget-object v2, v3, Lyhdsplh/u$c;->g:Landroid/content/ComponentName;
invoke-virtual {v2}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;
move-result-object v2
invoke-virtual {v1, v2}, Ljava/lang/ClassLoader;->loadClass(Ljava/lang/String;)Ljava/lang/Class;
move-result-object v1
.line 256
invoke-virtual {v1}, Ljava/lang/Class;->newInstance()Ljava/lang/Object;
move-result-object v2
.line 258
instance-of v1, v2, Landroid/app/Service;
if-eqz v1, :cond_3
.line 262
move-object v0, v2
check-cast v0, Landroid/app/Service;
move-object v1, v0
iput-object v1, v3, Lyhdsplh/u$c;->b:Landroid/app/Service;
:try_end_83
.catch Ljava/lang/Exception; {:try_start_65 .. :try_end_83} :catch_dd
.line 272
check-cast v2, Landroid/app/Service;
.line 274
const-class v1, Landroid/app/Service;
invoke-static {v1, p0, v2}, Ldxoptimizer/cdo;->a(Ljava/lang/Class;Ljava/lang/Object;Ljava/lang/Object;)Z
.line 275
iget-object v1, v3, Lyhdsplh/u$c;->d:Ldxoptimizer/ctf;
invoke-direct {p0, v2, v1}, Lyhdsplh/u;->a(Landroid/app/Service;Landroid/content/Context;)V
.line 276
iget-object v1, v3, Lyhdsplh/u$c;->c:Ldxoptimizer/bxe;
iget-object v1, v1, Ldxoptimizer/bxe;->d:Landroid/app/Application;
invoke-direct {p0, v2, v1}, Lyhdsplh/u;->a(Landroid/app/Service;Landroid/app/Application;)V
.line 277
iget-object v1, v3, Lyhdsplh/u$c;->g:Landroid/content/ComponentName;
invoke-virtual {v1}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;
move-result-object v1
invoke-direct {p0, v2, v1}, Lyhdsplh/u;->a(Landroid/app/Service;Ljava/lang/String;)V
.line 279
invoke-virtual {v2}, Landroid/app/Service;->onCreate()V
.line 280
iget-object v1, v3, Lyhdsplh/u$c;->a:Landroid/content/Intent;
iget v4, v3, Lyhdsplh/u$c;->e:I
iget v5, v3, Lyhdsplh/u$c;->f:I
invoke-virtual {v2, v1, v4, v5}, Landroid/app/Service;->onStartCommand(Landroid/content/Intent;II)I
.line 284
iget-object v2, p0, Lyhdsplh/u;->b:Ljava/util/ArrayList;
monitor-enter v2
.line 285
:try_start_ae
iget-object v1, p0, Lyhdsplh/u;->b:Ljava/util/ArrayList;
invoke-virtual {v1, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
.line 286
monitor-exit v2
:try_end_b4
.catchall {:try_start_ae .. :try_end_b4} :catchall_da
.line 288
iget v1, v3, Lyhdsplh/u$c;->i:I
and-int/lit8 v1, v1, 0x1
if-ne v1, v7, :cond_3
.line 289
iget-object v1, p1, Lyhdsplh/u$a;->b:Landroid/os/IBinder;
if-eqz v1, :cond_3
.line 290
invoke-direct {p0, p1}, Lyhdsplh/u;->b(Lyhdsplh/u$a;)V
goto/16 :goto_3
.line 239
:cond_c3
:try_start_c3
iget-object v1, v3, Lyhdsplh/u$c;->c:Ldxoptimizer/bxe;
iget v1, v1, Ldxoptimizer/bxe;->p:I
if-ne v1, v7, :cond_3
.line 240
new-instance v1, Ldxoptimizer/ctc;
iget-object v2, v3, Lyhdsplh/u$c;->c:Ldxoptimizer/bxe;
iget-object v4, v3, Lyhdsplh/u$c;->c:Ldxoptimizer/bxe;
iget-object v4, v4, Ldxoptimizer/bxe;->f:Ldxoptimizer/ctf;
invoke-direct {v1, v2, v4}, Ldxoptimizer/ctc;-><init>(Ldxoptimizer/bxe;Landroid/content/Context;)V
iput-object v1, v3, Lyhdsplh/u$c;->d:Ldxoptimizer/ctf;
:try_end_d6
.catch Ljava/lang/Exception; {:try_start_c3 .. :try_end_d6} :catch_d7
goto :goto_65
.line 245
:catch_d7
move-exception v1
goto/16 :goto_3
.line 286
:catchall_da
move-exception v1
:try_start_db
monitor-exit v2
:try_end_dc
.catchall {:try_start_db .. :try_end_dc} :catchall_da
throw v1
.line 264
:catch_dd
move-exception v1
goto/16 :goto_3
.end method
.method private a(Lyhdsplh/u$c;)V
.registers 5
.prologue
.line 343
iget-object v1, p0, Lyhdsplh/u;->b:Ljava/util/ArrayList;
monitor-enter v1
.line 344
:try_start_3
iget-object v0, p1, Lyhdsplh/u$c;->l:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
if-nez v0, :cond_20
iget-boolean v0, p1, Lyhdsplh/u$c;->h:Z
if-nez v0, :cond_20
iget v0, p1, Lyhdsplh/u$c;->i:I
and-int/lit8 v0, v0, 0x1
const/4 v2, 0x1
if-eq v0, v2, :cond_20
.line 350
iget-object v0, p1, Lyhdsplh/u$c;->b:Landroid/app/Service;
.line 352
invoke-virtual {v0}, Landroid/app/Service;->onDestroy()V
.line 355
iget-object v0, p0, Lyhdsplh/u;->b:Ljava/util/ArrayList;
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
.line 357
:cond_20
monitor-exit v1
.line 358
return-void
.line 357
:catchall_22
move-exception v0
monitor-exit v1
:try_end_24
.catchall {:try_start_3 .. :try_end_24} :catchall_22
throw v0
.end method
.method static synthetic a(Lyhdsplh/u;Landroid/os/IBinder;)V
.registers 2
.prologue
.line 29
invoke-direct {p0, p1}, Lyhdsplh/u;->a(Landroid/os/IBinder;)V
return-void
.end method
.method static synthetic a(Lyhdsplh/u;Lyhdsplh/u$a;)V
.registers 2
.prologue
.line 29
invoke-direct {p0, p1}, Lyhdsplh/u;->a(Lyhdsplh/u$a;)V
return-void
.end method
.method static synthetic a(Lyhdsplh/u;Lyhdsplh/u$c;)V
.registers 2
.prologue
.line 29
invoke-direct {p0, p1}, Lyhdsplh/u;->a(Lyhdsplh/u$c;)V
return-void
.end method
.method static synthetic a(Lyhdsplh/u;Landroid/content/Intent;Landroid/os/IBinder;I)Z
.registers 5
.prologue
.line 29
invoke-direct {p0, p1, p2, p3}, Lyhdsplh/u;->b(Landroid/content/Intent;Landroid/os/IBinder;I)Z
move-result v0
return v0
.end method
.method static synthetic b(Lyhdsplh/u;Landroid/content/Intent;Landroid/os/IBinder;I)Landroid/content/ComponentName;
.registers 5
.prologue
.line 29
invoke-direct {p0, p1, p2, p3}, Lyhdsplh/u;->a(Landroid/content/Intent;Landroid/os/IBinder;I)Landroid/content/ComponentName;
move-result-object v0
return-object v0
.end method
.method private b(Lyhdsplh/u$a;)V
.registers 7
.prologue
.line 463
if-nez p1, :cond_3
.line 490
:goto_2
return-void
.line 466
:cond_3
iget-object v0, p1, Lyhdsplh/u$a;->a:Lyhdsplh/u$c;
.line 468
iget-object v1, p0, Lyhdsplh/u;->b:Ljava/util/ArrayList;
monitor-enter v1
.line 469
:try_start_8
iget-object v2, v0, Lyhdsplh/u$c;->b:Landroid/app/Service;
.line 471
iget-object v3, v0, Lyhdsplh/u$c;->j:Landroid/os/IBinder;
if-nez v3, :cond_23
.line 472
iget-boolean v3, v0, Lyhdsplh/u$c;->h:Z
if-eqz v3, :cond_17
.line 473
iget-object v3, v0, Lyhdsplh/u$c;->a:Landroid/content/Intent;
invoke-virtual {v2, v3}, Landroid/app/Service;->onRebind(Landroid/content/Intent;)V
.line 476
:cond_17
iget-object v3, v0, Lyhdsplh/u$c;->a:Landroid/content/Intent;
invoke-virtual {v2, v3}, Landroid/app/Service;->onBind(Landroid/content/Intent;)Landroid/os/IBinder;
move-result-object v2
iput-object v2, v0, Lyhdsplh/u$c;->j:Landroid/os/IBinder;
.line 477
iget v2, v0, Lyhdsplh/u$c;->f:I
iput v2, v0, Lyhdsplh/u$c;->k:I
:try_end_23
.catchall {:try_start_8 .. :try_end_23} :catchall_43
.line 481
:cond_23
:try_start_23
iget-object v2, p1, Lyhdsplh/u$a;->b:Landroid/os/IBinder;
invoke-static {v2}, Ldxoptimizer/ctb$a;->a(Landroid/os/IBinder;)Ldxoptimizer/ctb;
move-result-object v2
.line 482
iget-object v3, v0, Lyhdsplh/u$c;->g:Landroid/content/ComponentName;
iget-object v4, v0, Lyhdsplh/u$c;->j:Landroid/os/IBinder;
invoke-interface {v2, v3, v4}, Ldxoptimizer/ctb;->a(Landroid/content/ComponentName;Landroid/os/IBinder;)V
.line 483
iget-object v2, v0, Lyhdsplh/u$c;->l:Ljava/util/ArrayList;
iget-object v3, p1, Lyhdsplh/u$a;->b:Landroid/os/IBinder;
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z
move-result v2
if-nez v2, :cond_41
.line 484
iget-object v0, v0, Lyhdsplh/u$c;->l:Ljava/util/ArrayList;
iget-object v2, p1, Lyhdsplh/u$a;->b:Landroid/os/IBinder;
invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
:try_end_41
.catch Landroid/os/RemoteException; {:try_start_23 .. :try_end_41} :catch_46
.catchall {:try_start_23 .. :try_end_41} :catchall_43
.line 489
:cond_41
:goto_41
:try_start_41
monitor-exit v1
goto :goto_2
:catchall_43
move-exception v0
monitor-exit v1
:try_end_45
.catchall {:try_start_41 .. :try_end_45} :catchall_43
throw v0
.line 486
:catch_46
move-exception v0
.line 487
:try_start_47
invoke-virtual {v0}, Landroid/os/RemoteException;->printStackTrace()V
:try_end_4a
.catchall {:try_start_47 .. :try_end_4a} :catchall_43
goto :goto_41
.end method
.method private b(Lyhdsplh/u$c;)V
.registers 5
.prologue
.line 391
iget-object v1, p0, Lyhdsplh/u;->b:Ljava/util/ArrayList;
monitor-enter v1
.line 392
:try_start_3
iget-object v0, p1, Lyhdsplh/u$c;->l:Ljava/util/ArrayList;
invoke-virtual {v0}, Ljava/util/ArrayList;->size()I
move-result v0
if-gtz v0, :cond_20
iget-boolean v0, p1, Lyhdsplh/u$c;->h:Z
if-nez v0, :cond_20
iget v0, p1, Lyhdsplh/u$c;->i:I
and-int/lit8 v0, v0, 0x1
const/4 v2, 0x1
if-eq v0, v2, :cond_20
.line 398
iget-object v0, p1, Lyhdsplh/u$c;->b:Landroid/app/Service;
.line 400
invoke-virtual {v0}, Landroid/app/Service;->onDestroy()V
.line 403
iget-object v0, p0, Lyhdsplh/u;->b:Ljava/util/ArrayList;
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
.line 405
:cond_20
monitor-exit v1
.line 406
return-void
.line 405
:catchall_22
move-exception v0
monitor-exit v1
:try_end_24
.catchall {:try_start_3 .. :try_end_24} :catchall_22
throw v0
.end method
.method static synthetic b(Lyhdsplh/u;Lyhdsplh/u$a;)V
.registers 2
.prologue
.line 29
invoke-direct {p0, p1}, Lyhdsplh/u;->b(Lyhdsplh/u$a;)V
return-void
.end method
.method static synthetic b(Lyhdsplh/u;Lyhdsplh/u$c;)V
.registers 2
.prologue
.line 29
invoke-direct {p0, p1}, Lyhdsplh/u;->b(Lyhdsplh/u$c;)V
return-void
.end method
.method private declared-synchronized b(Landroid/content/Intent;)Z
.registers 10
.prologue
const/4 v2, 0x0
const/4 v7, -0x1
.line 362
monitor-enter p0
:try_start_3
const-string v0, "plugin_component_name"
invoke-static {p1, v0}, Ldxoptimizer/cgc;->c(Landroid/content/Intent;Ljava/lang/String;)Landroid/os/Parcelable;
move-result-object v0
check-cast v0, Landroid/content/ComponentName;
:try_end_b
.catchall {:try_start_3 .. :try_end_b} :catchall_54
.line 364
if-nez v0, :cond_10
move v0, v2
.line 387
:goto_e
monitor-exit p0
return v0
.line 369
:cond_10
:try_start_10
const-string v1, "plugin_service_startid"
const/4 v3, -0x1
invoke-static {p1, v1, v3}, Ldxoptimizer/cgc;->a(Landroid/content/Intent;Ljava/lang/String;I)I
move-result v3
.line 373
iget-object v4, p0, Lyhdsplh/u;->b:Ljava/util/ArrayList;
monitor-enter v4
:try_end_1a
.catchall {:try_start_10 .. :try_end_1a} :catchall_54
.line 374
:try_start_1a
iget-object v1, p0, Lyhdsplh/u;->b:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v5
:cond_20
invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_57
invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lyhdsplh/u$c;
.line 375
if-eqz v1, :cond_20
iget-object v6, v1, Lyhdsplh/u$c;->g:Landroid/content/ComponentName;
if-eqz v6, :cond_20
iget-object v6, v1, Lyhdsplh/u$c;->g:Landroid/content/ComponentName;
invoke-virtual {v6, v0}, Landroid/content/ComponentName;->equals(Ljava/lang/Object;)Z
move-result v6
if-eqz v6, :cond_20
.line 377
if-eq v3, v7, :cond_40
iget v6, v1, Lyhdsplh/u$c;->f:I
if-ne v3, v6, :cond_20
.line 378
:cond_40
invoke-static {}, Landroid/os/Message;->obtain()Landroid/os/Message;
move-result-object v0
.line 379
const/4 v2, 0x3
iput v2, v0, Landroid/os/Message;->what:I
.line 380
iput-object v1, v0, Landroid/os/Message;->obj:Ljava/lang/Object;
.line 381
iget-object v1, p0, Lyhdsplh/u;->c:Lyhdsplh/u$b;
invoke-virtual {v1, v0}, Lyhdsplh/u$b;->sendMessage(Landroid/os/Message;)Z
.line 382
const/4 v0, 0x1
monitor-exit v4
goto :goto_e
.line 386
:catchall_51
move-exception v0
monitor-exit v4
:try_end_53
.catchall {:try_start_1a .. :try_end_53} :catchall_51
:try_start_53
throw v0
:try_end_54
.catchall {:try_start_53 .. :try_end_54} :catchall_54
.line 362
:catchall_54
move-exception v0
monitor-exit p0
throw v0
.line 386
:cond_57
:try_start_57
monitor-exit v4
:try_end_58
.catchall {:try_start_57 .. :try_end_58} :catchall_51
move v0, v2
.line 387
goto :goto_e
.end method
.method private declared-synchronized b(Landroid/content/Intent;Landroid/os/IBinder;I)Z
.registers 11
.prologue
const/4 v3, 0x1
const/4 v2, 0x0
.line 410
monitor-enter p0
and-int/lit8 v0, p3, 0x1
if-ne v0, v3, :cond_13
move v0, v3
.line 411
:goto_8
if-eqz v0, :cond_17
.line 412
:try_start_a
invoke-direct {p0, p1, p2, p3}, Lyhdsplh/u;->a(Landroid/content/Intent;Landroid/os/IBinder;I)Landroid/content/ComponentName;
:try_end_d
.catchall {:try_start_a .. :try_end_d} :catchall_8e
move-result-object v0
.line 413
if-nez v0, :cond_15
move v0, v2
.line 459
:goto_11
monitor-exit p0
return v0
:cond_13
move v0, v2
.line 410
goto :goto_8
:cond_15
move v0, v3
.line 417
goto :goto_11
.line 420
:cond_17
:try_start_17
const-string v0, "plugin_component_name"
invoke-static {p1, v0}, Ldxoptimizer/cgc;->c(Landroid/content/Intent;Ljava/lang/String;)Landroid/os/Parcelable;
move-result-object v0
check-cast v0, Landroid/content/ComponentName;
.line 422
if-nez v0, :cond_23
move v0, v2
.line 423
goto :goto_11
.line 426
:cond_23
invoke-virtual {v0}, Landroid/content/ComponentName;->getPackageName()Ljava/lang/String;
move-result-object v1
.line 427
invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v4
if-eqz v4, :cond_2f
move v0, v2
.line 428
goto :goto_11
.line 431
:cond_2f
invoke-virtual {v0}, Landroid/content/ComponentName;->getClassName()Ljava/lang/String;
move-result-object v4
.line 432
invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v4
if-eqz v4, :cond_3b
move v0, v2
.line 433
goto :goto_11
.line 436
:cond_3b
const-string v4, "plugin_component_name"
invoke-virtual {p1, v4}, Landroid/content/Intent;->removeExtra(Ljava/lang/String;)V
.line 437
invoke-virtual {p1, v1}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent;
.line 438
invoke-virtual {p1, v0}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent;
.line 440
iget-object v4, p0, Lyhdsplh/u;->b:Ljava/util/ArrayList;
monitor-enter v4
:try_end_49
.catchall {:try_start_17 .. :try_end_49} :catchall_8e
.line 441
:try_start_49
iget-object v1, p0, Lyhdsplh/u;->b:Ljava/util/ArrayList;
invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;
move-result-object v5
:cond_4f
invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_88
invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
check-cast v1, Lyhdsplh/u$c;
.line 442
if-eqz v1, :cond_4f
iget-object v6, v1, Lyhdsplh/u$c;->g:Landroid/content/ComponentName;
if-eqz v6, :cond_4f
iget-object v6, v1, Lyhdsplh/u$c;->g:Landroid/content/ComponentName;
invoke-virtual {v6, v0}, Landroid/content/ComponentName;->equals(Ljava/lang/Object;)Z
move-result v6
if-eqz v6, :cond_4f
.line 443
iget-object v0, v1, Lyhdsplh/u$c;->b:Landroid/app/Service;
.line 444
if-nez v0, :cond_70
.line 446
monitor-exit v4
move v0, v2
goto :goto_11
.line 448
:cond_70
iput-object p1, v1, Lyhdsplh/u$c;->a:Landroid/content/Intent;
.line 450
invoke-static {}, Landroid/os/Message;->obtain()Landroid/os/Message;
move-result-object v0
.line 451
const/4 v2, 0x4
iput v2, v0, Landroid/os/Message;->what:I
.line 452
new-instance v2, Lyhdsplh/u$a;
invoke-direct {v2, p0, v1, p2}, Lyhdsplh/u$a;-><init>(Lyhdsplh/u;Lyhdsplh/u$c;Landroid/os/IBinder;)V
iput-object v2, v0, Landroid/os/Message;->obj:Ljava/lang/Object;
.line 453
iget-object v1, p0, Lyhdsplh/u;->c:Lyhdsplh/u$b;
invoke-virtual {v1, v0}, Lyhdsplh/u$b;->sendMessage(Landroid/os/Message;)Z
.line 454
monitor-exit v4
move v0, v3
goto :goto_11
.line 457
:cond_88
monitor-exit v4
move v0, v2
.line 459
goto :goto_11
.line 457
:catchall_8b
move-exception v0
monitor-exit v4
:try_end_8d
.catchall {:try_start_49 .. :try_end_8d} :catchall_8b
:try_start_8d
throw v0
:try_end_8e
.catchall {:try_start_8d .. :try_end_8e} :catchall_8e
.line 410
:catchall_8e
move-exception v0
monitor-exit p0
throw v0
.end method
.method static synthetic b(Lyhdsplh/u;Landroid/content/Intent;)Z
.registers 3
.prologue
.line 29
invoke-direct {p0, p1}, Lyhdsplh/u;->b(Landroid/content/Intent;)Z
move-result v0
return v0
.end method
.method private c(Lyhdsplh/u$a;)V
.registers 6
.prologue
.line 512
if-nez p1, :cond_3
.line 533
:goto_2
return-void
.line 515
:cond_3
iget-object v0, p1, Lyhdsplh/u$a;->a:Lyhdsplh/u$c;
.line 516
iget-object v1, p0, Lyhdsplh/u;->b:Ljava/util/ArrayList;
monitor-enter v1
.line 517
:try_start_8
iget-object v2, v0, Lyhdsplh/u$c;->b:Landroid/app/Service;
iget-object v3, v0, Lyhdsplh/u$c;->a:Landroid/content/Intent;
invoke-virtual {v2, v3}, Landroid/app/Service;->onUnbind(Landroid/content/Intent;)Z
move-result v2
iput-boolean v2, v0, Lyhdsplh/u$c;->h:Z
.line 520
iget-object v2, v0, Lyhdsplh/u$c;->l:Ljava/util/ArrayList;
iget-object v3, p1, Lyhdsplh/u$a;->b:Landroid/os/IBinder;
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
.line 522
iget-object v2, v0, Lyhdsplh/u$c;->l:Ljava/util/ArrayList;
invoke-virtual {v2}, Ljava/util/ArrayList;->size()I
move-result v2
if-nez v2, :cond_38
.line 523
const/4 v2, 0x0
iput-object v2, v0, Lyhdsplh/u$c;->j:Landroid/os/IBinder;
.line 525
iget-boolean v2, v0, Lyhdsplh/u$c;->h:Z
if-nez v2, :cond_38
.line 526
iget v2, v0, Lyhdsplh/u$c;->k:I
iget v3, v0, Lyhdsplh/u$c;->f:I
if-ne v2, v3, :cond_38
.line 527
iget-object v2, v0, Lyhdsplh/u$c;->b:Landroid/app/Service;
invoke-virtual {v2}, Landroid/app/Service;->onDestroy()V
.line 528
iget-object v2, p0, Lyhdsplh/u;->b:Ljava/util/ArrayList;
invoke-virtual {v2, v0}, Ljava/util/ArrayList;->remove(Ljava/lang/Object;)Z
.line 532
:cond_38
monitor-exit v1
goto :goto_2
:catchall_3a
move-exception v0
monitor-exit v1
:try_end_3c
.catchall {:try_start_8 .. :try_end_3c} :catchall_3a
throw v0
.end method
.method static synthetic c(Lyhdsplh/u;Lyhdsplh/u$a;)V
.registers 2
.prologue
.line 29
invoke-direct {p0, p1}, Lyhdsplh/u;->c(Lyhdsplh/u$a;)V
return-void
.end method
# virtual methods
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
.registers 3
.prologue
.line 119
iget-object v0, p0, Lyhdsplh/u;->a:Ldxoptimizer/cta;
invoke-interface {v0}, Ldxoptimizer/cta;->asBinder()Landroid/os/IBinder;
move-result-object v0
return-object v0
.end method
.method public onCreate()V
.registers 1
.prologue
.line 124
invoke-super {p0}, Landroid/app/Service;->onCreate()V
.line 125
return-void
.end method
.method public onStartCommand(Landroid/content/Intent;II)I
.registers 5
.prologue
.line 147
if-eqz p1, :cond_5
.line 149
invoke-direct {p0, p1, p2, p3}, Lyhdsplh/u;->a(Landroid/content/Intent;II)V
.line 152
:cond_5
invoke-super {p0, p1, p2, p3}, Landroid/app/Service;->onStartCommand(Landroid/content/Intent;II)I
move-result v0
return v0
.end method
.method public onUnbind(Landroid/content/Intent;)Z
.registers 3
.prologue
.line 157
const/4 v0, 0x1
return v0
.end method